Repository navigation
Description
Goal
Make macOS Desktop updates reliable and recoverable for every supported installed client—especially users stranded on legacy 0.11 builds—and prove completion with a post-relaunch target-build launch rather than a pre-install Sparkle callback.
This is the single execution tracker for the legacy-update recovery program. It builds on #9350's release-control-plane design; #9350 remains the architectural background and long-tail cleanup record.
Why now
At issue creation, the live appcast advertises 0.12.70+12070 as both the stable and beta item. The legacy route remains a material risk because it historically derives release/channel truth from GitHub release enumeration and mutable release-body metadata.
Observed user impact from the investigation:
- 353 of 1,864 production macOS users active in the last 7 days were below build 12000.
- 83 remained active in the last 24 hours.
- Of 193 old-build users who emitted
Update Available, 189 did not emitUpdate Installed; 80 emitted update-check failures. - Older builds have high repeated update failure volume but shallow diagnostics. They cannot receive modern recovery UI or telemetry retroactively.
Do not interpret every Update Check Failed as a stranded user: some failures are background retries, and the large 12000 failure cohort is emitted by clients already on 12000. The completion definition below intentionally avoids that ambiguity.
Product and safety invariants
- Stable must resolve only to the explicit stable artifact. It must never fall back to beta.
- A legacy appcast must expose only Omi's signed, channel-correct bridge artifact—no beta, staging, or non-Omi entries.
- An unavailable/invalid pointer or manifest fails closed, with an observable controlled fallback; it must not silently change channels.
- Do not force a fleet-wide critical update as the first remediation. An appcast cannot repair mounted-DMG, App Translocation, broken installer/launchd, TCC, Gatekeeper, or managed-device cases.
- Existing manual stable-promotion and qualification gates remain in force. Do not use an unblessed override for this remediation.
- Never count
willInstallUpdate/ currentUpdate Installedas update success. Success requires a subsequent launch of the expected target build and a basic healthy session.
Deliverables
1. Explicit release control plane
- Register immutable release manifests with tag, source SHA, version/build, signed ZIP/DMG URLs, SHA-256, size, Sparkle EdDSA signature, notarization/qualification evidence, and creation time.
- Create atomic
desktop_update_channels/macosstable/beta pointers with generation/CAS semantics and promotion metadata. - Generate appcast and manual-download selection from the exact channel pointer/manifest.
- Remove every stable-to-beta fallback from appcast and manual-download resolution paths.
- Implement resolver order: live pointer -> validated pointer LKG -> observable legacy GitHub scan -> fail closed.
- Preserve LKG through routine cache clears and add a documented kill switch.
- Seed pointers with the currently advertised stable/beta release without moving either channel.
2. Legacy compatibility bridge and independent rescue
- Inventory
SUFeedURLvalues from representative signed legacy artifacts and classify which installed generations poll each route. - Maintain a compatibility facade for every legacy Omi route: old Sparkle-compatible XML/content type/URL behavior, one signed stable bridge item, and no cross-product or staging entries.
- Pin bridge selection to a validated stable manifest; promotion/rollback changes a versioned pointer, never mutable GitHub release-body fields.
- Publish a durable, versioned latest-stable repair installer URL backed by immutable object storage/CDN. It must not depend on runtime GitHub enumeration, the normal appcast API, or an in-client policy feature.
- Keep
api.omi.me/v2/desktop/appcast.xmlas a long-lived compatibility shim. - Deploy and probe
/v2/desktop/update-policy; use it only as a modern-client accelerator, never as the sole rescue route for legacy binaries. - Create a targeted repair campaign for active users that remain below the bridge after the grace window, with
/Applicationsinstallation guidance and a support escalation path for managed/Gatekeeper/TCC cases.
3. Truthful update transaction telemetry
- Persist an update attempt ID and state across relaunch: source build/channel, target build/channel, offered, download started, verified, staged, install attempted, relaunch observed, target healthy launch, failure class, retry count, and fallback used.
- Add target build/version to offer/install/relaunch events when known; never infer target from source
$app_build. - Reclassify current
Update Installedas install attempt internally and report confirmed completion only after expected target-build launch. - Capture privacy-safe recursive error-chain details plus appcast host/path, phase, update channel, launch-location bucket, macOS version, and architecture.
- Track deferred active-voice installs separately from actual failed/stuck updates.
- Instrument repair landing-page conversion through eventual target-build launch, not email opens or downloads alone.
4. Tests and qualification
- Add real signed-artifact E2E: representative old app -> controlled legacy feed -> discovery -> signed download -> replacement -> relaunch -> target-build healthy launch.
- Test stable/beta isolation for appcast and manual download, including explicit assertion that stable never receives beta.
- Test pointer failures: absent/incomplete/stale pointer, invalid signature/digest, Firestore failure, LKG recovery, legacy fallback, and kill switch.
- Test legacy feed semantic compatibility: XML shape, unparameterized URL, content type, expected item count, signature, and Omi-only contents.
- Test update failures: DNS/timeout/HTTP/malformed feed/missing ZIP/invalid EdDSA/installer failure/retry-backoff.
- Test mounted DMG, Downloads, temporary directory,
/Applications, App Translocation, sleep/wake, restart/crash, concurrent update session, and macOS 26 launchd behavior. - Test active voice deferral and eventual silent installation without interruption or update loops.
- Require artifact/appcast contract validation: build/version, channel, feed, signatures, ZIP/DMG contents, manifest, and release metadata agree.
5. Rollout, observability, and completion
- Run pointer resolution in sampled shadow mode and record pointer-vs-legacy semantic mismatches without adding a second GitHub request per client request.
- Add dashboard and alerts for resolution source, fallback reason, pointer/LKG age, mismatch, feed validity, artifact reachability, stable-to-beta attempt, and active-below-stable cohorts.
- Canary compatibility bridge with real legacy artifacts; hold on any signature/relaunch/channel-isolation failure.
- Beta-bake with confirmed target launches from old-build exposure; do not promote based only on install-attempt telemetry.
- Stable promotion follows existing qualified/manual release workflow and has 2h/24h/7d regression checks for updater, crash, startup, sign-in, mic, chat, and support-contact health.
- Run targeted repair outreach only for active, still-old users after a grace period; avoid repeated notifications to inactive users.
Definition of done
- The currently stable channel and beta channel resolve from explicit immutable manifests/pointers and are semantically verified at the live appcast and manual-download surfaces.
- Stable has no code path that can return beta.
- Representative legacy clients can receive the stable bridge through every historical Omi feed route, or are offered an independent signed repair installer.
- A controlled signed old-artifact upgrade E2E confirms target-build relaunch and healthy first session on supported macOS versions, including macOS 26.
- Completion metrics use post-relaunch target-build evidence; the team can distinguish offer, install attempt, actual success, expected voice deferral, and each failure class.
- Active below-bridge users and repeated-failure users decline for at least two release cycles without target-build reliability regressions.
- The legacy GitHub scan is removed only after: 30 organic no-fallback days, two pointer beta promotions, one approved pointer stable promotion, zero unresolved semantic mismatches, and successful LKG/kill-switch drills.
References
- Desktop updates: explicit channel pointers, qualified beta releases, and observable legacy fallback #9350 — architecture/background for explicit pointers, qualified releases, and observable legacy fallback
- macOS 0.12.x update failures spiked; build 12000 reports blank Update Check Failed errors #9079 — previous 0.12 updater failure signal and telemetry gap
- Improve desktop updater recovery #8648 — modern updater recovery/manual-download work
- Add desktop update policy banner #8834 — server-controlled update policy (must be deployed before relying on it)
- Fix desktop updater diagnostics #8954 — improved updater diagnostics/target telemetry
Activity
feat(desktop): publish immutable stable repair installer (#9534)
Git-on-my-level commentedon Jul 13, 2026
Implementation packet — live update-control-plane discovery complete (2026-07-13)
Live public behavior
GET /v2/desktop/appcast.xmlis healthy and currently advertises macOS0.12.70+12070/ build12070.GET /v2/desktop/update-policy?platform=macos¤t_build=11400returns HTTP 200. The policy is currentlyactive: false, dismissible, and points to the stable download route./v1/desktop/update-policyroute returns 404; all client/recovery work must use/v2.Existing source seams and tests
backend/routers/updates.pyowns both the appcast and update-policy endpoints. The appcast has a five-minute cache and preserves last-known-good release entries for recovery.backend/tests/unit/test_desktop_updates.pyalready covers the update-policy endpoint/current-build behavior and is the correct focused test file to extend.Self-contained implementation direction
/v2/desktop/update-policy, including inactive policy, malformed/absent policy, stable fallback, and manual-recovery UX.Remaining rollout boundary
No additional cloud investigation is required to implement the client/server behavior. Promotion, pointer updates, and the post-relaunch telemetry cohort check are release operations requiring normal approval, not undiscovered implementation context.
fix: harden desktop update policy recovery (#9647)
test(desktop): lock macOS stable-never-beta appcast contract (#9528) (#…