You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add consensus-driven phase advancement for concurrent execution #1035
PR #1031 added the infrastructure for concurrent agent execution (message bus, consensus protocol, ConcurrentPhaseExecutor), but phase advancement still relies on container exit codes rather than the consensus protocol.
Agents can signal readiness via egg-orch signal readiness --state READY, and the ConsensusEvaluator tracks this state, but the orchestrator never polls or reacts to consensus completion to advance the phase.
Current behavior
When concurrent_execution: true:
Agents are spawned simultaneously (✓)
Agents can exchange messages via the message bus (✓)
Agents can signal readiness states (✓)
Consensus is evaluated and tracked in pipeline status (✓)
Phase advances when containers exit — same as sequential mode (✗)
Expected behavior
When all agents signal READY, the orchestrator should detect consensus and advance the phase automatically, without waiting for containers to exit.
Code pointers
orchestrator/routes/pipelines.py:4552-4560 — explicit comment: "Consensus-driven advancement will be integrated in a follow-up once the polling loop is added."
orchestrator/concurrent_executor.py — check_consensus() method exists but is never called from the execution path
orchestrator/consensus.py — ConsensusEvaluator.evaluate() returns is_complete but nothing acts on it
Implementation notes
Needs a polling loop during concurrent phase execution that:
Periodically calls executor.check_consensus()
On consensus reached (is_complete=True), triggers phase advancement
Handles BLOCKED/OBJECTING states (HITL escalation)
Respects consensus_timeout_minutes from PipelineConfig
Activity