Skip to content
Marvex

AI engineering

What Changes in Code Review When a Machine Writes the First Draft

Making one stage of a pipeline faster does not make the pipeline faster. It moves the queue to the next stage, and the next stage here is a person reading.

When authoring gets cheap, review becomes the binding constraint on delivery, which forces changes in how work is sized, how reviews are routed, what reviewers are asked to verify and how review capacity is planned.

AI EngineeringMarvex EngineeringEngineering Intelligence, Shiprocket10 min read
A screen of code being read line by line during review

The constraint moves, it does not disappear

In most teams, review was already the longest stage of a change's life. Writing takes hours; waiting for a first response takes days. That asymmetry existed before generative assistants and it is the reason cycle-time work has focused on review latency for years.

Cheap authoring does not fix that. It makes it worse in two compounding ways: more changes arrive, and each one can be larger for the same authoring effort. Review capacity is unchanged, because it is bounded by human attention, so the queue grows. The visible symptom is that everyone feels faster while lead time does not improve, which is confusing until you look at the stage breakdown.

This is straightforward queueing behaviour. Increasing arrival rate at a station whose service rate is fixed increases the waiting time, and the increase is not linear — as utilisation approaches capacity, waiting time rises sharply. A review system that was comfortable at seventy percent utilisation becomes visibly painful at ninety, and the transition feels sudden.

The practical consequence is that an organisation adopting AI assistance should expect to invest in review at the same time, and should watch pickup time as the leading indicator. If pickup time is rising while authoring gets faster, the gain is being converted into queue rather than into delivery.

  • Review was the longest stage before assistants; it still is
  • More changes plus larger changes against fixed human attention grows the queue
  • Waiting time rises non-linearly as review utilisation approaches capacity
  • Rising pickup time alongside faster authoring means the gain became queue

Size becomes the primary control

Pull request size was always correlated with review quality and review latency: large changes wait longer for a first response, because reviewers defer them until they have a clear block of time, and they receive shallower attention when they are finally read, because attention degrades with volume.

What has changed is that the natural brake on size has weakened. Writing eight hundred lines used to take long enough that the cost was felt by the author; now it may not. The constraint that determines whether a change can be reviewed properly — how much a person can hold in mind at once — has not moved at all. So size has to become an explicit limit rather than an emergent property of effort.

Set the limit at the point where a review is a fifteen-to-thirty-minute job rather than an afternoon that has to be scheduled. The exact threshold depends on the codebase and the kind of change, and mechanical diffs like generated migrations or lockfile updates should be excluded or counted separately, because a five-thousand-line lockfile change is not five thousand lines of review.

Separate the mechanical from the considered inside a change, too. A pull request that is four hundred lines of scaffolding and forty lines of business logic is much easier to review well when those are in different commits or different pull requests, because the reviewer can allocate attention deliberately instead of skimming uniformly.

Track size as a first-class metric rather than as a review-time complaint. Marvex reports pull request size alongside cycle time and review depth, which makes a size trend visible while it is developing rather than after review latency has already deteriorated.

  • Large changes wait longer and are read less carefully — both effects are well established
  • The authoring brake on size weakened; the reading constraint did not
  • Target a change a reviewer can complete in one sitting
  • Split mechanical from considered work so attention can be allocated
  • Watch the size trend directly, not through review complaints

What the reviewer is being asked to do changes

When a human wrote the first draft, the review was partly a check on execution: did they handle the error, did they miss the edge case, is this the right abstraction. When a machine wrote the first draft and a human curated it, the review is mostly a check on judgement: was this the right thing to build, are these assumptions true, does this belong here.

That is a more senior activity, and it needs the material to support it. A pull request description that states intent, constraints and the alternatives considered is no longer a nicety; without it the reviewer has no way to evaluate judgement and falls back to checking self-consistency, which generated code always passes.

It also changes what is worth commenting on. Style and formatting should be gone entirely into tooling. Boilerplate correctness deserves a skim. The attention goes to boundaries, cross-system assumptions, data handling, and whether the tests assert the requirement or merely mirror the implementation.

One consequence deserves saying plainly: this makes review harder to delegate to junior engineers, and that matters, because reviewing code has always been one of the main ways people learn a codebase. If review becomes purely a senior judgement activity, a learning path closes. Teams that care about this need to keep juniors reviewing — pairing on reviews, reviewing smaller changes, reviewing with an explicit checklist — rather than routing everything to the most experienced person available, which is what a queue under pressure does by default.

  • Review shifts from checking execution to checking judgement
  • Intent, constraints and alternatives in the description become load-bearing
  • Attention goes to boundaries, assumptions, data handling and test validity
  • Protect junior review participation deliberately, or a learning path closes

Routing and capacity have to be managed

When review is the constraint, ambiguity about whose turn it is becomes expensive. A pull request that is assigned to a team rather than a person sits until someone volunteers, and under load nobody does. Explicit routing — a named reviewer, a rotation, a clear escalation after a defined interval — removes a source of delay that costs nothing to fix.

Cap concurrent reviews per person the way you cap work in progress. A reviewer holding six open reviews is doing all of them slowly and none of them well, and the person waiting cannot tell the difference between "not started" and "in progress".

Plan review capacity explicitly rather than treating it as a residue of whatever time is left after feature work. If an organisation has decided that authoring throughput should rise, review time has to be allocated, and the allocation has to appear in what the team commits to. Otherwise review is unpaid work that competes with the work people are actually measured on, and it loses.

Watch first-response time as the primary operational signal. It is the most sensitive indicator of review health, it is the stage most directly affected by routing and capacity, and it is measurable without any process change. Marvex separates first-response or pickup time from review, rework and merge time precisely so this can be tracked as its own series rather than buried in an aggregate.

And use "worked on" rather than authorship when you look at who is carrying load. A member who authored at least one non-merge commit in a pull request participated in it; counting only the nominal author will understate the effort of people who habitually help finish other people's changes, who are frequently the same people carrying the review load.

  • Name a reviewer; team-assigned reviews stall under load
  • Cap concurrent reviews per person like any other work in progress
  • Allocate review capacity explicitly or it loses to measured feature work
  • First-response time is the most sensitive signal of review health
  • "Worked on" captures contribution that authorship counts miss

Move checks earlier so review sees less

The most durable answer to a review bottleneck is not to review faster but to give review less to do. Every class of defect that a machine can catch reliably should be caught before a human opens the change: formatting, lint rules, type errors, dependency and licence checks, security scanning, and tests derived from the requirement.

Strict typing earns more than it used to. A whole category of plausible-but-wrong generated code — a field that does not exist, a value of the wrong shape, a nullable treated as non-null — is caught by a type checker without a human reading anything. Investment in type coverage now pays back against a higher volume of generated code than it did when everything was hand-written.

Tests written from the requirement, before or independently of the implementation, are the other high-leverage move. They are the check that generated code cannot satisfy by construction, because they encode what the feature is supposed to do rather than what this implementation happens to do.

Context given to the assistant before writing is a form of early checking too. Repository conventions, architectural constraints and worked examples shape the first draft towards something reviewable, which is cheaper than correcting it afterwards. This is the same principle as shifting quality left, applied one stage further left than usual.

Then watch rework time to see whether it is working. Rework is the loop between review comments and revisions, and a falling rework share alongside stable review depth is the signal that defects are being prevented rather than caught. A rising rework share means the checks are still too late, regardless of how thorough review feels.

  • Automate every defect class a machine can catch reliably, before human review
  • Type strictness catches a specific and common class of generated error
  • Requirement-derived tests are the check generated code cannot satisfy by construction
  • Context given before authoring shapes a more reviewable first draft
  • Falling rework with stable review depth means prevention is working
code reviewAI engineeringcycle timebottleneckpull requests

Frequently asked questions

Why does faster AI-assisted authoring not automatically shorten lead time?

Because authoring is rarely the constraint. Lead time is the sum of several stages and in most teams a change spends far longer waiting for a first review than being written. Speeding up one stage of a pipeline moves the queue to the next stage rather than removing it, and here the next stage is bounded by human attention, which does not scale with tooling. The visible symptom is that everyone feels faster while lead time is flat — resolved by reading cycle time stage by stage.

Why does pull request size matter more when code is AI-assisted?

Because the natural brake on size has weakened while the constraint that governs review quality has not. Writing eight hundred lines used to cost enough time that the author felt it; with assistance it may not. How much a reviewer can hold in mind and meaningfully verify is unchanged. Large changes also wait longer for a first response, because reviewers defer them until they have a clear block of time, and receive shallower attention when finally read. Size therefore has to be an explicit limit rather than an emergent property of effort.

What should a pull request description contain when the code was AI-assisted?

Intent, constraints and the alternatives considered. When a machine wrote the first draft, the review is mostly a check on judgement — was this the right thing to build, are these assumptions true, does this belong here — and without a stated intent the reviewer can only verify that the code is self-consistent, which generated code reliably is. A description that explains why the change takes this shape is what makes a judgement-level review possible, and it is more load-bearing than it was when a human wrote every line.

How do you stop AI-assisted development from closing the learning path for junior engineers?

Deliberately, because the default under load is the opposite. Reviewing code has always been a primary way people learn a codebase, and if review becomes purely a senior judgement activity that route closes. Keep junior engineers reviewing by pairing them with an experienced reviewer, routing smaller and lower-risk changes to them, and giving them an explicit checklist so the task is learnable rather than intimidating. A queue under pressure routes everything to the most experienced person available unless you prevent it.

How should review capacity be planned when authoring gets cheaper?

Explicitly, as allocated time rather than as whatever is left over. If an organisation has decided authoring throughput should rise, review time must be allocated and must appear in what the team commits to; otherwise reviewing is unpaid work competing with the delivery people are actually measured on, and it loses. Pair that with named reviewers rather than team assignment, and a cap on concurrent reviews per person, since a reviewer holding six open reviews is doing all of them slowly and none well.

Which metric best shows whether review is becoming a bottleneck?

First-response or pickup time — how long a pull request waits before anyone looks at it. It is the most sensitive indicator of review health, the stage most directly affected by routing and reviewer capacity, and it requires no process change to measure. If pickup time is rising while authoring is getting faster, the productivity gain is being converted into queue rather than into delivery. Tracking it separately from review, rework and merge time is what makes that visible.

What checks should move earlier when AI writes the first draft?

Everything a machine can catch reliably: formatting, lint rules, type errors, dependency and licence checks, and security scanning, all running before a human opens the change. Strict typing earns disproportionately more now, because it catches a common class of plausible-but-wrong generated code — a field that does not exist, a nullable treated as non-null — with no human reading. Tests derived from the requirement rather than the implementation are the other high-leverage move, since they are the one check generated code cannot satisfy by construction.

How can you tell whether moving checks earlier is actually working?

Watch the rework share of cycle time — the loop between review comments and subsequent revisions — alongside review depth. A falling rework share while review depth holds steady means defects are being prevented before review rather than caught during it, which is the outcome you want. A rising rework share means checks are still landing too late, regardless of how thorough the review process feels. Reading the two together prevents mistaking a drop in review effort for an improvement in quality.

Marvex

See it on your own delivery data

Connect GitHub, GitLab or Jira and Marvex builds your DORA, cycle-time and sprint views from the history you already have.