disinto/lib/hooks
openhands 5822dc89d9 fix: feat: unified escalation — single PHASE:escalate path for all agents (#510)
Replace PHASE:needs_human with PHASE:escalate across all agent types.
Consolidates 6 overlapping escalation mechanisms into one unified path:
detect → notify via Matrix → session stays alive → human reply injected → resume.

Key changes:
- PHASE:escalate replaces PHASE:needs_human everywhere (16 files)
- CI exhausted now escalates instead of immediately marking blocked
- Matrix listener routes free-text replies to vault tmux sessions
- Vault agent writes PHASE:escalate files for procurement requests
- Supervisor monitors PHASE:escalate sessions in health checks
- 24h timeout on escalation → blocked label + session killed
- All 38 phase protocol tests updated and passing

Supersedes #462, #458, #465.
2026-03-21 19:39:04 +00:00
..
on-compact-reinject.sh fix: feat: SessionStart compact hook re-injects phase protocol after context compaction (#274) 2026-03-20 23:27:32 +00:00
on-idle-stop.sh fix: replace fragile pane grep with Stop hook for idle detection (#272) 2026-03-19 14:57:54 +01:00
on-phase-change.sh fix: distinguish phase file writes from reads in PostToolUse hook 2026-03-19 18:14:49 +00:00
on-pretooluse-guard.sh fix: PreToolUse guard — allow formula agents to access FACTORY_ROOT from worktrees (#487) 2026-03-21 18:09:28 +00:00
on-session-end.sh fix: feat: SessionEnd hook for guaranteed cleanup on session exit (#276) 2026-03-20 01:11:26 +00:00
on-stop-failure.sh fix: feat: unified escalation — single PHASE:escalate path for all agents (#510) 2026-03-21 19:39:04 +00:00
on-stop-matrix.sh fix: feat: stream action-agent Claude output to Matrix thread (#293) 2026-03-19 23:43:29 +00:00