Skip to content

Add maintainer-approved desktop preview publishing - #9735

Merged
Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
Git-on-my-level:codex/desktop-preview-publishing
Jul 14, 2026
Merged

Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
Git-on-my-level:codex/desktop-preview-publishing

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add a maintainer-approved, default-branch-controlled dispatcher for immutable preview/<slug> desktop source commits
  • publish signed, notarized, stapled preview DMGs create-only to a per-slug/per-SHA GCS path and advance only that slug's isolated registry pointer
  • keep preview publication on the fixed production registry control plane while embedding independently selected production-compatible or preview runtime URLs into the app
  • provide a generation-checked delist operation that removes only a slug pointer, never its immutable manifest or artifact
  • make each preview a distinct com.omi.preview.* app that disables local automation and Sparkle, and show the exact SHA, identity, URLs, and notes before protected approval

Closes #9723

Root cause and durable guard

Desktop publishing only had beta/stable release paths, and every non-production bundle enabled local automation and inherited development routing. The new lane resolves an approved full SHA before the protected environment, keeps its configuration on main, publishes to a separately scoped registry/publisher key/GCS prefix, and reserves com.omi.preview.* as a fail-closed external-preview class. Registry control-plane routing is deliberately separate from the artifact's runtime backend configuration. Delisting uses the current pointer generation as a compare-and-delete guard, so it cannot remove a newer preview by mistake and it retains immutable artifacts.

Verification

  • bash desktop/macos/tests/test-signed-artifact-smoke.sh
  • OMI_PR_BODY_FILE=/tmp/omi-preview-pr-body.md make preflight (21 selected checks passed)
  • python3 .github/scripts/check-release-process-guards.py
  • actionlint -shellcheck='' .github/workflows/desktop_publish_preview.yml
  • xcrun swiftc -parse on the touched preview Swift sources/tests
  • python3 desktop/macos/scripts/check_desktop_test_quality.py
  • plutil -lint desktop/macos/Desktop/Info.plist
  • Codemagic YAML parsing with Ruby/Psych aliases enabled
  • backend/.venv/bin/python -m pytest -q backend/tests/unit/test_desktop_previews.py backend/tests/unit/test_desktop_updates.py backend/tests/unit/test_render_backend_runtime_env.py backend/tests/unit/test_backend_runtime_env_validator.py (149 passed)
  • repository pre-push gates, including backend typecheck, generated-client checks, and desktop Swift compile

The full backend/test.sh was attempted after syncing the checked-in virtualenv. It reached the suite but failed an unrelated existing fast-duration threshold (test_activate_task_intelligence_dogfood_user.py: 0.14s CPU vs. 0.12s limit). The focused Swift unit test still cannot compile because SwiftPM's Sentry artifact fetch hits GitHub Keychain status -25308.

Product invariants affected

  • INV-AUTH-1

@Git-on-my-level
Git-on-my-level force-pushed the codex/desktop-preview-publishing branch from 58ee940 to f58d90f Compare July 14, 2026 19:19
@Git-on-my-level
Git-on-my-level force-pushed the codex/desktop-preview-publishing branch from f58d90f to d62fb8b Compare July 14, 2026 19:57
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.

Desktop: add maintainer-approved private preview publishing lane

1 participant