AI coding agent quality gates: what eight governance frameworks enforce, and where Of eight AI coding agent quality gate frameworks reviewed as of 18 October 2026, four block nothing on a default install, according to an analysis of 16 governance frameworks for Claude Code, OpenAI Codex, Cursor and GitHub Copilot. The review cites Damon McMillan's May 2026 paper measuring 1,650 Claude Code sessions, in which a trivial annotation rule written in CLAUDE.md was followed in only 60% to 68% of generated functions, and recommends gap-trap (MIT, v0.2.2, 181 stars) because its gates run in CI and pre-commit regardless of agent cooperation. AI coding agent quality gates: what eight governance frameworks enforce, and where An AI coding agent quality gate is a check that decides whether an agent's step counts as done, run by something other than the model's opinion of its own work. As of 18 October 2026 I read 16 governance frameworks that promise such gates for Claude Code https://stackness.dev/tools/claude-code , OpenAI Codex https://stackness.dev/tools/codex-cli , Cursor https://stackness.dev/tools/cursor and GitHub Copilot https://stackness.dev/tools/github-copilot . Of the eight I compare here, four block nothing on a default install: they only warn, or the gate is text the agent is asked to follow. For most teams the pick is gap-trap https://stackness.dev/tools/gap-trap , whose gates run in CI and pre-commit whether the agent cooperates or not. What is an AI coding agent quality gate? An AI coding agent quality gate is a check between an agent's step and the word "done" that the agent cannot pass by saying it passed. Gates come in three kinds by where they run: instruction text in AGENTS.md or a skill, a hook or orchestrator in the agent's harness, and a required job in CI. Only the last two can stop an agent. The difference matters because instruction files are followed only part of the time. Damon McMillan measured https://arxiv.org/abs/2605.10039 1,650 Claude Code sessions in a paper published in May 2026: a trivial annotation rule written in CLAUDE.md was followed in 60% to 68% of generated functions, depending on the condition. The AGENTS.md format https://stackness.dev/tools/agents-md itself enforces nothing. Its site says the agent "will attempt to execute relevant programmatic checks" if you list them. A harness gate in Claude Code is a hook https://code.claude.com/docs/en/hooks that exits with code 2: a PreToolUse hook blocks the tool call, a Stop hook keeps the agent working. Two limits apply. Hooks fail open on errors and timeouts unless set to onFailure: "block" , and Claude Code overrides a Stop hook after eight consecutive continuations by default. A required CI check has neither limit. How I picked the eight I started from 13 repos that trended on GitHub and Hacker News in September, plus three that rank for the query, read every README, and read the hook or gate script wherever one exists. Eight made the list because they ship a gate of their own or are widely used enough to compare against. Star counts are from the GitHub API on 18 October 2026. Left out, and why: - spec-superflow https://stackness.dev/tools/spec-superflow gates completion only when the agent calls ssf workflow complete . The spec-driven development tools post https://stackness.dev/blog/spec-driven-development-tools-for-coding-agents-openspec-spec-kit-and-four-new-frameworks-compared covers it with OpenSpec https://stackness.dev/tools/openspec and Spec Kit. - AI Factory https://stackness.dev/tools/ai-factory has its gates write their own pass or fail verdict, and its repository has no licence file despite the MIT claim in its README. - Anbeeld's AGENTS.md is one instruction file with no checks: the control group. - AI Ready https://stackness.dev/tools/ai-ready generates an AGENTS.md and a CI workflow; it sets a repository up rather than gating it. - zl190/agent-gates 0 stars has a test gate that trusts a .test-passed file the agent can create itself. - deeppatternai/agent-quality-gates has one star. - Vibe Code Stack For CEOs is an app template with husky and CI gates already wired, not a layer for an existing repository. - Evidence Gate 's server-side check against criteria the agent never sees is announced, not shipped; its README says the hosted API "is not launched". The repos did not all appear in mid-September, as the topic assumed. Only gap-trap and deeppatternai were created that month. Most of the rest date from September 2025 to June 2026, and 11 of the 16 shipped a release in September or October. Eight agent quality gate frameworks, by where the gate runs gap-trap MIT · Claude Code, Codex · gate runs in CI, pre-commit and the test suite · v0.2.2, 29 September 2026 · 181 stars gap-trap reads the repository and writes per-area contracts into AGENTS.project.md , each with Owns: , Path: , Never: and Gate: lines, then installs a check per rule. Its gates verify that every path and symbol a contract cites still exists, grep for each Never: clause a text search can settle, fail a new test that already passes on the old code "proven red" , and stop counts of known problems from rising. The README states the problem in one line: "The rules are text, and the only thing that reads them is the agent that breaks them." Pick it to turn rules into checks the agent cannot skip. loki-seal Loki Mode BUSL-1.1 · Claude Code · gate runs in the harness SessionStart and Stop hooks · Loki Mode v11.17.58, 17 October 2026 · 1,098 stars loki-mode https://stackness.dev/tools/loki-mode ships loki-seal as a separate Claude Code plugin. It runs your test suite at session start for a baseline, then again at every stop attempt, and exits 2 on newly failing tests, a deleted test file, fewer assertions, new .skip or .only markers, or CI config softened with continue-on-error: true or || true . It lets the agent stop after five blocks, marked "NOT VERIFIED". The author lists what it misses: an assertion replaced with assert.ok true , and a model that edits the hook. The licence is free for personal, internal and non-commercial use and turns into Apache 2.0 in 2030. GSD Pi MIT · its own harness, with Claude Code and Cursor Agent as providers · gate runs in the harness · v1.22.0, 12 October 2026 · 1,326 stars GSD Pi https://stackness.dev/tools/gsd-pi is a coding agent of its own, so the gate sits in the orchestrator. After every task the host runs the configured verification commands , retries twice, and counts evidence only if it recorded each claimed command exiting 0: "A verification result with no host-run check is never a pass." In planning and docs units, writes outside allowed paths are "blocked with a hard policy error instead of relying on prompt compliance". I confirmed this from its docs and design records, not its source. Pick it if you will switch harness for gates the agent cannot argue with. MoAI-ADK Apache-2.0 · Claude Code · gate runs in the harness a Go hook binary · v3.1.2, 21 August 2026 · 1,236 stars MoAI-ADK https://stackness.dev/tools/moai-adk runs a spec lifecycle with separate auditor agents and a /moai gate command for lint, format, types and tests. Its Stop hook "Always returns 'allow'". The blocking happens elsewhere: a TaskCompleted hook refuses a task whose spec acceptance criteria are unchecked, and an opt-in guard rejects an auditor's PASS that cites no stored receipt. The README advertises v3.2; the latest tagged release is v3.1.2. Andon MIT · Claude Code · gate runs in the harness a Stop hook · v0.1.0, 5 September 2026 · 166 stars Andon https://stackness.dev/tools/andon 's Stop hook spots completion phrases in the agent's last turn and looks for a matching entry in a verification log, then blocks or warns. The default mode is warn. An opt-in mode, on main since the v0.1.0 release, accepts only a passing pytest , tox or similar run recorded in the Claude Code transcript. The known-limits section on main is candid: "The agent writes its own verification entry. Token overlap can accept unrelated work or a fabricated entry." Pick it when the failure is the agent saying done too early. Agentic OS MIT · Claude Code, Codex, Google Antigravity, plus Cursor and Copilot · gate runs in an opt-in pre-commit hook · v1.8.34, 18 October 2026 · 213 stars Agentic OS https://stackness.dev/tools/agentic-os scales phases to the task, from four for a tiny fix to nine for an architecture change, and keeps a work log per branch. Its validate.sh fails when a log lacks gate evidence receipts or skips a phase, and a credential scanner checks staged files. The README is plain about the limits: "A fresh install runs nothing by itself", work logs are gitignored so CI cannot check them, and ignoring the workflow is rated "Advisory, the same as a rules file". Aegis MIT · Codex, OpenCode, Claude Code and nine more · gate lives in skill text · v2.13.1, 18 October 2026 · 1,357 stars Aegis https://stackness.dev/tools/aegis is a skill pack derived from Superpowers https://stackness.dev/tools/superpowers for "baseline-first, evidence-verified, drift-checked" work. Its Drift Check makes the agent re-read the original intent, scope and stop condition during long tasks. Nothing blocks: the only hook injects context at session start, and the skills say "Never emit gate-passed ". The author's A/B run on version 2.7.6 with Codex raised the contract pass rate from 61.67% to 93.33% across 120 runs, scored by the author's own checks rather than by independent human review. AIGX MIT tools, CC BY 4.0 spec · writes rules for Cursor, Claude Code, Codex, Windsurf, Aider, Copilot · gate lives in instruction text, with a CI lint of the rule index · v1.3.3, 20 June 2026 · 145 stars AIGX https://stackness.dev/tools/aigx keeps per-file rules with stable IDs in .aigx/ , including