A common scenario: the team gives developers code completion and generation tools, and writing a feature drops from days to a day or two, with a clear rise in PR volume. But two iterations later, release frequency is still once a week, and end-to-end time for production changes has barely moved. So some start to suspect the tools are useless. The tools are of course useful—they just optimize one station on the pipeline, while release cadence is determined by the most congested segment of the whole line.
Writing code faster does not mean releasing faster. In between sit several queuing zones: review, testing, environments, and release windows. If the capacity of any one segment stays fixed, the upstream speedup turns into inventory.
Faster coding first becomes inventory waiting for review
Many teams measure productivity gains only by coding time, lines generated, and completion acceptance rate. These metrics show the tool works at the station, but they cannot answer the question the boss actually cares about: from deciding to make this change to it running stably in production, how long did it take in total.
Run the numbers on a set of hypothetical figures. A certain type of requirement used to take 6 days of coding, 3 days waiting for review, 2 days in review, 4 days of CI and testing, 2 days waiting for an environment, and 5 days waiting for a release window—22 days end to end. After adopting AI coding, coding drops to 3 days, but review rises to 2.5 days because diffs got bigger; the rest is unchanged, so end to end is 19.5 days. Coding time is halved, but delivery cycle drops only about a tenth.
| Stage | Before | After | Note |
|---|---|---|---|
| Coding | 6 days | 3 days | Completion and generation compressed writing time |
| Waiting for review | 3 days | 3 days | Review queue capacity unchanged |
| Review | 2 days | 2.5 days | Bigger diffs raise verification cost |
| CI and testing | 4 days | 4 days | Test capacity unchanged |
| Waiting for environment | 2 days | 2 days | Staging still has a queue |
| Waiting for release window | 5 days | 5 days | Release train unchanged |
| Total | 22 days | 19.5 days | Coding halved, end to end down about a tenth |
This is not to say the tools are useless. They really do compress the coding segment; the gain is just diluted across the whole chain. If review and testing are already near full capacity, faster coding pushes even more changes into the queue, and waiting time can eat back the days saved. You are measuring station efficiency; users feel delivery cycle.
Queueing theory doesn’t care how fast you type
In the end-to-end cycle, the time is often taken not by doing work but by waiting for work. A PR sits two days before anyone looks at it; those two days produce no code but count fully toward the release cycle. Many teams focus optimization on the act of “writing,” because it is visible, measurable, and the easiest thing to buy tools for. Waiting is invisible, scattered across kanban columns, chat logs, and CI queues, so it is the easiest to overlook.
Worse, faster upstream raises the arrival rate downstream. Suppose the review group steadily handles 20 changes a day; originally 15 arrived per day and the queue was manageable. After coding speeds up, 25 arrive per day, a net gain of 5 per day. The first week you can’t tell; by the third week, every PR is waiting. The reviewers didn’t get lazier—the input volume changed.
There is a line in theory of constraints: improvement at a non-bottleneck does not increase system throughput. Local speedups get swallowed not because the gains are fake, but because they pile up in front of the bottleneck and become work in progress (WIP). More WIP means bigger batches, more context switching, harder fault localization—and eventually even the original cadence can’t be maintained.
So I ask first: where is the longest wait happening right now? Not “how much time did AI save us,” but “did the time saved turn into faster releases.” These two questions look similar; the answers are often opposite.
The input to review changed, not the reviewers’ diligence
Code generation shifts review from “watching how you write” to “judging whether this code can be owned by the team.” Previously a reviewer saw the author’s thinking—variable naming, boundary conditions, test intent were all in the diff. Now much code is model-generated: superficially complete, lacking context. The reviewer has to reverse-engineer: why was it changed this way, which branch is missing, are exception paths handled, do the tests cover only the happy path.
Bigger diffs are a direct consequence. A PR used to be two hundred lines; now it may be five hundred, including parts the model refactored along the way. Review attention is finite; the bigger the diff, the more likely only the main path gets checked. Review time goes up and miss rate goes up—these two metrics often appear together.
I don’t think “AI-generated” should be used as a disclaimer. Once code enters the repository, maintenance responsibility belongs to the team. Review must answer two questions: what is the intent of this change, and how do we back it out if something goes wrong. If the reviewer can’t say, it shouldn’t merge. This bar is stricter than “does the code run” and closer to production reality.
The concrete approach is not adding more reviewers but controlling the batch that enters review. Separate refactoring from features, make clear the boundary between generated and hand-written code, and write the verification method into the PR description. Reviewers look at less, and see more accurately. Tests should be reviewed too. Model-generated tests easily assert implementation details—change one line of implementation and they go red—or cover only the main path. More tests does not equal more testing capability.
Testing and environments have fixed capacity; they don’t auto-scale because code is written faster
CI runners, test data, staging, third-party sandboxes—these are shared resources. When code output rises, the first to feel it is not the user but the CI queue. A test suite going from twenty minutes to forty is tolerable in isolation. But if every PR must run it, the queue lengthens and waiting time exceeds the test itself. Teams start parallelizing, retrying, skipping—and end up not faster but less trustworthy.
Flaky tests are another hidden tax. One flaky test makes everyone rerun, and reruns consume capacity. You think it’s a testing problem; it’s actually a release cadence problem. The pass rate looks high, yet the team doesn’t dare trust it, so before release someone still clicks through manually—and that manual verification becomes a new wait.
Environments are the same. Three staging slots, five teams using them—whoever grabs one first verifies first. Faster coding only makes the scramble for environments more frequent. Adding environments isn’t necessarily cheap, but it is often more direct than buying more coding tools. Especially where external sandboxes, masked data, or hardware devices are needed, environment capacity is a hard constraint that a few more scripts won’t solve.
On test strategy, I split gates into blocking and observational. Paths involving money, permissions, or data deletion must block; copy, styling, and low-frequency background jobs can be observed via canary. Stuffing all tests into one gate means a big batch waits together and problems are hard to localize. This is not lowering standards; it is putting verification resources where risk is highest.
Release windows aren’t pure waste; some waiting is a risk budget
Release cadence is also shaped by approvals, customer communication, on-call scheduling, and compliance windows. Not all of this waiting is bad habit. A B2B product releasing in a fixed weekly window may be because customers need training, support needs staffing, and rollback needs people on watch. Make code ten times faster and these coordination costs don’t disappear on their own.
But you also need to distinguish “necessary coordination” from “habitual batching.” If every change is squeezed into the same release train, and even a copy edit has to wait a week, the batch is too large. The larger the batch, the higher the risk per release, the harder it is to pinpoint problems, and the less teams dare to release frequently—creating a cycle.
This cycle explains a common phenomenon: the slower the releases, the less teams dare to ship in small steps.
flowchart LR
A[批量变大] --> B[单次风险变高]
B --> C[审批更严]
C --> D[发布更慢]
D --> ABreaking this cycle isn’t about deleting all approvals—it’s about tiering by risk. Low-risk changes go through feature flags, canary releases, and automatic rollback; high-risk changes keep reviews and windows. Tiering presupposes that you can identify risk—not slap the same label on every change.
Feature flags aren’t free. More flags mean combinatorial explosion, delayed cleanup, and the flags themselves become a source of failure. I prefer to flag only changes that genuinely need isolation, and set a cleanup deadline after release. That deadline isn’t a formality—flags not cleaned up on time go on the technical debt list, otherwise the next release cycle gains another uncertainty.
Measure which segment first, then decide whether to keep buying tools
If a team wants to verify “why aren’t we faster,” don’t argue about whether the tools are good—first sample a few dozen changes that have already shipped and record timestamps. Look at p50 and p90, not just the average. p50 is the median; p90 is the time within which ninety percent of changes land, closer to the wait people actually feel day to day.
| Metric | What to look at | Common misreading |
|---|---|---|
| End-to-end cycle | From change confirmation to stable in production | Looking only at coding time |
| Queue wait share | Waiting for review, CI, environments, windows | Counting waiting as processing time |
| PR size distribution | Diff lines, file count, whether refactoring is mixed in | Looking only at PR count |
| CI queue duration | From push to runner startup | Looking only at test execution time |
| Environment conflicts | Number and duration of waits for staging | Only complaining there aren’t enough environments |
| Change failure rate | Rollbacks, hotfixes, alerts | Looking only at release count |
Once you’ve done the math, the judgment is straightforward: if coding accounts for only twenty to thirty percent of end-to-end time, while waiting for review and testing takes more than half, further optimizing coding has low marginal returns. At that point, adding a reviewer, splitting PRs smaller, adding CI runners, or spinning up temporary environments may be more effective than switching to a stronger model. Conversely, if coding really is the bulk of end-to-end time and downstream has spare capacity, then continued investment in coding tools is justified, and the gains will genuinely reach production.
I use a stop rule: if end-to-end p90 hasn’t dropped for two consecutive iterations, stop expanding the use of coding tools and deal with the constraint first. Otherwise you’re just creating inventory faster. This rule also applies to evaluating other AI tools: don’t look at how many seconds it saves at one workstation—look at whether it shortens the slowest segment end to end.
If you’re building an AI coding product, this matters especially. Customers aren’t buying generation speed; they’re buying release cycles. Demonstrating only “generate a page in minutes” leaves the hardest part to the customer. What actually commands a premium is often not the model writing a few more lines, but helping customers see where the bottleneck is and making the saved time reach production.
I’ve spent ten years in AI products, and now when I judge whether a tool is worth it, I first look at whether it shortens the slowest segment end to end. Generation is fast, but inventory piles up fast too. Next time you evaluate a coding tool, pull the end-to-end p90 before and after integration—it’s more useful than watching generation speed in a demo.
Comments