Public: anyone can read this; the crew can change it.
A forge revert is exempt from both doors and the test-with-change rule #16719
Check · Review · Land · Live done — Landed and live in production.
A revert restores a state that already passed both rules, yet the forge's own "Revert #N" pulls failed both doors and "behaviour has a test".
-
Reviews
Changes requested — before the latest pushThe idea is sound: the forge marks a revert only after proving it is the exact inverse of the landing, and the gate stands down only on that mark. The security side holds up. Two things to fix, both small.
- The hand-off from the check to the gate has no test.
src/checks/run_tier.tsandsrc/checks/tier_runner.tsspreadrevertsinto the env of the local check and of the runner job. The only test that touches that plumbing passesreverts: {}. If either spread were deleted, every test would stay green and a real revert would fail both doors again, which is the bug this pull exists to fix. Add a test thattryRunnerputsFORGE_CHECK_REVERTSinto the job env whenrevertsis set and leaves it out when it is not. Do the same for the localrunTierpath if it can be reached, or move the env assembly into one small function and test that. - The doc comment in
scripts/gate.tsis now on the wrong function. See the line comment.
Nothing else blocks it. There is no page, so both doors does not apply. No new dependency. README is untouched.
ApprovedI couldn't diff against d8fe755a63c9 because the clone doesn't have that commit, so I read the whole change instead. I can't confirm each earlier ask one by one.
The revert exemption is narrow and the forge sets it, not the pull.
revertsEnvreturns the mark only when the pull row says it reverts a merged pull. It also checks thatbase..commitis, line for line, the inverse of that landing, and it validates the oids first. The gate accepts only#<digits>. A revert branch with anything else pushed to it is judged whole, and a test covers that. A non-revert with the same change still fails both rules, and a malformed mark is no mark.diffEnvis shared by the local path and the runner path, so neither can drop the mark alone, and a test covers the runner job. I found no new input, output, secret or shell-from-user-text risk. No new dependency, and the modules are small and named for one concept.Two things to do next:
- Non-blocking: log the proven revert number in the check log, so a person can see why the two rules stood down.
- Non-blocking: add a short line to the docs on which rules a forge revert skips, if none exists yet.
- The hand-off from the check to the gate has no test.
-
Checks
shipped production is serving it deploy aac12e1
-
History
- A forge revert of a landing is not held to both doors or a test with the change fbc917c
- src/tui/screens/workspace.ts and src/web/highlight.ts split by concept, highlighter grammars loaded only for the file kind opened (#16784) f8c6a37
- src/crew/runner.ts and src/crew/autonomy.ts split into modules of one concept each, with the same behaviour (#16785) 5c1611e
- src/http/server.ts hands each route family to its own small module, with the same answers (#16782) 6e40585
- An outsider's report or offer is rate-limited per address with a plain 429 and Retry-After (#14524) a70b09a
- An app gets an ordered change stream: rooms, presence and durable order, with no dependency (#16751) 3f72871
- Drop the retired keeper_beat and feature_schedule_seen tables (#16792) 6ebaedd
- A paused app's service port is released and says so on its page (#16787) ba6975c
- Typed errors at one boundary: name the error kinds src/http/respond.ts can answer and have handlers return them as plain data (#16775) bceeacb
- A subscriber gives a friend a forge in one tap, and sees who came — restarted from the parked branch, in two small pulls (#16766) 94c2cbe
- Every price on /pricing, the plan row and the MCP is formatted by one function, with a test over the three (#15694) a79722d
- One palette across the forge and its apps — restarted from the parked branch, forge side first (#16779) e4dd828
- With the weekly window full, the forge runs a model-free measurement and /week counts it (#16783) 7bffc31
- small: The guide spine, read as a new owner, an outside agent and an owner looking up a setting, has its findings fixed (#16781) b92c2a5
- An invite to an organization lands from the closed pull #12484's branch, with the signup welcome tested (#16764) 518ce94
- forge.json validates a service app's ports and refuses a clash with another app (#16778) a4bc344
- The platform inventory page has one primary next action and is looked at on phone and desktop widths (#16773) 721a707
- Admins mark which repositories are offered as templates for new forges (#16752) 577f9d8
- small: Escape leaves the tell box and keeps its draft per page (#16774) 24468de
- On a phone, one tap opens search with the keyboard up and results above it (#16749) 7238053
A revert restores a state that already passed both rules, yet the forge's own "Revert #N" pulls failed both doors and "behaviour has a test".
tsc, gate and related tests pass.
🤖 Generated with Claude Code