Skip to content

fix(ai): progress-keyed stream watchdog (#385 — the night-eater) - #2217

Merged
joelteply merged 1 commit into
canaryfrom
fix/progress-keyed-stream-watchdog
Aug 9, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/progress-keyed-stream-watchdog

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Watchdog resets only on real deltas; keepalive bytes can no longer mask a frozen slot. cargo check green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…the keepalive-masked wedge that held two runs 5+ hours (#385)

The 'per-token' idle watchdog was actually per-CHUNK: any bytes on the SSE
stream reset the 90s timer. A wedged slot (is_processing:true, n_decoded
frozen at 1 for five hours, 2026-08-09) that keeps emitting keepalive /
comment frames resets it forever — the comment said tokens, the code counted
bytes, and every downstream deadline became a dead letter because the future
never errored.

Now `last_progress` advances ONLY when a parsed event yields a real delta
(content / reasoning / tool-call / finish). Bytes without progress for the
same 90s budget fail as loudly as transport silence, with the wedge named in
the error and note_real_decode_failure stamped so lane self-heal sees it.
Transport-silence timeout unchanged. Remaining #385 halves stay open:
per-slot wedge detection in the daemon, and the unbounded semaphore/dispatch
audit upstream.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 043d24f into canary Aug 9, 2026
@joelteply
joelteply deleted the fix/progress-keyed-stream-watchdog branch August 9, 2026 12:32
joelteply added a commit that referenced this pull request Aug 9, 2026
…he harness must never launder its faults into her record (#384) (#2218)

F1's signature: zero acts, no error, empty patch — a citizen whose mind was
never delivered (serving transition, null-decision ticks, 60ms
'deliberations') graded SIX capability zeros. A zero is a harness claim.

The attempt counter is now manual: an infra-void outcome retries the SAME
attempt after a 90s settling pause (bounded at 2 retries), her chances
unburned; exhausted retries end the run with a loud INFRA VOID marker on
the poll surface and benchmark.attempt.infra_void on the wire — never a
graded zero. Genuine outcomes advance the counter exactly as before.

This closes the last known round-killer. With #2216 (in-loop verifier),
#2217 (progress-keyed watchdog), the subprocess ceilings (#2214), and the
settle-time resubmit re-drive (#2215), every failure mode that voided or
poisoned a round this week now has a structural answer on the same binary.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5 <[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