Repository navigation
fix(release): mktemp templates must end with XXXXXX for the dual smoke - #10185
Merged
Merged
Conversation
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 #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
…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. -->
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.
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 withFile existsand 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.shgains a tripwire rejecting any suffixed template.Product invariants affected
(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.shgreen (includes the new tripwire); bash -n both files.🤖 Generated with Claude Code