cad-undo · git:20260805.43a55f2 · 2026-08-05 · sha256 955a79e672bf69b6
cad-undo git:20260805.43a55f2A
Immutable. This exact content is served forever at /api/v1/blob/955a79e672bf69b6.
---
name: cad-undo
description: "Safely roll back a phase's commits - discover the hashes from the phase SUMMARY manifest, guard against a dirty tree, revert (or --no-commit squash to re-do), and reset the phase's status. Reports later work factually instead of guessing dependencies"
argument-hint: "<phase N> [--no-commit]"
allowed-tools:
- Read
- Edit
- Bash
- Grep
- Glob
- AskUserQuestion
---
<objective>
Undo a phase's work by reverting its commits, using the phase SUMMARY.md as the
manifest of exactly which hashes to touch (cad-execute records commits-per-task
with hashes there). Safe by construction: never runs on a dirty tree, never
guesses. No heuristic dependency-check - instead cad-undo states plainly
whether later phases exist and lets the user decide.
</objective>
<execution_context>
@${CLAUDE_PLUGIN_ROOT}/cadence-core/workflows/undo.md
@${CLAUDE_PLUGIN_ROOT}/cadence-core/references/git-guard.md
</execution_context>
<process>
Run the undo workflow end-to-end. Refuse on a dirty tree. Show the exact hashes
and get confirmation before reverting. Reset the phase's status as part of the
rollback (this is the one legitimate exception to cad-verify owning status).
</process>