Skip to content

release: separate qualification evidence from promotion permission (make override expressible, on the record) #10082

Description

@Git-on-my-level

Problem

In the desktop release control plane, qualification evidence and promotion permission are the same object. qualification.passed is simultaneously:

  • a factual claim that a rebuild-from-tag, hermetic T2, and the fault suite ran and passed, and
  • the permission token required to move a channel pointer.

Because they are fused, the only way to obtain permission is to assert a fact. When an operator legitimately decides to ship without full qualification, the system offers exactly two options: fabricate the evidence, or don't ship. There is no override field, no reason, no operator attribution.

The check is server-side, so this is not a client-side script gate that can be worked around cleanly:

  • backend/database/desktop_update_channels.py:158 — _build_channel_pointer rejects any manifest without qualification.passed is True and tier == "T2"
  • backend/database/desktop_update_channels.py:200 — _build_beta_rollback_pointer applies the identical check, so a fabricated manifest also becomes a sanctioned rollback target in a future incident
  • .github/scripts/prepare-desktop-beta-promotion.py fail-closes earlier with FAIL: release must have qualifiedBeta: true

Evidence

During the v0.12.86+12086-macos incident (2026-07-20), users were crashing on .85 and .86 contained the fix:

  1. .86 built, signed, notarized; all 11 signed-smoke checks passed including the Keychain canary. Published asset digests were independently verified against desktop-smoke-result.json (Omi.zip aa6069ea…, omi.dmg 7ec0512c…).
  2. GitHub Actions was in a partial outage, so desktop_qualify_beta.yml could not run on the trusted runner.
  3. Local qualification produced 37/38 T2 flows passing; speaker-naming failed deterministically on result.detail.segment_count: expected '2', actual '3'.
  4. With no way to express "promote with qualification overridden, on the record," the operational path became: flip the global DESKTOP_UPDATE_POINTERS_MODE kill switch on the prod backend.
  5. That path required a traffic move, which surfaced a pending Cloud Run revision carrying a different image, OMI_LLM_GATEWAY_URL pointed at the discard port (127.0.0.1:9), and four new Stripe price IDs — one --to-latest away from production.

The rigid gate did not prevent risk; it displaced it from a small, legible, recorded override into a large, opaque, unreviewed change to shared backend config under time pressure.

This is a recurrence, not a one-off. #9415 documents the same failure class during v0.12.69+12069-macos: a signed, notarized, smoke-passed candidate blocked by T2 reporting "suspected pre-existing failures/harness drift."

Two secondary findings from the same incident:

  • /v2/desktop/channels/rollback is implemented, CAS-protected, generation-aware, and unit-tested, but returns HTTP 404 in prod (vs 403 for /promote) and has zero callers in .github/, scripts/, or any runbook — while desktop/macos/AGENTS.md tells operators "roll-forward only." The most useful action available during the incident was built and unreachable.
  • A gate failure carries no interpretive context. speaker-naming failing tells an operator nothing about whether it is a real conversation-data regression (.86 carries cache-first mutation replay and WAL sync changes) or a known-flaky flow — a97cfc61e8 fix(desktop): make Tier-2 qualification deterministic previously touched this exact file. A gate that cannot be interpreted cannot inform a decision.

Proposed direction

Split the two concerns:

  • Evidence records are facts. Append-only, immutable, never overridable. T2 ran at <ts>, 37/38 passed, speaker-naming failed on segment_count.
  • Promotion is a decision that references evidence and may carry an explicit override with reason and operator, recorded in the manifest and surfaced in telemetry/alerting.

Then "ship .86 without full qualification" is expressible honestly, and produces a better audit trail than a clean pass, because the reason is attached.

Expose this through a single control surface — an omi-release CLI (promote, rollback, status, --override) that wraps the same authenticated endpoints. GitHub Actions becomes a caller rather than the caller, which also removes the orchestrator as a single point of failure for a mutation it does not own. Deploying /channels/rollback and giving it a caller belongs in the same effort.

Relationship to existing issues

Scope note

The evidence/permission split plus the rollback caller is intended as one self-contained change to the control plane and its callers. The CLI can land incrementally as a wrapper over the same endpoints. No new service.

Activity

  1. added 2 commits that reference this issue on Jul 20, 2026
    dca289b
    323a3be
  2. added 2 commits that reference this issue on Sep 29, 2026
    c5b69d9
    c52f845
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