Code is no longer the scarce part. Trust is.
A surprising amount of engineering process was calibrated around one assumption: how fast a human could write code.
Estimates, review queues, onboarding, QA. The whole system was sized for code arriving at human speed. That speed is gone. The processes are still here.
For the past several months, I've been running an R&D organization where AI writes most of the first drafts. What surprised me wasn't the speed. It was how much of our engineering process quietly stopped doing its job, without anything visibly breaking.
AI didn't just make code faster. It exposed assumptions the entire delivery process was built around.
The author understood the change. Code review was built around a simple idea: the person who wrote the code understood what they were changing, and the reviewer was there to challenge their thinking. With AI, you can merge a change nobody fully understands. Not the person who generated it, and not necessarily the person who reviewed it. If you've asked why a line exists and heard "the model added it," you've already met this problem.
Context moved at the speed of people. The reasons behind a system (why a service is split, why a retry exists, which harmless-looking cleanup broke production last time) used to spread gradually through pairing, reviews and experience. That was manageable because output was slow too. Now someone can generate enormous amounts of code in their first week without any of that context. Output outruns understanding.
Trust was checked at the end. Almost every gate we built sits after the code exists. That made sense when writing was expensive and waiting was cheap. Now writing is cheap, and what's expensive is building the wrong thing quickly. Trust has to move earlier, to where decisions are made, and later, to where actual behavior is observed.
The old model was simple. Now there's a hole in the middle.
The instinct is to plug that hole with more review. But more review just creates more queues around the same bottleneck, while consuming the attention of the people you can least afford to lose.
I don't think the answer is better reviewers. It's a system designed to produce trust as deliberately as AI produces code.
This is what that system looks like for us: what's working, what isn't, and what we're still figuring out. It follows a change through the organization: deciding what to build, making context available, shaping the work, verifying it, owning it, and releasing it safely. Then what all of this means for the people doing the work, and where I'd start.
If you didn't decide it, the model did
Writing code used to force decisions. You couldn't implement a retry without choosing how many times. You couldn't add a field without deciding who owns it. The slowness wasn't just friction. It was where the thinking happened.
AI still makes those decisions. It just doesn't announce them.
Every choice a prompt leaves open gets filled in by the model, quietly, inside a diff that looks reasonable. A lot of what I send back in review isn't incorrect code. It's a decision nobody made deliberately.
So we moved decisions to where they're cheapest: before the branch exists.
A few habits made the biggest difference.
Separate the design from the plan. The design explains what changes and why, in plain English, so humans can agree on the intended outcome. The plan explains how to implement it, step by step, so an agent can execute it. Mix the two, and reviewers start skimming past important decisions buried in implementation details. Keep them separate, and the design stays short enough to challenge while the plan becomes concrete enough to delegate.
Give the spec a reading budget. A specification nobody reads to the end is theater. We aim for roughly 200 lines. That's a working constraint, not a universal law. If the design doesn't fit, the change may be too big, or we may not understand it well enough yet. Both are worth discovering before code exists.
Ask one question before every branch. Features usually get specifications by default. Bugs and "small" changes don't, which is exactly where ambiguity hides. Before creating a branch, we ask: does this change a flow, a contract, or something another team depends on? If yes, it's not just a fix. It's a design, and it goes to the spec first.
In The Diff Is Lying to You, I wrote about a flow rework that shows up wearing the costume of a bug fix. This question is how we try to catch that before the code is written, rather than discovering it during review.
The payoff is counterintuitive. Once the decision is right, you can regenerate the code, rewrite it, or throw it away.
Code is disposable. Decisions aren't.
The file with the most leverage has no code in it
A decision only helps if the next change, and the next agent, can find it.
Our repository has a plain-text file that explains how we work. Not how the code works. How we work: what we never do in this service, which patterns we've abandoned and why, and what a reviewer will consistently push back on.
That knowledge always existed. It lived in people's heads, built up through months of reviews, pairing and hallway conversations. Agents don't absorb that experience. They read. So we started writing it down for them. It turned out to be just as useful for the next engineer joining the team.
It's also what makes AI-assisted review meaningful. A model reviewing code against your actual engineering rules gives very different feedback from a model reviewing code without that context.
Most of the file grows the same way. Someone writes the same review comment for the second time, about a pattern we've stopped using or a shortcut that caused problems before. That's the signal. If I have to write the same comment twice, the problem isn't the author. It's a missing rule.
Once the rule is written down, the correction happens before the code exists.
That makes this file powerful in a way that's easy to underestimate. A one-line edit can influence more code than a thousand-line pull request, because it shapes every change that follows.
So we treat it like production configuration. Changes to these rules, and to the prompts our agents run on, have a named owner and go through review, just like changes to infrastructure.
Some of the most useful entries are closed questions. An agent can't respect a decision it has never seen. Left alone, it will happily "improve" something the team argued about for a week and deliberately settled. We write down what's been decided and why, so reopening it becomes an intentional act rather than a side effect of a refactor.
A review comment fixes one pull request. A rule fixes every one after it.
Size was never the risk. Mixing was.
For years, "keep PRs small" was some of the safest advice in engineering. Small usually meant simple, and simple meant reviewable. It was always a rough rule. AI made the exceptions the norm.
A rename across 40 files is one mechanical change. An agent can produce it almost instantly, and you can verify it in minutes. A four-file change can mix three separate decisions: a schema change, a behavior change, and a "while I was in there" cleanup.
Agents are particularly good at "while I was in there."
So a 40-file pull request can be easier to review than a four-file one. The number of lines tells you very little about the number of decisions you're being asked to approve.
We stopped shaping work by size and started shaping it by decision.
One decision per pull request. If the description needs the word "also," there's a second PR in it.
Mechanical changes travel alone. Renames, moves, generated code and similar work get separated so they don't bury the decision that actually needs review.
Big work becomes a sequence. Schema first, then backend, then UI. Each step can be reviewed on its own and gives us a clean place to stop if something isn't right.
Every PR in the sequence explains what it's part of. The reviewer sees the individual change, but also the larger plan behind it.
This changes the review itself.
The question is no longer "how much code is here?" It's "what decision am I being asked to trust?"
Ten checks nobody trusts are worth less than one everyone does
A change you can understand still isn't a change you can trust. That's what verification is for.
We have exactly one required check on every pull request. That doesn't mean we run fewer checks. Builds, tests, linters and scans all feed into a single required gate that must pass before anything merges.
The reason is behavioral.
When you have ten separately required checks, people learn which ones are "always flaky," which ones can be retried, and which ones don't really matter. Every exception seems reasonable on its own. Over time, the team learns that red is negotiable.
AI makes that habit much more expensive. When the volume of code goes up, nobody can keep a reliable mental list of which failures to take seriously. The system has to make that obvious.
So we treat the gate like a product, with an owner. If it's slow, noisy or unreliable, that's a bug with someone's name on it, not background noise everyone learns to live with.
And red is a bug, not a button.
A test you can rerun until it passes isn't protecting anything. We're not perfect here; some builds still fail for reasons we'd rather not have. But the answer is to fix the underlying problem or remove a check that provides no value, not to retry and hope.
There's another part that's easy to overlook: testing the tests.
A test can look convincing and still prove nothing. The important question isn't whether the test passes. It's whether it fails when the code is wrong. So we check that our tests actually catch the failures they're supposed to catch. If broken code can pass them, the review stops there.
Green isn't proof. It's a claim the gate has to earn.
If an agent wrote it and you merged it, it's yours
Recently, an agent opened a pull request that fixed a real bug. The fix was correct. Nobody had asked for it, and nobody was ready to own it.
So I closed it.
That's what AI governance comes down to in practice. Not just what tools are allowed to do, but who is accountable for what they do.
You can't page a model. You can't hold it responsible for a decision it made last Tuesday. The responsibility stays with the people building and operating the system.
We've settled on three rules.
The human is the author of record. Our commits and pull requests don't credit the agent as the author. That's not about hiding how the work gets done; this entire article is about making that work visible. It's about ownership. The person who merges the code is accountable for it. They need to understand the decision they're approving and be willing to stand behind it.
Agents propose. People decide. Agents can draft, review, investigate and suggest. They don't push to shared branches or merge without explicit approval. A useful change nobody asked for can still be the wrong change to ship.
Read widely. Write narrowly. An agent can read the repository, logs and history. More context makes its decisions better. But what it can modify is scoped to the task, and nothing reaches production without a human in the approval path.
None of this is about distrusting the tools. It's the opposite.
The clearer the boundary, the more room you can give.
Autonomy isn't a permission you grant. It's a line you move.
Boundaries are where autonomy starts, not where it ends. The harder question is when to move them.
Every delivery pipeline has a line. On one side, machines act on their own. On the other, a human has to say yes.
We build autonomous remediation for production systems, so this question isn't abstract for us. The same principles apply to our own engineering.
It's tempting to draw that line once and never touch it again.
Ours has already moved. Today, merges deploy to staging automatically. An automated test run then exercises the release on staging, and when it passes, the same commit goes to production on its own. Nobody clicks "promote."
That step used to be a person, doing a sanity check on the exact commit before it went out. What made it safe to automate wasn't speed. It was that the evidence a person looked at, what changed and how the release behaves on staging, is now checked automatically, the same way every time.
That's what a human approval is for in the first place. Not to review the code again, but to look at evidence. An approval without evidence is just a ritual. So is one nobody feels able to refuse. Once a system checks the evidence more consistently than a person can, keeping the person there becomes the ritual.
But there's a limit to what pre-production checks can tell us. CI and staging can show that code behaves as expected under the conditions we tested. Only production can tell us how it behaves under the conditions we actually have.
That's why every release should create evidence for the next one. Before a change ships, we should know what we're going to verify afterward. Once it's in production, we should be able to see whether the expected behavior showed up, whether reliability was affected, and whether anything needs attention. What production confirms, and what it exposes, goes on the record.
We're not all the way there. Deciding where the line goes next still relies mostly on judgment. The goal is for it to rely on the record.
And some changes should never cross the line. Deleting data, rewriting a schema or changing a contract customers depend on can have consequences a rollback can't undo. Those get an explicit human decision before they ship, whatever the record says.
CI earns the merge. Production earns the autonomy.
The job didn't shrink. It moved.
When AI started writing most of our first drafts, I kept asking myself: so what are engineers for now?
A few months into working this way, I think I have a better answer.
The work moved upstream, into deciding what should be built, making the right context available, and defining what earns trust. And downstream, into verifying outcomes and taking responsibility for what ships.
That changes the job at every level.
For senior engineers, the leverage isn't just solving the hardest problems themselves. It's making their judgment reusable: documenting why the system works the way it does, encoding decisions into the process, and giving both people and agents the context to make better ones.
For engineering managers, it's less about tracking output and more about directing attention. Which decisions need discussion? Which changes deserve deep review? Where is the team relying on a signal that no longer means what it used to? The job is making sure good decisions don't depend on who happens to be in the room.
For junior engineers, it means being more deliberate about learning. When writing code no longer guarantees the reps that build experience, we have to create opportunities to explain decisions, trace consequences, understand failures, and own a change from intent to production. Being able to generate code isn't the same as knowing how to engineer a system.
For SREs and platform engineers, it means making safe autonomy possible. Deployment, observability, failure detection and recovery increasingly decide how much work can be delegated safely. Reliability stops being something you check after development and becomes what lets you deliver faster.
And for engineering leaders, it means asking different questions about productivity.
"How much code did we ship?" is becoming the wrong question. Better ones: How quickly can we move from an intentional decision to a verified production outcome? How often do we discover that something was misunderstood? How much time do experienced engineers spend correcting preventable mistakes instead of improving the system?
Those are much closer to what tells you whether an AI-first engineering organization is actually getting better.
None of this happens automatically. Faster code generation can just as easily produce faster mistakes, more review noise, and engineers who ship more without understanding more.
The challenge is making sure it doesn't.
Filling the gap
Back to the hole in the middle. Here's what we've been putting there.
Decisions made before the branch exists. Context written down where people and agents can find it. Changes shaped so a reviewer knows exactly what they're being asked to trust. A gate that means what it says. A person who owns every merge. And a line between machine and human that moves on evidence, not hope.
That isn't more process around AI. It's what lets a team move fast without guessing.
If I were starting on Monday, I'd make six small changes.
- Before the next branch, ask whether the change touches a flow, a contract, or something another team depends on. If it does, write the design first.
- Take the review comment you're most tired of writing and turn it into a written rule that both your engineers and your agents can read.
- Look at your last few pull requests and split any that needed the word "also."
- Count your required checks and list the ones people routinely rerun. Each one is either a problem to fix or a check to remove.
- Write one sentence about agent output: whoever merges it owns it.
- At your next production release, ask for evidence instead of a second review. What changed? What did staging show? What will you verify after it ships? Then ask whether a system could check that evidence instead.
Code is no longer the scarce part. The people who make it trustworthy are.
This is the sequel to The Diff Is Lying to You, which explored how to read AI-written code at volume. This article is about the system around it: everything that needs to be true before, during, and after the review.
