Rollback

From qwerfunch/cladding · View interactive version

Rollback is an AI agent skill from the GitHub repository qwerfunch/cladding. Record a rollback event and print the maintainer-runnable git command for the most recent checkpoint of a feature. Use when an implementation attempt failed, an autonomous drive loop hit RETRY_THRESHOLD, or the user wants to abandon the current attempt and restore the pre-checkpoint state. Activate

How to use this skill

Skill file

Cladding rollback

Run clad rollback <featureId> from the project root. The verb is the partner of clad checkpoint (iron-law.md §2.5 Iron Law backbone Phase 1) — it stamps a feature_rolled_back event into .cladding/events.log.jsonl and prints the git checkout <sha> command the maintainer can run. Cladding does not run the checkout itself — the host's branch policy, dirty-working-tree state, or detached-HEAD concerns may demand a non-default strategy, so the decision stays with the maintainer.

clad rollback F-001
clad rollback F-a3f9c2e1 --reason "specialist dispatched a regression on the L1 lint gate"

The output is a single Pulse line plus the restoration command:

✓ rollback · F-a3f9c2e1  target head=<sha12> ts=<iso>
Run: git checkout <sha40>

When the latest checkpoint has no gitHead (the project is not a git repo), the verb prints No git head pinned — restore spec.yaml manually from VCS history. instead.

Exit codes

When to use

Pair with

clad checkpoint <featureId> — stamps the safety net rollback restores from. See skills/checkpoint/SKILL.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.