Why
Stalled PR recovery must route to a viable registered agent, dispatch an available handoff workflow, and avoid permanently setting agent:auto when dispatch fails.
Scope
Adopt existing PR #2826 as the implementation lane.
Tasks
- Use registry-derived required-secret availability.
- Allow a single viable alternate agent.
- Use the available root or consumer handoff workflow safely.
- Apply routing changes only after a successful dispatch and keep the template aligned.
- Resolve all current review feedback.
Acceptance criteria
- Workflows and consumer templates follow the same safe handoff semantics.
- Failed dispatch leaves retryable routing state.
- Focused tests and workflow validation pass.
Why
Stalled PR recovery must route to a viable registered agent, dispatch an available handoff workflow, and avoid permanently setting
agent:autowhen dispatch fails.Scope
Adopt existing PR #2826 as the implementation lane.
Tasks
Acceptance criteria