11 production pipelines, 47 tools, 124 agent skills. Supports cloud APIs (fal.ai, OpenAI, ElevenLabs, Suno, HeyGen, Runway) and free local providers (diffusers, Piper TTS, WAN 2.1, Hunyuan, CogVideo). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4.8 KiB
Checkpoint Protocol — Meta Skill
When to Use
After completing a stage's work AND passing review. This skill teaches you when and how to checkpoint, and when to ask the human for approval. It replaces the Python checkpoint_policy.py with an instruction-driven protocol.
Checkpoints are the save points of a pipeline. They enable resume-from-failure, human oversight, and audit trails.
Protocol
Step 1: Check Manifest Policy
Read the current stage's configuration from the pipeline manifest:
- name: idea
checkpoint_required: true # Must we checkpoint?
human_approval_default: true # Must we ask the human?
checkpoint_required |
human_approval_default |
Action |
|---|---|---|
| true | true | Checkpoint + present to human for approval |
| true | false | Checkpoint + proceed automatically |
| false | * | Skip checkpoint entirely (rare) |
Step 2: Prepare Checkpoint Data
Gather everything needed for the checkpoint:
- Stage name — which stage just completed
- Status —
"completed"(or"awaiting_human"if approval needed) - Artifacts — the canonical artifact(s) produced by this stage
- Metadata — review findings, cost snapshot, timing info
Step 3: Write Checkpoint
Call the checkpoint utility:
write_checkpoint(
pipeline_dir, # Project working directory
project_name, # Project identifier
stage_name, # e.g., "idea"
status, # "completed" or "awaiting_human"
artifacts, # {"brief": {...}} — the stage's output
)
The checkpoint utility will:
- Validate the artifact against its schema
- Write the checkpoint JSON to disk
- Include timestamp and stage metadata
Step 4: Human Approval (If Required)
When human_approval_default: true:
-
Present a summary to the human:
## Stage Complete: [stage_name] ### Artifact Summary [Key details from the artifact — title, duration, key decisions] ### Review Findings [Summary from reviewer: N critical (all fixed), N suggestions] ### Cost So Far [Budget spent / total, breakdown by tool] ### Action Required Please review and approve to continue, or provide feedback for revision. -
Wait for human response:
- Approved → update checkpoint status to
"completed", proceed to next stage - Revision requested → go back to the stage director skill with the human's feedback, produce revised artifacts, re-review, re-checkpoint
- Abort → stop the pipeline
- Approved → update checkpoint status to
-
Approval stages (which stages typically need human approval):
idea— Always. The creative direction defines everything downstream.script— Always. The words are the foundation.scene_plan— Usually. Visual choices are subjective.assets— Rarely. Automated quality checks are sufficient.edit— Rarely. Technical assembly, not creative.compose— Rarely. But human may want to preview.publish— Always. Human must approve before anything goes public.
Step 5: Determine Next Stage
After checkpoint is written and approved (if needed):
next_stage = get_next_stage(pipeline_dir, project_name)
This reads all existing checkpoints and returns the next stage that needs to run, or None if the pipeline is complete.
Step 6: Resume Protocol
At the START of any pipeline run (not just after a stage), always check for existing progress:
next_stage = get_next_stage(pipeline_dir, project_name)
If next_stage is not the first stage:
- Inform the human: "Found existing progress. Resuming from stage: [next_stage]"
- Load prior artifacts from checkpoints for context
- Continue from that stage
If a checkpoint exists with status "awaiting_human":
- Inform the human: "Stage [name] is awaiting your approval"
- Present the checkpoint data for review
- Wait for approval before proceeding
Key Principles
-
Always checkpoint completed work. Even if
checkpoint_required: false, consider checkpointing anyway if the stage took significant time or cost. Losing work is worse than an extra file on disk. -
Never skip human approval on creative stages.
ideaandscriptshape everything. Rushing past them to save time produces videos nobody wants. -
Include cost snapshots. The human should know how much has been spent and how much remains before approving expensive downstream stages (assets, compose).
-
Checkpoints enable resume. If the pipeline crashes at
compose, the human can restart and it picks up fromcompose— not fromidea. This is the whole point. -
Be transparent in approval requests. Don't just show the artifact — show the review findings, the cost, and any concerns. Help the human make an informed decision.