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" #1377

Closed opened this in answer to
Closed without merging

A test/.test.ts file that isn't in GATE or EXCLUDED in scripts/gate.ts is now refused by name before any test shard starts, and CLAUDE.md tells builders to list a new test file in the same commit (closes #1238). Why #1307 went red: the change worked as intended.

Notes

stopped closed without shipping deploy 6906a80

opened this

A test/*.test.ts file that isn't in GATE or EXCLUDED in scripts/gate.ts is now refused by name before any test shard starts, and CLAUDE.md tells builders to list a new test file in the same commit (closes #1238).

Why #1307 went red: the change worked as intended. Main had merged #1298 and #1302, which added test/chaos.test.ts, test/fuzz-found.test.ts, test/fuzz-parsers.test.ts and test/health.test.ts without listing them. So main itself fails the gate's list > every test/*.test.ts is in exactly one list. Against main, the new audit printed exactly the red summary the issue asks for: those four files, by name.

What changed:

  • Fails fast, with the file named: scripts/test-shards.ts --gate (what bun run check runs) and --tier fast now compare the lists against test/.test.ts before starting any shard. On a mismatch they exit 2 with one line, built by gateRefusal in scripts/gate.ts, which becomes the check's red summary: 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.ts
  • The brief: the gate paragraph in CLAUDE.md says a new test/*.test.ts goes into GATE, or into EXCLUDED with a reason and issue, in the same commit. It also says why: the gate refuses a file in neither list. The run prompt in src/crew/brief.ts is unchanged because it serves every app repository.
  • This push: main is merged in and the four files are added to GATE. Each was written to run in the gate (chaos.test.ts describes itself as "the small chaos in the gate").
  • Tests: three new tests for gateRefusal in test/check-list.test.ts. Existing tests are unchanged.

What to look at: whether health.test.ts belongs in GATE. Here its two tests fail because the sandbox won't let it listen on a unix socket (EPERM), so the forge's check is the first real run of it. If the check fails on it, the alternative is to move it to EXCLUDED with a reason. chaos, fuzz-found and fuzz-parsers pass here (22 tests). The type check is clean, check-list and shards pass (43 tests), and the gate audit passes.

To try it: add an empty test/zz.test.ts, run bun run check, read the last line, then delete the file.

🤖 Generated with Claude Code

Closes #1238

Closes #1238

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs