Repository navigation
fix(release): lock production customer data plane - #10216
Merged
Git-on-my-level merged 5 commits intoJul 21, 2026
Merged
Git-on-my-level merged 5 commits into
Git-on-my-level merged 5 commits into
Conversation
Production-family beta artifacts share the stable customer data plane and ignore runtime endpoint overrides.\n\nFailure-Class: new
TestFlight is a distribution channel, not a separate customer data plane.\n\nFailure-Class: new
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6b7ad2e736
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Failure-Class: FC-customer-data-plane-divergence
This was referenced Jul 21, 2026
Git-on-my-level
added a commit
that referenced
this pull request
Jul 21, 2026
## Summary Restore the canonical single macOS production identity in the production data-plane routing guard after #10216 accidentally required a separate Beta bundle identifier. - Require `com.omi.computer-macos` as the sole production-family macOS identity. - Reject `.beta`, canary, or other divergent `com.omi.computer-macos.*` identities. - Pin Codemagic's executable desktop release `BUNDLE_ID` to exactly `com.omi.computer-macos`, rejecting missing, wrong, and duplicate assignments. - Repair the Swift routing test to exercise both Stable and Beta channels through the canonical production identity. - Correct locked `INV-DATA-1` documentation to define Beta as a channel pointer/feed, not a separate app identity. - Preserve production API and `based-hardware` Firestore routing pins. - No runtime product behavior or channel pointer is changed. ## Root cause #10216's static guard encoded a superseded separate-Beta bundle identity instead of the canonical single-app/channel-pointer model. Exact-main Release Eligibility and Repo Checks correctly failed against the actual canonical `AppBuild` implementation. ## Product invariants affected - INV-DATA-1 — all production-family release cohorts share the canonical production customer data plane and macOS app identity. ## Verification - Regression test observed RED before checker repair. - `python3 .github/scripts/test_check_mobile_production_routing.py` — 9 passed - `python3 .github/scripts/check-mobile-production-routing.py` - `python3 -m py_compile .github/scripts/check-mobile-production-routing.py .github/scripts/test_check_mobile_production_routing.py` - `git diff --check` - PR-body preflight - `python3 .github/scripts/check-release-process-guards.py` - `uv run --with pytest --with pyyaml pytest -q .github/scripts/test_check_release_process_guards.py` — 81 passed - `OMI_SWIFT_TEST_SUITE_WORKERS=4 ./scripts/run-swift-ci.sh --test` — attempted locally; correctly refused because this host does not have the required `/Applications/Xcode_16.4.app`. GitHub's pinned Xcode 16.4 lane is the Swift execution authority. ## Failure class Failure-Class: FC-customer-data-plane-divergence
skanderkaroui
added a commit
that referenced
this pull request
Jul 21, 2026
…artifact refactor dba3af2 (restore single macOS artifact) removed the beta production identity from AppBuild while #10216 was in flight; #10216 then landed INV-DATA-1 plus guards that pin com.omi.computer-macos.beta to the production customer data plane. Their merge left main red and, worse, routed installed Omi Beta apps to the development backend. Restore the boundary the locked invariant demands: - AppBuild: betaProductionBundleIdentifier + productionFamilyBundleIdentifiers are back; isNonProduction / isProductionBundle key off the family set. - DesktopBackendEnvironment: production-family bundles (not just stable) fall through to production routing, so installed beta apps keep their customer data plane. - Re-restore the stable-only legacy Omi Computer.app cleanup gate from d5a8ba9 (also dropped by dba3af2): with beta production-family again, an ungated cleanup from a beta install would force-terminate the running stable app. - AppBuildProductionFamilyTests covers the family set and the cleanup gate. The retirement of the separately packaged beta artifact (channel pointer over immutable Omi.zip/omi.dmg) is untouched: this restores identity and routing semantics for already-installed beta bundles only.
skanderkaroui
added a commit
that referenced
this pull request
Jul 21, 2026
…artifact refactor dba3af2 (restore single macOS artifact) removed the beta production identity from AppBuild while #10216 was in flight; #10216 then landed INV-DATA-1 plus guards that pin com.omi.computer-macos.beta to the production customer data plane. Their merge left main red and, worse, routed installed Omi Beta apps to the development backend. Restore the boundary the locked invariant demands: - AppBuild: betaProductionBundleIdentifier + productionFamilyBundleIdentifiers are back; isNonProduction / isProductionBundle key off the family set. - DesktopBackendEnvironment: production-family bundles (not just stable) fall through to production routing, so installed beta apps keep their customer data plane. - Re-restore the stable-only legacy Omi Computer.app cleanup gate from d5a8ba9 (also dropped by dba3af2): with beta production-family again, an ungated cleanup from a beta install would force-terminate the running stable app. - AppBuildProductionFamilyTests covers the family set and the cleanup gate. The retirement of the separately packaged beta artifact (channel pointer over immutable Omi.zip/omi.dmg) is untouched: this restores identity and routing semantics for already-installed beta bundles only.
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
## Summary Locks production-family customer data-plane continuity across mobile and macOS. - Removes the newly reintroduced TestFlight staging override: TestFlight is a distribution channel, not a separate customer/account universe. - Adds locked `INV-DATA-1`, requiring stable, internal, beta, TestFlight, Play Internal, and Omi Beta to use canonical production customer services. - Extends the deterministic routing guard to pin all production Codemagic mobile workflows plus the macOS Python and desktop APIs, reject legacy beta/staging routing selectors, and assert the macOS Beta identity + shipped Firestore project. - Makes macOS production-family endpoint resolution ignore process/bundled endpoint contamination. Development and explicitly signed external-preview identities retain their distinct controlled seam. ## Incident evidence The prior Android regression was introduced by `e5e971fa37` via `OMI_BETA_RELEASE_RING`, then removed after it reached main. During this work, `origin/main` reintroduced an iOS TestFlight-only `STAGING_API_URL` option in BasedHardware#10214. That option still violates the same customer-data continuity boundary, so this PR removes it and prevents reintroduction. ## Product invariants affected - INV-AUTH-1 — this PR changes `codemagic.yaml`, which is also an existing protected auth-artifact surface; it does not change session invalidation behavior. - INV-DATA-1 — production-family customer data plane remains canonical production across every release cohort. ## Verification Passed: ```text python3 .github/scripts/test_check_mobile_production_routing.py # 7 tests passed python3 .github/scripts/check-mobile-production-routing.py cd app && flutter test test/unit/env_test.dart test/providers/capture_provider_test.dart # 74 tests passed ``` Attempted targeted macOS Swift package tests (`APIClientRoutingTests|ExternalPreviewBuildTests`). Dependency compilation exhausted the host volume (120 MiB free) before compiling this PR's Swift sources; the generated `.build` directory was removed, restoring 3.9 GiB. A later local pre-push attempt also could not complete the macOS dependency lane because SwiftPM's remote fetch did not expose the lockfile-pinned FluidAudio commit, even though it was present in the local cache. The focused source-level mutation tests and Flutter regression tests above passed. CI should run the targeted Swift suite on a provisioned runner. ## Failure class Failure-Class: new
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…0219) ## Summary Restore the canonical single macOS production identity in the production data-plane routing guard after BasedHardware#10216 accidentally required a separate Beta bundle identifier. - Require `com.omi.computer-macos` as the sole production-family macOS identity. - Reject `.beta`, canary, or other divergent `com.omi.computer-macos.*` identities. - Pin Codemagic's executable desktop release `BUNDLE_ID` to exactly `com.omi.computer-macos`, rejecting missing, wrong, and duplicate assignments. - Repair the Swift routing test to exercise both Stable and Beta channels through the canonical production identity. - Correct locked `INV-DATA-1` documentation to define Beta as a channel pointer/feed, not a separate app identity. - Preserve production API and `based-hardware` Firestore routing pins. - No runtime product behavior or channel pointer is changed. ## Root cause BasedHardware#10216's static guard encoded a superseded separate-Beta bundle identity instead of the canonical single-app/channel-pointer model. Exact-main Release Eligibility and Repo Checks correctly failed against the actual canonical `AppBuild` implementation. ## Product invariants affected - INV-DATA-1 — all production-family release cohorts share the canonical production customer data plane and macOS app identity. ## Verification - Regression test observed RED before checker repair. - `python3 .github/scripts/test_check_mobile_production_routing.py` — 9 passed - `python3 .github/scripts/check-mobile-production-routing.py` - `python3 -m py_compile .github/scripts/check-mobile-production-routing.py .github/scripts/test_check_mobile_production_routing.py` - `git diff --check` - PR-body preflight - `python3 .github/scripts/check-release-process-guards.py` - `uv run --with pytest --with pyyaml pytest -q .github/scripts/test_check_release_process_guards.py` — 81 passed - `OMI_SWIFT_TEST_SUITE_WORKERS=4 ./scripts/run-swift-ci.sh --test` — attempted locally; correctly refused because this host does not have the required `/Applications/Xcode_16.4.app`. GitHub's pinned Xcode 16.4 lane is the Swift execution authority. ## Failure class Failure-Class: FC-customer-data-plane-divergence
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…artifact refactor 6a8de34 (restore single macOS artifact) removed the beta production identity from AppBuild while BasedHardware#10216 was in flight; BasedHardware#10216 then landed INV-DATA-1 plus guards that pin com.omi.computer-macos.beta to the production customer data plane. Their merge left main red and, worse, routed installed Omi Beta apps to the development backend. Restore the boundary the locked invariant demands: - AppBuild: betaProductionBundleIdentifier + productionFamilyBundleIdentifiers are back; isNonProduction / isProductionBundle key off the family set. - DesktopBackendEnvironment: production-family bundles (not just stable) fall through to production routing, so installed beta apps keep their customer data plane. - Re-restore the stable-only legacy Omi Computer.app cleanup gate from e30c86a (also dropped by 6a8de34): with beta production-family again, an ungated cleanup from a beta install would force-terminate the running stable app. - AppBuildProductionFamilyTests covers the family set and the cleanup gate. The retirement of the separately packaged beta artifact (channel pointer over immutable Omi.zip/omi.dmg) is untouched: this restores identity and routing semantics for already-installed beta bundles only.
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…artifact refactor 6a8de34 (restore single macOS artifact) removed the beta production identity from AppBuild while BasedHardware#10216 was in flight; BasedHardware#10216 then landed INV-DATA-1 plus guards that pin com.omi.computer-macos.beta to the production customer data plane. Their merge left main red and, worse, routed installed Omi Beta apps to the development backend. Restore the boundary the locked invariant demands: - AppBuild: betaProductionBundleIdentifier + productionFamilyBundleIdentifiers are back; isNonProduction / isProductionBundle key off the family set. - DesktopBackendEnvironment: production-family bundles (not just stable) fall through to production routing, so installed beta apps keep their customer data plane. - Re-restore the stable-only legacy Omi Computer.app cleanup gate from e30c86a (also dropped by 6a8de34): with beta production-family again, an ungated cleanup from a beta install would force-terminate the running stable app. - AppBuildProductionFamilyTests covers the family set and the cleanup gate. The retirement of the separately packaged beta artifact (channel pointer over immutable Omi.zip/omi.dmg) is untouched: this restores identity and routing semantics for already-installed beta bundles only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Locks production-family customer data-plane continuity across mobile and macOS.
INV-DATA-1, requiring stable, internal, beta, TestFlight, Play Internal, and Omi Beta to use canonical production customer services.Incident evidence
The prior Android regression was introduced by
52c1920d64viaOMI_BETA_RELEASE_RING, then removed after it reached main. During this work,origin/mainreintroduced an iOS TestFlight-onlySTAGING_API_URLoption in #10214. That option still violates the same customer-data continuity boundary, so this PR removes it and prevents reintroduction.Product invariants affected
codemagic.yaml, which is also an existing protected auth-artifact surface; it does not change session invalidation behavior.Verification
Passed:
Attempted targeted macOS Swift package tests (
APIClientRoutingTests|ExternalPreviewBuildTests). Dependency compilation exhausted the host volume (120 MiB free) before compiling this PR's Swift sources; the generated.builddirectory was removed, restoring 3.9 GiB. A later local pre-push attempt also could not complete the macOS dependency lane because SwiftPM's remote fetch did not expose the lockfile-pinned FluidAudio commit, even though it was present in the local cache. The focused source-level mutation tests and Flutter regression tests above passed. CI should run the targeted Swift suite on a provisioned runner.Failure class
Failure-Class: new