Files
fleet/.github
CatoandClaude Opus 5 9d572b6abf feat(ci): check that a repo's GitHub metadata agrees with the register (#47)
A repository page is the first thing anyone opens and the surface furthest from
the code, so it drifts first and silently. Measured 2026-09-11 across 44 live
repos: 13 registered apps had NO homepage while the register knew their host,
evig's pointed at revamp-it.ch (not the app), 4 had no description, and one
described a product by a name its own brand file had retired.

None of that breaks anything, which is why it sat there. The register already
knows the canonical host of every deployed app; nothing compared the two.

All of it is fixed, including the four site-factory scaffolds that appeared
during the sweep. Audit now: 49 repos, 25 registered, clean.

CHECKS ONLY THE MECHANICAL CLAIMS — a registered app's homepage is its
canonical host; a live repo has a description. Deliberately NOT whether a name
or description is right: the live <title> is not a reliable product name (a
multi-tenant app serves the TENANT's title; some sites put the brand after a
pipe), and a gate that guesses at prose gets muted. Retirements are enforced
precisely by org-drift-audit.sh against registers/retired.json.

Exceptions are decisions: repo-metadata.allow carries a reason per line. One
entry — hirnli, whose homepage is the PLATFORM's own host while its register
row holds the tenant's, because listing both would make sync-infra emit the
host twice and fail `caddy validate`.

Verified: 17 checks, no network. The judgement is a pure function of
(repos, register, allow) so the fixtures are the shapes that were live today.
Both directions pinned: a clean fleet passes, each defect fails AND is named,
an archived repo is exempt, and a homepage exception does not excuse a missing
description.

The first version of the test printed the live audit and asserted nothing,
because importing the module executed its top-level CLI. The CLI now sits
behind an is-main guard — a test that runs the real thing and checks nothing is
the same shape as a gate that cannot go red.


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

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 04:23:37 -07:00
..