Skip to content

Finish macOS update recovery for legacy clients: explicit control plane, compatibility bridge, and verified completion #9528

Open

Description

@Git-on-my-level

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 emit Update 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 / current Update Installed as 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/macos stable/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 SUFeedURL values 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.xml as 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 /Applications installation 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 Installed as 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

Activity

  1. added
    bug
    p1
    on Jul 12, 2026
  2. Git-on-my-level commented on Jul 13, 2026

    @Git-on-my-level
    MemberAuthor

    Implementation packet — live update-control-plane discovery complete (2026-07-13)

    Live public behavior

    • GET /v2/desktop/appcast.xml is healthy and currently advertises macOS 0.12.70+12070 / build 12070.
    • GET /v2/desktop/update-policy?platform=macos&current_build=11400 returns HTTP 200. The policy is currently active: false, dismissible, and points to the stable download route.
    • The legacy /v1/desktop/update-policy route returns 404; all client/recovery work must use /v2.

    Existing source seams and tests

    • backend/routers/updates.py owns both the appcast and update-policy endpoints. The appcast has a five-minute cache and preserves last-known-good release entries for recovery.
    • The same router already exposes explicit immutable release registration and channel-promotion endpoints.
    • backend/tests/unit/test_desktop_updates.py already covers the update-policy endpoint/current-build behavior and is the correct focused test file to extend.

    Self-contained implementation direction

    1. Keep the appcast rescue path functional for old binaries; the update-policy endpoint is an accelerator, never the sole recovery mechanism.
    2. Implement/finish client compatibility handling against /v2/desktop/update-policy, including inactive policy, malformed/absent policy, stable fallback, and manual-recovery UX.
    3. Emit a completion event only after relaunch on the target build. A download or installer launch is not completion.
    4. Exercise absent/stale pointer, invalid manifest/signature, Firestore failure, last-known-good fallback, and kill-switch cases with focused tests.

    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.

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

    bugdesktopmacOSp1reliability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions