Repository navigation
feat(release): add a checkpoint-only packaging boundary for split macOS notarization - #157117
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 24, 2026, 8:44 AM ET / 12:44 UTC (Revision 2). ClawSweeper reviewWhat this changesAdds a macOS packaging mode that seals a signed app and disk image for later notarization, alongside release guidance and packaging tests. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 7 items remain Current main does not provide the checkpoint-only handoff. The prior smoke-signing finding remains on this head, and the new DMG-signing requirement also breaks packaging that uses the documented automatic certificate selection. Priority: P2 Review scores
Verification
How this fits togetherThe macOS packaging scripts take release source, build settings, and signing settings and produce app archives for publication. A retained checkpoint lets a later job verify those artifacts and finish notarization without rebuilding. flowchart LR
A[Release source and settings] --> B[Build macOS app]
B --> C[Choose signing mode]
C --> D[Audit and seal checkpoint]
D --> E[Verify on resume]
E --> F[Apple notarization]
F --> G[Release archives]
E -->|Smoke build| G
Decision needed
Why: The PR changes the boundary between signing and Apple notarization, while the supplied evidence explicitly lacks a Developer ID end-to-end run; the release owner must choose the acceptable release proof. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +231, Docs +2, Other +33. Total +266 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Make the packaging owner choose a consistent app and DMG signing identity for each mode, retain source-bound checkpoint verification, and validate the handoff under the release owner's accepted proof gate. Do we have a high-confidence way to reproduce the issue? Yes. Source establishes both failing paths: a certificate-equipped smoke runner can sign with that certificate, and a signed build with an implicit identity reaches the new DMG error. Neither path was executed in this read-only review. Is this the best way to solve the issue? No, not at this head. Sealing a signed DMG before notarization fits the existing recovery owner, but both established signing defaults need to survive the new boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against da5e443fe5bb. LabelsLabel changes: No label changes. Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
…OS notarization (openclaw#157117) * feat(release): add checkpoint-only macOS packaging boundary * style(test): add required braces to packaging fixtures
What Problem This Solves
macOS packaging cannot currently hand a complete signed checkpoint to a separate notarization job: it begins notarizing immediately and may still need to create and sign the DMG during recovery.
User Impact
Release operators can finish compilation, signing, and the frame audit with
--checkpoint-only, then resume notarization and packaging without a compiler or Developer ID private key. Explicit ad-hoc smoke builds can exercise both halves without notarization; release-signed apps cannot use that bypass.Why This Change Was Made
The packaging script now creates and signs the DMG before sealing the existing source/version/build/hash-bound checkpoint. Resume verifies and re-audits retained app and DMG bytes, reuses Apple submissions, staples accepted artifacts, and emits the final zip, DMG, and symbol archive. The
--checkpoint-onlyflag remains discoverable by the workflow'sgrep -Fqfeature check, so older sources can retain the single-job path.Legacy recovery shipped in #135601, but checkpoints require the exact producer source SHA. Older checkpoints without a DMG continue to use their original script and signing credentials; the new resume path never constructs a missing DMG. The existing workflow owns release-tag/producer binding in
workflow-release.json, variant naming, and appcast generation, including its smoke/beta exclusions.This addresses L1259's three packaging prerequisites. Related release-ops context: variant-aware recovery. The L1259 split-job follow-up targets the current macOS publisher; no separate follow-up PR was available when this change was authored. The notarization helper is unchanged for L1258. Its retry behavior is accommodated by making the existing recovery fixture interrupt stapling instead of relying on a one-shot network failure.
Evidence
90898c3d89c3f15ea9c5334cb7875d122bab55c3, rebased onto main before publication.unexpected packaging argument: --checkpoint-only; the completed tests cover signed-DMG retention, resume without build tools or signing credentials, smoke acceptance, release refusal (even with the smoke flag), tampering, missing DMG, and audit refusal.pnpm test test/scripts/package-mac-dist.test.ts --maxWorkers=1passed 3 times on the final Testbox snapshot: 18 passed / 9 macOS-only skips each. Test time: 4.097 / 3.933 / 3.905 s; runner wall time: 5.91 / 5.13 / 5.07 s.pnpm check:changedpassed, including root-test typechecking, script lint, macOS tooling CI suites, and changed-test lint. The first remote pass found four missing-brace lint errors; those were corrected before this final green run.package-mac-dist,build-and-run-mac,changed-lanes,package-mac-app, andci-changed-scope). No individual test exceeded 30 seconds.--mode branch --base origin/main --max-priority P2, scoped-clean on the final head.git diff --checkand Bash syntax validation passed.tbx_01m393zx4ma3a9c5ca5q6cbbqp, run 35968158694, final command exit 0, 11m47.799s. The lease was stopped after proof.Real Developer ID signing/notarization end-to-end proof was not possible without signing identities. Native archive/signature fixtures and fake Apple services exercise the packaging boundary without live credentials. No runtime update, configuration, dependency, SQLite, or appcast ownership changes are included.