Fix a failing check
Use this when a check fails on your branch or on a pull request you opened.
Step 1: Start from the failing evidence
On a new Code task, the CI failures card lists failing checks from pull requests you opened and from the branch the Project is on now. Each row names the check, the repository or branch, and how long ago it failed.
Select Start a fix. Octant opens a new Code task that:
- starts a new managed worktree from the failing branch,
- writes the pull request and the check into the prompt,
and waits for you to send it. It does not send on its own.
Fork pull requests
A pull request from a fork is listed only when you opened it, and offers no Start a fix, because its branch is not in your Project. Check it out manually if you need to work on it.
Step 2: Reproduce before changing anything
The first job is not to fix the check; it is to see the failure. Ask for the exact command and the full output:
Run the failing check as written in CI, in this worktree.
Do not change code yet.
Report the command, the exit code, and the first failure in the output.If it passes locally, the difference matters: dependency versions, environment variables, generated files, or a flaky test. Say so before editing.
Step 3: Bound the fix
Once the failure is reproduced, state the fix and its limit:
Outcome: the failing test passes for the reason it was written.
Scope: only the retry logic and its test.
Constraints: do not change the public signature; do not skip or loosen the test.
Verification: run the focused test, then the package suite.A failing check is not permission to refactor the area around it.
Step 4: Verify on the same ground as CI
Run the failing check yourself, then the broader check that CI runs. If CI uses a different command or a clean install, reproduce that too. A fix that only passes in a warm local tree is not verified.
Step 5: Deliver
Commit only the fix and its test. Push to the same branch if the check belongs to an open pull request, or open one if it does not. Record the command and result in the pull request so the next reader does not have to guess.
Pitfalls
| Symptom | Likely cause |
|---|---|
| The check passes locally every time | Flaky test, version drift, or a dirty generated file |
| The fix grows beyond the failing area | The reported failure was a symptom, not the cause |
| The test was changed to pass | The verification no longer proves the original behavior |
| CI still fails after the fix | The failing check was not the first failure in the log |