rollback
Recover from a bad run by restoring the project to a saved checkpoint; preview changes first, then confirm to discard newer memory.
Instructions
Restore the project to a checkpoint. DESTRUCTIVE in execute mode.
Two stages, and you must run them in order:
1. `mode="preview"` is free and changes nothing. It reports what would
be created, updated, and removed, and returns a short-lived
`confirmation_token`.
2. `mode="execute"` requires that token and permanently discards every
memory created or changed since the checkpoint.
Execute fails with `state_changed_since_preview` if the project
changed after the preview, so review the preview and act on it
promptly rather than reusing an old one. `reason` is required in both
modes and is written to the audit trail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | preview | |
| reason | Yes | ||
| snapshot_id | Yes | ||
| idempotency_key | No | ||
| confirmation_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||