Repository navigation
Description
What happened
Canary run of 2026-09-03 (label chat3-513d, tip fix/513-unattended-door@60281690 on dev 7ab1cfd), cell Human-Agent-Society-reef-145-chat: aforge chat --yolo with a 15-minute wall, both roles on deepseek/deepseek-v4-flash, the pasted issue reef#145 (parse the Bearer scheme case-insensitively).
The session did the whole fix inline: reef/service/auth.py changed, tests/reef_service/test_auth.py written, the suite green. The mark reader at round 15 read the sketch as (done) and the write seam fired. At that handover the run's owner asked the reader whether anything was left, and the reader's call died on the transport:
18:20:59 error markreader: context deadline exceeded (attempt 1)
18:20:59 failure class transport · reason "nobody answered in time" · action retry
18:20:59 principal steward decided "carry on" — brief: "what was asked is finished when: <acceptance> … it is not finished yet — nothing has been finished yet"
18:21:10 carry handoff written (1448 chars) · draft degenerate ("what came back was not words anybody could work from") · ask written
18:21:10 this is changing more than a quick edit · moving it to a task that is watched and can split
this looked like work, so task 1 started: bearer auth case
The task re-did the fix in its own tree for nine and a half minutes (its checker's last words: "All 10 failures are pre-existing environment dependency issues"), landed as 1 done, and the parent woke at 18:30:59 — two seconds before the 903 s wall. Tests green, two changed files, no done row, $0.084.
Why
Since #534, work a session did with its own hands counts as finished only WITH A WITNESS: Remains.Made && Remains.ReaderSaysDone (internal/session/principal.go, finishedSomething). The witness is the mark reader's answer that nothing is left (readerLine.nothingLeft). A reader whose call failed answers the same as a reader who named a gap that is empty — not a witness — so unmet reads "nothing has been finished yet", the owner says carry on, and the handover moves finished work onto a task that does it again. The reader was retried once (action: retry) and the retry did not land before the handover was decided.
Replication
Deterministic (no model).
A checkpoint agent with a steward (stewardCheckpointAgent in internal/session/unattendeddoor_test.go) whose scripted turn writes one file under the workspace and then trips the write seam, with the mark reader's completer scripted to fail on the transport (the scriptedCompleter step that returns a deadline error). Today the journal holds "decision":"carry on" with nothing has been finished yet and a task is admitted; the assertion is that no task starts over green inline work when the only thing missing is the reader.
Field (real models).
The canary rig's chat3 profile, cell reef-145, --yolo, 15-minute wall, deepseek/deepseek-v4-flash, OPENROUTER_API_KEY; ~15 minutes and $0.10. It fires whenever the mark reader's call times out at a handover after inline work — the reader's 30 s deadline against a slow lane is enough.
Owner's forensics, may be gone: the cell's store was kept on the benchmark box by aforge-v2-14 under the chat3-513d label; nothing in it is needed beyond the rows quoted above.
Where
internal/session/principal.go (Remains.Made, Remains.ReaderSaysDone, finishedSomething, unmet); internal/session/checkpoint.go (readRemains → readerLine; decideHandover; endTurnUnderSteward); internal/session/principal_wire.go (remainsFor, where ReaderSaysDone = reader.nothingLeft).
The fix
The witness rule stands — a session's own files are not evidence about themselves — but a reader nobody could reach is not a reader who disagreed. When Made is true and the reader's line says the call failed or nobody answered (the readerLine already tells the three apart), the second opinion should come from the thing that IS there: run the session's declared checks over the tree (decideOverTheChecks, the same second reading a done takes) and let green checks stand as the witness, with the brief saying so — the reader could not be reached, so the checks stood in for it — rather than handing finished work over. If the checks are red, carry on with the red named. A retry of the reader inside what is left of the handover's window is fine too, but it is not the fix: a lane that is slow once is slow twice.
Acceptance
- e2e: the tmux suite or
internal/session's checkpoint agent through the real write-seam road: a turn that wrote the fix inline, green checks, reader transport failure → the journal's principal row is"decision":"done", the brief text containsthe reader could not be reached, so the checks stood in for it, no task is admitted, and the turn ends onfinishing here · what was asked is done. - e2e: the control — same shape with a red declared check:
"decision":"carry on", the brief names the red check, and still no task starts over the reader's absence alone. - Unit:
Remains.finishedSomething(or its successor) is true forMadewith greenChecksand a reader that could not be reached, false forMadewith a silent reader and no checks run. - The manual page that covers this (
internal/manual/chat/starting-aforge.md, the "it says nothing has been finished yet when it did the work itself" section) quotes the new wording, and the change entry'sinvalidatesnames what people believed before.
Drafted with CodeAF · reviewed and owned by the author
Activity
santoshkumarradha commentedon Sep 3, 2026
Observation from the #546 DOE, same family as this issue: a steward check that is red for reasons that have nothing to do with the work is also not a witness.
Cell
Human-Agent-Society-reef-145-chat, armturnWallShare=3,--yolochat under a 900 s wall (the DOE wrapper adds-max-hours 0.25; the rig's own chat driver passes none). Row and table: #407 — run20260903T204602Z-b07c3dd51-doe546-wall-share3, binaryaforge-wall,deepseek/deepseek-v4-flash.Two things in that cell, neither of them a fix request:
beforeto sit against.ray,slime,numpy,torch. Each failure read as "the check found gaps", so the owner said carry on four times, and the model eventually startedpip install torchinside the cell to make the check it was being judged by run at all. Row: 903 s, six carry-ons,wall · tests greenon the fix tests.The shape is this issue's: the witness the principal consults answered for a reason that is about the environment, not about the work (there, a reader nobody could reach; here, a check that could never have been green), and the session pays for the answer as though it were a verdict on what it did. Recording it here so the fix for #582 is chosen knowing about the check-side twin; no fix proposed and nothing asked for in this comment.
session: a mark reader that could not be reached is not a witness tha…