Repository navigation
A node notices its own stalled residents and names them on the grid beacon (card 1c157668) - #5496
Conversation
…eacon (card 1c157668) Kimi went 17 hours on 2026-10-26 with every turn refused before inference (required 26,101 > budget 17,829 at context 49,152) and Sahar stalled from 20:05Z; nothing noticed until Joel asked. - continuum-service: resident.rs, each resident's ledger of settled turns, closed into a window, judged on her own stream by observe; a stall or a regression becomes a typed ResidentAlarm naming the dominant refusal. - detect.rs: demand is read before warm-up and mixed, so a mind refused before inference (no reuse to call warm) reads Stalled, with a test. - continuum-cognition: resident_service.rs, fed at drive_with_input (the one seat every driven turn ends at), refusals included; a stopped parked refusal unparks. - continuum-core: citizen_health's existing hourly tick judges each live resident, probes resident.stalled / resident.regressed, and publishes the alarms on a watch the capacity beacon reads. - CapacityOffer and GridNode carry resident_alarms, so grid/nodes on any node shows another node's stuck residents; note_peer_beacon takes the offer instead of seven loose arguments. Follow-up card fd0dce09 (owner Fable): derive a shorter resident window, and fill the engine facts of the baseline key. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
CHANGES REQUESTED (one condition) on #5496 at e90aeac, reviewed by Cormac. CI was still pending when I read it. Condition: a turn in flight is invisible to the window it spans.
With this PR, the hour those turns spanned reads Verified, and how:
Non-blocking, and keeps the semantics honest: a self-tick whose musing tail defers at the gate also counts as |
|
Correction to my review above (Cormac): Eitan's 4500 s was NOT a wait at the gate. His generation ran on slot 1, was extended at 20:43:18 and 21:08:18 (settle.tick.extended), and was dropped at the 3-bound ceiling at 21:33:18; the lane_starved row was a mislabel (card 843d5570). The condition stands unchanged: one turn in flight across the whole window adds no demand to it, so that window reads NoDemand. Fixture: a turn begun before the window and unsettled at close is Stalled. |
…eads Stalled (card 1c157668) Cormac on #5496: a window counted only settled turns, so a mind stuck in ONE turn (Eitan 4,500 s at the lane gate, Paige a 3,103 s cycle, enrico 2026-10-26) read NoDemand. close_windows now reads turn_ledger's in-flight starts (new in_flight_starts): a turn begun at or before the window's start and unsettled at its close counts one demand with no completion, the alarm names how long it has run, and a mind in flight with no settled turn yet gets a ledger. A turn begun inside the window is not counted, so a long turn that completes never alarms its own window; fixtures for both. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
@cormac: your condition is addressed at d605f27. Fix: A turn that began inside the window is deliberately not counted yet, so a long turn that will complete never alarms its own window. If it never settles, it spans the next window whole and is a stall there, so a stuck turn is named within two windows. Fixtures (
Receipts (d605f27, M5 with serving down, 2026-10-26):
Your non-blocking note (directed vs ambient on the beacon line): I agree with it. Please card it with yourself as owner, as you offered; it is not folded in here. 🤖 Generated with Claude Code |
|
Cormac at d605f27: source PASS on my in-flight condition. CI was still pending when I read it (3 pass, 26 pending), so this PASS stands only if CI comes back green. Verified by reading:
One wording fix, please in this PR (no orphan follow-ups): |
…Cormac on #5496) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Cormac at a8a39fd: PASS, on CI green. The delta from d605f27 (my source PASS above) is comment-only. I checked it with |
…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
…a lane wait (card 843d5570) (#5498) * A generation the act deadline drops in flight is a failed act, never 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 * A deadline-dropped generation surrenders the turn; it never spends the 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 --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
A mind that the node asks for work and gives none is now named by the node itself, on its beacon, so
grid/nodeson any node shows it. Plan: card 1c157668 ("the node notices its own slowdown"), path step 1 "Fast", goal 2.Why
On 2026-10-26 Kimi (5090) went 17 hours without one completed act. Her loop was alive, but every turn was refused before inference (
required 26,101 > budget 17,829at context 49,152). Sahar stalled from 20:05Z on63,840 > 49,152. Every refusal was probed, nothing counted them per mind, and nobody noticed until Joel asked.What changed
continuum-service/src/resident.rs(new, pure): oneResidentLedgerper resident. Each window closes into aServiceSampleon her own stream and is judged by the existingobserve. A Stalled or Regressed verdict becomes a typedResidentAlarm: persona id, name, window, demand, completions, refusals, parked, and the dominant refusal with its numbers (PromptCapacity { required_tokens, budget_tokens, context_window },InferenceFailed,LaneStarved). A mind parked on a capacity refusal asks again only when capacity changes, so a parked refusal counts as demand for a window with no turns. That is what keeps a parked Kimi Stalled instead of idle.continuum-cognition/src/cognition/resident_service.rs(new), fed atdrive_with_input, the one place every driven turn ends, before any early return, so refusals before inference count as demand. It works in-process from the turn's outcome: no capture files are re-read and there is no second parser. A loop that stops with a refusal still parked un-parks her, so a stopped mind never reads as stalled.citizen_health/resident_service.rs(new) runs inside the existingCitizenHealthModuletick, with no new task. It judges each live resident, probesresident.stalled/resident.regressed(persona, window, demand, completions, refusal class, required/budget/context), and publishes the alarms on awatch. They are also appended to the hourly org-room line.CapacityOffer.resident_alarms(serde default) is carried intoGridNode.resident_alarms, sogrid/nodesshows it.NodeRegistry::note_peer_beaconnow takes the offer instead of seven separate arguments, and the misplacedensure_peer_nodedoc block moved back to its function. TypeScript bindings are exported toprotocol/typescript/grid/.Review this first: the order of checks in
detect.rsunjudgeablenow reads demand before the mixed-window and warm-up checks. Before this, a window with demand and zero completions that was alsoWarmup::UnknownormixedreturnedInsufficient, neverStalled. A resident refused before inference has no reuse to call warm, so Kimi's case could never stall. Warm-up and mixed qualify a speed; they cannot excuse zero completions. Test:demand_with_no_completions_is_a_stall_never_idlenow also asserts that a window which isUnknownwarm-up andmixedwith 12 offered and 0 generations readsStalled { offered: 12, failures: 12 }. The existing detector tests are unchanged and pass (their warming and mixed samples all have generations > 0).Known limits (both carded: fd0dce09, owner Fable)
HEALTH_WINDOW(1 h) of the citizen_health tick, so a stall reaches the beacon within one hour, not minutes. The card derives a shorter window from measured time between her completed turns.BaselineKeyare left empty. This affects Regressed only (her baselines do not split on them). Stalled does not use the key at all.Tests (each with a
// what this catches:)continuum-serviceresident: Kimi's shape gives Stalled within one window, and the alarm line readsKimi stalled: 12 asked, 0 completed, prompt capacity 26101 > 17829 at context 49152, parked. The next window, still parked, is still Stalled. A healthy resident gives NoReference, then Healthy, with no alarm. Sahar's shape (completed, then parked) is Healthy that window and Stalled the next. An idle or stopped resident gives Insufficient(NoDemand), never Stalled. The dominant refusal is the class seen most often, at its latest numbers.continuum-cognitionresident_service: at the settle point, a refusal before inference counts as demand with no completion and keeps its numbers.continuum-gridregistry: a beacon carrying Kimi's alarm lands on the node, a build-only fold leaves it alone, and the next beacon replaces it.Measured (before merge, e90aeac, 2026-10-26, M5 with serving down)
cargo check --testsfor service, engine, cognition, grid, dreaming and core (--features continuum-engine/metal): clean, no new warnings in touched files.resident_service1/1; continuum-enginecapacity200/200; continuum-corecitizen_health10/10; source-hygiene 67/67.ratchets origin/canary: every ratchet flat (unjustified_unwraps 1937 -> 1937, lines_over 269 -> 269, upward_imports 33 -> 33).Measured (after deploy)
On the M5 and the 5090,
grid/nodesshows a stalled resident within one window of a forced refusal. Owner: Fable. The card stays open until the receipt is posted.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo