Capstone: Produce the Production Deployment Pipeline
Assemble the SignalDesk Production Deployment Pipeline, rehearse it end to end, and assess the release candidate's production readiness.
Introduction
You have built the parts: delivery goals and metrics, a CI/CD pipeline, container images, infrastructure as code, environment and secrets management, deployment strategies, a release plan, a versioning scheme, troubleshooting practices, and an optimization review. The capstone assembles them into a Production Deployment Pipeline: a documented, tested path that takes a commit to production, shows how it is verified and reversed, and states what the team still does not know.
It also applies the pipeline to the release candidate from the previous courses and produces a production readiness assessment.
Learning Objectives
- Assemble a coherent, documented production deployment pipeline.
- Check the pipeline and its documentation for consistency.
- Rehearse the full path, including failure and rollback.
- Assess a release candidate against explicit readiness criteria.
- Present evidence and residual risk honestly to decision-makers.
- Use AI for independent review without delegating the release decision.
- Plan the handoff to the security and operations courses.
1. Pipeline Package Structure
Keep the package short enough to be read, with detail linked from the repository. Suggested structure:
| Section | Content | Lesson |
|---|---|---|
| 1. Purpose and scope | System, environments, audiences | 1 |
| 2. Delivery goals and metrics | Definitions, baselines, current values | 1 |
| 3. Pipeline design | Stages, triggers, gates mapped to exit criteria, time budgets | 2 |
| 4. Artifact and container strategy | Images, tagging by digest, scanning, SBOM, registry | 2, 3 |
| 5. Infrastructure as code | Modules, state, plan and apply workflow, policy checks, drift detection | 4 |
| 6. Environments and configuration | Environment matrix, configuration schema, flags | 5 |
| 7. Secrets management | Sources, access, rotation, leak response | 5 |
| 8. Deployment strategies | Per component, compatibility rules, migration pattern | 6 |
| 9. Verification and rollback | Smoke tests, thresholds, rollback procedures, drill results | 6 |
| 10. Release process | Cadence, readiness criteria, release plan template, go or no-go, hotfix path | 7 |
| 11. Version management | Policy, tagging, traceability, changelog and release notes | 8 |
| 12. Troubleshooting | Failure classification, playbooks | 9 |
| 13. Optimization and cost | Baselines, budgets, accepted trade-offs | 10 |
| 14. Roles and responsibilities | Who may deploy, approve, and roll back | 2, 7 |
| Appendices | Pipeline definitions, infrastructure code links, drill records, decision records |
Store this in the documentation set under an operations or delivery section, using the metadata, ownership, and checks from the documentation course. Reference artifacts by link rather than copying them.
2. Consistency Checks
Inconsistencies hide between sections. Check at least:
- One artifact path. The artifact deployed to production is the exact one built and tested in the pipeline, identified by digest. Nothing rebuilds per environment.
- Gates and exit criteria. Every blocking gate maps to an exit criterion in the quality strategy, and every exit criterion is checked by a stage or a recorded manual step.
- Environments. The matrix matches the infrastructure code and the configuration actually deployed; differences from production are listed.
- Configuration and secrets. Every environment’s configuration validates against the schema; no secret exists in code, images, state output, or logs.
- Deployment and migrations. Every migration follows the compatibility pattern; the previous version works against the new schema; the rollback or forward-fix plan exists for each.
- Rollback. The procedure uses an artifact that is still available, and its duration was measured in a drill.
- Versions. The running version, commit, and image digest agree across the endpoint, the registry, the tag, and the release record.
- Permissions. Each pipeline job and each person has only the access needed; production changes require approval.
- Documentation. The developer guide, runbook skeletons, architecture deployment view, and release notes match the pipeline and infrastructure as built.
- Cost and capacity. Budgets, scaling limits, and capacity estimates match the expected load of the pilot.
Record each check and its result with evidence (a report, a run, a diff). Fix what fails.
3. Rehearse the Full Path
A pipeline you have not exercised end to end cannot be trusted. Run a production-like rehearsal in staging, ideally with a freshly created environment from code.
| Rehearsal | What it proves |
|---|---|
| Create the environment from code | Infrastructure is reproducible; time and effort are known |
| Commit to staging | Pipeline stages, gates, artifact promotion, and automatic verification work |
| Release-candidate deployment with a migration on realistic data | Compatibility, timing, and verification under real conditions |
| Deploy during an active import | Graceful shutdown and no lost or duplicated work |
| Failed deployment (inject a bad artifact or a failing readiness check) | Verification stops the rollout; rollback works |
| Feature flag off switch for AI summaries | Fast mitigation without redeploying |
| Secret rotation | Rotation causes no outage |
| Restore from backup | The recovery time and the data loss window are known |
| Hotfix path | A patch release can follow the full pipeline quickly |
| Pipeline failure drills | The troubleshooting playbooks lead to a correct diagnosis |
Record the time taken, what went wrong, and what changed as a result. Surprises during rehearsal are the point; each one is a defect found cheaply.
4. Assess the Release Candidate
Apply the pipeline to the real artifact. Gather evidence:
| Criterion | Evidence |
|---|---|
| Pipeline passed on the exact artifact | Pipeline run for the release-candidate tag, with digest |
| Quality exit criteria met | QA report and defect list |
| Documentation ready | Documentation readiness assessment |
| Security scans passed or exceptions accepted | Scan reports with expiry dates |
| Infrastructure plan reviewed | Reviewed plan output for production |
| Configuration and secrets validated for production | Validation output; secrets checklist |
| Migration rehearsed | Staging rehearsal record with timing |
| Rollback practiced | Drill record with duration |
| Monitoring and alerting present | Dashboard and alert test records |
| Capacity adequate | Load test or estimate against the pilot size |
| Cost within budget | Cost estimate and budget settings |
| People ready | Named release owner, approver, on-call, and support contact |
| Release plan complete | The plan with risks and communication |
Mark each criterion met, not met, or met with accepted risk, with evidence and, for exceptions, the person who accepted the risk.
5. The Production Readiness Assessment
Produce a short assessment (one to two pages) for the decision-makers:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Production readiness: SignalDesk v0.1.0-rc1
Recommendation: [Ready / Ready with conditions / Not ready]
What was deployed and how it was verified: [summary of pipeline,
rehearsals, and results]
Readiness criteria: [table: criterion, status, evidence]
Rehearsal findings: [what went wrong and what was fixed]
Deployment plan: [strategy per component, verification thresholds]
Rollback plan: [trigger, procedure, owner, measured duration]
Open issues: [by severity, with decisions]
Residual risks: [what could still go wrong, likelihood, impact,
mitigation, owner]
Not covered / limitations: [explicit]
Conditions for release: [if any]
Monitoring and support: [who watches, for how long, how escalation works]
State what is not covered: for example, behavior under loads beyond the tested scale, regional outages, or a restore of the largest dataset. A report that lists only successes invites false confidence. The recommendation is yours; the release decision belongs to the accountable stakeholder, who deserves an honest picture.
6. Independent Review With AI
Obtain a skeptical outside view of the pipeline package and the assessment, and verify its findings.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Act as an independent delivery and reliability auditor.
Inputs:
- Pipeline definitions and the pipeline package document: [paste]
- Infrastructure code summary and the reviewed production plan: [paste]
- Configuration schema, environment matrix, and secrets process: [paste]
- Deployment plan, migration plan, and rollback procedure: [paste]
- Rehearsal records and the production readiness assessment: [paste]
- QA release assessment and documentation readiness assessment: [paste]
Tasks:
1. Identify paths by which an unreviewed or untested change could
reach production.
2. Identify places where the artifact could differ between staging
and production.
3. Identify migrations, configuration changes, or flags that would
block a safe rollback.
4. Identify claims in the assessment that the evidence does not
support, and evidence that was overlooked.
5. Identify permissions broader than necessary, and secrets with
unclear ownership or rotation.
6. List important failure scenarios that were not rehearsed and are
not listed as limitations.
7. List the five questions the decision-maker should ask.
Do not invent evidence. Separate findings from suspicions.
For every finding, check the actual artifacts. Fix the real ones, log what you accept, and note where the model was wrong.
7. Pre-Mortem
Before recommending release, imagine it is four weeks after release and a serious incident has occurred. Write the three most plausible stories, for example:
- A migration locks a table during peak import time, and the readiness check does not reflect it.
- An expired credential causes the worker to fail silently, and imports stay queued.
- A configuration change reaches production without review through a path nobody remembered.
For each: which risk or gap does it come from, which check, alert, or rehearsal would have caught it, and does it exist? Add the missing control or record it as an accepted risk. This exercise often reveals the gap between “deployed” and “operable,” which the operations course addresses next.
8. Handoff to the Next Courses
The pipeline and its evidence feed the rest of the series:
- Software Security: the pipeline’s scans, secrets handling, permissions, image provenance, and infrastructure policies are the starting point for a security assessment; the risk table and the open exceptions seed the threat model and the supply chain review.
- Software Operations: dashboards, alerts, rollback procedures, runbook skeletons, deployment records, and the troubleshooting playbooks become part of observability, incident management, and continuous improvement; delivery metrics join service reliability measures.
Record the open items you are handing over, each with an owner.
9. Capstone Acceptance Criteria
Your capstone is complete when:
- The pipeline package covers every section above, concisely, and is stored with the documentation.
- Delivery metrics have definitions, baselines, and current values.
- The pipeline builds once and promotes the same artifact by digest, with gates mapped to exit criteria.
- Infrastructure is defined in code, with remote state, policy checks, a reviewed plan workflow, and drift detection.
- Environments, configuration, and secrets are managed as described, and no secret appears in code, images, or logs.
- Each component has a deployment strategy, a verification rule, and a rehearsed rollback.
- Migrations follow the compatibility pattern and were rehearsed on realistic data.
- Versioning, tagging, and traceability work, and release notes are accurate.
- Troubleshooting playbooks exist for the failures you rehearsed.
- Cost baselines, budgets, and accepted trade-offs are recorded.
- A production readiness assessment states limitations and residual risks, with a recommendation.
- Consistency checks, rehearsals, an independent AI review, and a pre-mortem were completed, and findings resolved or logged.
10. Final Reflection
- Which part of your path to production surprised you most when you rehearsed it?
- Where did generated configuration look correct and prove wrong or unsafe when you tested it?
- Which rehearsal found the most serious problem, and what did it change?
- Which part of the system would you least trust to a production release today, and why?
- What would make you change your readiness recommendation?
- Where did AI help you notice a gap or diagnose a failure, and where did it offer confident but wrong advice?
- Which delivery metric changed most as you built the pipeline, and what does that tell you?
Key Takeaways
- A good delivery pipeline is a documented, tested path: build once, promote the artifact, verify, and reverse.
- Check the parts against each other; gaps hide between pipeline, infrastructure, configuration, and documentation.
- Rehearse deployment, failure, and rollback; untested procedures are hopes.
- Assess the real release candidate against explicit criteria, and report limitations and residual risk.
- AI drafts, reviews, and diagnoses; accountable people approve production.
What’s Next?
The AI-Assisted DevOps & Release Management course is complete. The next course in the series is AI-Powered Software Security, where you assess and strengthen the system you can now ship: security fundamentals, threat modeling, secure architecture, vulnerability analysis, SAST and DAST, dependency security, AI-assisted security review, and security testing, ending in a Security Assessment.