Repository navigation
Closed
Labels
bugSomething isn't working
Description
Summary
On the deployed orchestrator (egg/3027-brc-noop-durable), a slice-DAG implement slice that reaches BRC consensus never closes because the in-pod event-pump containers don't exit after confirming — the orchestrator waits for container exit to close the slice, the containers loop back waiting for the next event, and the phase deadlocks. The system cannot self-heal, and the available operator recovery (advance_phase force=true) trips a #2806 race and leaves the pipeline thrashing. Observed live on pipeline issue-3023 slice-3.
Timeline / evidence (issue-3023 slice-3)
- 17:40 — all BRC work done: coder
success=True, committedde826cef2; coder log shows[event-pump] Confirming via egg-orch consensus confirmed. 7/8 agents confirmed incl. the holistic reviewer; reviewer_code ACKed the current HEAD with no blockers. - The event-pump containers stay running (loop back to poll for the next event). The orchestrator waits for containers to exit before closing slice-3 → deadlock, 36+ min.
- Overseer + Opus advisor verdict: P0, confirmed deadlock, human intervention required, won't self-heal. Overseer log: "the system won't self-heal and the auto-respawn is making things worse."
Self-heal / recovery gaps
- Overseer can only emit informational alerts — the idle-budget alerts say "the loop continues blocking; no FAILED transition is forced." No corrective action is taken.
- Overseer can't open a HITL — its
register_open_questioncall was 403-denied (Role 'system'/'implementer' is not authorized to modify decisions.*), so the deadlock can't surface as apending_decisionfor an operator. restart_agenton the stuck reviewer doesn't help — it just resets the 30-min idle clock (advisor: "the new reviewer_code respawn just reset its idle clock, extending the stall"). The root cause is container-exit, not a missing verdict.advance_phase(force=true)trips Pipeline should auto-mark FAILED when any producer agent dies permanently (retry budget exhausted) #2806 + re-entry thrash —force=truestops the running containers to clear them, but force-stopping a producer mid-consensus is interpreted by its consensus-wrapper as "producer died permanently → exhausted retry budget", firing the Pipeline should auto-mark FAILED when any producer agent dies permanently (retry budget exhausted) #2806pipeline.failedtransition. The pipeline then re-enteredimplementwith a fresh cycle (new overseer,work_started_atbumped) instead of landing inapply— i.e. split-brain thrash that will re-spawn the slice and re-deadlock.
Why distinct from existing issues
- #3023: re-implement the on-demand spawner descoped from slice-2 (slice-2a shipped only the derive_next_action prereq) #3041 / Orchestrator-driven on-demand agent spawning: lift the event pump out of the pod so idle agents don't exist #3023 are the feature (orchestrator-owned on-demand spawner) that re-architects this lifecycle. This issue is the current deployed-code deadlock + broken recovery paths, which need handling regardless of when the feature lands.
- Pipeline should auto-mark FAILED when any producer agent dies permanently (retry budget exhausted) #2806 is the dead-producer→FAILED policy; the new finding is that
advance_phase(force=true)races into it by force-stopping a live producer, and that the post-FAILED state re-enters implement (thrash).
Suggested directions (for the investigator)
- Orchestrator should close a slice when consensus is reached without waiting for the in-pod event-pump container to exit (or signal the pump to exit on terminal consensus).
advance_phase(force=true)should distinguish an operator-initiated container stop from producer death so it doesn't trip Pipeline should auto-mark FAILED when any producer agent dies permanently (retry budget exhausted) #2806.- Give the overseer an authorized path to register a HITL
pending_decisionfor a confirmed deadlock (fix the 403), so it surfaces to operators instead of only logging. - Investigate the post-FAILED → implement re-entry (epoch/driver race).
Found while driving issue-3023 to completion. Related: #3023, #3041, #2806, #3032.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
review: expand stale-ACK/NACK coverage + sharpen exclusion comment (#…
fix(orchestrator): unwedge confirm when a reviewer's producer already…