A Developer Checklist for Recovering Interrupted AI Build Missions
A Developer Checklist for Recovering Interrupted AI Build Missions
A Developer Checklist for Recovering Interrupted AI Build Missions
Long-running AI build missions fail in boring ways. A context window fills up. A session times out while a model is halfway through a refactor. A rate limit lands between "write the migration" and "run the migration." A laptop sleeps.
The interesting question is not why the run stopped. It's what you do in the ten minutes after.
Recovery is a discipline, and it looks a lot like the discipline of developer QA: capture state, verify assumptions, then move. Here's a checklist you can run the next time an agent session dies mid-mission.
1. Freeze the scene before anything writes to disk
The instinct is to restart the session and ask the model to "continue." Don't, not yet. A new session that starts editing immediately overwrites the only evidence you have about what the previous run was doing.
Before you touch anything, capture:
- The last known-good commit hash. - The full working tree diff, saved as a patch or a throwaway branch. - The agent transcript or run log, even if it's noisy. - Any artifacts the run produced: test output, screenshots, generated files, migration scripts. - The task list as the agents last understood it.
For example, imagine a multi-agent collaboration setup where one model was writing a database migration and another was writing tests for it. If the session dies between those two steps, your working tree may contain a half-applied migration and tests written against a schema that doesn't exist yet. Saving that diff as a branch costs seconds and tells you exactly where the run stopped.
2. Write a handoff brief that fits on one screen
Transcripts are long and mostly useless for resuming work. What you need is mission state: goal, constraints, what's done, what's in flight, what's blocked, what's unverified.
Keep it to a handful of lines:
Goal: add cursor pagination to /orders. Constraints: no breaking change to the existing offset param for one release. Done: schema change, endpoint signature. In flight: cursor encoding, partially written. Unverified: nothing has been tested since commit 4f2a91c.
That brief is the input to whatever runs next — a fresh session, a different model, or a human picking up the branch. It also forces you to notice when you can't fill in a line, which usually means the mission was underspecified from the start.
3. Re-run verification before you re-run the agents
The temptation after an interruption is to restore velocity: get the agents generating again as fast as possible. Resist it for one cycle. Run the checks first.
- Does the repo build? - Do the existing tests pass? - Does the UI still render the screens the mission touches? - Does the diff contain anything nobody asked for?
This is where a multi-agent setup earns its keep, provided the roles are separated. Assign one model to repo testing, another to UI testing, and a third to reviewing the diff against the brief. Keep approval on the steps that change state — migrations, deploys, dependency upgrades — so an agent can't quietly continue a mission you haven't re-approved.
AI tools that run several models in one shared session, with per-agent roles and visible cost per agent, make this cheaper than stitching together separate chat windows. VIBA, for instance, lets you assign roles across ChatGPT, Claude, Gemini and others in a single session, approve key steps yourself, and read ranked repair reports when the tests come back red. That structure matters more after an interruption than before one, because the recovered state is exactly where unverified assumptions hide.
4. Choose resume, rewind, or restart — and write down why
There are only three sensible moves, and the criteria are simple.
Resume if the diff is coherent, the tests pass, and you can describe the remaining work in one sentence. Re-run the brief through a fresh session and continue.
Rewind if a bad assumption has spread. Imagine an agent decided to rename a core type halfway through a refactor and touched thirty files before the session died. If you can't explain the build failure in one sentence, reset to the last good commit and replay the brief from there. You lose the work; you keep the branch sane.
Restart if the interruption revealed the mission was too large. A run that dies at hour three usually wasn't a twenty-minute task. Split it into missions that each end in a green test run.
Whichever you choose, record the reason in the commit message or the ticket. The next person to hit an interruption — possibly you, next week — will want to know why the branch was rewound.
Conclusion
Interruptions aren't a failure of the tooling; they're a normal property of long autonomous runs. Teams that handle them well treat recovery as a checklist: freeze the scene, write the brief, verify before you generate, then pick a direction and record it. Do that consistently and an interrupted mission becomes a fifteen-minute detour instead of a lost afternoon.
If you want a place to run that recovery loop with several models in one session — roles assigned, approvals in your hands, costs visible per agent — start at https://viba.guru.
See VIBA: https://viba.guru