Skip to main content

21 — Versioning, release gates & failure modes.

Layerup releases are configuration promotions across a fixed environment ladder, gated by evals, drift, and error budgets. Every plane has a documented failure-mode matrix; failure is a first-class state of the substrate.

21.1 Version domains

21.2 Promotion ladder

Fig. 21.1 — Promotion ladder. Gates run automatically at each step; manual sign-off is required at UAT. Rollback is one operator action.

21.3 Release gate matrix

21.4 Canary algorithm

  1. Route a small percentage of eligible traffic to the candidate (default 1%).
  2. Observe per-step quality, latency, error budget, and drift sigma in 15-minute windows.
  3. Ramp to 5% → 25% → 100% only if all watched metrics stay within bounds.
  4. Any 2σ deviation pauses the ramp; any 3σ deviation rolls back.
  5. Rollback is content-hash promotion of the prior version; takes effect within one minute.

21.5 Rollback strategy

  • Every promoted artefact records its predecessor’s content hash; rollback is a one-step re-promotion of the predecessor.
  • In-flight runs at rollback continue against their pinned versions; no run is mid-air-upgraded.
  • Rollbacks are typed AuditEvents (config.rollback) on the tenant chain.

21.6 Failure-mode matrix

The platform classifies failures into 16 typed modes. Each mode has a detection rule, a containment path, a fallback, and an audit signature. This list is canonical; tenant-specific modes inherit from these classes.

21.7 Incident response posture

  • Severity bands (S0–S3) per failure mode with documented response times.
  • Tenant security primary notified on S0 / S1 and on any audit-chain breach within 15 minutes.
  • Postmortems include contributory drift / eval signals and any release that crossed the gate.
  • Postmortems become typed AuditEvents (incident.summary) on the tenant chain.

21.8 Change freeze

During declared change freezes (tenant-defined windows or platform-declared post-incident windows), promotion is auto-blocked across all domains except security-critical patches. Freeze status is visible on the tenant config dashboard.