rollback_apply
Undo a previous action by executing a rollback plan with security re-validation and confirmation.
Instructions
Execute the rollback plan for action_log[index]. The reversal call is re-dispatched through the same MCP handler used for forward actions, so it re-enters auth, rate-limiting, and input validation. On success, appends a new action_log entry tagged with rollback_of=index. Requires confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index into action_log to reverse. | |
| reason | No | Why this change is being made: one or two sentences naming the evidence and the expected effect. Stored in the journal and on the action_log entry this call produces, for the operator and the next session. | |
| confirm | Yes | Must be true to actually execute the rollback. A second-factor against accidental or injected apply calls. | |
| state_file | No | Path to STATE.json. |