Recover from failed CI
When a CI check fails, the orchestrator routes the goal back to REPAIR_REQUIRED or to the role that produced the failure.
Steps
- Inspect the CI run: open the PR → "Checks" tab → click the failed check → "View raw logs".
- Categorize the failure:
- Deterministic: a real bug or violation. Fix and push.
- Flaky: a transient infrastructure issue. Re-run via
gh run rerestart <run-id>. - Policy violation: a governance rule (e.g., branch protection) is blocking. Open a repair goal.
Deterministic fix
- Fix the code in the same branch.
- Push; the orchestrator re-dispatches the BUILDER task.
- Wait for CI to re-run.
Flaky re-run
gh run rerestart <run-id>— restarts the failed jobs.- Wait for CI to re-run.
- If the failure persists, treat as deterministic.
Policy violation
- Open a
REPAIR_GOALto fix the violation. - The repair goal itself must be authorized under a separate scope.
What the orchestrator does
The orchestrator records the CI failure as a findings row and routes the goal according to next_action_policy.on_fail. Three consecutive CI failures on the same task transition the goal to REPAIR_REQUIRED.