Skip to content

Pipeline stalls after BRC consensus completes — no PR created, MCP recovery tools fail #1691

Closed

Description

@jwbron

Bug

Pipeline issue-1553-v4 (issue #1553, implement phase) reached full BRC consensus (5/5 agents confirmed) but the orchestrator failed to gracefully shut down agents, resulting in the pipeline being marked failed instead of completed. No PR was created.

Timeline

Time Event
04:27 Pipeline started, 5 agents + overseer spawned
05:22 Coder proposed v1, NACKed by reviewer_code and tester
05:38 Coder proposed v2, NACKed by tester
05:42 Coder proposed v3, all agents ACKed and confirmed within 10s
05:42:48 Last CONSENSUS_CONFIRMED. Consensus complete.
05:50:58 Tester self-exited (exit code 0, status: complete) — only agent to exit gracefully
05:42–05:57 Coder, reviewer_code, documenter, reviewer_contract stayed alive in heartbeat/poll loops waiting for orchestrator shutdown signal
05:57:35 Orchestrator force-killed remaining 4 containers (exit code -1), marked them failed
05:57:35 Phase and pipeline marked failed. No PR created.

Root Cause

After BRC consensus completed, the orchestrator did not send a graceful shutdown signal to agents. Only the tester self-exited (exit 0). The other 4 agents kept heartbeating and polling, expecting the orchestrator to tell them to stop.

~15 minutes after consensus, the orchestrator force-killed the remaining containers (exit code -1). Since 4/5 agents exited with -1, the pipeline was marked failed instead of completed. Because the pipeline was failed, no PR was auto-created.

A formatting commit (c44438333f) was pushed to the branch, suggesting the orchestrator's post-consensus checks partially ran.

Agent Final States

Agent Exit Code Status Notes
tester 0 complete Self-exited after consensus
coder -1 failed Force-killed ~15 min post-consensus
reviewer_code -1 failed Force-killed
documenter -1 failed Force-killed
reviewer_contract -1 failed Force-killed

Additional Issues

  1. Contract never updated: All contract tasks remain pending despite implementation being complete and reviewed. pr_number is null.
  2. MCP recovery tools don't work: complete_phase(task_id="issue-1553-v4") returned HTTP 400. advance_phase(task_id="issue-1553-v4", target_phase="complete", force=true) also returned HTTP 400 with all container IDs as failed_containers. There is no way to manually unstick a pipeline in this state.
  3. Agent commit tracking broken: All agents showed commit: null in get_status even though the coder pushed multiple commits to worktree branches that were merged to the main branch.

Config Context

Pipeline submitted with start_phase: implement, hitl_gates: false, overseer_enabled: true via submit_task with source_branch + source_artifact_prefix to skip earlier phases.

Related

Activity

  1. added a commit that references this issue on Apr 23, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions