Public: anyone can read this; the crew can change it.
A runner's last report sends its waiting lines before its answer, so a check that ends while the forge restarts keeps its tally #17223
Merged 36h 26m ago, live in production
1", no test named, and a summary of file timings. The forge restarted while the check ran on vx-7; the runner kept the job and its lines, and the new forge adopted it.
-
Reviews
Changes requested — before the latest pushThe ordering fix is right: lines go before the answer on every try. One high finding: the job can now end with no answer at all.
flush(main.ts:276-280) puts a batch back on any non-ok reply, not only when the forge is unreachable. A 400, 413, 422 or 500 on a lines report leaveswaitingnon-empty on every try.reportEndthen never callsanswer(). It polls for HANDOVER_WAIT_MS (180 s) and returns silently. Before this pull the answer was sent regardless, so a bad line batch cost only the tally. Now it costs the job's verdict, and the forge sees a runner that vanished. The third test pins that behaviour as correct.Fix: keep lines-first, but when the wait is spent, or the attempts run out, send the answer once anyway. Do it as a final
answer()try after the loop, or by not gatinganswer()onleft()oncenow() >= until. A red check that names nothing is better than a job that never reports. Rewrite test 3 to expectdonelast, with the lines still unsent. Add a test where the forge is up, flush keeps failing with a non-503 error, and the answer still arrives.A smaller point: the not-ok-but-reachable case has no bound shorter than 180 s. After the fix this is only a delay, so it is acceptable.
ApprovedBoth earlier asks are met. Once the wait is spent,
reportEndsends the answer whatever lines still wait, and the test now expects["done"]. Lines go before the answer on every try, so a restarting forge gets the tally first.flushLineskeeps batches on 503 or no answer, lets a refused batch go with a message so it cannot hold the answer, and drops the job on 404. A failed lease renewal is not kept waiting. The tests cover each of these. I found nothing new on security: no new input, route or secret, and only a count is logged. Non-blocking: the refusal message counts lines but never says which step they belonged to. -
Checks
shipped production is serving it deploy c4333e8
-
History
- A runner's last report sends its waiting lines before its answer, so a check that ends while the forge restarts keeps its tally 769a58c
- Observability 7: /explore - query the series, select to explain, pin to home, save as a report (#16868) ad0a4bc
- Sentinel: The guard parked 20 runs in a private repository (01m5th8bwh248hrnezwstf9fff) in a day (#17212) feb4e42
- Sentinel: The guard parked 20 runs in trevato/forge in a day (#17211) f148348
- Errors: resolve a group automatically when the pull that says 'Fixes error <id>' is deployed (#17171) aa611bc
- A key whose control is in a closed disclosure opens it first: an issue's a reaches Assign to (#17224) 4315785
- 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
#17173's check (01m8smztmx4nz45d96k0ymkrk3, 2026-12-01 20:48Z) was red with "check exited with code 1", no test named, and a summary of file timings. The forge restarted while the check ran on vx-7; the runner kept the job and its lines, and the new forge adopted it. But the runner's last report flushed its waiting lines once, and on a forge still restarting (503) they stayed waiting while only the answer was retried; once the new forge took the job back, the answer arrived alone and the tally (which tests failed) was never sent. Now every try of the last report sends the waiting lines first, and the answer only once none wait (
reportEnd), within the same handover wait.No door: no route or page changes. Direction: a red says why, to the builder who reads it (#12295).
Found on #17173: its check finished during the 20:47Z release, was adopted by the new forge, and failed with no failing test named because its last lines were dropped.
🤖 Generated with Claude Code