Commit Graph
2 Commits
Author SHA1 Message Date
CatoandClaude 3d976c05f3 chore(docs-truth): baseline is empty — every repo's docs agree with its tree (#182)
After the cleanup PRs across the fleet, the sweep over all 60 repos finds
zero findings. With an empty baseline any new finding in any repo fails the
daily sweep, and the sweep's PR gate already blocks new ones.


Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 14:38:55 +02:00
CatoandClaude Opus 5.5 9d2af89bdc feat(audits): hold every doc, page and repo page to what is true — and gate new drift in the sweep (#179)
* docs(agents): Loki is the execution plane, not engineering

The plane was renamed 2026-09-20 (orangecat src/config/ecosystem.ts
ECOSYSTEM_PILLARS); this sentence still carried the old label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

* feat(audits): hold every doc and every live page to what is true

Agents read README / CLAUDE.md / AGENTS.md / .claude/ before code and act on
them; visitors read pages rendered from components nobody greps. Both drifted
silently: one pass over nine repos on 2026-10-19 found a merge policy said to
live in a repo that no longer holds it, dozens of paths to deleted files,
scripts not in package.json, "Next 15 / TS 5.8 / Tailwind 3.3" in a repo on
16 / 6 / 4, and a retired host presented as production in forty files.

- docs-truth-audit.mjs: holds each repo's docs to its OWN tree — backticked
  paths, relative links, `pnpm run X`, stack majors vs package.json, retired
  names. Never judges prose; a line saying the thing is gone is history.
  Modes: --dir (working tree), --repo, --repo --pr (only what a PR adds),
  --sweep --check (every repo, ratcheted by docs-truth.baseline).
- auto-merge sweep: the docs gate. A PR that ADDS docs drift — including by
  deleting a file a doc still names — is held with one comment per head
  commit naming each line and the fix. Exit 2 (could not look) never holds a
  merge. The sweep is the one workflow every repo calls, so this needs no
  per-repo copy. DOCS_TRUTH=0 opts a repo out.
- live-claims-audit.mjs: fetches every live site in Loki's map (home + the
  pages it links first) and flags retired names/hosts, forbidden claims, a
  past copyright year and dead same-site links. Daily, ratcheted.
- repo-metadata-audit: a GitHub description may not carry a retired name or
  a forbidden claim.
- registers/org.json gains forbiddenClaims; org-drift-audit.sh reads it, so
  the document and served-page gates share one list.
- Workflows docs-truth.yml and live-claims.yml (daily); both test suites run
  per-PR in ci.yml. AGENTS.md states the four gates once; README lists them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

* feat(audits): fewer false positives, and homepages follow the register

docs-truth: a removal stated across a line break is history; `cd sub &&
pnpm run x` reads the sub-package; an example path (e.g. …) is not a claim;
a file that describes other repos by design (dotfiles' global CLAUDE.md)
opts its paths out with <!-- docs-truth: paths-elsewhere -->. All four came
from the first cleanup pass over the fleet.

repo-metadata: --fix writes a homepage the register already holds, and
repo-metadata.yml runs it daily with FLEET_PAT before the report — five
homepages were missing or wrong on 2026-10-19 and every fleet PR inherited
the red. Descriptions are prose and stay reported, never written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

* feat(docs-truth): a name kept on purpose is marked on its line

<!-- docs-truth: keep — why --> records a deliberate exception (a JWT issuer
that still carries a retired name because changing it signs everyone out)
instead of leaving it as drift the gate cannot tell apart from a mistake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

* fix(docs-truth): links in code spans are markup; /file links resolve under public/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

* docs(templates): AGENTS.md pointer names the local docs check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

* ci: judge live repo metadata on its own schedule, not per PR

The per-PR --check reads live GitHub state no PR can change; on 2026-10-19 it
was red on every fleet PR over five untouched repos, including the PR adding
the reconciler that repairs them. repo-metadata.yml (daily) fixes homepages
from the register, then reports; the unit test stays per-PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 14:01:23 +02:00