AI coding agents ship more code than reviewers can read. Fix your CI gates, canary rollouts and on-call runbooks before change failures climb.
A checkout team at a mid-size marketplace merges 80 pull requests in a week, up from 30. Two of them add a payment retry loop that ignores the vendor's idempotency key. Both pass lint, unit tests and a quick review. At 02:10 on a Saturday, customers start getting charged twice.
Nothing about the engineers got worse. The ratio of code written to code carefully read did. AI coding agents make it cheap to produce changes that look correct, and your review, deployment and on-call machinery has to absorb the extra volume.
The 2025 DORA report on AI-assisted software development found that AI adoption now correlates with higher delivery throughput, but it still correlates with higher delivery instability, meaning more failed changes and more rework. The report describes AI as an amplifier: teams with strong practices get faster, and teams with weak ones get their weaknesses exposed sooner. This post does not quote specific percentages, so check the report for exact figures.
One plausible mechanism is simple. When an engineer writes code by hand, they review it as they type. When they accept a generated suggestion, that private review step shrinks, and the pull request often gets bigger. The DORA AI capabilities model points at the countermeasures: working in small batches, strong version control habits, and a quality internal platform that automates checks.
This is an argument for upgrading your safety net, not for banning the tools.
AI-assisted delivery widens three gaps: review capacity, system context and blast radius. Each has a different fix, and the diagram below shows where the fixes sit in the pipeline.
Make security, quality and architecture checks required status checks on every pull request, so a merge is impossible until they pass. A gate that can be bypassed is a suggestion, so enable branch protection and require each job by name.
The workflow below splits the Semgrep scan into its own container job and runs the Node checks in a second job.
## .github/workflows/quality-gate.ymlname: pr-quality-gateon: pull_request: branches: [main] jobs: security: runs-on: ubuntu-latest container: semgrep/semgrep steps: - uses: actions/checkout@v4 - name: Semgrep scan run: | semgrep scan --error \ --config p/owasp-top-ten \ --config p/secrets \ --config p/nodejs . quality: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 - run: npm ci - run: npm audit --audit-level=high - name: Tests with coverage floor run: | npx jest --coverage \ --coverageThreshold='{"global":{"lines":80}}' - name: Architecture boundaries run: npx depcruise --config .dependency-cruiser.cjs srcThe dependency-cruiser step catches the "I'll just import this helper from another service" shortcut that agents take readily and that creates hidden coupling.
Pair the gates with ownership rules, so risky paths always reach a human who knows them:
## CODEOWNERS/src/payments/ @acme/payments-leads/src/auth/ @acme/security-team/infra/ @acme/platform-teamGive the agent the facts it cannot infer, and make the author record what they checked. This is a process fix, not a tooling fix, and it costs a few minutes per change.
A vague prompt such as "write a function to retry failed payments" produces plausible code. A useful prompt names the vendor, links the API contract, states the exact idempotency header, sets the retry count and backoff, and lists which HTTP status codes must never be retried. Put recurring rules like these in a repository instruction file the agent reads on every task.
Add a short block to your pull request template:
**AI assistance**- Tool and model used:- Context provided (docs, contract, ticket):- Parts I reviewed line by line:- Parts a reviewer should check hardest:- Failure I tested by hand (timeout, retry, null):The last line matters most. It forces the author to think about failure paths the agent skipped, and it tells the reviewer where to look.
Send every release to a small slice of traffic first and let automated analysis decide whether it continues. If a change reaches 5% of users and the payment success rate drops, the rollout aborts and the other 95% never see it.
Argo Rollouts expresses this as a canary strategy plus an analysis template. The rollout below is trimmed (selector and pod template omitted):
apiVersion: argoproj.io/v1alpha1kind: Rolloutmetadata: name: checkoutspec: replicas: 10 strategy: canary: canaryService: checkout-canary stableService: checkout-stable trafficRouting: nginx: stableIngress: checkout steps: - setWeight: 5 - pause: {duration: 5m} - analysis: templates: - templateName: ai-code-safety-check args: - name: service value: checkout - setWeight: 25 - pause: {duration: 10m} - setWeight: 100Without a trafficRouting block, Argo approximates weights by replica count, so 5% of 10 pods is not achievable. Use an ingress or service mesh router for precise weights.
The analysis template is where the value is, because it checks the revenue path and not just CPU:
apiVersion: argoproj.io/v1alpha1kind: AnalysisTemplatemetadata: name: ai-code-safety-checkspec: args: - name: service metrics: - name: payment-success-rate interval: 1m count: 5 failureLimit: 1 successCondition: result[0] >= 0.985 provider: prometheus: address: http://prom.internal.example.net:9090 query: | sum(rate(payments_total{service="{{args.service}}", status="ok"}[5m])) / sum(rate(payments_total{service="{{args.service}}"}[5m]))Set the threshold from your own baseline, not from this example. A logically wrong retry loop will not raise CPU, but it will move payment success rate.
Make each incident faster to resolve rather than adding people. Three changes carry most of the benefit:
The rollback commands are short:
## stop an in-flight canary and return to stablekubectl argo rollouts abort checkout## revert a fully promoted release to the previous revisionkubectl argo rollouts undo checkoutRollback-first is only safe if your schema changes follow expand-and-contract, so the previous version still works against the new database. Enforce that rule in review.
Track incidents per deployment and change failure rate next to deployment frequency. Raw weekly incident counts mislead, because they rise with deployment volume and can look flat while the per-deployment failure rate climbs.
DORA now tracks five software delivery metrics: change lead time, deployment frequency, change failure rate, failed deployment recovery time and deployment rework rate. Rework rate is the one most likely to move first when generated code needs follow-up fixes.
Add one field to your postmortem template: "Was AI assistance used in the change that caused this?" After 20 postmortems you will see which kinds of change, tools and services carry the largest context gap. Use the data to improve gates and prompts, never to blame individuals.
| Response | Effort | Effect |
|---|---|---|
| Restrict AI tool use | Low | Low |
| Add manual review | High | Medium |
| Required CI gates | Medium | High |
| Canary every deploy | Medium | Very high |
| Rollback-first runbooks | Low | High |
Blocking the tools costs productivity and leaves the real gaps open. Manual review does not scale with 80 PRs a week. The best return comes from required gates plus canary releases, with rollback-first runbooks as the cheap third layer.
References and Further Reading
- DORA Research - Annual reports including the 2025 AI-assisted development findings
- DORA Capabilities - Small batches, version control and platform quality practices
- Argo Rollouts - Canary strategies and analysis templates
- Semgrep Docs - Rulesets and CI configuration for automated review
Not in those words. The report finds AI adoption now improves delivery throughput but still goes with higher delivery instability, and it frames AI as an amplifier of existing practices. Treat any per-PR incident figure you see quoted as secondary data and check its source.
Incidents per week rise with deployment count even when quality is flat, and can look flat when deployments double and quality halves. Track incidents per deployment and change failure rate side by side, and compare them against your own pre-adoption baseline.
Business metrics such as payment success rate, order completion rate and checkout P99 latency. AI-generated bugs are often logically wrong but not crashing, so infrastructure metrics stay green while revenue-path metrics degrade.
When the release ran a destructive or one-way schema migration, changed a message format that consumers already processed, or sent external side effects such as emails or charges. Use expand-and-contract migrations so a rollback stays safe for at least one release.
Cap PR size (for example 400 changed lines), route risky paths to named owners with CODEOWNERS, make automated gates required status checks, and require the author to state which parts they verified by hand. Reviewers then spend judgment on design and edge cases, not on lint-level issues.
Discussion0