Rollback Flowchart
The protocol below shows the sequence from regression detection to full recovery.Detection Triggers
Automated triggers initiate the freeze step without human approval. Manual triggers require explicit confirmation from the on-call engineer or Release Manager.
Freeze Traffic
Freeze Traffic stops all new requests from reaching the current version. In-flight requests are allowed to complete or timed out based on the backend configuration. DeploymentManager updates the routing layer to send traffic to a maintenance endpoint or to the previous version if already staged.Restore vN-1
The previous version is restored from ArtifactStore. The restoration process:- Locate the artifact for version N-1 using ModelRegistry
- Verify the artifact hash against the registry record
- Load the artifact into InferenceBackend
- Run a smoke test with reference prompts
Verify Hash
Hash verification compares the restored artifact SHA-256 against the canonical hash stored at release time. A mismatch aborts the automated rollback and escalates to manual recovery.Resume Traffic
After successful verification, traffic is gradually resumed:- Internal health checks pass for 60 seconds
- 1% traffic shift for 5 minutes
- 10% traffic shift for 5 minutes
- 50% traffic shift for 5 minutes
- Full traffic restoration
RPO and RTO
RPO and RTO values are engineering assumptions. Final targets will be set after load testing and operational rehearsal.
Post-Mortem
Every rollback requires a post-mortem within 48 hours. The post-mortem is stored in ExperimentTracker and includes:- Regression root cause
- Detection latency
- Rollback execution time
- Verification results
- Recommended preventive action