Save and resume a recipe
Persist progress, pause for approval and resume without replaying completed tasks.
This example saves evidence, waits for approval and then records acceptance. It needs only the installed package: no Git, sandbox or agent. Save these two complete files together.
Store progress
Section titled “Store progress”The local transport declared inside the checkpoint store keeps checkpoints under .outpost/state; the store keeps a name because the recipe references it. Later commands must use the same configuration and run ID. The YAML format is version 3; checkpoint version: "1" below is a separate identity you choose for the workflow.
Pause at an approval
Section titled “Pause at an approval”evidence completes before the approval gate opens. The accepted task runs only after approval. The checkpoint keeps completed results and cumulative usage.
Inspect, then resume
Section titled “Inspect, then resume”The first command uses --json, so it leaves the gate pending and returns a nonzero exit status with a waiting report. status reads saved progress. Run the last command in a terminal to see the evidence and approve with a reason; it does not rerun evidence.
Leaving the gate pending is the default. For headless decisions, signed approvals or agent questions, follow human interaction.
Use recipe run --run-id another-run for a new execution. Use resume for an existing ID. Changes to recipe inputs or execution identity are refused; observation and report settings may change.
Retain working files
Section titled “Retain working files”For command or agent tasks, add a workspace and sandbox to outpost.yaml. Checkpoints retain the original workspace and verify it before resuming; a missing workspace is not silently replaced. File snapshots are conserved before a settled checkpoint. Mounted sources must remain available.
Git workspaces retain their branch and diff baseline. File workspaces use configuration 3 with runtime.directory, runtime.namespace and optional retention settings; see file restoration. Borrowed workspaces cannot be restored automatically.
Recover an interrupted run
Section titled “Recover an interrupted run”A normal pause needs only resume. After a crash, stop the previous coordinator and inspect the saved state before choosing recovery.
| Saved state | Required action |
|---|---|
| Completed tasks and a pending gate | Resume or submit a decision |
| An interrupted task | resume --retry-incomplete explicitly authorizes replay |
| Checkpoint still owned by an abandoned coordinator | --recover-revision <revision> after verifying ownership |
| A retained workspace lock | Follow lock recovery separately |
Ownership recovery does not authorize task replay. Heartbeat expiry authorizes neither. CLI reference documents the flags.
An interrupted declarative loop replays its whole phase: every attempt step runs again, commands included, while an interrupted check reruns its steps without repeating the attempt.
Add caches, artifacts or quota pauses
Section titled “Add caches, artifacts or quota pauses”| Need | YAML integration |
|---|---|
| Reuse a task’s JSON result | options.cache, a named cache store and a key callback |
| Preserve an artifact | artifact with a store, contract and data expression |
| Wait after a quota limit | onQuota: { action: pause } with cumulative budgets |
| Track execution by ID | A run observation sink backed by a transport |
Use the component reference for declarations and extensions for callbacks. Cache hits do not replay effects. Continuing an agent after quota requires a captured conversation and supported restoration. The checkpoint is authoritative; observation failures do not change the outcome.

