Resume a job from a checkpoint
Reconcile durable job state with external effects before resuming an interrupted agent.
Scenario
A facilities agent loses its worker after filing a repair ticket. The runner restarts from a checkpoint labeled ready_to_file. The service desk now has two entries for the same blocked elevator.
Explanation
Keep conversation history for continuity and durable job state for recovery. A conversation can help the model reconstruct the task. A checkpoint records verified progress, artifact references, pending actions and the version of the configuration that produced them.
An external action can succeed just before the process fails to record the result. Give each logical action a stable operation key and use a tool that accepts idempotent requests or lets you reconcile the action against its own record. After restart, verify externally visible state before acting again. Advance the checkpoint only once the result is known. If you cannot tell whether an irreversible action ran, escalate it.
A model change is a separate migration decision. Check whether the saved state meets the new runner's contract. Validate or migrate it, or restart from the last verified artifact if the conversation cannot carry across safely.
Worked example
Repair job 42 has a saved plan and an operation key, repair-42. The ticket service returns ticket 317 for that key. The worker records ticket 317, skips creation and moves on to draft the internal handoff. The next worker can resume from the verified ticket even if it starts a fresh model session.