Chapter 16: CI/CD Is a Production Service
In this chapter
- Opening Scenario
- Pipeline Architecture, Ownership, and Service Levels
- Runner Isolation and Workload Boundaries
- Failure Handling, Concurrency, and Queue Pressure
- Observability for Delivery Systems
- Recovering When the Deployment System Is Unavailable
- War Story The Pipeline Outage That Extended a Minor Incident
- Lessons from the Trenches
- Operational Checklist
- Further Reading
- The Next Trench
From DevOps in the Trenches — Ann Ogechi Felix
Opening Scenario
At 02:13, an authentication service began rejecting valid sessions. The incident team found the defect quickly: a configuration parser introduced in the evening release mishandled one legacy value. A corrected artifact was built, verified against the failing case, and ready for production before 02:40.
It did not reach production until 04:26. The organization’s delivery platform had failed during the same incident. Thousands of scheduled jobs had entered the queue after a shared template change caused retries across several repositories. Runner capacity was saturated. The orchestration service accepted new requests but reported no reliable estimate for when protected jobs would start. Canceling queued work created more API traffic and did not consistently release environment locks.
The incident commander asked for a manual deployment. Nobody could state what that meant. The documented emergency procedure assumed the pipeline control plane was available. The production credential used by the deployment adapter was intentionally inaccessible to engineers. A legacy script existed on an administrator’s laptop, but it expected a mutable image tag and produced no durable record of who approved the action or which digest it deployed.
The team faced two different failures. The application defect was understood and reversible. The delivery failure was neither. Operators could not tell whether the platform was merely overloaded, whether a runner manager had failed, or whether the control plane had lost coordination with active workers. Several jobs displayed as running after their workers had disappeared.
Retrying the deployment risked two concurrent changes to the same environment.
The platform team eventually reserved a runner, cleared a stale environment lock, and promoted the corrected artifact through the normal deployment adapter. Service recovered. No secret was exposed and no conflicting deployment occurred, but the duration of the customer incident was determined less by the application fix than by the organization’s inability to operate its delivery system under pressure.
The review rejected the easy conclusion that the company needed more runners. Capacity had contributed, but it was not the whole cause. The service had no owner for the complete path. Teams measured job duration but not queue age, lock age, or time from accepted change to verified production outcome. Shared and emergency work used the same scheduling class. Failure states were ambiguous. The fallback depended on a component that the fallback was meant to replace.
The corrective work began by naming CI/CD as a production service. The organization mapped its control plane and execution plane, assigned owners, established delivery service objectives, separated trust zones, introduced priority and fairness rules, instrumented queues and dependencies, and rehearsed a narrow emergency path using retained artifacts by digest.
A pipeline file describes desired work. It does not provide the service that makes the work dependable. That service has architecture, capacity, identities, failure modes, and recovery obligations. When it carries production authority, it deserves the same operational discipline as the systems it changes.
The incident did not prove that automation had failed as an idea. It proved that automation becomes infrastructure once people rely on it. Reliability then depends on the system around the script: scheduling, identity, isolation, state, evidence, and a tested way to operate when normal coordination is gone.
Pipeline Architecture, Ownership, and Service Levels
A delivery system is usually presented as a sequence of stages. That view is useful to a pipeline author and incomplete for an operator. The operating view begins with components, trust boundaries, dependencies, state, and ownership. It asks what happens after an event is accepted, where work waits, which identity authorizes each transition, and how the organization knows that an outcome is final.
Map the control plane and execution plane
The control plane receives repository events, evaluates configuration, schedules work, enforces approvals and policy, coordinates state, and records results. The execution plane runs jobs on hosted or self-managed workers. Between them sit artifact and cache stores, identity providers, secret brokers, deployment adapters, policy services, notification systems, and observability backends. Each is a dependency and often a separate failure domain.
Draw the path for one ordinary change and one emergency change. Record where state is authoritative, where credentials are issued, and where an action becomes externally consequential. A job marked complete by a worker may still require an artifact upload, policy decision, or deployment acknowledgment. If two components can both claim authority for the same environment, the architecture has a coordination problem, not merely a documentation gap.
Assign ownership at service boundaries
Application teams own the intent and correctness of their workflows. A delivery-platform team may own orchestration, shared templates, runners, integrations, and the service interface. Security may own control objectives and investigation support. Environment owners may control production admission. These responsibilities need an accountable owner for the end-to-end path. Otherwise every component can meet its local target while the user waits for a change that never completes.
Define support hours, on-call coverage, escalation, change authority, and dependency ownership. A hosted provider does not remove the service owner. It changes which failures can be repaired directly and increases the importance of provider status, exportable evidence, contractual commitments, and alternate operation.
Classify delivery paths by consequence
Not all pipelines deserve identical objectives. A documentation preview, a routine development build, a payment-service release, and an emergency security fix have different consequences. Classify paths by business impact, production privilege, reversibility, and time sensitivity. The classification should affect capacity, isolation, support, recovery, and change control, not merely dashboard color.
Avoid declaring the whole platform critical and then providing no distinction inside it. Reserve the strongest guarantees for work whose delay or corruption creates material harm. Lower- consequence work still needs predictable service, but it may accept longer queues or reduced support outside business hours.
Define service levels around the user journey
Useful indicators include event acceptance, queue wait, time to start, time to a conclusive result, successful publication or promotion, and time to recover the delivery service. Measure by workload class and dependency. A global success rate can look healthy while one protected environment is blocked for hours. A job failure caused by a test is not the same as platform failure, even though both produce a red pipeline.
Objectives should express a real operating promise: for example, a defined proportion of protected release jobs start within an agreed interval when their prerequisites are healthy. Pair the objective with exclusions and dependency assumptions, but do not use exclusions to hide chronic integration failure. Include emergency capability, evidence retention, and configuration- propagation expectations where they matter.
Manage the service as a product
Publish supported workload classes, limits, maintenance policy, deprecation windows, and escalation routes. Review demand, recurring failure, manual intervention, and user friction. A successful platform is not one that centralizes every decision. It provides dependable paths, makes constraints visible, and gives teams a controlled way to handle exceptional needs.
Architecture and ownership establish who can act. The next question is where untrusted pipeline code is allowed to act. That boundary is the runner fleet.
Review hidden dependencies before they become outages
Record provider quotas, webhook delivery assumptions, certificate and token expiry, DNS, time synchronization, artifact retention, and identity availability. These dependencies are easy to omit because no pipeline stage names them. Test what users observe when each one slows or fails. A dependency that can stop every protected release belongs in the service risk register even when another team or vendor operates it.
Use architecture reviews to remove accidental single points of coordination, not to demand redundant copies of everything. Some components can fail closed and wait. Others need fault-tolerant operation because they govern emergency change. The classification, evidence, and recovery objective should determine where redundancy is justified.
Runner Isolation and Workload Boundaries
A runner executes repository-controlled code. That code may be trusted release automation, an experimental branch, or a pull request from an unknown contributor. Treating all three as ordinary compute collapses the boundary between untrusted input and production authority.
Choose the runner model deliberately
Hosted runners reduce infrastructure ownership and can provide a clean environment per job. Self-managed runners offer network proximity, custom hardware, and tighter placement control, but they add patching, image maintenance, credential protection, capacity, and forensic responsibility. Persistent runners are efficient for stable internal workloads, while ephemeral runners reduce residual state. None of these models is safe by label. The configuration and trust zone determine exposure.
Inventory runner groups by who can submit work, which repositories can use them, what identities they can obtain, which networks they can reach, and what state survives a job. A runner that can be selected through a broad repository label is not dedicated merely because its virtual machine has a special name.
Separate workload classes
Untrusted contributions should not share execution state, caches, credentials, or network access with protected releases. Separate ordinary validation, privileged build or signing work, deployment activity, and administrative automation. Use distinct runner groups, accounts, subnets, identities, and policy where consequence requires it. A logical label alone is weak isolation if every group ultimately reaches the same host daemon or cloud role.
Fork and pull-request workflows need special care. Configuration from the proposed change may execute before maintainers approve it. Do not expose protected secrets merely because the target repository is trusted. Review the event semantics of the chosen platform, especially workflows that run with the target repository’s authority while evaluating untrusted content.
Remove ambient privilege
Issue short-lived job identity scoped to the repository, environment, action, and duration. Prefer workload federation or a secret broker over long-lived cloud keys. Restrict outbound network access to required services. Block access to host sockets, cloud metadata, unrelated workspaces, and control-plane credentials. Privileged containers and mounted container-engine sockets should be treated as host-equivalent access.
Credentials must not persist in workspace files, process arguments, debug archives, or reusable images. Redaction helps, but it cannot protect a secret deliberately transformed or exfiltrated by hostile code. The primary defense is to prevent an untrusted job from receiving the secret.
Treat caches and workspaces as cross-job channels
A cache can carry executable content from one job to another. Restrict write authority, separate protected and untrusted scopes, validate content where possible, and include relevant identity in keys. Persistent workspaces require reliable cleanup and detection of residue. Ephemeral workers reduce this burden but do not correct an over-broad identity or network policy.
Operate the fleet
Version runner images and agents, patch them through controlled rollout, record which image executed each job, and retire unsupported versions. Monitor unexpected registrations, idle but privileged workers, image drift, failed cleanup, unusual network destinations, and jobs that escape normal duration. Maintain enough trusted capacity for protected work without forcing it onto a weaker pool during demand spikes.
Isolation introduces cost and cold-start latency. Apply it according to consequence, then make the trade-off explicit. A shared fleet can be appropriate for low-risk work. A production deployment should not inherit that risk accidentally because the queue was shorter.
Verify the boundary continuously
Configuration reviews are not enough. Submit controlled canary jobs that attempt prohibited network access, metadata access, cross-workspace reads, and unauthorized credential requests. Confirm that the platform blocks the action and produces evidence. Test cleanup by planting harmless markers and checking that later jobs cannot recover them.
When a boundary fails, identify every workload that used the affected pool during the exposure window. Preserve runner images, registration history, job identity, network records, and artifact publication. Rotate or revoke credentials that could have been reached. Rebuilding the worker without assessing artifacts and downstream actions restores capacity but not confidence.
Document who may place a repository into each runner class and review that entitlement periodically. A well-isolated privileged pool still fails if broad groups can route arbitrary workflows into it.
Failure Handling, Concurrency, and Queue Pressure
Delivery failures are rarely limited to a clean pass or fail. A worker can lose contact after performing an external action. A deployment adapter can time out while the target continues. A cancellation can arrive after a job enters its critical section. Reliable operation depends on defining these ambiguous states before retries and concurrency turn them into duplicate change.
Distinguish failure domains and outcomes
Classify failures across event ingestion, configuration evaluation, scheduling, runner provisioning, execution, artifact transfer, policy, target integration, and result recording. Preserve the difference between a workload failure and a platform failure. More importantly, distinguish not performed, performed, failed, and outcome unknown. An unknown deployment outcome is not safe to retry until the target state is reconciled.
Design consequential steps to be idempotent where possible. Use stable operation identifiers, target-state checks, and reconciliation. Database migrations, ticket creation, notifications, and external provisioning often need explicit deduplication or compensation. A retry policy should name the errors it handles, its limit and backoff, and the evidence required before another attempt.
Control concurrency at the right scope
Concurrency may be safe across independent tests and unsafe across changes to one environment. Define groups around the resource whose state must remain coherent: an environment, tenant, database, shared account, or release train. Decide whether a newer run should wait, cancel an older queued run, or supersede it. Never assume cancellation instantly stops external work.
Prevent stale work from deploying after newer work. Before a consequential action, recheck revision, approval, artifact identity, and environment state. Environment locks need owners, leases, expiry, and recovery procedures. A lock with no safe break mechanism converts a failed coordinator into an indefinite outage.
Treat the queue as operational state
Queue depth alone is weak. Measure age, start latency, workload class, blocked dependency, cancellation age, and oldest protected job. Bursts may come from a monorepo fan-out, scheduled work, mass retry, provider recovery, or an incident. Each needs a different response. Autoscaling cannot help when a downstream rate limit or serialized environment is the bottleneck.
Define priority without permitting permanent starvation. Reserve capacity for emergency and protected work, cap noisy tenants, and apply fair sharing across teams. Admission control may reject or defer low-value duplicate work before it consumes scarce execution. Coalesce superseded validation when the organization does not need every intermediate revision.
Plan capacity and backpressure
Model normal demand, burst demand, runner provisioning time, job duration, external quotas, and cost limits. Warm capacity reduces start latency but costs money. Ephemeral capacity improves isolation but may start slowly. Use evidence to choose the balance for each class. Protect the control plane from retry storms with bounded client retries, jitter, circuit breaking, and rate-aware scheduling.
Recover the queue deliberately
After an outage, replaying every accepted event may recreate obsolete work and overload dependencies. Reconcile desired state first. Cancel superseded runs, retain required audit evidence, prioritize current protected changes, and increase capacity only where downstream systems can absorb it. Communicate which work will not be replayed.
A healthy queue is not an empty queue at all times. It is a governed commitment: work is admitted consciously, ordered according to consequence, and given a conclusive outcome without compromising shared state.
Make failure policy visible to pipeline authors
Platform defaults should expose timeout, retry, cancellation, and concurrency behavior in plain language. Silent defaults become production behavior even when authors never chose them. Provide safe patterns for common operations and require explicit review for unbounded fan-out, privileged retries, or jobs that can outlive their initiating run.
Review queue incidents as system events. Ask which work was admitted, which dependency saturated first, why clients retried, whether priority behaved as intended, and how long the oldest consequential work waited. Adding workers is only a complete correction when execution capacity was the demonstrated bottleneck.
Publish queue status and degraded-service decisions to users. When teams cannot see whether work is delayed, rejected, or unsafe to retry, they create parallel runs and worsen the condition.
Observability for Delivery Systems
A delivery platform can report green infrastructure while its users wait, retry, and bypass. Observability must follow the delivery journey from accepted event to verified outcome and make platform failure distinguishable from the software feedback the platform is meant to produce.
Start with the user journey
Give each delivery attempt a correlation identity that connects the source event, evaluated workflow, scheduled jobs, runner instance, artifact digest, policy decision, environment action, and final verification. Preserve parent-child relationships for fan-out and fan-in. Without this context, operators assemble an incident from timestamps across unrelated consoles.
Define completion from the user’s perspective. A job finishing on a runner is not complete if its artifact is still uploading or its deployment acknowledgment is missing. Record when the platform accepts responsibility, when work becomes runnable, when it starts, when an external side effect occurs, and when the outcome becomes conclusive.
Measure demand, latency, errors, and saturation
Measure event rate, queued work, queue age, start latency, execution duration, end-to-end completion, runner utilization, provisioning time, control-plane limits, dependency latency, retries, cancellations, stale runs, manual interventions, and environment-lock age. Segment by workflow class, tenant, runner group, environment, and failure domain. Avoid high-cardinality labels that expose secrets or make telemetry unusable.
A pipeline success rate mixes platform health with expected test and policy failures. Build a taxonomy that attributes failure to workload, platform, dependency, policy, or unknown cause. Track unknowns because they reveal missing evidence. Measure repeated retries and manual restarts as service friction even when the final run succeeds.
Make logs and traces safe enough to use
Use structured logs with stable event names and identifiers. Record decisions, not only stack traces: why a job waited, which concurrency rule applied, which runner image executed it, and why a credential request was denied. Redact secrets before ingestion and restrict access to logs that may contain source, environment names, or deployment details.
Trace calls across webhooks, schedulers, runner managers, artifact services, policy engines, and deployment adapters where the platform allows it. Sampling must preserve rare failures and protected delivery paths. Audit records for workflow changes, approvals, administrative actions, runner registration, and emergency use require stronger retention and integrity than ordinary debug telemetry.
Alert on user harm and loss of control
Alert on sustained start-latency breaches, old protected work, runner-pool exhaustion, widespread unknown outcomes, stuck locks, failed credential issuance, artifact publication failure, and loss of audit evidence. Do not page the platform team for every application test failure. Route actionable product feedback to the owning team and platform symptoms to platform responders.
Use service objectives to drive improvement
Review objectives by workload class and inspect the slowest and most retried journeys. Tie improvement to causes such as insufficient warm capacity, noisy-neighbor behavior, provider limits, template regressions, or approval latency. A dashboard should support a decision: add capacity, isolate a tenant, repair an integration, change a limit, or communicate degraded service.
Observability should also survive the primary platform. Export essential audit and operational evidence to a protected destination so a control-plane outage does not erase the data needed to understand it. That evidence becomes critical when normal delivery is unavailable.
Build operator views around questions
An incident view should answer whether events are being accepted, where work is waiting, which pools are saturated, which dependencies are failing, and whether any environment has an unknown outcome. A service-owner view should show objective performance, demand growth, top causes of delay, tenant imbalance, and recurring manual work. A team view should explain why its run is waiting or failed without requiring platform access.
Validate telemetry during failure. Disconnect a runner manager, exhaust a quota, delay an artifact service, and create a stale lock. Confirm that the signals identify the failing boundary and that alerts reach the owner able to act. Telemetry that only works during successful execution is documentation, not operational evidence.
Retain enough history to compare incidents with normal demand and recent platform changes. Without a baseline, operators may mistake a predictable daily burst for an anomaly or overlook a slow degradation hidden by weekly averages.
Recovering When the Deployment System Is Unavailable
The delivery system is most valuable when production needs change urgently. If its failure removes the only safe way to deploy, a minor defect can become a prolonged incident. Recovery planning must preserve control while restoring the minimum capability needed to change production.
Define the minimum trusted delivery capability
For many services, the minimum path must retrieve an already trusted artifact by digest, authenticate with short-lived authority, target a defined environment, execute a constrained change, record approval and operator identity, observe the result, and reverse or stop if conditions worsen. It may not need the complete development pipeline. It does need an unambiguous artifact and a durable record.
Identify which parts must remain independent of the primary platform. An emergency procedure that requires the failed scheduler, secret broker, identity provider, or artifact store has not removed that dependency. Complete independence is expensive, so choose it according to consequence and document shared failure modes honestly.
Separate outage from compromise
A capacity failure, provider outage, configuration error, and suspected compromise require different responses. Failover may help an outage and replicate a compromise. If integrity is in doubt, freeze normal promotion, preserve evidence, revoke affected identities, identify artifacts produced during the exposure window, and use a trusted alternate only after its inputs and authority are established.
Prepare a narrow emergency path
Preauthorize roles and decision rights. Require two-person control where consequence justifies it. Limit environments, operations, artifact sources, and time. Generate tamper-resistant records and expire emergency access automatically. The path should be easier to audit than an improvised administrator shell, even if it is less feature-rich than normal delivery.
Do not store an unrestricted production key in a sealed document and call that recovery. Protect credentials through an independent broker or controlled break-glass mechanism, test issuance, and monitor every use. If manual commands are unavoidable, version and review the procedure, validate target state before action, and capture exact commands and results.
Back up authoritative state
Protect workflow definitions, shared templates, policy, runner configuration, integration settings, environment mappings, identity configuration, audit records, and references to secrets. Preserve immutable artifacts and provenance for the supported rollback period. Caches and disposable workers can usually be reconstructed; authoritative configuration and evidence cannot.
Test restoration into an isolated environment. A configuration export that cannot be imported under current product versions is not a recovery capability. Record recovery dependencies, expected time, data loss, and who can authorize return to service.
Reconcile after restoration
When the primary service returns, do not simply resume every queued job. Reconcile environment state, artifact digests, approvals, locks, and actions taken through the alternate path. Cancel stale runs and restore ordinary authority. Review and close emergency access. Recreate missing evidence and record any gap that cannot be repaired.
Exercise under realistic conditions
Run drills that remove a real dependency and require responders to deliver a low-risk change through the alternate path. Test both outage and suspected-compromise scenarios. Measure time to decide, time to obtain authority, time to deploy, evidence completeness, and reconciliation effort. A procedure read aloud in a meeting is not a recovery test.
The result is not a second full platform maintained for appearance. It is a deliberately small, trustworthy capability matched to production consequence. Once the service can deliver dependably, the next trench is deciding which risks the delivery system must test before a change deserves release.
Govern return to normal operation
Name the authority that declares the primary service trustworthy again. Restoration of availability is insufficient after suspected compromise. Verify administrative configuration, runner registration, integration credentials, policy state, audit continuity, and artifacts produced during the affected period. Record which evidence supports the decision and which uncertainty remains.
After every use of the alternate path, review whether it was narrow enough and whether responders could use it without private knowledge. Correct the normal platform as well as the fallback. An emergency path that is easier than ordinary delivery will attract routine use; one that is impossible under pressure will be abandoned. The design must sit between those failures.
War Story The Pipeline Outage That Extended a Minor Incident
This is a composite scenario built from recurring patterns in enterprise delivery incidents. Names, timings, technologies, and organizational details are fictionalized. It is not presented as a verified account of one company.
A financial-services company used one shared delivery platform for more than four hundred repositories. The platform team had standardized templates, centralized production credentials, and removed direct administrator access from most application teams. Delivery was faster and routine changes were easier to audit.
On a Monday morning, a malformed response from an external identity service caused one customer-facing API to reject a small class of requests. Engineers prepared a configuration correction within twenty minutes. The artifact already existed in the trusted registry. Only promotion to production remained.
The second failure
The production pipeline stayed queued. A shared validation template released earlier that morning had triggered duplicate workflows across large monorepositories. Developers retried slow jobs, which added demand. Runner autoscaling reached its cloud quota, while the scheduler continued to accept work. A policy integration also slowed because every queued run requested the same authorization check.
Operators first treated the problem as insufficient compute. They raised a concurrency limit, but the identity service and artifact proxy became the next bottlenecks. Start latency increased. Several workers lost contact after receiving jobs, leaving the control plane uncertain whether consequential steps had begun.
The emergency path that was not independent
The incident commander invoked the documented emergency process. It used a manually approved pipeline on a reserved runner. The runner was reserved, but approval, credential issuance, artifact lookup, and environment locking still depended on the same control plane. The process waited behind the failure it was meant to bypass.
A senior administrator proposed deploying from a workstation. The production cluster no longer accepted personal credentials, which was an intentional control. Another engineer found an older automation script, but it selected artifacts by release tag and could not produce the organization’s required deployment record. Using it would restore speed by discarding the controls introduced after an earlier audit.
Regaining control
The platform team stopped admission of low-priority scheduled work and disabled automatic retries in the affected template. It isolated the oldest protected jobs, verified that no deployment had reached the target, broke a stale environment lock under two- person approval, and assigned one known-clean runner to the correction. The artifact was promoted by digest and the API recovered.
The customer defect lasted less than an hour in engineering terms. Customer impact lasted nearly three hours because the organization could create a fix but could not reliably move it. The delivery platform had become part of the production critical path without receiving production-class capacity, failure semantics, or recovery design.
What changed
The company mapped the full delivery journey and named one team accountable for it. Workload classes received explicit priority and fairness rules. Emergency capacity was reserved end to end, including identity, artifact, and environment-control dependencies. Retries became bounded and jittered. Environment locks gained leases, owners, and a controlled break procedure.
Runner pools were separated by trust and consequence. Untrusted validation could no longer consume protected deployment capacity. Dashboards added queue age, oldest protected job, unknown outcomes, lock age, runner provisioning time, and dependency saturation. The team defined objectives for start latency and conclusive completion rather than celebrating average job duration.
The alternate path was rebuilt around a narrow capability: retrieve a previously trusted artifact by digest, acquire short-lived emergency authority, deploy to a named environment, record the decision, and observe the result. It did not compile code or accept arbitrary scripts. Quarterly drills tested both platform outage and suspected compromise, followed by reconciliation into the restored system.
The management lesson
Leadership initially asked why an expensive platform needed reserved idle capacity. The incident reframed the cost. The relevant comparison was not utilization of a runner fleet. It was the business cost of being unable to change production safely during an incident. The company paid for limited warm capacity, independent evidence, and recovery drills because those controls shortened the period in which it could not act.
Centralization had not been the mistake. Centralization had made the platform valuable and increased its consequence. The mistake was operating that authority as a collection of templates rather than as a production service.
Lessons from the Trenches
Pipeline configuration is not the platform
• The service includes event ingestion, orchestration, execution, identities, artifacts, policy, environments, state, telemetry, and dependencies. Operate the complete path.
Ownership must follow the user journey
• Component owners are necessary. One accountable service owner must still explain why accepted work did not reach a conclusive outcome.
Runners are a security and reliability boundary
• They execute repository code and may reach sensitive networks and identities. Separate workload classes, remove ambient privilege, and treat persistent state as a cross-job channel.
Unknown is an operational state
• After a timeout, a consequential action may have succeeded.
Reconcile target state before retrying. Design operations for idempotence, deduplication, or compensation.
Queues express policy
• Priority, fairness, admission, cancellation, and reserved capacity determine whose work proceeds under pressure. Make those decisions explicit before an incident.
Observe waiting and intervention
• Average duration hides old protected jobs, repeated retries, stale locks, and manual recovery. Follow the path from accepted event to verified outcome.
Emergency delivery must be smaller, not uncontrolled
• Limit its artifacts, operations, environments, identities, duration, and authority. Record every use and reconcile when normal service returns.
Outage and compromise are different
• Failover can restore an unavailable service and spread a corrupted one. Decide which condition exists before moving authority.
Recovery depends on retained artifacts and evidence
• A crisis is not the time to rebuild a prior release or rediscover which digest ran. Preserve artifacts, provenance, configuration, and audit records for the required recovery period.
The practical review
• Choose one protected deployment. Trace its identities, queues, runner, artifact, policy, environment lock, external dependencies, telemetry, and fallback. Then remove the primary control plane in a drill. Every assumption that cannot be demonstrated becomes part of the operating backlog.
Capacity is part of control
• When protected work has no assured capacity, incident pressure pushes teams toward weaker runners, shared credentials, and manual deployment. Reserve capacity according to consequence and test the downstream services needed to use it.
A retry is a change decision
• Retrying is safe only when the previous outcome is known or the operation is designed for repetition. Treat automatic retries of consequential steps as reviewed production behavior, not harmless resilience.
Evidence must outlive the worker
• Ephemeral execution improves isolation, but investigation still needs runner identity, image, inputs, logs, network decisions, artifact digest, and external outcomes. Export that evidence before the worker disappears.
Standardization increases responsibility
• A shared platform can reduce variation and improve control. It also concentrates outage and compromise consequence. The more teams depend on one delivery service, the stronger its ownership, change discipline, capacity management, and recovery obligations become.
Operational Checklist
Architecture, ownership, and service levels
☐A named owner is accountable for the end-to-end CI/CD service, including hosted-provider dependencies.
☐The control plane, execution plane, state stores, identity paths, artifact services, policy services, and deployment adapters are mapped.
☐Workload classes are defined by production consequence, privilege, reversibility, and time sensitivity.
☐Service indicators distinguish event acceptance, queue wait, start latency, execution, publication, promotion, and verified completion.
☐Service objectives are segmented by workload class and include a tested emergency-delivery expectation where required.
☐Support hours, on-call ownership, escalation, maintenance, and dependency contacts are published.
Runner and workload boundaries
☐Runner groups record who can submit work, what credentials they can obtain, which networks they can reach, and what state persists.
☐Untrusted contributions cannot access protected secrets, caches, networks, runners, or production identities.
☐Privileged jobs use short-lived, narrowly scoped workload identity rather than shared long-lived credentials.
☐Runner workloads cannot reach host sockets, cloud metadata, unrelated workspaces, or control-plane credentials without an approved exception.
☐Runner images and agents are versioned, patched, attributable to jobs, and retired through controlled rollout.
☐Cache write authority and namespaces follow trust boundaries and prevent untrusted-to-protected reuse.
Failure, concurrency, and queue pressure
☐Consequential operations define idempotence, deduplication, compensation, or reconciliation before retry.
☐The platform distinguishes failed, cancelled, not performed, performed, and outcome unknown.
☐Concurrency groups and environment locks match the resource whose state must remain coherent.
☐Locks have owners, leases, age telemetry, and an authorized recovery procedure.
☐Stale or superseded runs are prevented from applying older intent to a newer environment.
☐Queue policy defines admission, priority, fairness, tenant limits, emergency reservation, and replay after outage.
☐Capacity planning includes provisioning delay, downstream quotas, burst demand, cost limits, and noisy-neighbor behavior.
☐Retries are bounded, back off with jitter, and cannot amplify a provider or control-plane failure.
Observability and evidence
☐A correlation identity connects source event, workflow, jobs, runner, artifact digest, policy, deployment, and verification.
☐Dashboards expose queue age, oldest protected work, runner saturation, unknown outcomes, stale locks, retries, and manual intervention.
☐Alerts target user harm, loss of control, and evidence failure rather than every application test failure.
☐Administrative, approval, runner-registration, and emergency-use records are retained outside the primary failure domain where required.
Recovery and emergency delivery
☐The minimum trusted delivery capability is defined for critical services and retrieves artifacts by immutable digest.
☐Emergency authority is narrow, short-lived, monitored, tested, and followed by reconciliation and access closure.
☐Outage and suspected-compromise procedures differ, including freeze, revocation, evidence preservation, and alternate-builder trust.
☐Workflow, template, policy, runner, identity, environment, audit, artifact, and provenance recovery has been restored in a drill.
☐A realistic exercise has demonstrated delivery while the primary platform or a named dependency is unavailable.
Further Reading
NIST SP 800-204D, Strategies for the Integration of Software Supply Chain
Security in DevSecOps CI/CD Pipelines
A concise architecture and control reference for integrating supply-chain security into CI/CD. Read it for trust boundaries, pipeline stages, and the relationship between security services and delivery workflows.
CISA and NSA, Defending Continuous Integration/Continuous Delivery
Environments
Operational guidance on protecting identities, secrets, runners, repositories, artifacts, and administrative access in CI/CD environments. Use it to challenge assumptions about where compromise can propagate.
OWASP, CI/CD Security Cheat Sheet
A practical threat-oriented review of pipeline configuration, dependencies, credentials, workers, and third-party services. It is useful as a review companion, not a substitute for an architecture model.
Google, Site Reliability Engineering: Release Engineering
Explains reproducible, automated, hermetic, and policy-driven release practices at scale. It helps connect delivery mechanisms to operational reliability and organizational control.
Google, The Site Reliability Workbook: Implementing SLOs
A practical guide to selecting service indicators and objectives. Apply its reasoning to developer-facing delivery journeys rather than copying availability targets from customer-facing services.
GitHub Docs, Security hardening for GitHub Actions
Official mechanism-level guidance for event semantics, tokens, third- party actions, and runner risk. Review the current documentation against the specific events and runner models your organization uses.
GitLab Docs, Runner security and runner autoscaling
Official operational detail on executor trust, self-managed runner risks, concurrency, autoscaling, and fault-tolerant runner management. Use it to inspect concrete configuration trade-offs.
OpenTelemetry Documentation
The vendor-neutral model for traces, metrics, logs, context propagation, and semantic conventions. It supports end-to-end correlation across delivery components, subject to what each platform exposes.
Jez Humble and David Farley, Continuous Delivery
The foundational treatment of deployment pipelines, feedback, repeatability, and low-risk releases. Some product examples have aged, but the operating principles remain valuable.
The Next Trench
A dependable delivery service can start work predictably, isolate it, govern shared capacity, explain failure, and recover when its normal path is unavailable. That capability answers whether the organization can move change. It does not answer whether the change has confronted the risks that matter.
A long pipeline can still create false confidence. Thousands of fast checks may miss contract drift, production-scale contention, dependency failure, policy changes, corrupted data assumptions, or behavior that appears only under real traffic. A staging environment can resemble production and still omit the interaction that causes harm.
Chapter 17 moves from delivery mechanics to evidence. It asks teams to choose tests by failure consequence, combine contract, integration, performance, and resilience testing, manage data and environment fidelity, verify infrastructure and policy changes, and test safely in production where preproduction cannot reproduce the condition.
The next question is not how many tests ran. It is which operational claim each test supports, which risk remains untested, and how the organization will learn before exposure becomes an incident.
© 2026 Ann Ogechi Felix. All rights reserved. Provided for personal reading and evaluation.