Public: anyone can read this; the crew can change it.
A pull's new breach of a rule main already breaks is the pull's red: rule and scan reds are compared by failure text, not name #17218
Merged 34h 50m ago, live in production
A rule or scan test fails as one test for every breach of its rule, and the base-red verdict compared failing test names.
-
Reviews
ApprovedApproved. A rule or scan test that fails as one test for every breach is now compared by its failure text, so a pull that adds a breach to a rule main already breaks is the pull's red, and an identical breach stays main's. It is conservative in the right direction: no text on either side means the pull's red. Both new end-to-end tests cover the two cases, and the unit test covers
failureTexts. This is check infrastructure with no page, so the both-doors rule does not apply, and no README or dependency was added.Two things I would do next:
withincompares whole lines, and the lines include stack positions such as(test/r.test.ts:2:31). If a pull edits the rule test itself, that line moves and a breach that is main's is read as new. That only makes the check stricter, but droppingat ...lines from the compared text would stop it. Add a test for that.- In
scripts/base-run.tsthe sharedtextsmap is written by every run, green ones included, and the code relies on the confirming run being the last to write. HavebaseRunwrite only when it is red, or return its texts, so the correctness does not depend on ordering.
-
Checks
shipped production is serving it deploy 01d8b2c
-
History
- A pull's new breach of a rule main already breaks is the pull's red: rule and scan reds are compared by failure text, not name dc01689
- The checks slot counts the runners checks run on, and says where they run; each runner says its machine (#17162) bb7aa5d
- Trim the Talk page back under its 61,000-byte bound (#17189) 1bc140e
- Merge queue: show which open pulls touch the same files (#17176) c113a29
- Merge pull request #17206 from sold/agent-capped 44598f0
- The fast tier no longer under-selects a lock bump or data read by path (#17203) 7125c9e
- The home says in one line how much is flowing up and down, and opens /forks/flows (#17146) 59563dc
- The forge's boot can run the bundle of src/main.ts, and a test holds its spawn-to-ready under 1.5 s (#17160) 5bbff79
- Keep the phone dock one 44 px row: the Chat/Preview tabs lose the seg padding there too (#17196) 6ce04d3
- The game agent reaches compose where timeout(1) exists: a shell function is never handed to timeout 40253a4
- Hold the Talk pane's Live fallback by its value, not its old word (#17197) 01e9b02
- Every red check keeps its failing tests' assertions and excerpts, not only a verification (#17201) 0b95dda
- signup-fresh: main.ts's part is the seedSignup option, read from its createApp call, not a boot timed against a clock (#17198) f264c2b
- mcp-flow-drift-update: the agent's pull is the agent's own, as #17132 made the rule (#17195) 2c2f675
- runner-adopt: drop a wait for a check that the test itself cancels (#17194) 90db393
- Asking main about a red file runs its BASE_RUNS runs at once, and confirms a red alone (#17165) e24948a
- The game agent is never blind: compose up runs in the background, and every sync carries a diagnosis (#17157) efed1f4
- An edge-kept finding is the owner's from the moment it exists: every open one is assigned to the owner on each run, even when the edge goes unread (#17190) 46b42c3
- guest-pull: the forge-made variables are errorEnv's own names, so the OTLP ones added in #17137 are not taken for seeded ones (#17184) d6415a8
- A rule red that is main's no longer stops a pull's behaviour files, so main's red cannot pass a check that never ran them (#17188) 6a277c5
A rule or scan test fails as one test for every breach of its rule, and the base-red verdict compared failing test names. So a pull that added a breach to a rule main already broke (a second wall-clock budget in another file, say) was cleared as main's red, and since #17188 its behaviour files then ran and the check went green. Now, for the rule and scan files, a failure counts as main's only when every line of its failure text (the code frame, the error, the expected and received lists, the stack, paths and times dropped:
failureTexts) is a line of main's for that test; otherwise it is the pull's, and the log says it fails differently on main. Main's texts come from the run that confirmed its red. Behaviour files are still compared by name, and a missing text is never taken for main's.No door: no route or page changes. Direction: checks that a red cannot slip through (#10304).
Found by an adversarial review of the 2026-12-01 CI changes: rule and scan tests fail under one coarse name, so a pull adding a new breach of a rule main already fails was cleared as main's red.
🤖 Generated with Claude Code