Repository navigation
Description
Problem
ADR-0038 (carrying
ADR-0022 forward) requires make ci to be "one credential-free target
mirroring CI's jobs in CI's fail-fast order". Nothing enforces the mirroring
part, and two enabled repositories have quietly drifted in two different
ways:
- frostyard/updex —
grep -c govulncheck Makefileis0, while
Security Scanis a required status check on the default-branch ruleset and
itstest.ymljob is fully credential-free (permissions: contents: read,
pinned[email protected]). Nothing about it needs a secret; it is simply
absent from the gate. - frostyard/clix —
grep -n race Makefilereturns nothing, while the
requiredRace Detectionjob runsgo test -race ./.... clix's public
surface is package-level mutable globals, andconcurrency_test.goexists
solely to make that job non-vacuous — undermake cithat exact workload
runs without-raceand detects nothing. updex, std, and firn all run the
race detector inside their owncitarget; clix's was added 2026-08-24 by
merged PR Sync agent skills to frostyard/fluent, including frostyard-design #85 and omitted it.
Both repositories' own docs already claim make ci reproduces the CI subset,
so the invariant fails silently in the direction that matters: local-green ≠
CI-green, which is precisely what ADR-0022/0038 exist to prevent.
scripts/lib/fleet-conventions.mjs:78-86 already fetches every enabled
repository's Makefile — but hasMakeTarget only tests ^verify:,
^check:, ^ci: at line start. It asserts the targets exist; it never
looks at what they invoke. The hook is in place and unused.
(Related: #117 appears resolved but is still open. Its four deliverables
all landed — scripts/check-fleet-conventions.mjs, check:fleet in
package.json:14, the fleet-conventions job at .github/workflows/ci.yml:33,
and test/fleet-conventions.test.mjs — most recently via merged PR #126. It
should be closed.)
This needs a decision before it needs an implementation
ADR-0043 scoped core
deliberately: "Core checks presence, not versions. The organization gate
verifies that an enabled Go repository has mise.toml, mise.lock, and the
three targets; it never reads or compares a version."
Asserting that ci: invokes the race detector is neither a presence check
nor a version compare. It is a third thing — an assertion about the content
of a member repository's gate — and it widens what the organization gate
claims authority over. That is an ADR call, not something a worker should
decide inside an implementation PR. I am deliberately not putting this on
the queue label for that reason.
Two options, with my recommendation:
A — extend the fleet gate to check ci: content (recommended). In
checkRepository, after fetching the Makefile, resolve the ci: recipe
transitively (these Makefiles are small and already fully in memory: follow
$(MAKE) <target> / make <target> references with a small depth cap, and
fail loudly if a reference cannot be resolved rather than passing silently).
Assert a short fixed list of fleet-required stages for a Go repository —
go test -race, govulncheck, and the docs-integrity script where
scripts/check-docs.mjs exists. Allow a per-repository opt-out declared in
that repository's own organization/repositories/** declaration with a
required reason string, so a deliberate divergence is recorded rather than
invisible.
- Catches both observed cases and every future one, in one place.
- Keeps core's remit to a fixed, enumerated list rather than "diff the
Makefile against the workflow", which is not tractable over HTTP. - Cost: widens ADR-0043's scope; needs the new ADR.
B — leave it to each repository's own contract test. updex PR #403 and the
queued clix proposal already do exactly this per-repo, asserting the ci:
recipe invokes a given stage and that pins cannot drift.
- No change to core's authority; nothing new to decide.
- But it is opt-in per repository, which is how both drifts happened. A
repository that never writes the test is never caught, and the two repos
that already drifted are the ones least likely to add it.
I recommend A, with B as the per-repo belt-and-braces it already is.
If you take A, the ADR comes first and the implementation is a separate item.
Not duplicated here
The two concrete per-repo fixes are already queued in Snowcat as proposals
awaiting admission (77f3d20f… for updex's govulncheck stage, b5d8fb7f… for
clix's race step), so this issue is deliberately about the missing mechanism
only. Fixing the two repositories does not close it.
Activity