Skip to content

[3407 by Claude Opus 5.5] Add a macOS unsigned preview release flow for the desktop app, so ProPR Desktop for macOS can be distributed without a paid Apple Developer account. Check current upstream main first. - #3410

Merged
integry merged 2 commits into
mainfrom
3407/claude-opus-5-5-add-a-macos-unsigned-prev-20261031-2316-1tw
Nov 1, 2026

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3407

Branch: 3407/claude-opus-5-5-add-a-macos-unsigned-prev-20261031-2316-1tw
Commits: ✅ Changes committed (aa004f6)


AI Processing Completed

Execution Details:

Summary:
I've added the unsigned macOS preview release flow: a new desktop-macos-preview.yml workflow plus helper scripts, tests and docs. It hasn't run for real yet. The package and publish jobs need macOS runners and a dispatch from main, and the workflow refuses any other branch, so a PR branch can't be used to test it.

What a run does (one workflow_dispatch, main only, no secrets anywhere):

  1. identity – checks that source_revision is reachable from main and that all three runtime images are pinned to that exact SHA. It also refuses a source revision older than the macOS preview tooling, because the build runs that revision's own scripts.
  2. runtime-preflight – checks the three published images in the registry, using the same step as the Linux preview.
  3. package – builds the x64 and arm64 DMG and ZIP on macos-15-intel and macos-15 from the frozen SHA, with the pinned digests baked in. The existing build hook ad-hoc signs arm64. It then runs the same unsigned-package checks as PR validation, plus the native install/relaunch/removal test. It fails if any signing, notarization or update variable is present, or if the app has a Developer ID signature.
  4. finalize – re-checks both builds and writes macos-preview.json, INSTALL.md and SHA256SUMS over all assets.
  5. attest – the only job that can mint a signing token. It runs no repository code: it re-checks SHA256SUMS, then creates a provenance attestation for all seven assets with actions/attest-build-provenance (pinned to v4.2.2).
  6. stage-draft – creates (or safely resumes) a draft pre-release tagged desktop-macos-preview-v<version>-<short sha>.
  7. publish – waits for approval in a new desktop-macos-preview-publication environment. I made it separate from the Linux one so approving one platform never approves the other. It runs gh attestation verify on every asset, re-downloads and hashes the draft, refuses an existing tag, and publishes as a pre-release with make_latest: 'false'. If it fails, only the draft is left behind.

Reuse instead of copying:

  • The identity check is now a shared script (desktop-preview-identity.mjs), and the Linux preview workflow uses it too. That changes the Linux workflow: identity now runs from the main checkout rather than the frozen source. The checks and error messages are the same, and I updated the Linux workflow tests to match.
  • The GitHub draft/upload/verify code moved out of the Linux helper into preview-release-github.mjs; the Linux behaviour and messages are unchanged.
  • A new macos-preview-v1 profile is treated as preview-only, so it can never produce signed update metadata or go through the stable release publisher.

Self-update: unsigned macOS builds already never update. The update URL is only embedded when both PROPR_DESKTOP_ENABLE_UPDATES=1 and PROPR_DESKTOP_CODE_SIGNED=1 are set, and the app skips the update check when that URL is empty. src/macos-preview-update-policy.test.ts checks this against the workflow's actual build environment. It also checks that turning updates on without signing fails the build, and that update clients reject preview metadata.

Docs: desktop-application.md now has a "macOS preview builds" section on where to download and how to verify (shasum -a 256 -c, gh attestation verify). The existing Gatekeeper, keychain and notification notes are kept. Maintainer steps are in apps/desktop/README.md, and there's a CHANGELOG [Unreleased] entry.

Validation:

  • npm run desktop:test: 1380 passed, 0 failed (56 skipped are platform-gated).
  • Workspace and root lint with --max-warnings 0, and root and workspace typechecks: all clean.
  • actionlint v1.7.12 and zizmor v1.31.1 (pedantic) report nothing new for either preview workflow; the repo only runs actionlint in CI. I mutated the workflow a few ways (wrong environment, approval check removed, signing token permission removed, credentials persisted) and the contract tests caught each one.
  • One root test fails before and after my change: test/thirdPartyNotices.test.mjs says THIRD_PARTY_LICENSES.md is out of date with the last package-lock.json commit. I didn't touch either file.

Before the first run:

  • Create the desktop-macos-preview-publication environment with required reviewers, deployment limited to main, and the variable PROPR_DESKTOP_MACOS_PREVIEW_PUBLICATION_AUTHORIZED=1.
  • Add a tag ruleset for refs/tags/desktop-macos-preview-v* that blocks updates and deletion.
  • Pick a source_revision on main that includes this PR.

Nothing was tagged, published or merged.

Detailed Logs:

  • Conversation: 196 messages
  • Session: e7ea676c-207f-4500-9476-d99e106b1643

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3407-2026-10-31T23-35-34-513Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3407-2026-10-31T23-35-34-513Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've added the unsigned macOS preview release flow: a new `desktop-macos-preview.yml` workflow plus helper scripts, tests and docs. It hasn't run for real yet. The package and publish jobs need macOS ...


This PR was created automatically by ProPR after processing issue #3407.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…cos-preview.yml` workflow plus helper scripts, tests and docs. It hasn't run for real yet. The package and publish jobs need macOS runners and a dispatch from `main`, and the workflow refuses any other branch, so a PR branch can't be used to test it.

What a run does (one `workflow_dispatch`, main only, no secrets anywhere):
1. identity – checks that `source_revision` is reachable from main and that all three runtime images are pinned to that exact SHA. It also refuses a source revision older than the macOS preview tooling, because the build runs that revision's own scripts.
2. runtime-preflight – checks the three published images in the registry, using the same step as the Linux preview.
3. package – builds the x64 and arm64 DMG and ZIP on `macos-15-intel` and `macos-15` from the frozen SHA, with the pinned digests baked in. The existing build hook ad-hoc signs arm64. It then runs the same unsigned-package checks as PR validation, plus the native install/relaunch/removal test. It fails if any signing, notarization or update variable is present, or if the app has a Developer ID signature.
4. finalize – re-checks both builds and writes `macos-preview.json`, `INSTALL.md` and `SHA256SUMS` over all assets.
5. attest – the only job that can mint a signing token. It runs no repository code: it re-checks `SHA256SUMS`, then creates a provenance attestation for all seven assets with `actions/attest-build-provenance` (pinned to v4.2.2).
6. stage-draft – creates (or safely resumes) a draft pre-release tagged `desktop-macos-preview-v<version>-<short sha>`.
7. publish – waits for approval in a new `desktop-macos-preview-publication` environment. I made it separate from the Linux one so approving one platform never approves the other. It runs `gh attestation verify` on every asset, re-downloads and hashes the draft, refuses an existing tag, and publishes as a pre-release with `make_latest: 'false'`. If it fails, only the draft is left behind.

Reuse instead of copying:
- The identity check is now a shared script (`desktop-preview-identity.mjs`), and the Linux preview workflow uses it too. That changes the Linux workflow: identity now runs from the main checkout rather than the frozen source. The checks and error messages are the same, and I updated the Linux workflow tests to match.
- The GitHub draft/upload/verify code moved out of the Linux helper into `preview-release-github.mjs`; the Linux behaviour and messages are unchanged.
- A new `macos-preview-v1` profile is treated as preview-only, so it can never produce signed update metadata or go through the stable release publisher.

Self-update: unsigned macOS builds already never update. The update URL is only embedded when both `PROPR_DESKTOP_ENABLE_UPDATES=1` and `PROPR_DESKTOP_CODE_SIGNED=1` are set, and the app skips the update check when that URL is empty. `src/macos-preview-update-policy.test.ts` checks this against the workflow's actual build environment. It also checks that turning updates on without signing fails the build, and that update clients reject preview metadata.

Docs: `desktop-application.md` now has a "macOS preview builds" section on where to download and how to verify (`shasum -a 256 -c`, `gh attestation verify`). The existing Gatekeeper, keychain and notification notes are kept. Maintainer steps are in `apps/desktop/README.md`, and there's a CHANGELOG [Unreleased] entry.

Validation:
- `npm run desktop:test`: 1380 passed, 0 failed (56 skipped are platform-gated).
- Workspace and root lint with `--max-warnings 0`, and root and workspace typechecks: all clean.
- actionlint v1.7.12 and zizmor v1.31.1 (pedantic) report nothing new for either preview workflow; the repo only runs actionlint in CI. I mutated the workflow a few ways (wrong environment, approval check removed, signing token permission removed, credentials persisted) and the contract tests caught each one.
- One root test fails before and after my change: `test/thirdPartyNotices.test.mjs` says `THIRD_PARTY_LICENSES.md` is out of date with the last `package-lock.json` commit. I didn't touch either file.

Before the first run:
- Create the `desktop-macos-preview-publication` environment with required reviewers, deployment limited to `main`, and the variable `PROPR_DESKTOP_MACOS_PREVIEW_PUBLICATION_AUTHORIZED=1`.
- Add a tag ruleset for `refs/tags/desktop-macos-preview-v*` that blocks updates and deletion.
- Pick a `source_revision` on main that includes this PR.

Nothing was tagged, published or merged.
@integry

integry commented Nov 1, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

Ready to merge within the reviewed scope, conditional on the pending Validate Changes check completing successfully. The implementation separates unsigned macOS previews from production releases and provides substantial validation coverage.

✅ Source-bound builds — Identity validation requires a full commit reachable from dispatched main and validates all three source-tagged runtime image digests.

✅ Publication safeguards — Publication checks the exact draft identity, downloads and hashes remote assets, and explicitly publishes a prerelease with make_latest: 'false'.

✅ Update-channel isolation — The new preview profile is rejected by stable publication and metadata-signing helpers; tests also cover disabled update configuration.

This was a static review; no commands were run. The linked objective contains a truncation notice, so compliance with its omitted requirements could not be assessed. The supplied diff was reviewed as complete.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Record first workflow execution

After merge and environment configuration, record a complete main-branch dispatch covering both architectures, attestation verification, and publication. The new tests exercise helper behavior and workflow structure, but the implementation summary reports no actual execution of this workflow. This is useful operational validation rather than evidence of a code defect.

Score

The changed paths have strong identity, integrity, and publication checks, with no verified merge blocker. The supplied current-head status reports zero failures and one pending check; live execution of the new release flow remains unverified.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 28s
  • Tokens: 82,003 (81,382 in / 621 out)
  • Cost: $0.74

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1

🤖 Review by ProPR

@integry

integry commented Nov 1, 2026

Copy link
Copy Markdown
Owner

/merge

@propr-dev

propr-dev Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from main into 3407/claude-opus-5-5-add-a-macos-unsigned-prev-20261031-2316-1tw in commit 1d3b613

Conflicting Files

  • CHANGELOG.md

Resolution Summary

I resolved the one merge conflict, in CHANGELOG.md. A search of every file in the repository found no other conflict markers. I didn't run any tests, since the only change is to the changelog text.

The conflict: Both branches added a new entry at the same spot, under ## [Unreleased] → ### Added:

  • This PR: an entry for the new unsigned macOS preview release workflow (desktop-macos-preview.yml), describing the Intel and Apple Silicon DMG/ZIP builds, checksums and attestations, publishing as a pre-release, and the verification steps in the desktop guide.
  • main: an entry for deploying the hosted UI (app.propr.dev) automatically as part of a release, describing the hosted-ui-production environment, the version check on the deployed site, skipping when secrets are missing, and the setup script.

How I resolved it: I kept both entries in full, with the PR's macOS entry first and main's hosted UI entry right after it, and removed the conflict markers.

Why: The two entries describe unrelated features, and the only reason they conflicted is that both were added in the same place. Dropping or rewording either one would lose a real change from the changelog. The section still reads as valid Markdown, and the ### Fixed section below it is unchanged.

ProPR also reported Gmail, Google Calendar and Google Drive as needing sign-in. You can connect them in your claude.ai connector settings if you want them, but this task didn't need them.


🤖 Resolution Details

  • Model: Claude Opus 5.5
  • Time: 2m 24s

View Task Execution


System-triggered merge conflict resolution

…cos-unsigned-prev-20261031-2316-1tw

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- CHANGELOG.md

PR: #3410
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Auto-merged main into 3407/claude-opus-5-5-add-a-macos-unsigned-prev-20261031-2316-1tw (clean merge) in commit 1d3b613

No conflicts were found — the merge was verified by an AI agent.


🤖 Verification Details

  • Model: Claude Opus 5.5
  • Time: 2m 48s

View Task Execution


System-triggered merge conflict resolution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant