Repository navigation
Description
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_pointerrejects any manifest withoutqualification.passed is Trueandtier == "T2"backend/database/desktop_update_channels.py:200—_build_beta_rollback_pointerapplies the identical check, so a fabricated manifest also becomes a sanctioned rollback target in a future incident.github/scripts/prepare-desktop-beta-promotion.pyfail-closes earlier withFAIL: 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:
.86built, signed, notarized; all 11 signed-smoke checks passed including the Keychain canary. Published asset digests were independently verified againstdesktop-smoke-result.json(Omi.zip aa6069ea…,omi.dmg 7ec0512c…).- GitHub Actions was in a partial outage, so
desktop_qualify_beta.ymlcould not run on the trusted runner. - Local qualification produced 37/38 T2 flows passing;
speaker-namingfailed deterministically onresult.detail.segment_count: expected '2', actual '3'. - With no way to express "promote with qualification overridden, on the record," the operational path became: flip the global
DESKTOP_UPDATE_POINTERS_MODEkill switch on the prod backend. - That path required a traffic move, which surfaced a pending Cloud Run revision carrying a different image,
OMI_LLM_GATEWAY_URLpointed at the discard port (127.0.0.1:9), and four new Stripe price IDs — one--to-latestaway 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/rollbackis implemented, CAS-protected, generation-aware, and unit-tested, but returns HTTP 404 in prod (vs403for/promote) and has zero callers in.github/,scripts/, or any runbook — whiledesktop/macos/AGENTS.mdtells operators "roll-forward only." The most useful action available during the incident was built and unreachable.- A gate failure carries no interpretive context.
speaker-namingfailing tells an operator nothing about whether it is a real conversation-data regression (.86carries cache-first mutation replay and WAL sync changes) or a known-flaky flow —a97cfc61e8 fix(desktop): make Tier-2 qualification deterministicpreviously 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
overridewithreasonandoperator, 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
- release: add audited macOS beta emergency forward-promotion lane #10063 / release: add audited macOS beta emergency forward-promotion lane #10065 propose a separate audited emergency lane (+1189/-10, new workflow, two distinct approvals, mandatory one-hour monitor). That shape does not resolve this: an emergency lane requiring two humans and an hour would not have helped during this incident, and it adds a parallel pipeline rather than making the existing one expressive. This issue argues the override belongs on the existing lane as a recorded decision.
- Harden desktop release control plane without a new service #9415 — prior instance of the same failure class; this issue proposes the durable fix rather than another per-incident workaround.
- Desktop Release V2: safe resumable beta/stable promotion engine with candidate-first rollback #9525 — promotion engine work; the evidence/permission split is a prerequisite for a promotion engine that can be both safe and operable.
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
consolidation: merge 4 release rings PRs (#10068 #10065 #10086 #10075) (
refactor(release): beta break-glass as a relaxed precondition, not a …
consolidation: merge 4 release rings PRs (BasedHardware#10068 BasedHa…
refactor(release): beta break-glass as a relaxed precondition, not a …