Skip to content

feat(desktop): Omi Beta as a separate app — run beta and stable side-by-side - #10059

Merged
kodjima33 merged 10 commits into
mainfrom
kodjima33/omi-beta-side-by-side
Jul 20, 2026
Merged

kodjima33 merged 10 commits into
mainfrom
kodjima33/omi-beta-side-by-side

Conversation

@kodjima33

@kodjima33 kodjima33 commented Jul 19, 2026 •

Copy link
Copy Markdown
Collaborator

Omi Beta as a separate app — run beta and stable side-by-side

Today "beta" and "stable" are the same bundle id (com.omi.computer-macos), so the single-instance guard (correctly) refuses a second instance: two live copies would share one Rewind SQLite DB, one UserDefaults domain, and one log. This PR makes Omi Beta a first-class separate identity so both can run at the same time — Chrome-style.

What changed

App (Swift)

  • com.omi.computer-macos.beta is a production-family identity: production gating (no automation bridge, Sparkle on), pinned beta update channel (Settings picker locked), isolated ~/Library/Application Support/Omi Beta/ storage root via DesktopStorageIdentity, own /tmp/omi-beta.log, Keychain-backed install id. On its pinned beta channel it selects the dedicated beta release ring (api-beta.omi.me), same as stable-identity beta-channel clients after the beta-ring change on main.
  • Single-instance guard already keys on bundle id → beta+stable coexist; true duplicates still refused per identity. Legacy "Omi Computer.app" cleanup is restricted to the stable identity so Omi Beta can never terminate the running stable app.

Release pipeline (Codemagic)

  • New step duplicates the signed stable app, re-identifies it as "Omi Beta" (identity-scoped SUFeedURL?identity=beta), re-signs the outer bundle (nested signatures stay valid), notarizes, staples, ships Omi.Beta.zip + omi-beta.dmg with their own smoke result (desktop-smoke-result-beta.json, held to the same qualification contract incl. the notification-callback canary) and appcast EdDSA signature (betaEdSignature).
  • Beta qualification verifies beta asset digests against beta smoke evidence when the assets are present; older releases stay valid. Resolved against main's immutable-candidate release semantics (no delete/recreate).

Backend (updates.py)

  • identity=beta (sent only by the Omi Beta app's feed URL and the beta download entry points, incl. /v2/desktop/download/beta and AppBuild.manualDownloadURL) serves beta-channel items exclusively with beta-identity enclosures — Sparkle can never replace the beta app with a stable-identity bundle. Pointer entries resolve beta assets from the GitHub release by tag; releases without beta artifacts are omitted from the beta feed. Stable DMG picker excludes omi-beta.dmg by exact name. Legacy stable-id beta-channel installs keep today's feed and behavior.

Failure class

Failure-Class: none

The one fix: commit repairs a defect introduced within this PR's own in-flight rebase (the beta smoke invocation predating main's new notification-callback canary); nothing shipped, no recurring shipped failure class applies. The commit adds the contract test binding the codemagic smoke invocations to the candidate gate's required evidence.

Product invariants affected

  • INV-AUTH-1

(cited because the diff touches ClientDeviceService.swift — install-id storage selection only: the beta identity keeps the durable Keychain install id like stable. Session-death ownership via AuthSessionCoordinator.invalidateSession is untouched; guard test unchanged.)

Verification

  • Side-by-side, real user path: built a beta-identity bundle from this branch and ran it beside the running production omi.app: both processes alive simultaneously (CGWindowList shows windows owned by "omi" and "Omi Beta"), isolated Omi Beta/ storage root, /tmp/omi-beta.log written. Duplicate copies of the same identity still refused in both directions (guard log lines captured).
  • Swift tests: AppBuildBetaIdentityTests, DesktopStorageIdentityTests, APIClientRoutingTests, ExternalPreviewBuildTests — 81 green after rebasing onto the beta-release-ring + immutable-candidate changes on main.
  • Backend tests: tests/unit/test_desktop_updates.py — 100 green; scan_async_blockers clean; .github/scripts/test_check_desktop_auto_beta_candidate.py green with both the notification-canary and beta-asset contracts.
  • UNVERIFIED (CI lane): the new Codemagic packaging steps run on the next candidate build (bash -n checked, YAML validated). Plan after merge: deploy backend → dispatch a candidate → verify Omi.Beta.zip/omi-beta.dmg on the release → install the real beta DMG beside stable.

Deploy sequencing

Backend change is additive (unknown identity param was previously ignored; identity=beta feed is empty until a dual-identity release exists). Sequence after merge: deploy prod backend → dispatch desktop candidate → first dual-identity release goes live.

🤖 Generated with Claude Code

kodjima33 and others added 8 commits July 20, 2026 13:33
…de use

com.omi.computer-macos.beta is now a first-class production identity:
production-grade gating (no automation bridge, Sparkle on), pinned beta
update channel, isolated 'Omi Beta' storage root, own /tmp/omi-beta.log,
Keychain-backed install id, and channel-based backend routing. The
single-instance guard already keys on bundle id, so beta and stable run
simultaneously while true duplicates are still refused.

Verified: built a beta-identity bundle locally and ran it beside the
production stable app — both processes alive, isolated storage roots
created, per-identity guard refusals in both logs. Swift tests:
AppBuildBetaIdentityTests, DesktopStorageIdentityTests,
APIClientRoutingTests (74 tests green).

Co-Authored-By: Claude Fable 5 <[email protected]>
The release workflow now duplicates the signed stable app, re-identifies
it as 'Omi Beta' (com.omi.computer-macos.beta, identity-aware SUFeedURL),
re-signs the outer bundle, notarizes, staples, and ships Omi.Beta.zip +
omi-beta.dmg with their own signed smoke result and appcast EdDSA
signature (betaEdSignature). Beta qualification verifies the beta asset
digests against the beta smoke evidence when those assets are present;
older releases without them stay valid.

UNVERIFIED in CI: the new Codemagic steps run on the next candidate build;
script syntax checked locally and YAML validated. Will be proven by the
first dual-identity candidate after merge.

Co-Authored-By: Claude Fable 5 <[email protected]>
identity=beta (requested only by the Omi Beta app's SUFeedURL) serves
beta-channel items exclusively, with Omi.Beta.zip enclosures and the
betaEdSignature — so Sparkle can never replace the beta app with a
stable-identity bundle. Pointer entries resolve beta assets from the
underlying GitHub release by tag. Releases predating the dual-identity
pipeline are omitted from the beta feed. The stable DMG picker now
excludes omi-beta.dmg by exact name. Legacy stable-identity installs on
the beta channel keep the default feed unchanged.

Verified: 97 unit tests green in tests/unit/test_desktop_updates.py
(6 new beta-identity tests), scan_async_blockers clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
…oint

/v2/desktop/download/beta now serves the Omi Beta installer (falling back
to the stable-identity DMG, with fallback telemetry, only until the first
dual-identity release is live), and the Omi Beta app's manual download URL
carries identity=beta so a re-download can never hand back the stable app.

Verified: backend tests/unit/test_desktop_updates.py 99 green (2 new);
Swift AppBuildBetaIdentityTests 6 green (1 new).

Co-Authored-By: Claude Fable 5 <[email protected]>
…eed URL

The Omi Beta variant carries SUFeedURL?identity=beta; the smoke previously
hard-required the plain shared feed for every non-preview app and would
have failed the beta artifact in Codemagic. --expected-feed-url keeps the
plain feed as the strict default and lets the beta smoke pass its
identity-scoped feed explicitly.

Verified: tests/test-signed-artifact-smoke.sh green locally (2 new cases:
default rejects the beta feed, explicit flag accepts it); bash -n and
codemagic.yaml YAML validation clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
…dentity

cleanupLegacyAppBundles() force-terminates running com.omi.computer-macos
processes and deletes the legacy bundle. With Omi Beta now production-family
it would have killed the user's running stable app on beta launch whenever a
legacy install existed. The cleanup is stable-lineage housekeeping: gate it
on AppBuild.mayRunLegacyStableAppCleanup (stable bundle id only).

Verified live: beta-identity bundle launched with a planted
/Applications/Omi Computer.app fixture logs the skip line, stable app
survives, fixture untouched (pre-fix binary reproducibly killed stable —
hazard confirmed, then fixed). Unit test covers stable/beta/dev/named ids.

Co-Authored-By: Claude Fable 5 <[email protected]>
…ntract

The beta smoke result must now satisfy the same success/tag/channel/
version/build/team/required-checks bar as stable (shared helper), with its
own bundle id and asset digests; validator tests cover the pass path and
each rejection. Docs updated: Omi Beta is com.omi.computer-macos.beta.

Verified: test_check_desktop_auto_beta_candidate.py green (6 new cases);
tests/test-signed-artifact-smoke.sh green; backend test_desktop_updates.py
99 green; AGENTS.md lean check ok.

Co-Authored-By: Claude Fable 5 <[email protected]>
Main moved beta-channel production clients off the dev backend onto the
dedicated beta ring while this PR was in flight; the beta identity now
asserts beta-ring selection instead of dev-backend routing.

Co-Authored-By: Claude Fable 5 <[email protected]>
@kodjima33
kodjima33 force-pushed the kodjima33/omi-beta-side-by-side branch from 7b61175 to d253ce9 Compare July 20, 2026 17:48
kodjima33 and others added 2 commits July 20, 2026 14:19
…ction family

Upstream added this static tripwire while the beta-identity PR was in
flight; the intent (non-production bundles never touch Keychain) is
unchanged — the definition of production now includes the Omi Beta
identity, whose device-id item lives under its own bundle-scoped service.

Co-Authored-By: Claude Fable 5 <[email protected]>
…te gate requires

The notification-callback canary landed on main for the stable smoke while
this PR was in flight; the beta smoke invocation predates it. The gate
holds the beta smoke to the same contract, so the first dual-identity
release would have fail-closed at qualification. The beta invocation now
runs --launch --notification-callback-canary like stable, the gate
validates the canary evidence under the beta bundle id via the shared
helper, and a contract test binds the codemagic.yaml invocations to the
gate's required evidence so a stable-only flag addition cannot silently
starve the beta smoke again.

Failure-Class: none

Co-Authored-By: Claude Fable 5 <[email protected]>
@kodjima33
kodjima33 merged commit dfa13fd into main Jul 20, 2026
33 checks passed
@kodjima33
kodjima33 deleted the kodjima33/omi-beta-side-by-side branch July 20, 2026 21:13
kodjima33 added a commit that referenced this pull request Jul 21, 2026
#10185)

## Fix: dual smoke fails on macOS mktemp suffix templates

First real run of the dual-identity smoke (v0.12.91) failed: macOS
mktemp creates the LITERAL template file when characters follow the
final XXXXXX (`omi-entitlements.XXXXXX.plist`), so the second smoke
invocation in one build (the Omi Beta artifact from #10059) died with
`File exists` and correctly fail-closed the candidate. Evidence:
Codemagic build 6a5f010e997989ee56595dd1, step "Smoke signed desktop
artifact" — stable smoke fully green, beta smoke died at entitlements
extraction.

Both suffixed templates now end with XXXXXX, and
`tests/test-signed-artifact-smoke.sh` gains a tripwire rejecting any
suffixed template.

## Product invariants affected

- INV-AUTH-1

(path-glob match only: the smoke script carries the auth-storage canary;
this change touches temp-file naming, not any auth/session behavior —
the canary's assertions are unchanged.)

## Failure class

Failure-Class: none

Defect introduced by tonight's #10059 dual-smoke; never shipped a
user-facing failure. Verified: `bash
desktop/macos/tests/test-signed-artifact-smoke.sh` green (includes the
new tripwire); bash -n both files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10185?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
pull Bot pushed a commit to codingwatching/omi that referenced this pull request Jul 21, 2026
macOS mktemp creates the literal template file when characters follow the
final XXXXXX. The entitlements and notification-marker templates carried
.plist/.json suffixes, so the second smoke invocation in one build (the
Omi Beta artifact, added in BasedHardware#10059) failed with 'File exists' and
fail-closed the v0.12.91 candidate. Templates now end with XXXXXX and the
smoke harness gains a tripwire rejecting suffixed templates.

Failure-Class: none

Co-Authored-By: Claude Fable 5 <[email protected]>
kodjima33 added a commit that referenced this pull request Jul 22, 2026
…iant INV-BETA-1

Re-lands the side-by-side beta identity (#10059, #10185) removed by
dba3af2, adapted to the current release architecture: the manifest
schema, admission-controlled promotion, and same-byte stable promotion are
untouched — beta enclosures resolve from the GitHub release by tag, so no
promotion or manifest surface changes. The beta smoke gains the
source-sha field added upstream (caught by the codemagic/gate contract
test). INV-BETA-1 encodes the founder's explicit requirement so
release-pipeline refactors can no longer remove the beta identity without
sign-off.

Verified: 97 focused Swift tests; 114 backend updates tests incl. 6
beta-serving cases and the pre-rollout /download/beta fallback;
qualification checker suite; signed-smoke harness; codemagic +
qualify-workflow YAML validity; async-blocker scan clean.

Failure-Class: none

Co-Authored-By: Claude Fable 5 <[email protected]>
kodjima33 added a commit that referenced this pull request Jul 22, 2026
…iant INV-BETA-1

Re-lands the side-by-side beta identity (#10059, #10185) removed by
dba3af2, adapted to the current release architecture: the manifest
schema, admission-controlled promotion, and same-byte stable promotion are
untouched — beta enclosures resolve from the GitHub release by tag, so no
promotion or manifest surface changes. The beta smoke gains the
source-sha field added upstream (caught by the codemagic/gate contract
test). INV-BETA-1 encodes the founder's explicit requirement so
release-pipeline refactors can no longer remove the beta identity without
sign-off.

Verified: 97 focused Swift tests; 114 backend updates tests incl. 6
beta-serving cases and the pre-rollout /download/beta fallback;
qualification checker suite; signed-smoke harness; codemagic +
qualify-workflow YAML validity; async-blocker scan clean.

Failure-Class: none

Co-Authored-By: Claude Fable 5 <[email protected]>
kodjima33 added a commit that referenced this pull request Jul 22, 2026
…iant INV-BETA-1 (#10317)

## Re-land: Omi Beta side-by-side identity (locked as INV-BETA-1)

`dba3af2522` ("restore single macOS artifact") removed the side-by-side
Omi Beta identity that shipped in #10059/#10185 as part of
release-pipeline hardening. That removal contradicts an explicit founder
requirement (Nik, 2026-07-22): beta and stable must install and run
side-by-side, and the beta app must auto-update from a beta-identity
artifact. This PR re-lands the feature adapted to the current release
architecture and locks the requirement as `INV-BETA-1` so pipeline
refactors can no longer remove it without explicit sign-off.

### Adapted, not fought
The hardening program's architecture is preserved untouched: manifest v1
schema, admission-controlled promotion, same-byte stable promotion,
canonical lowercase `omi.dmg`, source-sha smoke binding. Beta enclosures
resolve from the GitHub release **by tag** at serve time, so no
manifest, channels-DB, promotion, or evidence-schema changes were needed
(the original #10059 pointer-lane manifest fields are gone for good).
The qualify workflow's beta lanes are additive and optional — releases
without beta assets qualify exactly as today.

### What re-lands
- **Swift:** `com.omi.computer-macos.beta` production-family identity —
isolated "Omi Beta" storage root, per-identity log, pinned beta channel,
beta-ring routing, legacy-cleanup restriction, manual-download identity.
- **Codemagic:** `create-omi-beta-variant.sh` step (duplicate signed app
→ re-identify → outer re-sign → notarize → `Omi.Beta.zip` +
`omi-beta.dmg`), dual smoke with the full evidence contract (now incl.
upstream's `--source-sha`, caught by the codemagic↔gate contract test in
this PR's verification), release uploads.
- **Backend:** identity-aware `appcast.xml?identity=beta` (beta items
only, beta enclosures, omit-when-absent) and `download/latest|beta`
(beta DMG with telemetried pre-rollout fallback to stable DMG so the
public link never 404s).
- **Docs:** `docs/product/invariants/desktop-beta-identity.md`
(INV-BETA-1) + changelog fragment; the desktop AGENTS.md already
documented the side-by-side model — main was internally inconsistent
after the removal.

## Product invariants affected

- INV-BETA-1
- INV-AUTH-1
- INV-DATA-1

(INV-BETA-1 is introduced by this PR. INV-DATA-1: path-glob matches on
codemagic.yaml/AppBuild/DesktopBackendEnvironment restorations — the
beta identity rides the existing beta release ring and prod data plane
exactly like a stable-identity beta-channel client; no data-plane URL,
lock, or routing contract changes. INV-AUTH-1: path-glob matches on
`ClientDeviceService.swift`/`RewindDatabase.swift` restorations —
install-id storage selection and isolated-storage migration guard only;
`AuthSessionCoordinator` ownership untouched.)

## Failure class

Failure-Class: none

Re-land of a feature removed in-repo the same week; no shipped
user-facing failure class. The one `fix:`-shaped change inside (beta
smoke `--source-sha`) is a defect that never left CI and is covered by
the new contract test.

### Verification
- 97 focused Swift tests green (`AppBuildBetaIdentityTests`,
`DesktopStorageIdentityTests`, `APIClientRoutingTests`,
`ExternalPreviewBuildTests`, `AuthTokenStorageTests`)
- 114 backend tests green (`test_desktop_updates.py`, incl. 6
beta-serving cases + pre-rollout `/download/beta` fallback with
`record_fallback` assertion)
- Qualification checker suite green (beta smoke held to the stable
contract incl. notification-callback canary under the beta bundle id;
codemagic↔gate evidence-parity test)
- Signed-smoke harness green; codemagic.yaml + desktop_qualify_beta.yml
YAML-valid; async-blocker scan clean
- **Real user path (prior artifacts of this same code):** a
beta-identity build is installed and running beside the stable app on
Nik's machine right now — signed in, isolated storage, per-identity
duplicate refusal verified in both directions
- **UNVERIFIED until the next candidate:** first CI run of the restored
packaging on the current pipeline; plan: merge → deploy backend → cut
candidate → qualify/promote to live beta → verify Sparkle auto-update on
the installed Omi Beta

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10317?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…by-side (BasedHardware#10059)

## Omi Beta as a separate app — run beta and stable side-by-side

Today "beta" and "stable" are the same bundle id
(`com.omi.computer-macos`), so the single-instance guard (correctly)
refuses a second instance: two live copies would share one Rewind SQLite
DB, one UserDefaults domain, and one log. This PR makes Omi Beta a
first-class separate identity so both can run at the same time —
Chrome-style.

### What changed
**App (Swift)**
- `com.omi.computer-macos.beta` is a production-family identity:
production gating (no automation bridge, Sparkle on), pinned `beta`
update channel (Settings picker locked), isolated `~/Library/Application
Support/Omi Beta/` storage root via `DesktopStorageIdentity`, own
`/tmp/omi-beta.log`, Keychain-backed install id. On its pinned beta
channel it selects the dedicated beta release ring (`api-beta.omi.me`),
same as stable-identity beta-channel clients after the beta-ring change
on main.
- Single-instance guard already keys on bundle id → beta+stable coexist;
true duplicates still refused per identity. Legacy "Omi Computer.app"
cleanup is restricted to the stable identity so Omi Beta can never
terminate the running stable app.

**Release pipeline (Codemagic)**
- New step duplicates the signed stable app, re-identifies it as "Omi
Beta" (identity-scoped `SUFeedURL?identity=beta`), re-signs the outer
bundle (nested signatures stay valid), notarizes, staples, ships
`Omi.Beta.zip` + `omi-beta.dmg` with their own smoke result
(`desktop-smoke-result-beta.json`, held to the same qualification
contract incl. the notification-callback canary) and appcast EdDSA
signature (`betaEdSignature`).
- Beta qualification verifies beta asset digests against beta smoke
evidence when the assets are present; older releases stay valid.
Resolved against main's immutable-candidate release semantics (no
delete/recreate).

**Backend (updates.py)**
- `identity=beta` (sent only by the Omi Beta app's feed URL and the beta
download entry points, incl. `/v2/desktop/download/beta` and
`AppBuild.manualDownloadURL`) serves beta-channel items exclusively with
beta-identity enclosures — Sparkle can never replace the beta app with a
stable-identity bundle. Pointer entries resolve beta assets from the
GitHub release by tag; releases without beta artifacts are omitted from
the beta feed. Stable DMG picker excludes `omi-beta.dmg` by exact name.
Legacy stable-id beta-channel installs keep today's feed and behavior.

## Failure class

Failure-Class: none

The one `fix:` commit repairs a defect introduced within this PR's own
in-flight rebase (the beta smoke invocation predating main's new
notification-callback canary); nothing shipped, no recurring shipped
failure class applies. The commit adds the contract test binding the
codemagic smoke invocations to the candidate gate's required evidence.

## Product invariants affected

- INV-AUTH-1

(cited because the diff touches `ClientDeviceService.swift` — install-id
storage selection only: the beta identity keeps the durable Keychain
install id like stable. Session-death ownership via
`AuthSessionCoordinator.invalidateSession` is untouched; guard test
unchanged.)

### Verification
- **Side-by-side, real user path:** built a beta-identity bundle from
this branch and ran it beside the running production `omi.app`: both
processes alive simultaneously (CGWindowList shows windows owned by
"omi" and "Omi Beta"), isolated `Omi Beta/` storage root,
`/tmp/omi-beta.log` written. Duplicate copies of the same identity still
refused in both directions (guard log lines captured).
- **Swift tests:** `AppBuildBetaIdentityTests`,
`DesktopStorageIdentityTests`, `APIClientRoutingTests`,
`ExternalPreviewBuildTests` — 81 green after rebasing onto the
beta-release-ring + immutable-candidate changes on main.
- **Backend tests:** `tests/unit/test_desktop_updates.py` — 100 green;
`scan_async_blockers` clean;
`.github/scripts/test_check_desktop_auto_beta_candidate.py` green with
both the notification-canary and beta-asset contracts.
- **UNVERIFIED (CI lane):** the new Codemagic packaging steps run on the
next candidate build (bash -n checked, YAML validated). Plan after
merge: deploy backend → dispatch a candidate → verify
`Omi.Beta.zip`/`omi-beta.dmg` on the release → install the real beta DMG
beside stable.

### Deploy sequencing
Backend change is additive (unknown `identity` param was previously
ignored; identity=beta feed is empty until a dual-identity release
exists). Sequence after merge: deploy prod backend → dispatch desktop
candidate → first dual-identity release goes live.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…iant INV-BETA-1 (BasedHardware#10317)

## Re-land: Omi Beta side-by-side identity (locked as INV-BETA-1)

`6a8de347f3` ("restore single macOS artifact") removed the side-by-side
Omi Beta identity that shipped in BasedHardware#10059/BasedHardware#10185 as part of
release-pipeline hardening. That removal contradicts an explicit founder
requirement (Nik, 2026-07-22): beta and stable must install and run
side-by-side, and the beta app must auto-update from a beta-identity
artifact. This PR re-lands the feature adapted to the current release
architecture and locks the requirement as `INV-BETA-1` so pipeline
refactors can no longer remove it without explicit sign-off.

### Adapted, not fought
The hardening program's architecture is preserved untouched: manifest v1
schema, admission-controlled promotion, same-byte stable promotion,
canonical lowercase `omi.dmg`, source-sha smoke binding. Beta enclosures
resolve from the GitHub release **by tag** at serve time, so no
manifest, channels-DB, promotion, or evidence-schema changes were needed
(the original BasedHardware#10059 pointer-lane manifest fields are gone for good).
The qualify workflow's beta lanes are additive and optional — releases
without beta assets qualify exactly as today.

### What re-lands
- **Swift:** `com.omi.computer-macos.beta` production-family identity —
isolated "Omi Beta" storage root, per-identity log, pinned beta channel,
beta-ring routing, legacy-cleanup restriction, manual-download identity.
- **Codemagic:** `create-omi-beta-variant.sh` step (duplicate signed app
→ re-identify → outer re-sign → notarize → `Omi.Beta.zip` +
`omi-beta.dmg`), dual smoke with the full evidence contract (now incl.
upstream's `--source-sha`, caught by the codemagic↔gate contract test in
this PR's verification), release uploads.
- **Backend:** identity-aware `appcast.xml?identity=beta` (beta items
only, beta enclosures, omit-when-absent) and `download/latest|beta`
(beta DMG with telemetried pre-rollout fallback to stable DMG so the
public link never 404s).
- **Docs:** `docs/product/invariants/desktop-beta-identity.md`
(INV-BETA-1) + changelog fragment; the desktop AGENTS.md already
documented the side-by-side model — main was internally inconsistent
after the removal.

## Product invariants affected

- INV-BETA-1
- INV-AUTH-1
- INV-DATA-1

(INV-BETA-1 is introduced by this PR. INV-DATA-1: path-glob matches on
codemagic.yaml/AppBuild/DesktopBackendEnvironment restorations — the
beta identity rides the existing beta release ring and prod data plane
exactly like a stable-identity beta-channel client; no data-plane URL,
lock, or routing contract changes. INV-AUTH-1: path-glob matches on
`ClientDeviceService.swift`/`RewindDatabase.swift` restorations —
install-id storage selection and isolated-storage migration guard only;
`AuthSessionCoordinator` ownership untouched.)

## Failure class

Failure-Class: none

Re-land of a feature removed in-repo the same week; no shipped
user-facing failure class. The one `fix:`-shaped change inside (beta
smoke `--source-sha`) is a defect that never left CI and is covered by
the new contract test.

### Verification
- 97 focused Swift tests green (`AppBuildBetaIdentityTests`,
`DesktopStorageIdentityTests`, `APIClientRoutingTests`,
`ExternalPreviewBuildTests`, `AuthTokenStorageTests`)
- 114 backend tests green (`test_desktop_updates.py`, incl. 6
beta-serving cases + pre-rollout `/download/beta` fallback with
`record_fallback` assertion)
- Qualification checker suite green (beta smoke held to the stable
contract incl. notification-callback canary under the beta bundle id;
codemagic↔gate evidence-parity test)
- Signed-smoke harness green; codemagic.yaml + desktop_qualify_beta.yml
YAML-valid; async-blocker scan clean
- **Real user path (prior artifacts of this same code):** a
beta-identity build is installed and running beside the stable app on
Nik's machine right now — signed in, isolated storage, per-identity
duplicate refusal verified in both directions
- **UNVERIFIED until the next candidate:** first CI run of the restored
packaging on the current pipeline; plan: merge → deploy backend → cut
candidate → qualify/promote to live beta → verify Sparkle auto-update on
the installed Omi Beta

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10317?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant