Repository navigation
Description
Problem
A signed/notarized macOS beta candidate can be ready while ordinary exact-candidate qualification is unavailable or delayed (for example, a stalled trusted runner or a failed CI-to-qualification dispatch). The normal promotion workflow correctly refuses to move the beta pointer without qualification evidence, but there is no deliberately constrained, audited emergency forward-promotion procedure.
This is distinct from rollback: PR #10051 added the source-side audited macOS beta rollback endpoint, merged as dee98b31143fc322651537cd9c64e03745d74dbf. Its production control-plane deployment remains a separate prerequisite.
Scope
Implement a dedicated, beta-only emergency forward-promotion lane for an already published immutable macOS candidate. It must not be a generic skip_qualification flag and must never affect Stable.
Required controls
- Hard-code scope to
platform=macos,channel=beta; reject every other platform/channel. - Require exact release tag, immutable source SHA, GitHub release publication, signed-artifact smoke evidence, and recomputed ZIP/DMG digest binding.
- Require the normal source gate to have passed for the candidate source SHA.
- Require an incident identifier, named emergency rationale, expiry/TTL, and two independently authorized approvals.
- Require an incident-specific behavioral evidence attachment (for a startup-crash incident, an actual signed-app launch / crash-regression check), not merely static source assertions.
- Make the exception explicit in release metadata:
emergencyPromotion=true, approvers, incident ID, evidence URLs/digests, timestamp, expiry, and reason. - Create immutable append-only audit records before advancing the pointer.
- Use expected current release + generation compare-and-swap when advancing the beta pointer.
- Keep normal qualification and normal promotion unchanged and fail-closed.
- Emit immediate notification plus a mandatory one-hour beta-only health monitor and a rollback recommendation/alert on regression.
- Prove Stable pointer/appcast/release metadata are unchanged.
Operational prerequisites
- Deploy and verify the beta-only emergency rollback API from PR fix: add audited macOS beta emergency rollback #10051 before relying on this lane operationally.
- Fix the Codemagic-to-GitHub qualification dispatch credential; the
.85candidate's artifact stages succeeded but the dispatch failed with HTTP 403. - Provide a priority/secondary trusted macOS qualification runner so break-glass remains exceptional rather than routine.
- Add a documented incident runbook and an exercise against a non-live candidate.
Acceptance tests
- Every non-macOS or non-beta request is rejected before any mutation.
- Missing, mismatched, stale, or altered artifact evidence is rejected.
- A single approval, missing incident ID, expired authorization, or absent behavioral evidence is rejected.
- The CAS rejects a pointer changed since authorization.
- Successful emergency promotion advances only beta, writes audit/metadata, and starts monitoring.
- Normal promotion remains unable to bypass qualification.
- Emergency rollback to the prior verified beta is executable and audited.
Related
- PR fix: add audited macOS beta emergency rollback #10051 — audited beta rollback source implementation
- ci(release): stateless release rings v1 — build once, promote digests beta → prod, rollback = deploy older record #10049 — release rings / rollback design
- Desktop Release V2: safe resumable beta/stable promotion engine with candidate-first rollback #9525 — resumable promotion engine
- Harden desktop release control plane without a new service #9415 — release control-plane hardening
Activity
Git-on-my-level commentedon Jul 22, 2026
Shipped: .github/workflows/desktop_breakglass_rollout_beta.yml (beta-only, CAS on expected_generation, incident URL + rationale required), refined by #10091 'beta break-glass as a relaxed precondition, not a parallel subsystem'; desktop_rollback_beta.yml and desktop_breakglass_credential_preflight.yml cover the prerequisites.