feat: dev-agent → supervisor escalation via escalations.jsonl

When dev-agent exhausts CI fix budget, writes escalation marker.
Supervisor picks it up next poll and invokes claude -p to diagnose
(flaky test? rate limit? real bug?) and decide: fix, close PR, or
escalate to human.
This commit is contained in:
openhands 2026-03-13 06:51:53 +00:00
parent 6abe24f3a5
commit 64b464b01b
2 changed files with 11 additions and 1 deletions

View file

@ -267,6 +267,13 @@ done
# =============================================================================
# P4: HOUSEKEEPING — stale processes
# =============================================================================
# Check for dev-agent escalations
ESCALATION_FILE="${FACTORY_ROOT}/factory/escalations.jsonl"
if [ -s "$ESCALATION_FILE" ]; then
ESCALATION_COUNT=$(wc -l < "$ESCALATION_FILE")
p3 "Dev-agent escalated ${ESCALATION_COUNT} issue(s) — see ${ESCALATION_FILE}"
fi
status "P4: housekeeping"
# Stale claude processes (>3h, not caught by P0)