strata19.create_or_get_checkpoint
Expert tool
What it does
Save, list, or restore a labelled checkpoint. action="save" (default) records the current git SHA and pins the spec revision (specRevision: a digest of the specbook's chunk states — an identity, not a copy: restore does not roll the specbook back). action="list" returns every checkpoint (id, label, createdAt, atSha); restore needs a checkpointId. action="restore" brings one back into a NEW directory by default (your tree is untouched); mode="in_place" rewrites the current tree (refusing on uncommitted changes unless force=true), then marks proofs measured on the rewound code Stale and reopens work completed after the checkpoint (reported in recordReconciliation).
When to use it
Use when: "checkpoint this" · "save our progress" · "restore the last good state" · "what checkpoints do we have"
Also use when: after a verified-green milestone, or before a risky refactor; call action="list" first when you need a checkpointId to restore
When not to use it
the state is unverified — run verify_implementation first. For restore, never pass force=true without explicit user consent
Availability
| Tier | Expert |
| Lifecycle | Live |
| Taught by | strata19-checkpoint, strata19-guarded-writes |