Files
fleet/scripts/ci/deploy-coverage.baseline
T
CatoandClaude Opus 5 c241537655 fix(deploy-freshness): the audit reported a clean fleet it had not fully seen (#87)
Caught by checking the gate's own output against a local run: CI surveyed 20
repos and printed "✓ every deploying repo has its main tip live", while the same
command locally surveyed 21. The missing one is `annushka`, which is PRIVATE.
CI's token could not enumerate it, and a repo a token cannot see is absent from
`gh repo list` in exactly the same way as a repo that does not exist.

So the audit built to catch "something I could not see, reported as something
that was not there" committed that exact error about itself, and the symptom was
a green tick.

Two fixes, and the second is the one that matters.

The token now prefers FLEET_PAT, which can read the private repos.

But a token fix only repairs today's instance: any future scope lapse, any new
private repo, silently shrinks the sweep again and still prints a green tick.
A count with nothing to compare against is not coverage. So the deploying repos
are pinned in a committed baseline and coverage becomes a RATCHET, the same
shape as the duplication ratchet in SHARED.md: it may RISE — a repo that starts
deploying is surfaced as an addition, and the baseline is updated — but a
silent FALL is a finding, and --check exits 1 on it, naming the repos rather
than only counting them. A genuinely retired repo leaves the baseline in the
same PR that retires it, where a human sees the decision instead of the gate
quietly getting smaller.

The coverage check runs BEFORE the verdicts are printed, because the point is
that those rows do not describe the whole fleet.

24 assertions (17 → 24), 5 mutants killed: a ratchet that never reports anything
missing, an unreadable baseline, unstripped comments, a baseline missing the
private repo, and coverage that can never legitimately rise.


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

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

36 lines
1.1 KiB
Plaintext

# Every repo in the org that ships to the box, one per line.
#
# This is a RATCHET, not documentation. deploy-freshness-audit.mjs compares its
# survey against this list and fails --check when a baselined repo was not
# surveyed AT ALL, because a repo the running token cannot see is absent from
# `gh repo list` in exactly the same way as a repo that does not exist — and the
# audit will otherwise print "✓ every deploying repo has its main tip live"
# having never looked at it. That happened: annushka is PRIVATE, CI's token
# could not enumerate it, and a clean CI run covered 20 of 21 repos.
#
# Coverage may RISE: when a repo starts deploying, the audit prints it as an
# addition and you add the line. A FALL is a finding. If a repo is genuinely
# retired, remove its line in the same PR that retires it, so a human sees the
# decision instead of the gate quietly getting smaller.
annushka
aoz-housing
botsmann
camille-boulangerie
causius
datacat
diplodoctor
evig
heidi
hirnli
kivvi
loki
petvity
printcraft
reparaturbonus-zh
s-ink
sbb-fundbuero
solon
substrata
surf-your-life
vitareba