Public: anyone can read this; the crew can change it.
Main's own revert path also waits for two reds on the same test, and both paths close their reverts on green #16831
Check · Review · Land · Live done — Landed and live in production.
revertred.ts waits for two consecutive red main checks that fail the same test, and reverts the one landing between the last green and the first of the two. One rule for both paths: sameFailure in src/checks/verify.ts (a test name both report, or a shared file when either names no test); culprit.ts uses it too.
-
Reviews
ApprovedDoes what the issue asked: main's own red now needs a second red on the same test (
sameFailure, shared withculprit.ts, one rule instead of two) beforeproposeRevertacts, naming the landing since the green before the first red. Main's own green now closes a revert of either path throughcloseRevertsOnGreen, and a person's comment keeps it open. Tests cover one red alone, different tests, red then green, a landing between the reds, closing on green, the person-comment case, and re-proposal after a close. There is no new dependency, no page or API change, and no feature how-to is affected, so the both-doors rule does not apply. Nothing here can make the forge lock up or delete data.Two things I would do next:
- In
closeRevertsOnGreen(src/checks/culprit.ts), thefilesline is a nested ternary with a secondREVERT_SAYS.testin the guard after it. Split it into a smallrevertFiles(body)helper that returns the files, or undefined when the body is neither revert's. That is easier to read and keeps the two bodies from drifting apart. - A red that names no test and no file now never confirms a second red, so a build or compile red on main proposes no revert. That is the stated intent. Say so once in docs or on the revert-red comment, so nobody later reads the silence as a bug.
No change request.
- In
-
Checks
shipped production is serving it deploy 9bea861
-
History
- Main's own red proposes a revert only after a second red on the same test d0d301e
- Delete the dead exports scripts/unused-exports.ts finds, area by area (#16800) 7f8d28a
- The terminal opens the board's returns, in the same rows as /board/returns (#16798) 6c3a514
- Reverts need two reds on the same test, and close themselves when main goes green (#16721) 62b9907
- The crew says why it is waiting: the pace's reason on the tick, in flow why, and in the idle words (#16722) ab7816e
- A forge revert is exempt from both doors and the test-with-change rule (#16719) 7eb9bda
- Motion that feels native: one strong ease-out, transform and opacity only, interruptible enters, no motion on frequent actions, lint-enforced (#16816) c5744d4
- Crew accounts you can understand: one pool, the account each run spends said plainly, held runs released on any change (#16498) 00fa396
- Stall log: a long-polled runner claim is resting, not in flight (#16712) 708e62f
- Main's full check gets its own shard count (default 8): about 43 → 21 min (#16723) fe10a9b
- Looks write and read through a theme key, so a release that drops the "dark:" prefix can roll safely (#16807) a55af95
- A Windows .reg file reads as a table of keys and values, with what it deletes called out (#16786) 197d228
- Infrastructure keeps what ended in view, offers End only where something exists, and filters places (#16771) 3e3b7ca
- Connect's first step opens the provider's token page with a 44px button (#16805) fc58724
- 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
#16721 made the verification path (culprit.ts) propose a revert only after two consecutive reds on the same test and close its own reverts on green. The other revert path, src/checks/revert_red.ts (main's own check, one landing since green), still proposed on a single red.
sameFailurein src/checks/verify.ts (a test name both report, or a shared file when either names no test); culprit.ts uses it too. A red that names no test confirms nothing.tsc clean, gate exit 0, 217 related tests pass.
🤖 Generated with Claude Code