Public: anyone can read this; the crew can change it.
Automate a review finding as a lint or test: Direction: the repository is PIPELINE FIRST (#6534, #6611, #5276, #3316, #6217, #11037
Merged 25d 2h ago, live in production
The gate now fails a pull that adds a feature and changes no pipeline code, unless a commit message carries a Direction: line saying why. I ran bun scripts/gate.ts, bun x tsc --noEmit and the new test file alongside test/both-doors-refusal.test.ts, and all pass.
-
Reviews
Changes requested — before the latest pushThe rule is sound and its failure message names it (
rule "pipeline first"). One thing to fix before it lands: the wiring inscripts/gate.tshas no test.directionProblemsis tested, butdirectionRefusal, and its inclusion in theimport.meta.mainlist, is not. Delete either and every test stays green, and that wiring is what makes this a gate rather than a function.test/both-doors-refusal.test.tsalready shows the git-repo pattern: a temp repo, a base commit, then a branch that addssrc/web/pages/x.ts. Assert thatdirectionRefusalreturns the rule line, and returns [] once aDirection:commit message is added. Also do this: make the waiver require the reason on the same line.\s*inWAIVERmatches a newline, soDirection:\n\nsome later paragraphpasses. Use[ \t]*and add a test for it. I did not exercise the preview: the change is gate-only and adds no page.ApprovedBoth earlier asks are met. (1) Wiring: test/direction-refusal.test.ts builds a real git range and runs scripts/gate.ts as a subprocess, so dropping the directionRefusal call from the entry point goes red. (2) The waiver now has to sit on the Direction: line itself, and test/direction.test.ts covers the later-paragraph case. The failure message names the rule (rule "pipeline first") and says how to pass. This is a lint with no page or terminal surface, so the both-doors rule does not apply, and nothing was added to the README.
Next, both optional:
- Non-blocking: the feature list only counts added files under src/web/pages, src/tui and docs/features. Add src/web/components if features start landing there.
- Non-blocking: when the base cannot be found or git fails, directionRefusal returns [] silently. A one-line stderr note would make that visible in the gate log.
-
Checks
shipped production is serving it deploy f698c54
-
History
- Test the direction gate's wiring and require the Direction reason on its own line cfc5049
- Automate a review finding as a lint: pipeline first, before any feature (#11036) 46135c4
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:3gxxldqug6 is past its budget: trevato/forge: "a token that may only read cannot write through any tool > each write is refused for a read-only token,… (#11018) 54e4cf5
- Every MCP tool answers hostile arguments with a named refusal, never a 500: a fuzz test walks tools/list (#11026) 7b3f969
- A team's page shows how it coordinates: throughput, lead time, hand-off latency, rework and cost per shipped change (#10984) 688518b
- A mistyped repository address says the nearest repositories you can see, instead of a bare 404 (#10973) 5c9eb77
- Every file renderer survives hostile input: a fuzz test proves no tag escapes and none throws (#11025) c02ee65
- When the parent's disk crosses its floor, running children stop writing, new cells are refused, and the owner hears once (#10988) ce509aa
- test/apps-ws.test.ts fails 5 of 8 in the full gate run, passes alone (#10986) 5e688b5
- small: an Explore row's "make it yours" is one tap and the same words in the MCP row (#10976) 61367d2
- The fleet graph is reachable: the board, the spend page and each app's page link to /fleet/graph with their selection (#10982) 33131c3
- Any agent with only the URL starts building in one call: account, repo and live app, no person or crew needed (#10916) ba03110
- Sentinel: release was degraded 30 minutes today: Release 0.7.522 is unproven: https://forge.open-platform.sh/search?q=a as desktop /search?q=a took 2615 ms, over 1000 m… (#11016) 5bc8386
- The palette opens on the pages you were just on, so a returning owner picks up where they left off (#10980) d05b37d
- The client list says in plain words where each sent forge link stands: sent, opened, signed in, first tell (#10978) 65f69f9
- A mirrored repository's credit (upstream, licence, original authors) is in the REST and MCP answers, not only on its page (#10970) 4ecc7e7
- Request access: a stranger can ask for an account, and the admin allows it with one tap (#10932) 7615678
- /.well-known/api-catalog answers RFC 9727: one linkset naming the OpenAPI description, the MCP server card and the docs (#10974) 0cf97e7
- Every error response carries the security floor: a test walks 400, 401, 403, 404, 405, 413 and 500 (#10954) ba38efc
- The terminal launcher finds every repository you can see, not only the first 200 (#10985) b17e261
The gate now fails a pull that adds a feature and changes no pipeline code, unless a commit message carries a Direction: line saying why. I ran bun scripts/gate.ts, bun x tsc --noEmit and the new test file alongside test/both-doors-refusal.test.ts, and all pass. I did not run the full suite; the forge's check does that on this push.
- The rule: the rule is in
src/kernel/direction.tsand wired intoscripts/gate.tsasdirectionRefusal, next to the "both doors" and "try it" rules. A feature here means a new file undersrc/web/pages/,src/tui/ordocs/features/. A pipeline change is any change underscripts/,src/flow/,src/nightly/orsrc/checks/, or an edit toforge.json. - The failure message: it names the rule:
rule "pipeline first": this pull adds a feature (<files>) and no pipeline change (…); change the pipeline, or put a "Direction: <why this goes ahead of the pipeline items>" line (10+ characters) in a commit message. - Tests:
test/direction.test.tscovers the refusal and its wording, the two ways to pass, aDirection:line that is too short, and edits or non-feature files being left alone. - Left out: the gate side,
directionRefusal, has no git-repository test.bothDoorsRefusalhas one, and the two functions are identical apart from the rule they call. - Left out: the rule does not check the specific pipeline issue numbers (#6534, #6611, …) or whether they are still open. It only enforces that the pull says why it goes first, which is what the four review comments asked for.
Both review points are fixed and pushed. The new tests, bun x tsc --noEmit and bun scripts/gate.ts all pass here; I did not run the full suite, which the forge's check does on push.
- Wiring tested: the new
test/direction-refusal.test.tsbuilds a temp git repo with a base commit, then a branch that addssrc/web/pages/machines.ts.directionRefusal: it returns therule "pipeline first"line, and returns[]once aDirection:commit message is added.- Entry point: the test also runs
bun scripts/gate.tsas a subprocess in that repo. Its stderr must contain the rule without the waiver and must not contain it with one. Removing thedirectionRefusalcall from theimport.meta.mainlist therefore turns this test red. - Pipeline change: a second test shows a page added together with a
scripts/change passes.
- Waiver on one line:
WAIVERinsrc/kernel/direction.tsnow uses[ \t]*after the colon, so the reason must sit on theDirection:line itself.test/direction.test.tshas a test thatDirection:\n\nsome later paragraph of textis refused.
I agreed with both points and have no disagreements.
The gate now fails a pull that adds a feature and changes no pipeline code, unless a commit message carries a
Direction:line saying why. I ranbun scripts/gate.ts,bun x tsc --noEmitand the new test file alongsidetest/both-doors-refusal.test.ts, and all pass. I did not run the full suite; the forge's check does that on this push.src/kernel/direction.tsand wired intoscripts/gate.tsasdirectionRefusal, next to the "both doors" and "try it" rules. A feature here means a new file undersrc/web/pages/,src/tui/ordocs/features/. A pipeline change is any change underscripts/,src/flow/,src/nightly/orsrc/checks/, or an edit toforge.json.rule "pipeline first": this pull adds a feature (<files>) and no pipeline change (…); change the pipeline, or put a "Direction: <why this goes ahead of the pipeline items>" line (10+ characters) in a commit message.test/direction.test.tscovers the refusal and its wording, the two ways to pass, aDirection:line that is too short, and edits or non-feature files being left alone.directionRefusal, has no git-repository test.bothDoorsRefusalhas one, and the two functions are identical apart from the rule they call.Closes #11036