Repository navigation
Description
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
- Contract never updated: All contract tasks remain
pendingdespite implementation being complete and reviewed.pr_numberisnull. - MCP recovery tools don't work:
complete_phase(task_id="issue-1553-v4")returnedHTTP 400.advance_phase(task_id="issue-1553-v4", target_phase="complete", force=true)also returnedHTTP 400with all container IDs asfailed_containers. There is no way to manually unstick a pipeline in this state. - Agent commit tracking broken: All agents showed
commit: nullinget_statuseven 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
- Pipeline:
issue-1553-v4 - Branch:
egg/issue-1553-v4 - Issue: migrate to kubernetes #1553
- Manual PR: Migrate container runtime from Docker to Kubernetes (k3s) #1692
Activity
Fix pipeline failure after BRC consensus when timeout fires first (#1691
Fix pipeline failure after BRC consensus when timeout fires first (#1693
Fix #1921: event-driven wait after BRC consensus timeout (#1929)