| name | ci-recovery |
| description | Use when local validation and remote workflow status must be reconciled before trust, merge, or shipment. |
ci-recovery
Lifecycle stage: VERIFY
Trigger
Use after a push, pull request update, failed workflow notification, or any claim that remote CI disagrees with local validation.
When not to use
Do not use when this trigger is absent; choose the command or skill that owns the requested state, artifact, and verification gate.
Inputs
Branch, commit SHA, local validation output, workflow run list, failed job logs, changed files, and available reproduction commands.
Procedure
- Inspect current branch and latest commit before reading CI status.
- List relevant workflow runs for the branch and identify the latest run for the commit under review.
- If a run failed, read the failed job log and copy only actionable failure lines into notes.
- Reproduce the failing workflow command locally when possible, using the same command from
.github/workflows/.
- Fix the smallest root cause with a test, validator, eval, docs, or workflow update that prevents recurrence.
- Re-run the local quality gate, push only intended changes, then re-check the latest remote run.
- Report both local proof and remote proof, including stale failed runs when newer runs supersede them.
Anti-Rationalization
Do not treat local tests as proof when remote CI is failing, queued, stale, or unchecked. Do not edit workflow commands to hide a failure without reproducing the root cause.
Verification
Confirm branch, commit, workflow name, run id or URL, conclusion, failed command, local reproduction command, fix evidence, final local gate, and final remote status.
Output Artifact
CI recovery handoff with status, checked runs, failure class, root cause, fix commit if any, evidence, blockers, local proof, remote proof, risks, and next action.