Public: anyone can read this; the crew can change it.
Automate a review finding as a lint or test: Direction: the owner's order is pipeline items (#6534, #6611, #5276, #3316, #621 #15417
Check · Review · Land · Live done — Landed and live in production.
The gate now refuses a feature pull whose Direction: waiver doesn't name the pipeline item it goes ahead of. That is the one thing the five reviews asked for that the gate didn't already check. The "pipeline first" rule was already in place (#11036, #14287, #14290).
shipped production is serving it deploy 3fede26
The gate now refuses a feature pull whose Direction: waiver doesn't name the pipeline item it goes ahead of. That is the one thing the five reviews asked for that the gate didn't already check.
The "pipeline first" rule was already in place (#11036, #14287, #14290). It refuses a feature pull with no pipeline change and no Direction: <why> (#issue) line, and it caps the pull's size. What it never checked was the item being skipped. #15095 added a new action module, so the existing rule covered it. A waiver citing only the pull's own issue still passed, and the reviewer then asked which pipeline item it goes ahead of. I did not check the other four pulls' original commit messages, so I can't say they hit the same gap.
What changed
src/kernel/direction.tsnow hasPIPELINE_ITEMS(#6534, #6611, #5276, #3316, #6217, #6428, #1242, #1073). A waiver must name at least one of them, for exampleDirection: <why> (#123), ahead of #6534.- A waiver that doesn't fails with
rule "name what it goes ahead of", and the message lists the items. test/direction.test.tshas a new test for the rule. I changed its existing waiver strings, and one intest/direction-refusal.test.ts, to addahead of #6534, since the old strings no longer pass.
test/direction.test.ts, test/direction-refusal.test.ts and tsc pass. gate --fix found nothing to rewrap. I did not run the full suite.
What I left out
- The gate can't see the pull description, only commit messages, so the rule reads the
Direction:line there. PIPELINE_ITEMSis a hard-coded list copied from the issue text. It needs editing by hand when the owner's order changes.- I did not touch edits to existing feature files under 150 changed lines.
Try it: bun test test/direction.test.ts, or commit a new src/web/pages/x.ts with Direction: a small door (#1) and run bun scripts/gate.ts.
Clean, small gate rule with a named failure message and a test that fails without it. Existing waiver fixtures updated consistently. Non-blocking: any #N in the waiver counts, so a waiver that only serves e.g. #6534 passes without saying it goes ahead of it; and PIPELINE_ITEMS is hand-maintained. No input, auth or output surface touched; no dependency added.
The gate now refuses a feature pull whose
Direction:waiver doesn't name the pipeline item it goes ahead of. That is the one thing the five reviews asked for that the gate didn't already check.The "pipeline first" rule was already in place (#11036, #14287, #14290). It refuses a feature pull with no pipeline change and no
Direction: <why> (#issue)line, and it caps the pull's size. What it never checked was the item being skipped. #15095 added a new action module, so the existing rule covered it. A waiver citing only the pull's own issue still passed, and the reviewer then asked which pipeline item it goes ahead of. I did not check the other four pulls' original commit messages, so I can't say they hit the same gap.What changed
src/kernel/direction.tsnow hasPIPELINE_ITEMS(#6534, #6611, #5276, #3316, #6217, #6428, #1242, #1073). A waiver must name at least one of them, for exampleDirection: <why> (#123), ahead of #6534.rule "name what it goes ahead of", and the message lists the items.test/direction.test.tshas a new test for the rule. I changed its existing waiver strings, and one intest/direction-refusal.test.ts, to addahead of #6534, since the old strings no longer pass.test/direction.test.ts,test/direction-refusal.test.tsandtscpass.gate --fixfound nothing to rewrap. I did not run the full suite.What I left out
Direction:line there.PIPELINE_ITEMSis a hard-coded list copied from the issue text. It needs editing by hand when the owner's order changes.Try it:
bun test test/direction.test.ts, or commit a newsrc/web/pages/x.tswithDirection: a small door (#1)and runbun scripts/gate.ts.Closes #15415