0% read on this device
Browse the curriculum

Start Here

Vision

First Principles

Operating Model

Domain Model

Agent Factory

Runtime Architecture

AI Engineering

Autonomous Workflows

Verification & Delivery

Factory Platform

Quality Engineering

Security & Governance

Case Studies

Labs

Interview Practice

Research Journal

Reference

Curriculum/Factory Platform/Complete source chapter
Factory Platform15 min readchapterQuick Read

Resilience, Disaster Recovery, and Factory SRE

Keep the factory safe and explainable when its own infrastructure fails.

Status: Review readyRisk: criticalLifecycle: execute · verify · deliver · learnContent reviewed 2026-08-30Maturity guide →
Claim boundaryThis is curriculum guidance. It does not by itself prove a production implementation.
Quick Read

The chapter in one pass.

~3 min
  • Purpose: Keep the factory safe and explainable when its own infrastructure fails.
  • Best for: Reliability, platform, security, architecture, and executive owners.
  • Prerequisites: Release, Production Feedback, and Factory SRE.
  • Reading time: 15 minutes.
  • You will learn: How to define failure domains, graceful degradation, disaster recovery, emergency authority, and resilience exercises.
  • Keep three ideas: durable intent must survive worker loss; failover must preserve authority; and recovery is unproven until exercised.
Whiteboard exercise

Reconstruct and defend this chapter’s architecture.

Reconstruct the architecture, name each boundary, and defend the tradeoffs.

platformoperations15 min chapter
Open the source exercise

Fail the primary control-plane region during active code publication. Add a delayed provider response and a revoked tool. Show fencing, recovery mode, state restore, external reconciliation, operator decisions, and proof that no duplicate publication occurred.

1. The problem

The factory is itself a production system with authority to change other systems. Control-plane loss, corrupted state, unavailable providers, stale leases, regional failure, credential compromise, or evidence-store failure can stall delivery or create unsafe ambiguity. A high-availability worker fleet does not protect authoritative records or prevent duplicate external effects.

2. Why the problem exists

The system spans control, execution, quality, identity, source, model, environment, artifact, deployment, and observability providers. Some failures are transient; others corrupt trust. Recovery objectives differ: losing telemetry may be acceptable briefly, while losing authorization or audit state may require immediate halt.

3. Enduring Principle

Define failure domains and criticality

Inventory components, dependencies, authoritative data, derived data, credentials, external effects, and recovery owners. Classify which capabilities fail closed, degrade read-only, queue safely, switch provider, or require emergency shutdown.

Set RTO and RPO by capability

Recovery time and recovery point objectives apply to control-plane state, evidence, registry, queues, artifacts, and telemetry separately. An RPO of zero for authority records may require synchronous durability; telemetry can often tolerate bounded loss.

Preserve authority across failover

Failover must not create two active authorities, reset budgets, reuse single-use permits, revive revoked capabilities, or duplicate publication. Use fencing tokens, generations, leases, idempotency, reconciliation, and explicit recovery mode.

Engineer graceful degradation

Examples include read-only operator access, stopping new admission while allowing safe cancellation, retaining events locally, switching to prequalified model routes, or delaying publication. Degradation is declared policy, not improvised fallback.

Exercise recovery

Run game days for provider outage, queue corruption, lost worker, expired credential, evidence-store failure, regional loss, and compromised capability. Measure detection, decision, containment, restore, reconciliation, communication, and return to service.

Control emergency authority

Break-glass access is narrowly scoped, time-limited, strongly authenticated, independently logged, and reviewed afterward. Emergency action cannot silently erase history or become the routine operating path.

Recovery contract matrix

SubjectAuthoritative or derivedExample RPORecovery behaviorVerification
Intent, policy, grants, decisionsAuthoritativeZero or near-zero by riskFail closed; restore ordered durable stateIntegrity, sequence, signer, and policy checks
Workflow and attempt stateAuthoritativeBounded by checkpointReconcile leases, commands, and external effectsState-machine invariant and orphan scan
Capability and system inventoryAuthoritativeSmall bounded lossRestrict selection until currentRegistry digest and dependency resolution
Artifacts and evidenceImmutable authoritative recordsZero after publicationRestore by digest with provenanceHash, signature, retention, and subject binding
Search indexes and projectionsDerivedRebuildableRebuild from authoritative events/sourcesCount, digest, and query comparison
TelemetryOperational, partly lossyBoundedRestore collection; mark observation gapCoverage and clock/correlation checks

RTO and RPO are scoped to capability, region, risk, and failure mode. A single platform-wide number hides the records that cannot tolerate loss.

Replay, resume, and reconciliation

Replay reprocesses retained inputs in a controlled environment; it must not repeat external effects unless explicitly simulated or protected by an idempotency contract. Resume continues a paused workflow only after manifest, policy, grants, capabilities, context, leases, and budgets are revalidated. Reconciliation compares desired durable state with workers, queues, providers, artifacts, and downstream systems to classify each effect as absent, completed, failed, or unknown. Unknown is a first-class state requiring investigation.

Disaster and dependency scenarios

Exercise control-store corruption, regional loss, identity issuer outage, model/tool provider degradation, artifact/evidence unavailability, queue duplication, lost worker, compromised credential, and unavailable human approver. Failover uses preapproved identities and versions; it cannot bypass authority or evidence because the primary region is unavailable. Preserve forensic state before destructive repair where safety permits.

Factory SLO and error-budget policy

Define SLIs for admission, dispatch, state durability, control enforcement, successful reconciliation, proof-package availability, recovery time, and accepted-outcome reliability. Error-budget exhaustion reduces change and autonomy, prioritizes reliability work, and may restrict high-risk workflows. Safety and security incidents are not offset by good average availability.

4. Tradeoffs and alternatives

Multi-region active-active improves availability and makes consistency and fencing harder. Warm standby is simpler and increases recovery time. Chaos experiments reveal coupling and can harm shared environments; begin with simulation and controlled fault injection. Keeping every provider fallback ready may be more expensive than accepting bounded unavailability.

5. Current Mission Control Implementation

The current guide covers durable state, leases, retries, idempotency, reconciliation, cancellation, cleanup, provider degradation, alerts, SLOs, error budgets, and recovery. It does not yet specify or prove complete disaster recovery, regional failover, backup restoration, split-brain protection, or game-day evidence for the factory as a whole.

6. Future Vision

The factory should publish a dependency and recovery map, automate backups and restore verification, enter declared degraded modes, and reconcile every uncertain external effect after recovery. Promotion of autonomy should require recent recovery evidence for the supporting platform.

7. Versioned references

8. Notes and lessons learned

Factory reliability is a safety control. When the system cannot prove current authority, configuration, or evidence, availability should yield to containment.

9. Interview and discussion questions

  1. Which factory components require an RPO of zero?
  2. How do fencing tokens prevent split-brain execution?
  3. What can remain available when admission is stopped?
  4. Which fallback changes require new approval?
  5. What evidence proves disaster recovery works?

10. Whiteboard exercise

Fail the primary control-plane region during active code publication. Add a delayed provider response and a revoked tool. Show fencing, recovery mode, state restore, external reconciliation, operator decisions, and proof that no duplicate publication occurred.

11. Hands-on lab

Use a simulation or disposable environment. Stop a worker, fail one dependency, restore authoritative state from backup, reconcile a delayed completion, and verify idempotency. Record detection, RTO/RPO, decisions, lost data, cleanup, and corrective actions.

External review

Review this chapter.

Challenge a claim, boundary, missing failure mode, unclear term, or unsupported evidence statement.

  • Claim
  • Boundary
  • Failure
  • Evidence