plan_resume
Resume a failed or stopped plan without discarding completed intermediary files. Plan generation restarts from the first incomplete step, skipping all steps that already produced output files. Use plan_resume when plan_status shows 'failed' or 'stopped' and plan generation was interrupted before completing all steps (network drop, timeout, plan_stop, worker crash). For a full restart or to change model_profile, use plan_retry instead. Only failed or stopped plans can be resumed. Returns PLAN_NOT_FOUND when plan_id is unknown and PLAN_NOT_RESUMABLE when the plan is not in failed or stopped state. Returns PIPELINE_VERSION_MISMATCH when the snapshot was created by a different pipeline version; use plan_retry instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | UUID of the failed plan to resume. | |
| model_profile | No | Model profile used for the resumed plan. Defaults to baseline. | baseline |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| state | No | Current plan state after resume request. | |
| plan_id | No | Plan UUID that was resumed (same ID as the failed or stopped plan). | |
| sse_url | No | Optional completion detector. Run `curl -N <sse_url>` in a background shell — the stream auto-closes when the plan reaches a terminal state (completed/failed/stopped). For structured progress data, use plan_status instead. | |
| resumed_at | No | UTC timestamp when the resume request was accepted. | |
| resume_count | No | Number of times this plan has been resumed. | |
| model_profile | No | Model profile assigned to the resumed run. |