feat: Implement unified escalation system (gt-i9r20)

Add severity-based routing for escalations with config-driven targets.

Changes:
- EscalationConfig type with severity routes and external channels
- beads/beads_escalation.go: Escalation bead operations (create/ack/close/list)
- Refactored gt escalate command with subcommands:
  - list: Show open escalations
  - ack: Acknowledge an escalation
  - close: Resolve with reason
  - stale: Find unacknowledged escalations past threshold
  - show: Display escalation details
- Added TypeEscalationAcked and TypeEscalationClosed event types

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
mayor
2026-01-12 00:47:11 -08:00
committed by beads/crew/emma
parent ea5d72a07b
commit 0d0d2763a8
6 changed files with 1132 additions and 235 deletions
+4 -2
View File
@@ -58,8 +58,10 @@ const (
TypePatrolStarted = "patrol_started"
TypePolecatChecked = "polecat_checked"
TypePolecatNudged = "polecat_nudged"
TypeEscalationSent = "escalation_sent"
TypePatrolComplete = "patrol_complete"
TypeEscalationSent = "escalation_sent"
TypeEscalationAcked = "escalation_acked"
TypeEscalationClosed = "escalation_closed"
TypePatrolComplete = "patrol_complete"
// Merge queue events (emitted by refinery)
TypeMergeStarted = "merge_started"