Skip to content

feat(desktop): re-land Omi Beta side-by-side identity as locked invariant INV-BETA-1 - #10317

Merged
kodjima33 merged 6 commits into
mainfrom
kodjima33/omi-beta-identity-reland
Jul 22, 2026
Merged

kodjima33 merged 6 commits into
mainfrom
kodjima33/omi-beta-identity-reland

Conversation

@kodjima33

@kodjima33 kodjima33 commented Jul 22, 2026 •

Copy link
Copy Markdown
Collaborator

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

Review in cubic

@mintlify

mintlify Bot commented Jul 22, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
omi 🟢 Ready View Preview Jul 22, 2026, 6:30 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

kodjima33 and others added 6 commits July 22, 2026 15:16
…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]>
…ng guard

INV-BETA-1 makes com.omi.computer-macos.beta the single sanctioned second
production identity; the divergent-identity guard keeps rejecting every
other identity (canary case preserved).

Co-Authored-By: Claude Fable 5 <[email protected]>
…es by tag

The revert had dragged back required beta_* manifest fields; INV-BETA-1's
serving lane resolves beta enclosures from the GitHub release by tag, so
the v1 manifest contract, schema, and fixtures stay exactly as main has
them.

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

desktop_qualify_beta.yml passes Omi.Beta.zip/omi-beta.dmg when a release
ships them, but the evidence builder allowed only the stable pair and
exited before promotion. The four-artifact set is now valid (partial beta
pairs fail closed; beta zip signature = betaEdSignature); covered by
test_qualification_evidence_accepts_the_side_by_side_beta_artifact_pair.

Failure-Class: none

Co-Authored-By: Claude Fable 5 <[email protected]>
The workflow passes --asset Omi.Beta.zip/omi-beta.dmg but the CLI arg
whitelist still allowed only the stable pair, exiting before
build_evidence. CLI now accepts ARTIFACTS + BETA_ARTIFACTS; build/verify
still require exact pairs. Regression test drives the real CLI subprocess
with all four assets.

Failure-Class: none

Co-Authored-By: Claude Fable 5 <[email protected]>
@kodjima33
kodjima33 force-pushed the kodjima33/omi-beta-identity-reland branch from 1a82969 to b6cad30 Compare July 22, 2026 19:16
@kodjima33
kodjima33 merged commit 3a919c2 into main Jul 22, 2026
11 of 12 checks passed
@kodjima33
kodjima33 deleted the kodjima33/omi-beta-identity-reland branch July 22, 2026 19:16
kodjima33 added a commit that referenced this pull request Jul 22, 2026
…e guard fixture (#10328)

PR #10317 (INV-BETA-1 re-land) changed the approved Codemagic workflow
shape (new "Create Omi Beta variant" step; beta assets in the
publication script) without regenerating
`check-release-process-guards.py`'s approved fixture — the guard is
failing on main. Fixture regenerated using the guard's own
canonicalization functions; step count 21→22 documented inline. The
shape change is intentional and founder-reviewed.

## Product invariants affected

- INV-BETA-1

Verified: `python3 .github/scripts/check-release-process-guards.py` →
"release process guard checks passed".
pull Bot pushed a commit to Mu-L/omi that referenced this pull request Jul 22, 2026
…e process-guard fixture

The re-land (PR BasedHardware#10317) added the 'Create Omi Beta variant' step and the
beta assets in the publication script; the release-process guard pins the
workflow by digest and was failing on main. Fixture regenerated with the
guard's own canonicalization; approved step count 21 -> 22. Shape change
is founder-reviewed (INV-BETA-1).

Co-Authored-By: Claude Fable 5 <[email protected]>
aryanorastar added a commit to aryanorastar/omi that referenced this pull request Aug 3, 2026
…edHardware#10351)

9 of 87 guard self-tests failed on main and the suite ran in no CI lane,
so the failures accumulated silently. The parent-era regression probes
copied today's codemagic.yaml (22 approved script steps after BasedHardware#10317) and
ran the reviewed parent guard (which approves 21) against it, tripping the
step-count check the parent never knew about.

Check out codemagic.yaml and the contract fixture as of the reviewed
parent revision for parent-guard probes, and run the current-guard
assertions against a re-seeded current-era tree. The dead
_restore_parent_preview_credential_shape helper is removed; all 92 tests
pass.

Wire the suite into CI: scripts/run-release-process-guard-tests.sh runs
the pytest suite with the repository's locked backend interpreter, and
the checks-manifest now selects it whenever the guard or its tests change.

Co-authored-by: CommandCodeBot <[email protected]>
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. -->
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…e process-guard fixture

The re-land (PR BasedHardware#10317) added the 'Create Omi Beta variant' step and the
beta assets in the publication script; the release-process guard pins the
workflow by digest and was failing on main. Fixture regenerated with the
guard's own canonicalization; approved step count 21 -> 22. Shape change
is founder-reviewed (INV-BETA-1).

Co-Authored-By: Claude Fable 5 <[email protected]>
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…e guard fixture (BasedHardware#10328)

PR BasedHardware#10317 (INV-BETA-1 re-land) changed the approved Codemagic workflow
shape (new "Create Omi Beta variant" step; beta assets in the
publication script) without regenerating
`check-release-process-guards.py`'s approved fixture — the guard is
failing on main. Fixture regenerated using the guard's own
canonicalization functions; step count 21→22 documented inline. The
shape change is intentional and founder-reviewed.

## Product invariants affected

- INV-BETA-1

Verified: `python3 .github/scripts/check-release-process-guards.py` →
"release process guard checks passed".
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