Skip to content

session: the end-of-turn reader carries a finished ask on three times over a settled task and green checks, then reports it unfinished #468

Closed

Description

@santoshkumarradha

Status after #653 (2026-09-09)

Landed on dev. A turn that handed its ask to a task is not carried on (TestATurnThatHandedItsAskToATaskIsNotCarriedOn, internal/session/turnhandoff_test.go). A done claim is now refused only by a reading that names independent parts still to do, and the accepted drop is charged once per request (handOverRunningTurn, checkpoint.go; change entry 653-conversation-execution.md). The carry-on ceiling note now quotes what the reader said instead of asserting it (TestCarryingOnAnAskHasACeilingOfItsOwn). #507 and #534 landed parts earlier.

Still open. The reported case is not pinned: a task settled done with green checks, followed by byte-identical [carry on] lines that invent a per-file criterion the ask never stated. checkpointCarryOnCap still lets repeated echoes through up to the cap instead of stopping on the first identical one. The fix shape in the third comment (the steward's frozen done-condition, and a mark reader with no model returning an empty string that cannot be told from "nothing left") is untouched.


Observable failure

In the live chat surface, a turn built a small Python package as asked and ended with "Done. All 7 files written, 22 tests passing"; the task it had handed the work to ended status: done. The harness then injected [carry on] You stopped, but what was asked is not finished. Somebody reading the work against the request says this is what is left … three times in thirty-four seconds. Each time the model re-ran the acceptance command and answered that the criteria were met ("I've proven it three times with the exact command"), and once pointed out that the reader's claim — that modules "do not pass" — did not match the output. After the third, the surface drew

carried on 3 times and it is still not finished · stopping here rather than carrying on again

in the same frame as the model's proof and the task row reading state: done. The person is told the ask is unfinished by the one line that is meant to be honest, over work that every piece of evidence beside it says is finished. Three reader calls and three model rounds were paid to produce the contradiction.

Measured 2026-09-02 on a dev build with deepseek-v4-flash, one model on every role; the session journal and the task record are preserved by the reporting session.

Cause, as read in the code

The end-of-turn reader (checkpointReopen → decideRemains(readRemains(...), said)) is shown a short digest of what the session said and asked what of the ask is still not done. It is never shown the task's settled state, the tests that ran, or the tree. A confident wrong answer from it is treated as evidence up to the carry-on cap, and when the cap is reached the note that names the cap is printed as an observation ("it is still not finished") although the only thing observed is that the reader said so three times.

Two structural gaps beside it:

  • turnIsWaitingOnItsOwnWork deliberately excludes task nodes, so a turn that handed its work to a task is read for remains while the task is running and again after the task has settled done — the one state that answers the question outright.
  • A carry-on that the running model answers by re-proving the same result is counted exactly like one that moved the work; nothing compares the second answer with the first, so an echo costs three rounds before the cap stops it.

This is the same family as #428: a verdict reached from an account of the work, refusing the evidence standing beside it (a settled task, passing checks).

Law

The end-of-turn reader is shown the evidence a person would look at before agreeing — the task's settled state and the checks that ran — and a settled task answers the remains question; the closing line reports what was observed, never what the reader repeated.

Fix shape

  • readRemains/decideRemains receive the turn's own evidence beside the digest: the state of every task this turn started (settled done / failed / running) and the last check result the run recorded. A task settled done for the whole of the ask ends the reading with nothing left; a task still running is a wait (fold task nodes into the waiting gate, or give them their own arm).
  • A carry-on whose answer restates the previous answer (same acceptance command, same result) is a standstill, not progress: stop after the first echo rather than at the cap, and say so.
  • The cap note says what happened: the reader kept answering "not finished" while the work reported done, and the harness stopped asking — never "it is still not finished" as a fact.

Replication

Chat surface, one model on every role, a fresh git directory:

aforge chat -yolo -one-model -model deepseek/deepseek-v4-flash -max-cost 1

Ask for a small package (several modules and one test file) with the instruction to make the tests pass and to report the result. Expected today: after the model's "Done … N tests passing", the journal shows up to three [carry on] … rows in under a minute, the model re-proving the same result each time, and the surface's closing note "carried on 3 times and it is still not finished · stopping here rather than carrying on again" beside a task row reading state: done.

Acceptance

  • The replication ends with no carry-on after the model's "Done" when the task is settled done and the checks passed; the note above is never drawn beside a done task.
  • A reader answer that echoes the previous round stops the carry-on at the first echo with a note that says so.
  • A task still running is a wait, not a stop and not a carry-on.
  • A real-model run of the replication shows the journal with zero [carry on] rows after the done message.

Drafted with CodeAF · reviewed and owned by the author

Activity

  1. santoshkumarradha commented on Sep 2, 2026

    @santoshkumarradha
    MemberAuthor

    Refinement from the reporting session's saved frame and journal (out/gate-frame.txt, out/carryon-remains.txt in its kept directory): the three [carry on] remains lines are byte-identical, and each invents a criterion the ask never stated — "ledger/init.py does not pass; ledger/money.py does not pass; …" per file — over a task that had already merged home with 22 passed and state: done, which the conversation had been told in a preceding while you worked: message. So the defect sits in readRemains/decideRemains reading past a completed task and inventing what is left; the cap and its note only end the loop and are honest about what the reader said. Two consequences for the fix shape above: a verbatim repeat of the previous remains line is a standstill and stops at the first echo, and a remains line that quotes nothing from the ask is a preference of the reader's and is not carried on at all — the same grounding rule the delivery gate already applies to its own findings.

  2. santoshkumarradha commented on Sep 2, 2026

    @santoshkumarradha
    MemberAuthor

    The live door on the complete canary baseline (#407, dev 35c1a79e, nine real issues, deepseek-v4-flash, 900s wall)

    The chat door hit the wall on 5 of 8 graded anchors, 3 of them with green tests, after its task had already landed — the frame reads paste 1 · done 12m35s · merged and the session then keeps running bash and thinking until 900s. Verbatim rows (door verdict · tests · wall · cost):

    issue door verdict tests wall cost
    python-attrs-attrs-1416 wall green 902s $0.0269
    sphinx-doc-sphinx-11437 wall green 901s $0.0545
    tox-dev-tox-4031 wall green 904s $0.0376
    pylint-dev-astroid-2305 wall red 901s $0.0335
    pypa-build-860 wall red 902s $0.0269

    This is the shape this issue names on the live door: the end-of-turn reader carries a finished ask on past the task that finished it, and nothing beside the turn's own account is consulted. (These rows still carry the one-model handoff handicap of #443.) Acceptance is amended: besides the replication above, one of these three green-test chat cells rerun on the fixed binary must end at "done" when its task lands — no carry-on after the merge, well inside the wall.

  3. santoshkumarradha commented on Sep 2, 2026

    @santoshkumarradha
    MemberAuthor

    Fix shape (owner: this thread; folds the canary's chat-door wall from #407 into this issue)

    The canary's bisect closed: the chat door walling is baseline behaviour in all 36 cells across 8 shas, and the transcripts name one loop. Read at the code, the "mark" and the "steward" are two readers, and the loop is the steward's, not the mark's:

    1. Before any work, the steward writes a done-condition from the ask alone and freezes it. Under one model the mark reader has no model, so every mark and every end-of-turn "what remains" read fails in under 2 ms and returns the empty string, which the steward cannot tell from "nothing left".
    2. With no reader line, the steward decides from landings and checks. The checks it harvests admit any backticked span that exists in the tree, including a bare source file, and it runs that under a shell. A non-executable file exits 126 and "does not pass" forever. A settled failed landing likewise stays in the order for the life of the session. So the unmet set never changes, the brief is byte-identical every round (four identical "[carry on]" briefs 26 to 70 seconds apart in one cell), and nothing has a floor.
    3. The carry-on cap is per turn and is reset by every other exit from the turn (a task landing wakes a new, freshly metered turn), so it bounds a loop whose period is a whole turn. Its note asserts "it is still not finished" as a fact when the only observation was the same unmet set three times.

    Laws to build, each with a named test, general and domain-neutral:

    • A check is a command, never a path. The session's check harvest carries the same interpreter fact the node's own door already computes, so a file is opened the way that door opens it, and a span that cannot be invoked is not a failing check, it is not a check. "Does not pass" is said only of a check that ran.
    • The steward judges on what landed and what ran, never on a brief it authored. In its decision, settled landings and the checks that ran come before any reader's line; a landing that is done and covers the ask, with every check that ran passing, is done, and no reader line may carry on over it. The frozen done-condition is context for the model, never evidence for the decision.
    • A standstill is a stop, not a carry-on. The steward keeps its state across turns already; when the unmet set (or the brief it is about to return) is unchanged since its last decision, it stops and says so in honest words: what is still left, and that it stopped rather than repeat itself. This floor lives on the steward, so a fresh turn's meter cannot restart it.
    • A reader that cannot work is absent, not failing. When the mark reader has no model, marks are not attempted and the remains question is not asked; the decision goes straight to landings and checks, and the journal records the absence once, not a failed mark on every round.
    • The carry-on note says what was observed. Never "it is still not finished" as fact; the note names what the reader or the checks actually showed.

    Acceptance: the existing unit tests for the steward's decision plus one per law above, and the canary's chat cells (reef, attrs, tox) ending at done rather than the wall. Replication for the record: any chat cell whose acceptance sentence quotes a source file path, under one model.

  4. added
    bug
    area:session
    sev:critical
    ready for a lane
    on Sep 10, 2026
  5. added 3 commits that reference this issue on Sep 10, 2026
    413ad45
    95d93b9
    1be0a4d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sessionbugready for a lanesev:critical

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions