execute_migration
Execute token migration with automated reference updates, validation, and rollback. Defaults to dry-run for safe preview before applying changes.
Instructions
Execute token migration with automated reference updates, validation, and rollback. Applies scenario phases to token system, updates references across codebase, validates integrity (no broken refs/circular deps), and checks accessibility. DEFAULTS TO DRY RUN for safety - set dryRun:false to apply changes. Creates snapshot before execution for rollback if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview mode - shows what would change without applying. DEFAULT: true (safe mode). | |
| pathPrefix | No | Only migrate tokens starting with this prefix. Useful for scoped migrations. | |
| scenarioId | No | Scenario ID to execute (from generate_refactor_scenarios). Default: uses conservative approach. | |
| phaseNumber | No | Execute only this phase number. Default: executes all phases in sequence. | |
| stopOnError | No | Stop execution on first error. Default: true. | |
| createSnapshot | No | Create snapshot before execution for rollback. Default: true. | |
| skipValidation | No | Skip post-execution validation checks. Default: false. |