{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Rollout",
 "ref": "Rollout#ea8c",
 "hash": "sema:Rollout#mh:SHA-256:ea8c8bdf3303e53d240d6393a776de33ff7c0980a269539d6eb22a8b35e430b4",
 "stub": "ea8c",
 "layer": "Society",
 "type": "Protocols",
 "summary": "Progressive deployment with canary gating and recorded compensation",
 "mechanism": "Creates a durable RolloutManifest#248d before enabling the EjectionSeat#a9d5 or dispatching work, then executes the approved `operation_sequence` in an ExecutionManifest#fed5 as state-changing Act#2dfes inside a CircuitBreaker#3caa envelope. Before dispatching any canary or forward state-changing action, Rollout creates a `prepared` manifest entry containing a discoverable idempotent inverse for Compensate#4b87 that is safe to invoke when the forward outcome is unknown. The entry becomes `armed` before the action is sent, and its `outcome: unknown` is replaced only when an outcome is observed. If no safe inverse can be prepared, Rollout refuses that action and enters the same terminal cleanup path as a breaker trip. Rollout first runs a bounded real-path Canary#d38c. `proceed` is the sole authorization for full execution or commitment of canary progress. On `caution` or `abort`, unless preempted by EjectionSeat#a9d5, Rollout invokes Break#5003, invokes Compensate#4b87 for every armed canary entry whose outcome is effectful or `unknown`, records the result, permits only DESTROY or RECYCLE, freezes the manifest, and terminates this run; retry requires a new Rollout. An inverse-preparation failure or breaker trip, unless preempted by EjectionSeat#a9d5, invokes Break#5003, stops forward execution, invokes Compensate#4b87 for every armed entry whose outcome is effectful or `unknown`, records every per-inverse result, freezes the manifest, and terminates this run; neither breaker recovery nor retry resumes it, and either requires a new Rollout. A received EjectionSeat#a9d5 signal always takes precedence over all cleanup paths: PAUSE suspends forward and compensation work and leaves the manifest open; TERMINATE stops new forward work, invokes Break#5003, permits best-effort Compensate#4b87 during graceful shutdown without allowing acknowledgement or cleanup to block termination, and then freezes the manifest; EMERGENCY halts immediately with no compensation and no final-write guarantee, so only an incomplete immutable prefix with no guaranteed final outcome entry is available. Outside EMERGENCY, Rollout freezes the manifest when the run terminates.",
 "invariants": [
  "No state-changing Act#2dfe is attempted before the RolloutManifest#248d records its discoverable idempotent inverse, safe under an `unknown` outcome; otherwise it is refused as an inverse-preparation failure.",
  "`proceed` alone authorizes full execution or committed Canary#d38c progress.",
  "`caution`, `abort`, inverse-preparation failure, or a CircuitBreaker#3caa trip starts no further forward work and, absent EjectionSeat#a9d5 preemption, enters ordinary terminal cleanup.",
  "Ordinary terminal cleanup invokes Break#5003, then Compensate#4b87 for every effectful-or-`unknown` armed entry, records each inverse result, and terminates with the manifest frozen.",
  "A terminated Rollout never resumes; retry and breaker recovery use a new Rollout.",
  "A received EjectionSeat#a9d5 signal preempts ordinary cleanup in favor of its selected mode.",
  "PAUSE suspends forward and compensation work and leaves the Rollout and its manifest open.",
  "TERMINATE starts no further forward work, invokes Break#5003, and permits best-effort Compensate#4b87; Break acknowledgement and cleanup cannot block termination with a frozen manifest.",
  "EMERGENCY halts immediately without cleanup or a final manifest write.",
  "Outside EMERGENCY, the RolloutManifest#248d records every armed action, compensation action, and observed inverse result; at freeze, each forward entry contains its observed outcome or `unknown` if unobserved."
 ],
 "parameters": {},
 "signature": [
  "Act(ExecutionManifest)"
 ],
 "preconditions": [
  "ExecutionManifest#fed5 is approved",
  "CircuitBreaker#3caa is configured for the operation target and CLOSED",
  "Canary#d38c telemetry collection is active for the bounded path",
  "EjectionSeat#a9d5 readiness has a recorded successful test and its dedicated channel, operator key, and operator are available"
 ],
 "postconditions": [
  "If the run terminates without EMERGENCY, the RolloutManifest#248d is frozen with each armed action and its observed or `unknown` outcome.",
  "If EMERGENCY occurs, immediate halt is the only guaranteed outcome; the durable RolloutManifest#248d may contain only an incomplete immutable prefix with no guaranteed final outcome entry."
 ],
 "failure_modes": [
  "Canary false positive: The bounded real path returns `proceed`, but full execution encounters conditions the canary did not cover.",
  "Dirty compensation: One or more recorded inverse actions fails, leaving partial state; the failure remains in the RolloutManifest#248d.",
  "Forward execution drift: An attempted forward action does not match the next authorized action in the approved ExecutionManifest#fed5 operation sequence.",
  "Audit drift: An armed canary or forward action, or any compensation action, is absent from the RolloutManifest#248d.",
  "Emergency residue: EjectionSeat#a9d5 EMERGENCY mode halts without cleanup, so effects from already attempted actions can remain."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Rollout",
 "builds_on": [
  {
   "alias": "ejection_seat",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "EjectionSeat",
   "ref": "EjectionSeat#a9d5",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/EjectionSeat"
  },
  {
   "alias": "compensate",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Compensate",
   "ref": "Compensate#4b87",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Compensate"
  },
  {
   "alias": "canary",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Canary",
   "ref": "Canary#d38c",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Canary"
  },
  {
   "alias": "circuit_breaker",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "CircuitBreaker",
   "ref": "CircuitBreaker#3caa",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CircuitBreaker"
  },
  {
   "alias": "break",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "Break",
   "ref": "Break#5003",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Break"
  },
  {
   "alias": "act",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Act",
   "ref": "Act#2dfe",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Act"
  },
  {
   "alias": "rollout_manifest",
   "relation": "yields",
   "library": "bootstrap",
   "slug": "RolloutManifest",
   "ref": "RolloutManifest#248d",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/RolloutManifest"
  },
  {
   "alias": "execution_manifest",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "ExecutionManifest",
   "ref": "ExecutionManifest#fed5",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ExecutionManifest"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "Deploy",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Deploy"
  },
  {
   "slug": "OrchestrationLoop",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/OrchestrationLoop"
  },
  {
   "slug": "RealizationProtocol",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/RealizationProtocol"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Rollout",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Rollout.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
