# How to test the branch tip after landing and revert the culprit with git-ai

Repo: [feder-cr/git-ai](https://github.com/feder-cr/git-ai) | Difficulty: Advanced | Time: 1 hour 30 minutes | Basis: From the README

Run graft-verify so a failing tip is bisected and the change that broke it is reverted without a human.

**Who it is for:** Maintainer whose agents land fast and who needs broken builds caught after the fact, not before every land

**The problem:** When many changes land at once, finding which one broke the tests means manual bisecting while main stays red.

**The outcome:** A failure on the tip is bisected to the offending change, which is reverted automatically.

## Steps

1. Read doc/graft/VERIFY.md for how graft-verify is configured
2. Point graft-verify at your repository and test command
3. Land a deliberately failing change from one agent
4. Check that graft-verify identifies and reverts that change

## Prompt to paste into your agent

```text
In feder-cr/git-ai, set up graft-verify per doc/graft/VERIFY.md against <repo-path> with the test command <test-cmd>. Land one change that fails the tests and verify it gets reverted.
```

## Caveat

An automatic revert rewrites your branch, so only point it at a throwaway or fully backed-up repo first.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/feder-cr-git-ai/auto-revert-the-change-that-broke-main/
