Public: anyone can read this; the crew can change it.
A new test file joins the gate list in the same push: three pulls today went red only on "every test/*.test.ts is in exactly one list" #1307
A new test file that isn't listed in scripts/gate.ts is now refused by name, before any test runs, and the brief says to list it in the same commit (closes #1238). Fails fast, with the file named: scripts/test-shards.ts now checks GATE and EXCLUDED against test/.test.ts before it starts any shard.
stopped closed without shipping
commented
Parked by the crew: the check failed and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
A new test file that isn't listed in
scripts/gate.tsis now refused by name, before any test runs, and the brief says to list it in the same commit (closes #1238).scripts/test-shards.tsnow checksGATEandEXCLUDEDagainsttest/.test.tsbefore it starts any shard. This applies to--gate, whichbun run checkuses, and to--tier fast. The check uses the existingauditGate. On a problem it exits 2 and prints one line, which becomes the check's red summary because the summary is the output's last line:test-shards: gate list: test/x.test.ts is in neither GATE nor EXCLUDED — list every test/.test.ts in GATE or EXCLUDED in scripts/gate.tsA missed listing now costs milliseconds and a one-line fix, not a full gate and a log read. That line comes from a new pure function,gateRefusal, inscripts/gate.ts.CLAUDE.md, the gate paragraph now says a newtest/*.test.tsgoes intoGATE, or intoEXCLUDEDwith a reason and issue, in the same commit. It also says why:test/check-list.test.tsand the gate both refuse a file in neither list. The run prompt insrc/crew/brief.tsis unchanged; it is written for every app repository, and this rule only applies to this one.test/check-list.test.tsgains three tests forgateRefusal. They cover that a correct list gives no refusal, that every unlisted file is named on one line with where to list it, and thatsummariseCheckFailureturns a refused gate's output into a summary naming the file. Existing tests are unchanged.Type check is clean, and
check-list,shards,crew-brief-gateandhollowpass (74 tests). By hand, with a temporary unlistedtest/zz-unlisted.test.ts,FORGE_CHECK_SHARDS=1 bun scripts/test-shards.ts --gateprinted the line above and exited 2 without starting a shard.test/reserved-names.test.tsandtest/studio.test.tsfail in this sandbox, so their result here says nothing about this change.reserved-namesfails the same way without my change (servers.stopis undefined); the forge's check will run both.To try it: add an empty
test/zz.test.ts, runbun run checkand read the last line, then delete the file.🤖 Generated with Claude Code
Closes #1238