Agent Governance Mechanisms
A catalogue of the governance mechanisms that keep a fleet of AI coding agents productive while
holding the cost of their failures within bounds, distilled from a 19-week case study of building a
production system with frontier coding agents. Each mechanism is written like a design pattern: the
recurring failure it kills, and why it is not just the cheaper thing everyone already does.
Between two schools of thought
Two common ways to build with agents sit at opposite ends of a spectrum. This catalogue is about the
midway.
| Vibe coding | · Governance-centric · — the midway | Oversight-centric |
|---|
| Prompt, accept what looks right, iterate by feel. Fast, but the same failures keep recurring and human review becomes the bottleneck. | Let velocity expose failures, and convert each recurring one into a durable guardrail. The guardrails grow from real failures, so code stays fast and trustworthy. | Check everything before you trust it: a human reviewing every change, or a formal spec verified against (spec-driven development is this). Rigorous, but checking is the bottleneck, and neither humans nor specs anticipate what only breaks at velocity. |
| all velocity — no guardrails | velocity + guardrails grown from failure | all oversight — everything checked |
| e.g. Karpathy · Gas Town | | e.g. Meyer, CACM · vibe-OS / vibe-tools |
Both ends of the spectrum pay the pet tax. Each spends per-change human attention. You coax the
output at one end or inspect it at the other, and that attention grows with the size of the fleet until
it becomes the bottleneck. The midway is
cattle, not pets: build
the fences and chutes once, and the guardrails ride every change instead of a person.
The midway is a discipline: establishing and maintaining a governed engineering environment. It works
in two directions at once. Up front, you specify what you can: the architecture that makes a class of
error impossible, the model the fleet reasons through, the templates and checklists that put a change on
rails before it's written. In flight, you let velocity surface the failures you couldn't foresee, and
convert each recurring one into a durable guardrail. This catalogue describes both halves: the guidance on
what to fix in advance, and the machinery for responding when something slips through.
This middle column isn't new; what's new is the substrate. The process itself is the agentic-era
instantiation of quality practices long standard in regulated industry: documented process, requirements
traceability, verification tiers scaled to criticality, corrective-and-preventive action. Those programs
have always run on manually-maintained dead documents (Word, Excel, DOORS) that drift the moment they're
written and need dedicated staff to keep. Here the same process runs on executable, agent-maintained
models that can't drift. The traceability matrix is a queried model behind a drift gate. The process
rules are enforced infrastructure. The verification records are machine-checked against the code rather
than filed in a spreadsheet. The contribution isn't the assurance discipline; it's making that discipline
live, and tractable for a team of one.
Documentation, taken to its limit
This is the right way to read the whole catalogue. Anyone who has built with agents has found the first move
on their own: give them good documentation and tests, then point them at it. Agents write and maintain those
artifacts as fast as they write code, so the cost that always made thorough docs a fantasy is gone. The step
the training data won't suggest is the next one. Documentation has a hierarchy, and its top is not prose.
It is a typed model.
A context-bounded agent working on a context-exceeding system needs a typed, queryable, drift-checked
model of that system to reason through, the blueprint for a structure too large to hold in one view. That
is model-based software engineering, and it is the bridge between the agent and the codebase it can't fit
in its head. Two things make it more than a tidier README: