{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "naw103-foremerge--gate-agent-handoffs-on-a-real-check",
 "repo": "naw103/foremerge",
 "repo_url": "https://github.com/naw103/foremerge",
 "repo_slug": "naw103-foremerge",
 "title": "Gate agent handoffs on a test command Foremerge runs",
 "page_title": "How to gate agent handoffs on a test command Foremerge runs with Foremerge",
 "summary": "Register a trusted check so work counts as done only after Foremerge runs it itself.",
 "who": "A developer who wants a finished agent's work verified by a command before other agents treat it as done.",
 "problem": "An agent's own claim that its work passes is not enough for other agents to rely on.",
 "outcome": "Accepted work is verified by a registered check that Foremerge runs, or is recorded as UNVERIFIED with the reason when no check was registered.",
 "steps": [
  "Register a fast check that would catch a broken handoff, such as `foremerge checks set test -- cargo test --all-targets`, replacing it with your repository's command.",
  "If the repository has nothing meaningful to verify, run `foremerge checks policy advisory` once instead of registering an always-passing check.",
  "Run `foremerge doctor` to confirm the registered checks can run in agent worktrees."
 ],
 "agent_prompt": "In the <repo path> repository, register one check with `foremerge checks set` using the repository's real test command, then run `foremerge doctor`. Expected output: a doctor report stating whether the check can run in this worktree. Verify that the check does not always pass before you rely on it as a gate.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The gate decides whether other agents may treat work as done but does not replace CI, and the project is a pre-1.0 local-first MVP.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "Git and jq installed",
  "macOS or Linux, or the Windows binaries from the releases page",
  "A Git repository to coordinate, with at least one coding agent or a shell to act as one",
  "Rust 1.85+ only if you build from source"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/naw103-foremerge/gate-agent-handoffs-on-a-real-check/",
 "md": "https://dedupedai.com/use-cases/naw103-foremerge/gate-agent-handoffs-on-a-real-check/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.",
 "api": "https://dedupedai.com/api/v1/usecases/naw103-foremerge--gate-agent-handoffs-on-a-real-check.json",
 "api_version": "v1"
}
