Skip to content

release: add audited macOS beta emergency forward-promotion lane #10063

Closed

Description

@Git-on-my-level

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 .85 candidate'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

  1. Every non-macOS or non-beta request is rejected before any mutation.
  2. Missing, mismatched, stale, or altered artifact evidence is rejected.
  3. A single approval, missing incident ID, expired authorization, or absent behavioral evidence is rejected.
  4. The CAS rejects a pointer changed since authorization.
  5. Successful emergency promotion advances only beta, writes audit/metadata, and starts monitoring.
  6. Normal promotion remains unable to bypass qualification.
  7. Emergency rollback to the prior verified beta is executable and audited.

Related

Activity

  1. Git-on-my-level commented on Jul 22, 2026

    @Git-on-my-level
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions