apply_plan
Execute a pre-defined change plan, with automatic rollback if any step fails. Supports dry-run to test without side effects.
Instructions
Execute a plan with automatic rollback on failure.
Args:
plan_id: ID of the plan previously created by plan_change.
dry_run: If True, execute steps without side effects (dry_run
executor is used regardless of registered engines).
confirm_each_step: Reserved for per-step elicitation in v2;
accepted but not enforced in MVP.
Returns: ApplyResult with execution status, executed steps, rollback info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| plan_id | Yes | ||
| confirm_each_step | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | success | |
| failed_step | No | ||
| executed_steps | No | ||
| rollback_handle | No | ||
| artifacts_changed | No | ||
| rollback_steps_executed | No |