Skip to content

headless: two ↻ lines for the same node and count within seconds — the release and the re-claim read as two restarts #478

Closed

Description

@santoshkumarradha

Filed under the WIP freeze from #328's e2e (PR #454); queued, not started.

What a person sees

In the headless stream of a run where a leaf ran out of its budget and was requeued (deepseek-v4-flash, 2026-09-02, the #454 lane's run 3):

↻ plan-session — picked up again from 11 recorded turns — it was still working when it ran out of its token budget (cost: 264129 of 150570 tokens of billed work)
↻ plan-session — resumed from 11 recorded turns

six seconds apart: the same node, the same mark, the same count, twice. The first is the release (store.EventNodeReleased, narrated by cmd/aforge/do.go's ↻ arm), the second is the re-claim (EventLeafResumed). Both are correct on their own; the reader has to work out that this is one requeue, not two restarts. The same mark also carries ↻ gate: the answer was not readable — asked again and ↻ … closing its own finding, so ↻ is four events in one register.

Guess (marked as a guess)

The release narration and the resume narration have no rule about adjacency. The honest fix is small: suppress the resume line when a release for the same node with the same recorded count was said within the last few seconds (or fold the two into one line at the resume), keeping the release line, which now carries the why (#328).

Evidence

Stream preserved at ~/aforge-casualties/328/e2e3/ on the build machine (run 3, seven ↻ lines); cmd/aforge/do.go narrateOne, the EventNodeReleased and EventLeafResumed arms.

Acceptance

  • One requeue reads as one event: after picked up again from N recorded turns — <why>, no resumed from N recorded turns for the same node within the adjacency window; a re-claim that is NOT preceded by a narrated release still says resumed.
  • cmd/aforge/requeueline_test.go covers the pair.
  • Manual page that shows the ↻ line (adaptive-runs.md / surfaces.md) stays true.

Drafted with CodeAF · reviewed and owned by the author

Activity

  1. santoshkumarradha commented on Sep 10, 2026

    @santoshkumarradha
    MemberAuthor

    Consolidated into #815 — a run's ending is a receipt: the verdict, the waste, the words and the marks. This issue's evidence, replication and acceptance are reproduced there in full under its own heading, alongside the four others that share the reporting seam in cmd/aforge/do.go; the lane that takes #815 takes this. Nothing is lost — this issue stays readable and #815 links back to it.

    Closed as part of the 2026-09-10 triage sweep, which folded five separately-filed complaints about what a headless run hands back into one piece of work. Verified at dev@95a0d0a9b that this one is still live.

  2. added
    area:headless
    on Oct 3, 2026
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:headless

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions