Skip to content

Post-BRC event-pump deadlock: confirmed slice never closes (containers won't exit); no self-heal; advance_phase(force=true) trips #2806 + re-entry thrash #3043

Closed

Description

@jwbron

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, committed de826cef2; 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

  1. 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.
  2. Overseer can't open a HITL — its register_open_question call was 403-denied (Role 'system'/'implementer' is not authorized to modify decisions.*), so the deadlock can't surface as a pending_decision for an operator.
  3. restart_agent on 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.
  4. advance_phase(force=true) trips Pipeline should auto-mark FAILED when any producer agent dies permanently (retry budget exhausted) #2806 + re-entry thrash — force=true stops 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) #2806 pipeline.failed transition. The pipeline then re-entered implement with a fresh cycle (new overseer, work_started_at bumped) instead of landing in apply — i.e. split-brain thrash that will re-spawn the slice and re-deadlock.

Why distinct from existing issues

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_decision for 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions