Repository navigation
Define immutable desktop release manifest V1 contract - #9529
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
💡 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") |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
DesktopReleaseManifestcontract for one qualified macOS app plus an optional Rustdesktop-backendBasedHardware/omirelease tag and require exact app/backend/environment compatibilityPart 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:
app_onlyversusbackend_requiredmodesRecent 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:
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 passedpython3 .github/scripts/test_run_checks.py— 8 tests passedpython3 .github/scripts/check-desktop-prod-promotion-policy.py— passedpython3 .github/scripts/check-desktop-release-terminology.py— passedpython3 .github/scripts/check-release-process-guards.py— passedmake preflight— 9 selected deterministic checks passed; only pre-existing architecture-map warnings were reportedProduct invariants
No locked product invariant paths are affected (
scripts/pr-preflight --suggest).