mirror of
https://github.com/bitbaum/dotfiles.git
synced 2026-12-04 15:08:44 +01:00
templates/ci/README.md has said it for a while: "verified" is defined ONCE, in
package.json `verify`, and CI runs it verbatim. Nothing checked that. The last
fleet audit checked whether repos DECLARED a verify script and found 21 of 21
did — which reads like success and is not, because a repo can declare a perfect
`verify` that CI never calls, or call it in a way that cannot go red.
Running the contract end to end across ~/dev found four real violations:
botsmann CI hand-copied verify's four steps AND put `--if-present` on
each, so renaming a script would have turned its gate into a
silent pass
surf-your-life CI linted with `--max-warnings 0` while the `lint` script did
not — `verify` on a laptop was WEAKER than the gate that
blocks the merge
sbb-lost-found `verify` softened itself from the inside with `--if-present`
ai-ration no CI at all
check-verify-contract.sh asserts all five links: `verify` exists, CI invokes it,
no `--if-present` on that invocation, no `continue-on-error` on that step, and no
`|| true` inside `verify` itself.
It is deliberately narrow. It does NOT flag `|| true` elsewhere in CI: that is
usually legitimate (cleanup, optional copies, jq parses with a fallback) and
flagging it produced nine false alarms out of nine here. A checker that cries
wolf gets ignored, which is the same failure mode it exists to prevent. The
first version also rejected `pnpm verify` — pnpm's idiomatic implicit-run — and
reported a conforming repo as broken; fixed, and now covered by a test.
The checker ships with negative tests wired into this repo's CI. Seven prove each
rule bites against a violating fixture; four prove conforming shapes are NOT
flagged. This is the point: the checker's first clean run said "all 21 repos
conform", and a gate that has never gone red is indistinguishable from one that
cannot.
The fixtures are plain directories containing an empty `.git` dir rather than
real repos — the checker only tests for `-d .git`, and running git inside a
throwaway tree has already destroyed a repository in this fleet once.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>