Key Takeaways

Contents

  1. The Delivery Tax
  2. The Principle: AI Drafts, the Pipeline Proves, Engineers Decide
  3. The Delivery Pipeline
  4. Stage 1: Plan and Specify
  5. Stage 2: Build
  6. Stage 3: Review
  7. Stage 4: Prove With Tests and Scans
  8. Stage 5: Release
  9. Stage 6: Operate and Respond
  10. Stage 7: Learn and Document
  11. Governing Coding Agents and the Supply Chain
  12. An Illustrative Walkthrough
  13. Where This Breaks
  14. Measuring Delivery
  15. What You Need to Build This
  16. A 90-Day Roadmap
  17. Conclusion: Speed You Can Trust

Engineering teams adopted AI faster than almost any other function. Assistants write functions, generate tests, draft documentation, and increasingly work as agents that open pull requests autonomously. The early gains are substantial: more code, written faster. The later results are less welcome. More code means more to review, more to test, more to secure, and more to run when something breaks.

This playbook treats software delivery as one pipeline, from the first idea to the last postmortem, and shows where AI helps at each stage and where it needs a check. It builds on the single-topic guides for pull request review, security scanning, test coverage, and incident triage, and connects them.

The Delivery Tax

Three costs recur in nearly every engineering organization that adopts AI without redesigning its pipeline.

The answer is not to slow down. It is to move quality checks out of the reviewer's head and into the pipeline, so speed and safety scale together.

The Principle: AI Drafts, the Pipeline Proves, Engineers Decide

AI DraftsWrites code, tests, summaries, release notes, and documentation. It is fast and tireless, and it is sometimes wrong. Treat every output as a proposal.
The Pipeline ProvesAutomated tests, scans, and rules check each change the same way every time. A change that fails does not merge, no matter who or what wrote it.
Engineers DecidePeople approve what ships, decide the architecture, and answer for production. They spend their attention where judgment is needed.

The pattern mirrors the one used in finance and in agent governance: the model prepares, deterministic rules verify, and a person approves the decisions that carry risk. See the finance back office playbook and the agent governance playbook for the same idea in other domains.

The Delivery Pipeline

Plan → Build → Review → Prove → Release → Operate → Learn
PlanTurn requests into clear specs with acceptance criteria and risk notes.
BuildWrite code with AI assistance inside defined boundaries.
ReviewTriage changes by risk and give reviewers context, not just a diff.
ProveRun tests, scans, and policy checks that gate the merge.
ReleaseRoll out gradually with automated notes and a ready rollback.
OperateDetect, triage, and resolve incidents with runbooks and clear authority.
LearnFeed postmortems, retrospectives, and documentation back into the next plan.

Each stage has an AI role and a human role. The sections below describe both. Adopt the stages in order of risk: start with the ones that do not change production, and add the ones that do only when the checks exist.

Stage 1: Plan and Specify

Bad specs produce bad code at AI speed. The cheapest improvement is to make requests precise before anyone writes a line.

Where AI helps

The engineer or product owner approves the spec. The risk flag set here follows the change through review and release, so a high-risk change is treated as high-risk everywhere.

Stage 2: Build

Coding assistants are the most visible use of AI, and the least in need of encouragement. The task for leadership is to set boundaries, not to push adoption.

Guidelines for AI-assisted coding

Agents that open pull requests autonomously need the controls in the governance section.

Stage 3: Review

Review is where AI-driven volume hurts most. The fix is triage and context. Reviewers should spend their attention on the changes that deserve it.

Change typeReview path
Documentation, formatting, and routine dependency updatesAutomated checks pass, light review or auto-merge under a set policy.
Ordinary feature and bug changesAI first-pass review summarizes the change and flags issues, then one engineer reviews.
High-risk areas flagged at the spec stageTwo reviewers, including one who knows the area, with tests and scans required.
Changes by autonomous agentsTreated as high-risk until the agent has a track record, and always attributed in the record.
What a first-pass AI review should do

The AI review is a helper, not an approver. Branch protection requires a human approval, and the reviewer reads what the summary points to. The pull request review guide covers the build.

Stage 4: Prove With Tests and Scans

This stage is the center of the playbook. Automated checks are the only part of the pipeline that treats AI-written and human-written code identically and never gets tired. Make them required, make them fast, and make them meaningful.

CheckWhat it catches
Unit and integration testsLogic errors and broken behavior, with coverage focused on risky paths.
Regression and end-to-end testsChanges that break working features.
Static analysis and lintingBugs, bad patterns, and style drift.
Security scanningKnown vulnerability patterns in code, hardcoded secrets, and unsafe configuration.
Dependency and license checksVulnerable, abandoned, or improperly licensed packages.
Policy checksRequired reviewers, protected branches, and rules for sensitive areas.

Make coverage mean something

A larger test suite is not a better one. AI can generate tests in volume, many of which assert only what the code already does. Aim tests at risk: the paths that handle money, data, and permissions, and the places that failed before. Track whether tests catch defects, and prune the ones that flake. The test coverage guide covers risk-based generation with a coverage gate, and the security scanning guide covers pull-request-level scanning.

Failed checks block the merge. Exceptions require a named approver and a note, and a rising number of exceptions is a signal worth reviewing.

Stage 5: Release

Releases are where unproven risk meets customers, so the aim is to shrink the blast radius and keep the exit open.

A safer release practice

Stage 6: Operate and Respond

When production breaks, speed of understanding matters more than speed of typing. AI helps most with gathering context quickly and least with making the final call.

Where AI helps during an incident

Keep human authority clear. A named incident lead decides the response, and any automated remediation is limited to actions that are low-risk, reversible, and logged. The more consequential the action, the more it needs a person, an approval step, and a rollback plan.

Stage 7: Learn and Document

Teams that learn from each cycle improve; the rest repeat incidents. The final stage turns what happened into inputs for the first.

Send product-facing signals outward as well: recurring bugs and customer pain belong with support and product, and the customer support playbook describes the return path.

Governing Coding Agents and the Supply Chain

Coding agents differ from assistants in an important way. They read files, run commands, install packages, and use credentials. That makes them a privileged part of your environment, and a target. A recent zero-click flaw across several AI coding agents showed how an attacker can use the agent's access, which is a reminder that the tools themselves need governing.

Controls for coding agents

Apply the same discipline to dependencies. Pin versions, verify sources, scan new packages before use, and be wary of packages an assistant suggests that you have never heard of, since models can invent plausible names that attackers then register. The agent governance playbook gives leaders the register, tiers, and decision rights for these agents.

An Illustrative Walkthrough

The scenario below is illustrative, not a company case.

A product owner asks for a change to how refunds are calculated. At plan, an assistant drafts acceptance criteria and flags the change as high-risk because it touches payments. The owner confirms. At build, an engineer uses an assistant to write the change and tests, in a small pull request.

At review, the high-risk flag routes the change to two reviewers. An AI first pass summarizes it and notes a missing edge case for partial refunds. At prove, tests, security scans, and policy checks run. One test fails on the edge case, so the merge is blocked until the engineer fixes it.

At release, the change rolls out to a small share of traffic. Health checks watch refund error rates and pause the rollout when a spike appears in one region. The team rolls back in minutes. At operate, triage groups the alerts and gathers the recent deploy for the incident lead. At learn, the postmortem finds a regional rounding rule, and the team adds a test and an alert. The same bug cannot ship twice.

Where This Breaks

FailureWhat happensPrevention
Faster writing, same pipelineCode volume outruns review and testing, and quality drops.Add triage and automated gates before expanding AI use.
Optional checksTeams skip scans and tests under deadline pressure.Make them required and block the merge, with named exceptions.
Tests that mirror the codeAI-written tests only confirm current behavior.Focus tests on risk and requirements, and measure defects caught.
Rubber-stamp reviewReviewers approve large AI diffs they did not read.Cap change size, require summaries, and sample approved changes.
Over-privileged agentsAn agent with broad credentials is misled and causes damage.Scope credentials, sandbox, and require approval for risky actions.
Autonomous remediationAn automated fix makes an incident worse.Limit automation to low-risk, reversible steps with logs and a stop.
Metrics of outputTeams optimize pull request counts or lines of code.Measure lead time, change failure rate, and time to restore.
Documentation driftGenerated docs go stale as code changes.Regenerate on change and assign an owner to confirm.

Measuring Delivery

Measure the health of delivery as a whole. The four measures popularized by DevOps research, along with a few AI-specific ones, give a balanced picture.

MetricWhat it shows
Lead time for changesHow long a change takes from commit to production.
Deployment frequencyHow often you ship.
Change failure rateThe share of releases that cause an incident or rollback.
Time to restore serviceHow quickly you recover when something breaks.
Review wait timeHow long changes sit before a first review.
Escaped defectsBugs found in production that tests and review missed.
Share of changes by AI, and their failure rateWhether AI-assisted changes fail more or less than others.
Check exceptionsHow often gates are bypassed, and why.

Read the failure measures alongside the speed measures. Faster lead time with a rising change failure rate means the pipeline is shipping risk, not value.

What You Need to Build This

Most engineering teams already have the foundations. Start by writing down the risk flags, the required checks, and the review paths. Then add AI where it speeds a stage without removing a gate.

Source Control and Branch RulesProtected branches, required reviews, and required checks on every repository.
CI/CD PipelineAutomated build, test, scan, and deploy steps that gate merges and releases.
Test and Scan ToolingTest frameworks, static analysis, security scanning, and dependency checks.
AI Assistants and AgentsApproved coding assistants and review aids, with data terms reviewed and permissions scoped.
ObservabilityMetrics, logs, and alerts that feed release health checks and incident triage.
Incident ToolingPaging, a runbook library, a status page, and a postmortem template.
Secrets and Access ManagementA vault, scoped credentials for agents, and no secrets in prompts or repositories.
Metrics DashboardA view of lead time, failure rate, restore time, and check exceptions.

Plan for ongoing costs

Running the pipeline costs more than the purchase of any template. Assistants, review aids, and agents are billed by usage, and heavy agent use can add up quickly. Where you run automation on n8n or Zapier, the platform is billed separately by its vendor, and Zapier counts AI steps as multiple tasks depending on the model tier. Estimate usage by team and by stage before you scale, set spending limits, and verify current pricing on each vendor's page. The consumption cost guide explains why agent costs surprise teams.

A 90-Day Roadmap

Days 1 to 30: Measure and set the gates
Days 31 to 60: Triage review and strengthen proof
Days 61 to 90: Release safely and learn

Widen to more repositories only when the first set shows stable failure rates. Each team brings different risks.

Conclusion: Speed You Can Trust

AI changed how fast code gets written. It did not change what customers expect from the software. The teams that benefit most are the ones that make the pipeline stronger as they speed it up, so that more code means more shipped value and not more incidents.

Plan → Build → Review → Prove → Release → Operate → Learn

Put the checks in the pipeline, route reviewers' attention by risk, govern the agents like the privileged systems they are, and measure outcomes. The result is a team that ships faster and recovers faster, and can show exactly why each change was safe to release.

AI drafts. The pipeline proves. Engineers decide.

Where to Go From Here

Working builds are available for the main stages: pull request review, security scanning, test coverage, release notes, documentation, incident triage, and self-healing runbooks. The Agent Governance Playbook covers the controls for coding agents from the leadership side.

PR Review → Security Scanning → Test Coverage → Incident Triage → Agent Governance Playbook →