Continuous integration and continuous delivery are two related but distinct practices that most teams conflate. CI means everyone integrates their work frequently - at least daily - and every integration is verified by automated checks. CD means the codebase is always in a deployable state and can be released at any time with confidence.
The gap between "we have a CI/CD pipeline" and "we practice CI/CD" is enormous. The pipeline is plumbing. The practice is a team discipline.
Why it matters for delivery
Teams that practice CI/CD well share a few characteristics: small changes shipped frequently, fast feedback loops, and low-drama deployments. Teams that don't tend to batch changes, discover integration problems late, and treat deployments as events that require coordination and courage.
If your delivery diagnostics show stories carrying over, bugs appearing after merges, or deployments that require a war room, the root cause is often CI/CD discipline, not individual performance.
The practice, not the pipeline
Continuous integration
The discipline is simple. Every developer integrates to the main branch at least once a day. Not to a feature branch. To main.
What makes it work:
- Small commits. Each change is small enough to review and understand quickly. If a commit takes more than a few hours of work, it's too big.
- Automated verification. Every commit triggers a build and test suite. If the build breaks, it gets fixed immediately - not after lunch, not after the standup, now.
- Trunk-based development. Long-lived feature branches are the enemy of continuous integration. They accumulate merge debt that compounds daily.
Continuous delivery
The discipline is the same. The main branch is always deployable. Any commit could go to production.
What makes it work:
- Thorough test coverage. You need confidence that passing tests means the code works. This is where TDD pays dividends.
- Feature flags over branches. Incomplete features are hidden behind flags, not isolated on branches. The code is integrated even when the feature isn't visible.
- Automated deployment. If deploying requires manual steps, it won't happen often enough. Automate the path from commit to production.
- Merged is not deployed. Many platforms deploy pieces separately from the merge: serverless or edge functions, database migrations, scheduled jobs. I've had a monitoring hook merge and sit undeployed for a week while everyone assumed it was watching production. Give every piece one deploy path that fails loudly, and a check that goes red when anything on main is newer than what's running. The same goes for migrations: merged is not applied, and after applying one, verify the objects it created, not just the ledger row.
The pipeline is part of your attack surface
A CI job often holds more power than any person on the team: deploy keys, database credentials, write access to the repo. Two habits keep it from becoming the easiest way in.
Pin third-party actions to a commit, not a tag. Tags can be moved. In March 2025 the tags of a widely used GitHub Action were repointed to a commit that printed secrets into build logs (CISA). A full commit SHA, with the version in a comment and a bot to bump it, can't be swapped under you.
Install from the lockfile, and don't run install scripts beside secrets. Package install scripts run with whatever credentials the job holds. A self-spreading npm worm in 2025 used exactly that to harvest tokens from hundreds of packages (Red Canary). Use npm ci, add --ignore-scripts in any job that holds a secret, and keep secrets in the narrowest job that needs them.
CI/CD for AI systems
AI features add complexity to the pipeline. Model updates, prompt changes, and eval suites all need CI/CD treatment.
Prompt changes are code changes. They should go through the same review, testing, and deployment process. A prompt change can alter system behavior as dramatically as a code change. Version them, test them, deploy them through the pipeline.
Evals in the pipeline. Your CI pipeline should run evaluation suites on every change that touches AI behavior. This includes prompt changes, model version updates, and changes to context or tool configurations. Eval failures should block the deploy, just like test failures.
Model updates as deployments. When your AI provider ships a new model version, treat it like a dependency upgrade. Run your full eval suite against the new version before rolling it out. Silent model updates are a common source of production quality regressions.
Gradual rollout. AI behavior changes are harder to predict than code changes. Use canary deployments or percentage-based rollouts for any change that affects AI output. Monitor quality metrics during the rollout and roll back automatically if they degrade.
Signs your CI/CD needs work
- Deployments happen less than once a week
- Merges regularly cause conflicts or break the build
- The team has a "deployment day" or deployment coordinator
- Feature branches live longer than 2 days
- Nobody trusts the test suite enough to deploy automatically
- AI prompt changes bypass the normal deployment process
- Nobody can say whether the function, migration or job that merged yesterday is the one running now
- Workflows reference third-party actions by tag
Each of these is a symptom of a discipline gap, not a tooling gap. Better tools don't fix teams that batch work and avoid integration.
Sources
- CISA, "Supply Chain Compromise of Third-Party GitHub Action" (CVE-2025-30066), the March 2025 tag-repointing incident.
- Red Canary, "Shai-Hulud worm", on npm install scripts harvesting CI tokens.
Skills for this topic
AI skills you can run with Claude or Codex to put this practice to work.
/dx-assessmentDX AssessmentAssess developer experience -- tooling friction, CI/CD health, code review bottlenecks, knowledge access, on-call burden, and cognitive load.
/tdd-testsTDD TestsGenerate failing tests from acceptance criteria.
/tdd-implementTDD ImplementWrite the minimum implementation to make existing failing tests pass.
/instrumentation-planInstrumentation PlanPlan or audit SRE instrumentation for reliability and operational health.
/tech-debt-assessmentTech Debt AssessmentAssess, categorize, and prioritize technical debt with a remediation roadmap and stakeholder summary.
/code-reviewCode ReviewProduce structured review feedback tied to standards.
See this in practice
Real engagements where this practice did the work.
As the Product Lead for the US Space Force's Capability Delivery Division, I helped transform a stalled, fractured development org into a functioning delivery engine. I rebuilt the backlog, clarified the roadmap, shaped the rituals, and helped engineering teams move from chaos to confidence - without burning out.
Modernized StubHub's pricing logic to support dynamic events, localization, and partner growth.
Improved delivery speed and team clarity by redefining rituals, coaching, and product operations across Kaiser IT.