Skip to content

Define immutable desktop release manifest V1 contract - #9529

Merged
Git-on-my-level merged 1 commit into
mainfrom
codex/issue-9526-immutable-desktop-release
Jul 12, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
codex/issue-9526-immutable-desktop-release

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

  • define the strict V1 DesktopReleaseManifest contract for one qualified macOS app plus an optional Rust desktop-backend
  • add a stdlib-only executable validator, canonical digest, and independently keyed HMAC signature with no digest-only verification downgrade
  • bind app artifacts to the exact BasedHardware/omi release tag and require exact app/backend/environment compatibility
  • register deterministic local/CI contract tests and document the phased migration plus every legacy source-of-truth deletion gate

Part of #9526. This is rollout step 1 from the issue: it deliberately establishes and tests the contract without changing live candidate, beta, stable, Firestore, or Cloud Run behavior.

Root cause and durable guard

Desktop release identity is currently split across signed GitHub artifacts, qualification metadata, Firestore pointers, a stable-time Rust image rebuild, Cloud Run health fields, and desktop-backend-prod-deployed. That permits beta and stable to refer to different complete release units and forces operators to infer which identity is authoritative.

The durable guard is one strict executable V1 contract with:

  • explicit app_only versus backend_required modes
  • ZIP, DMG, qualification-evidence, OCI-index, and platform-child digests
  • exact source/tag/version/build and compatibility equality
  • a canonical public digest plus domain-separated HMAC-SHA256 signature anchored by a separately controlled key
  • fail-closed checks for unknown fields, duplicate JSON keys, provenance drift, compatibility mismatch, and signature downgrade

Recent release-control work added app-only immutable pointers and canonical qualification, but no prior contract bound the optional Rust backend to that unit. This PR extends that shared boundary rather than adding another workflow-local identity heuristic.

Rollout scope

This PR is inert by design. It does not yet claim the build-once, beta-digest deployment, or no-build stable acceptance criteria are live.

The documented follow-up order is:

  1. produce and compare V1 shadow manifests for several tags;
  2. build/publish required Rust images during candidate preparation;
  3. make beta deploy and verify the manifest-pinned digest;
  4. require one exact V1 beta cycle;
  5. make stable consume the same manifest and delete the tag rebuild path.

The migration table names the existing GitHub metadata, Firestore records/pointers, legacy Rust collection, stable rebuild, Cloud Run identity, tracking tag, and generic label, with an explicit deletion or demotion gate for each. Python backend* deployment identity remains out of scope.

Validation

  • python3 .github/scripts/test_desktop_release_manifest.py — 21 tests passed
  • python3 .github/scripts/test_run_checks.py — 8 tests passed
  • python3 .github/scripts/check-desktop-prod-promotion-policy.py — passed
  • python3 .github/scripts/check-desktop-release-terminology.py — passed
  • python3 .github/scripts/check-release-process-guards.py — passed
  • make preflight — 9 selected deterministic checks passed; only pre-existing architecture-map warnings were reported
  • pre-push hook — all fast checks passed
  • real CLI path exercised: validate, digest, sign, and signature-required verify succeeded on the backend-required fixture; digest-only verify failed closed
  • independent review approved after the HMAC trust anchor, schema authority, coherent tamper tests, provenance binding, and CLI downgrade fixes

Product invariants

No locked product invariant paths are affected (scripts/pr-preflight --suggest).

Review in cubic

@mintlify

mintlify Bot commented Jul 12, 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 12, 2026, 3:30 AM

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

@Git-on-my-level Git-on-my-level added desktop macOS workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior labels Jul 12, 2026 — with ChatGPT Codex Connector

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f8e16c42dc

ℹ️ 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".

if not value.endswith("Z"):
_fail(f"{key} must be an RFC 3339 UTC timestamp ending in Z")
try:
parsed = datetime.fromisoformat(value.removesuffix("Z") + "+00:00")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject non-RFC3339 created_at values

When a manifest is generated with non-RFC3339 timestamp text such as 2026-07-12T01:03Z or 2026-07-12T01:03:00,5Z, datetime.fromisoformat still accepts it here, so the authoritative validator can sign and digest a manifest that later schema/date-time tooling rejects. Add an explicit RFC3339 UTC regex before parsing so executable validation and the documented schema contract stay aligned.

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 6e1b767 into main Jul 12, 2026
20 of 26 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/issue-9526-immutable-desktop-release branch July 12, 2026 04:54

This branch was successfully deployed

1 active deployment
staging - docs — f8e16c42 Deployed Jul 12, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop macOS workflow-review Needs maintainer review for workflow, automation, hooks, or CI behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant