rollback
Restore a project to a saved checkpoint by previewing what will change, then executing with a confirmation token to permanently discard memory changes made since that checkpoint.
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. `limit` (1-500) caps the
preview list; ignored in execute mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | preview | |
| limit | No | ||
| reason | Yes | ||
| snapshot_id | Yes | ||
| idempotency_key | No | ||
| confirmation_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||