{
 "schema_version": 1,
 "generated": "2026-10-19",
 "id": "feder-cr-git-ai--auto-revert-the-change-that-broke-main",
 "repo": "feder-cr/git-ai",
 "repo_url": "https://github.com/feder-cr/git-ai",
 "repo_slug": "feder-cr-git-ai",
 "title": "Test the branch tip after landing and revert the culprit",
 "page_title": "How to test the branch tip after landing and revert the culprit with git-ai",
 "summary": "Run graft-verify so a failing tip is bisected and the change that broke it is reverted without a human.",
 "who": "Maintainer whose agents land fast and who needs broken builds caught after the fact, not before every land",
 "problem": "When many changes land at once, finding which one broke the tests means manual bisecting while main stays red.",
 "outcome": "A failure on the tip is bisected to the offending change, which is reverted automatically.",
 "steps": [
  "Read doc/graft/VERIFY.md for how graft-verify is configured",
  "Point graft-verify at your repository and test command",
  "Land a deliberately failing change from one agent",
  "Check that graft-verify identifies and reverts that change"
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour 30 minutes",
 "basis": "readme",
 "caveat": "An automatic revert rewrites your branch, so only point it at a throwaway or fully backed-up repo first.",
 "category": "Software & DevOps",
 "tags": [
  "Software & DevOps"
 ],
 "lang": "go",
 "requirements": [
  "Linux or macOS",
  "Go 1.26, a C toolchain, Meson and Ninja (the build compiles a bundled Git)",
  "No paid keys needed; conflict resolution can use any LLM provider, a deterministic tool, or none",
  "SQLite or PostgreSQL plus object storage (file, S3, GCS, Azure) only if you move the repo state off local Git"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "best": false,
 "score": 0.471,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/feder-cr-git-ai/auto-revert-the-change-that-broke-main/",
 "md": "https://dedupedai.com/use-cases/feder-cr-git-ai/auto-revert-the-change-that-broke-main/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly."
}
