One command tells a contributor every rule their change will meet, before they push
Five subagents built the sold-forge deploy (#16255) in this repository on 2026-11-23 and 24 and each was asked what made the work harder than it should be. The same three answers came back from all of them. This is the first.
The gate and the guard tests reveal their rules one failed check at a time. On that one piece of work, four checks failed in a row on rules nobody had been told: "pipeline first" (needs a Direction: line), then "name what it goes ahead of" (the line must name a pipeline item), then a size limit (20 files, 2 feature files) that only does not apply if a pipeline path is touched, then "both doors" (a page with no terminal screen). Others met Replaces:, No door:, Looks:, the SKIPPED count, the CROSSES list, the confirm-page table and the dupes threshold the same way. Each costs a full check (about 14 minutes) and, on a busy main, a merge.
What done looks like:
bun scripts/gate.ts --explain (or a sibling command; one, not two) reads the working tree against its base and lists every rule this diff will be asked to satisfy, satisfied or not, each with the one line that satisfies it and the file the rule lives in. It covers the gate's own rules and the guard tests that read the tree (doorless, feature-doors, replaces, dupes, route marks, schema-additive and their like), without running the whole suite.
It runs in a sandbox with no network and no listening socket, in seconds.
The check's failure summary names ALL the rules a pull fails at once, not the first.
CLAUDE.md's pre-push list says to run it first and says which of its other items cannot run in a sandboxed session (binding a port, tsc without installed dependencies), so an agent reports them as not run instead of trying.
Proof: on a scratch diff that adds a page, a feature file and a migration with no commit trailers, the command lists every rule the full check then fails on, and nothing the check passes.
One command tells a contributor every rule their change will meet, before they push
Five subagents built the sold-forge deploy (#16255) in this repository on 2026-11-23 and 24 and each was asked what made the work harder than it should be. The same three answers came back from all of them. This is the first.
The gate and the guard tests reveal their rules one failed check at a time. On that one piece of work, four checks failed in a row on rules nobody had been told: "pipeline first" (needs a
Direction:line), then "name what it goes ahead of" (the line must name a pipeline item), then a size limit (20 files, 2 feature files) that only does not apply if a pipeline path is touched, then "both doors" (a page with no terminal screen). Others metReplaces:,No door:,Looks:, the SKIPPED count, the CROSSES list, the confirm-page table and the dupes threshold the same way. Each costs a full check (about 14 minutes) and, on a busy main, a merge.What done looks like:
bun scripts/gate.ts --explain(or a sibling command; one, not two) reads the working tree against its base and lists every rule this diff will be asked to satisfy, satisfied or not, each with the one line that satisfies it and the file the rule lives in. It covers the gate's own rules and the guard tests that read the tree (doorless, feature-doors, replaces, dupes, route marks, schema-additive and their like), without running the whole suite.tscwithout installed dependencies), so an agent reports them as not run instead of trying.Proof: on a scratch diff that adds a page, a feature file and a migration with no commit trailers, the command lists every rule the full check then fails on, and nothing the check passes.
Files: scripts/gate.ts, src/kernel/direction.ts, CLAUDE.md, AGENTS.md