You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
headless: the ↻ line on a requeue discards the release reason and leans on the ⏳ line above it #328
Found while landing #323 (PR #327). Narrow, headless only.
What is true
When a claim goes back on the queue with recorded turns, cmd/aforge's narrateOne prints ↻ picked up again from N recorded turns on store.EventNodeReleased — and discards release.Reason entirely on that arm. The reason now names the bound that fired, the meter's figures and the surviving turns (#327), so a person reading the stream learns WHY the node was handed back only from the ⏳ line the leaf printed just before. That is correct today, because the two events are always adjacent, but it is an ordering assumption rather than a guarantee: a release whose reason is the only record of why (a claim taken back from a worker that never answered already prints its reason on the ✗ arm) reads on the ↻ arm as a bare restart.
Second finding, for the record (no action)
The chat surface has no reader for EventNodeReleased and cannot have one: internal/resident is reached only by aforge do; v3 chat runs internal/session's own engine with its own exhaustion path (internal/tui3, internal/session, internal/head do not import internal/resident). So no chat requeue is hidden and there is nothing to plumb; the visibility acceptance in #323 is met headless.
Acceptance
The ↻ line carries the release's own reason (or the part of it that is not already the turn count), so it stands on its own when the ⏳ line is not directly above it.
cmd/aforge/requeueline_test.go asserts the line names the bound, not only the turns.
No new mark, no change to the ✗ arm.
Replication
go test ./cmd/aforge/ -run 'TestALeafThatRanOut|Requeue' -count=1 -v and read the narrated lines; or run aforge do on a leaf that crosses its grant and read the stream.
Drafted with CodeAF · reviewed and owned by the author
Activity