Control Packs · CHG-002 · v1.0.0
When a release half-fails,
know where you stand.
Detect a failed deployment. Bound the rollout. Return to a known state.
Deployment Rollback and Recovery
In review
See it in an app
Where this goes wrong in an app.
Pick the kind of app closest to yours. Amber marks where the problem happens. Blue marks where your decision applies.
In the failure map
Which step of a system this protects.
Most systems built with AI agents follow these steps. This safeguard covers the highlighted one. See the map for your own system →
- Starts hereA request or outside content arrives
- Decided hereThe app or AI decides what to do
- Acts hereThe change is made
- This safeguard’s step: Checked afterThe result is recorded and watchedA failed release cannot recover
- Stored throughoutRecords every step reads and writes
Reference and context
Pack reference · v1.0.0
What this safeguard addresses
Make deployment failure states explicit through health checks, bounded rollout, rollback, reconciliation, and operator-visible escalation.
- Deployment failure leaves production in an unknown stateA change partially applies across services or dependencies without a tested rollback, reconciliation, or operator handoff.
Matching rule
{
"all": [
{
"characteristic": "PRODUCTION_MODIFICATION",
"equals": true
},
{
"characteristic": "EXTERNAL_DEPENDENCY",
"equals": true
}
]
}Decisions you need to make
Leave a decision open when its value is unknown. Confirm a suggested value only if it matches your intended design.
- What is the recovery path when a production deployment partially applies?Rollback, forward fix, and operator hold have different safety and data consequences.CHG-002-Q1 · choice
Requirements for the coding agent
- CHG-002-R1Use pre-deployment checks, staged rollout, health-based stop conditions, tested rollback or forward recovery, and reconciliation for dependent state.
Tests and evidence to keep
- DEPLOYMENT_ROLLBACK_TESTExercise preflight failure, staged failure, dependency outage, rollback, forward recovery, and reconciliation.
- configuration_or_policy
- implementation_location
- test_result
- telemetry_definition
- operational_procedure
Passing a published example shows that example's behavior. A coding agent's implementation report remains a claim until its evidence is independently checked.
Related guidance
- CM-3 · Configuration Change ControlNIST_SP_800_53_5_2_0 · partially addressesStaged rollout and health-based stop conditions support controlled change; they do not cover complete configuration governance.
- CP-10 · System RecoveryNIST_SP_800_53_5_2_0 · partially addressesRollback, forward recovery, and reconciliation address a defined deployment-recovery scenario; they do not cover all contingencies.
- IR-4 · Incident HandlingNIST_SP_800_53_5_2_0 · informsDeployment failure handling informs incident response coordination; it is not an incident-handling program.
These references cover related topics. They do not mean this pack satisfies a framework, certifies your project, or has government endorsement.
- Amazon Web Services Builders' Library — Timeouts, retries, and backoff with jitterGUIDANCE_RELIABILITY
- Internet Engineering Task Force — HTTP SemanticsRESEARCH_IDEMPOTENCY
- National Institute of Standards and Technology — Security and Privacy Controls for Information Systems and OrganizationsGUIDANCE_NIST_SP_800_53_5_2_0
Design guidance, not independently verified implementation or certification.