The default safety ritual for AI-written code is familiar: generate a change, then ask a developer to read every line. It sounds prudent because it preserves the old review process. It is also a strategy with a short half-life. As agents take on longer tasks and produce larger diffs, exhaustive inspection becomes expensive, inconsistent, and eventually ceremonial.
The answer is not to wave changes through. It is to move scrutiny to the places where engineering intent can be tested. Humans are poor at proving a large patch correct by staring at it. They are much better at defining invariants, spotting architectural drift, challenging assumptions, and judging whether evidence actually supports a claim.
This is a shift from supervising keystrokes to supervising a control system. The agent proposes actions; the environment constrains them; tests and telemetry produce evidence; a person intervenes when the evidence is weak or the consequences are hard to reverse. Kief Morris describes a related posture as being “on the loop”: managing the working loop rather than either micromanaging every step or leaving the agent entirely unattended.
Review the contract before the implementation
Before an agent edits code, the team should specify what must remain true. That contract can include public API behavior, authorization boundaries, data-migration rules, performance budgets, compatibility requirements, and prohibited dependencies. These constraints are more valuable than a long prompt describing how to write the code. They define the space of acceptable outcomes without prematurely dictating one path.
Next comes evidence. A credible agent run should leave behind more than a diff. It should record the task interpretation, commands executed, tests added or changed, test results, external resources consulted, and unresolved uncertainty. If it modified a database schema, the evidence should cover forward migration, rollback, and mixed-version operation. If it changed access control, the evidence should include negative tests showing who remains excluded.
This run record is not bureaucratic exhaust. It is the object a reviewer can interrogate. A suspiciously green result—such as a test that never exercised the changed path—becomes easier to detect when the execution trace is visible. Open standards such as OpenTelemetry offer a useful mental model: traces connect actions, causes, and outcomes across a distributed system. Agent work needs a comparable chain of custody.
Make autonomy proportional to reversibility
Teams often debate whether agents should be allowed to commit, merge, or deploy as if autonomy were a single switch. It should be a gradient determined by blast radius and reversibility. Updating generated documentation is not equivalent to changing payment authorization. A small dependency patch behind comprehensive tests is not equivalent to an irreversible data migration.
A practical policy assigns each task class an autonomy envelope. Low-risk work may proceed automatically when required checks pass. Medium-risk work can produce a ready-to-merge change with targeted human approval. High-risk work should stop at a plan, simulation, or isolated environment. The model’s confidence should not determine the envelope; the consequences of being wrong should.
Reversibility must also be engineered rather than assumed. Feature flags, canary releases, idempotent migrations, shadow traffic, and automatic rollback turn potentially dangerous changes into observable experiments. These techniques predate coding agents, but agents make them more valuable because they raise the volume and speed of proposed change.
The review interface should evolve accordingly. Instead of presenting a thousand-line diff as the primary artifact, it can begin with behavioral changes, violated or preserved invariants, risk classification, test evidence, and areas of uncertainty. The raw diff remains available for investigation, especially around sensitive code, but it no longer carries the entire burden of assurance.
Do not let the agent grade itself
There is one hard boundary: generation and acceptance should not depend on the same unchallenged reasoning process. An agent that writes a flawed implementation may also write tests that encode the same misunderstanding. Independent checks can come from deterministic tooling, existing regression suites, separate evaluation prompts, different models, or human domain experts. Independence matters more than theatrical numbers of “reviewer agents.”
Teams should also sample successful runs. If humans inspect only failures, silent degradation can accumulate behind green dashboards. Random audits reveal weak tests, unnecessary complexity, and patterns of near misses. They provide training data for improving the harness and adjusting autonomy envelopes.
Agentic development will not remove software engineering discipline. It will punish teams whose discipline exists only as manual attention. The scalable unit of trust is not a developer saying, “I read the diff.” It is a system showing that the change respected explicit constraints, produced independent evidence, exposed its uncertainty, and can be reversed. That standard is stricter than line-by-line review—and far more compatible with the amount of software agents are about to write.
Advertisement