Add consensus failure handling with fallback options for multi-agent pipelines

Implements detection and recovery for when agents fail to reach consensus:
- Orchestrator exits with code 2 on consensus failure (distinct from error=1)
- Records failed run context (proposals, agent states, conflicts) to Dragonfly
- Provides fallback options: rerun same, rerun with GAMMA, escalate tier, accept partial
- Adds UI alert with action buttons for user-driven recovery
- Adds failure details modal and downloadable failure report
- Only marks pipeline complete when consensus achieved or user accepts fallback

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
profit
2026-01-24 18:24:19 -05:00
co-authored by Claude Opus 4.5
parent 8561d13728
commit 09be7eff4b
3 changed files with 923 additions and 6 deletions
@@ -410,6 +410,13 @@ Each agent displays:
- [x] Token status/revoke/renew APIs
- [x] Handoff report generation
- [x] Diagnostic pipeline spawning
- [x] Consensus failure detection (exit code 2)
- [x] Consensus failure context recording
- [x] Fallback options (rerun, escalate, accept, download)
- [x] Failure report download
- [x] UI consensus failure alert with action buttons
- [x] Failure details modal
- [x] WebSocket notifications for consensus events
---