Public: anyone can read this; the crew can change it.
Automate a review finding as a lint or test: One high finding, then smaller ones, all for one round. #18167
Merged 14h 29m ago, live in production
bun scripts/gate.ts --explain now runs the four checks that refused the crew's pulls most this week. It prints each rule's name and the line that satisfies it, and shows the failure lines if one fails.
-
Reviews
ApprovedSmall, correct change: the four guard tests exist, each entry names its rule and the line that satisfies it, and a test pins them in the list. No page or API is touched, so no door or docs obligation. Next two things: (1) when a reviewer next finds something mechanical (for example the 50 MiB UI claim versus the 32 MiB form limit), turn it into its own test that names the rule; (2) the four tests add about 10 s to --explain, so consider running them in parallel.
-
Checks
shipped production is serving it deploy 3eab8eb
-
History
- gate --explain reads the four checks the crew's pulls fail most (#18156) b4ceb2c
- A game box stores spark profiles in the forge: POST /post gives a Location, reads need the box's game grants (#18146) b992c0d
- Games survival step 3: quality-of-life mods tried on a copy first (graves, essential-commands, sleep, harvest, vein miner, styled-chat) (#18145) f058287
- Spend 1: a monthly budget per cloud account, one notice at 80% and one at 100% (#18121) 3382c40
- Games: a proxy plugin update can wait until nobody has been on for 30 minutes (#18039) 9a5eb31
- Traces 5: compare two traces, and share one with secrets redacted (#18017) 7a17314
- AWS writes for mail setup are a named allowlist beside the read rule, and nothing else (#18142) 93c7c3d
- Traces 1c: GET /api/v1/traces/:id returns the thread, turns and steps as one tree (#18128) 077bab0
- A box's TPS and tick time show live on its games pane, from spark's health report or `/spark tps` at check-in (#18143) f7e559b
- Access 4c: the grants view as an MCP tool and a terminal screen (#18130) 89afadf
- small: the Absorb findings say they are ready for the owner to send to Ben (#18132) d41ec43
- Games survival step 2a: BlueMap behind login at /games/<box>/<server>/map, no published box port (#18100) 1132c91
- A Mac can take a repository's checks and report them on the pull (#17915) 4c72a1d
- Access 4: one view of every grant, and a page that says who may do what (#18062) 5ba07c8
- Access 2: one `may(principal, action, resource)`, with the repository checks behind it first (#18065) 7d48ce1
- Apps without a login 2: a tiny model in the browser fills the app's spec, and the compiler catches every failure (#18117) 4147a37
- Games: a new pin for the forge's proxy plugin replaces the old jar, in PLUGINS and on disk, and the page says which one loaded (#18111) da9e15f
- Healer: a server still starting, its log moving, is not started again (#18053) d918642
- Game box: refuse a wake or a mod install the box has no memory for (#18057) 7fe508f
- Games survival step 1: a survival performance set (lithium, scalablelux, noisium, chunky) planned as one locked install (#18099) b838dce
bun scripts/gate.ts --explain now runs the four checks that refused the crew's pulls most this week. It prints each rule's name and the line that satisfies it, and shows the failure lines if one fails. It did not turn the four sentinel findings (#17168, #17312, #18055, #18144) into a lint, because each one is specific to its own change.
What changed
scripts/gate_explain.tshas four new entries inGUARDS:test/unused-exports.test.ts: "dead code: every export under src/ has a caller, or is allowed".test/module-state.test.ts: "no process-wide state that requests write to".test/job-slices.test.ts: "every job src/ runs underduringis timed here or named in UNTIMED with a reason".test/dup-imports.test.ts: "no duplicate import beyond the allowlist (rule duplicate-import)".
test/gate-explain.test.tshas a new test that fails if any of those four is dropped from the list.--explainnow reads 37 rules, all satisfied on this branch. Together the four extra tests add about 10 s to--explain.
Why not a lint for the findings themselves
- The two reviews I could read are #17168 and #17312. Their findings were:
- #17168: the spend fallback should default to off, with a test pinning that.
- #17312: an unbounded gzip expansion.
- #17312: a path built from a name before it is validated.
- #17312: a UI claim of 50 MiB when the form takes 32 MiB.
- #17312: hand-rolled markup beside
field. - #17312: a stray capital in a how-to.
- #18055 and #18144 showed no sentinel review through the API, so I could not see what they asked for.
- I chose not to guess a regex for those.
Checks run: bun x tsc --noEmit and bun scripts/gate.ts --fix came back clean (the type check's output was empty), and test/gate-explain.test.ts passes. I did not run the full suite; the forge's check does that on the push.
Try it: bun scripts/gate.ts --explain
🤖 Generated with Claude Code
Left #18156 open: 1 unticked item remain (A lint (scripts/) or a test that fails on exactly what these comments ask for, so a reviewer need not say it again.).
bun scripts/gate.ts --explainnow runs the four checks that refused the crew's pulls most this week. It prints each rule's name and the line that satisfies it, and shows the failure lines if one fails. It did not turn the four sentinel findings (#17168, #17312, #18055, #18144) into a lint, because each one is specific to its own change.What changed
scripts/gate_explain.tshas four new entries inGUARDS:test/unused-exports.test.ts: "dead code: every export under src/ has a caller, or is allowed".test/module-state.test.ts: "no process-wide state that requests write to".test/job-slices.test.ts: "every job src/ runs underduringis timed here or named in UNTIMED with a reason".test/dup-imports.test.ts: "no duplicate import beyond the allowlist (rule duplicate-import)".test/gate-explain.test.tshas a new test that fails if any of those four is dropped from the list.--explainnow reads 37 rules, all satisfied on this branch. Together the four extra tests add about 10 s to--explain.Why not a lint for the findings themselves
field.Checks run:
bun x tsc --noEmitandbun scripts/gate.ts --fixcame back clean (the type check's output was empty), andtest/gate-explain.test.tspasses. I did not run the full suite; the forge's check does that on the push.Try it:
bun scripts/gate.ts --explain🤖 Generated with Claude Code
Closes #18156