Skip to content

A generation the act deadline drops in flight is a failed act, never a lane wait (card 843d5570) - #5498

Merged
joelteply merged 2 commits into
canaryfrom
843d5570/persona-generation-dropped-fires-for-a-l
Oct 27, 2026
Merged

joelteply merged 2 commits into
canaryfrom
843d5570/persona-generation-dropped-fires-for-a-l

Conversation

@joelteply

@joelteply joelteply commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Why

A generation that ran for 75 minutes and was dropped at the act deadline was reported as a mind that never got a lane. Every reader of that label (her pace, the hour line, the resident stall alarm in #5496) then tells the wrong story about her, and the fix it points at (lanes) is the wrong one. This is plan path step 1 (fast) under goal 11 (every fast-path miss loud): a miss has to be named right before it can be fixed. Card 843d5570.

The case (enrico, 2026-10-26, core 839f702)

  • Eitan's turn started at 20:18:14Z.
  • settle.tick.extended slot=1 at 20:43:18 (ext 1) and 21:08:18 (ext 2). Each extension is granted only when the persona's pinned slot is advancing.
  • The act ended at the 3-bound ceiling at 21:33:18, with waited_secs=4500 (ACT_EXTENSIONS=2, 1500 s floor).
  • The drop left no generation receipt, so classify_act(0, 0) returned LaneStarved. The act probed persona.act.lane_starved lanes_available=0 generations=0, and its input was treated as never dispatched.

(I first misread this as a turn that never reached the engine; the retraction is in #continuum-dev.)

What

  • admission_clock::QueueTime (the step's own clock, already task-scoped to the step) gains dispatched, set by note_dispatched().
  • generation_drop::InFlight::arm calls note_dispatched(): the drop witness arming is the dispatch fact.
  • until_act_stalls returns Err(Abandoned { dispatched }) instead of Err(()).
  • settle_to_outcome counts a dispatched drop as a generation for classify_act, so the step is an act that failed (InferenceFailed), never a lane wait. settle.tick.deadline gains dropped_in_flight.

Verified (enrico, at 10ced20's content before its rebase onto 42aabcf)

  • cargo check -p continuum-cognition --lib and --profile test (--features metal): exit 0, no warnings in the crate.
  • cargo test -p continuum-cognition --lib -- act_observe::settle generation_drop admission_clock: 16 passed, 0 failed.
  • New fixture a_deadline_says_whether_it_dropped_a_dispatched_generation: a step that armed its witness ends as Abandoned { dispatched: true }, and one that never armed ends as dispatched: false.
  • Mutation: with the note_dispatched() call removed from InFlight::arm, that fixture FAILS (12 passed, 1 failed). Restored, it passes.
  • source-hygiene ratchets -- origin/canary (base 42aabcf): exit 0, no row changed.

Measured after deploy

Owner Cormac, by 10-27 18:00Z, on enrico: every settle.tick.deadline dropped_in_flight=true row pairs with a persona.generation.dropped row and with no persona.act.lane_starved row for that act.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…a lane wait (card 843d5570)

Serves the residents' own record of their work: a mind whose generation ran 75 minutes and
was dropped read as one that never got a lane, so its pace, the hour line and the stall
alarm (#5496) all told the wrong story. Plan path step 1 (fast): a miss must be named right
before it can be fixed (goal 11, every fast-path miss loud).

enrico, 2026-10-26 (core 839f702): Eitan's generation ran on slot 1 from 20:18:14Z, was
extended at 20:43:18 and 21:08:18 (settle.tick.extended), and ended at the 3-bound ceiling
at 21:33:18. The drop left no receipt, so classify_act saw zero generations and the act
probed persona.act.lane_starved (lanes_available=0, generations=0), and its input was
marked never-dispatched.

The step's own clock (admission_clock, already scoped to the step) now records when the
drop witness arms (InFlight::arm -> note_dispatched); until_act_stalls returns
Err(Abandoned { dispatched }); the settle counts a dispatched drop as a generation, so the
step classifies as an act that failed (settle.tick.deadline gains dropped_in_flight).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

Fable: separate source PASS on #5498 at 10ced20. Verified: Abandoned { dispatched } is read from the step's queue clock at the moment the deadline ends it (Abandoned::at), and note_dispatched() arms it where the model call goes out. So a deadline-dropped in-flight generation counts in act_generations and is never classified lane_starved. That's exactly enrico's 75-minute Eitan case.

One check, given the stall alarm (#5496) that just merged: the dropped generation must reach the resident ledger as demand with a failure, not a completion. If act_generations (or anything derived from it) feeds the alarm's completion count, a mind whose every generation is dropped by the deadline would read Healthy instead of Stalled. Please confirm which outcome the settle path records for this case (I believe it's an inference failure, which the ledger counts correctly), or add the one-line test in resident_service.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…e transient-fault retries (Fable on #5498)

Classed as an act that failed (InferenceFailed), a generation the act deadline dropped in
flight entered the transient-deliberation retry: up to three more attempts in place, each
another whole act bound on the same engine, so one turn could hold four bounds. A deadline
drop is no transient fault. It now surrenders at once: inference_error set, no completion,
nothing deferred, which #5496's resident ledger reads as demand and a failure.

Fixture: a real settle with a deliberation faculty that arms its drop witness and never
returns, under paused time, ends at exactly one TICK_DEADLINE with an inference error.
Mutation: restoring the retry fails it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

Fable: exact-head source PASS at 4a163c7. The delta since 10ced20 is the retry guard delib_retries < DELIBERATION_RETRY_BUDGET && !dropped_in_flight: a deadline-dropped in-flight generation surrenders the turn (a failed act, demand plus failure for the resident ledger) instead of taking up to 3 more whole bounds on the same engine. The paused-time fixture pins it (ends at exactly one TICK_DEADLINE; restoring the retry fails the elapsed assertion). Merge on green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply
joelteply merged commit 01b93bb into canary Oct 27, 2026
18 checks passed
@joelteply
joelteply deleted the 843d5570/persona-generation-dropped-fires-for-a-l branch October 27, 2026 01:18
joelteply added a commit that referenced this pull request Oct 27, 2026
…in is not held to its next checkpoint (card 4d2a64a2)

Serves every resident on the node: while a relaunch drains, no mind gets a lane, so each
second an act holds its guard on a condemned engine is the whole node dark. Plan path step 1
(fast) and circle-the-wagons item: finish what is in flight.

enrico, 2026-10-26 (core 839f702): an uncertain KV restore quarantined the endpoint at
21:10:02Z; the daemon published not-ready, and the replacement's transition_if (a write on the
endpoint gate) waited for every admitted turn's read guard. Eitan's act learned of the
condemnation only at its next checkpoint, 21:33:18 (1500 s bounds from 20:18:14), so
serving.reconcile.wedged step=ensure_serving ran 1368 s against a 180 s bound, ready 21:33:26.

llama_server::until_condemned resolves the moment a ready snapshot turns not-ready (never for
a node that never served, never on a closed channel). until_act_stalls selects on it beside the
step and the checkpoint sleep, ending the act at once with settle.tick.condemned (and
Abandoned { dispatched } from #5498). Stacked on #5498.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Oct 27, 2026
…in is not held to its next checkpoint (card 4d2a64a2) (#5500)

* An act ends the moment its engine is condemned, so a quarantine's drain is not held to its next checkpoint (card 4d2a64a2)

Serves every resident on the node: while a relaunch drains, no mind gets a lane, so each
second an act holds its guard on a condemned engine is the whole node dark. Plan path step 1
(fast) and circle-the-wagons item: finish what is in flight.

enrico, 2026-10-26 (core 839f702): an uncertain KV restore quarantined the endpoint at
21:10:02Z; the daemon published not-ready, and the replacement's transition_if (a write on the
endpoint gate) waited for every admitted turn's read guard. Eitan's act learned of the
condemnation only at its next checkpoint, 21:33:18 (1500 s bounds from 20:18:14), so
serving.reconcile.wedged step=ensure_serving ran 1368 s against a 180 s bound, ready 21:33:26.

llama_server::until_condemned resolves the moment a ready snapshot turns not-ready (never for
a node that never served, never on a closed channel). until_act_stalls selects on it beside the
step and the checkpoint sleep, ending the act at once with settle.tick.condemned (and
Abandoned { dispatched } from #5498). Stacked on #5498.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* Condemned means the daemon decided to replace the engine, never a transient not-ready (Fable on #5500)

until_condemned resolved on any ready -> not-ready, but the daemon also publishes not-ready
while the engine stays up (AlreadyServing with a 0 /props window, most likely when the engine
is saturated in prefill): every such hiccup would have abandoned every in-flight act on the node.

Now the engine keeps a dedicated condemnation generation (llama_server::condemn / condemnations,
a watch<u64>), advanced at the ONE place the daemon commits to an engine transition:
publish_lifecycle_admission (relaunch, quarantine replacement, convergence, retirement, the
academy teacher switch), each of which drains the endpoint's admitted turns in transition_if.
until_condemned subscribes and resolves at the next advance after the act began; it reads no
snapshot. Probe: serving.engine.condemned {generation, reason}.

Fixtures: the wait hears the next condemnation and not an earlier one, never on a closed
channel; an admitted lifecycle transition condemns the engine. Mutation: removing condemn()
from publish_lifecycle_admission fails the daemon fixture.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant