Repository navigation
fix(release): validate frozen packages with trusted harness pnpm - #123206
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 5:59 AM ET / 09:59 UTC. ClawSweeper reviewWhat this changesThe PR runs frozen-package validation from the trusted release-harness directory so Corepack selects the harness-pinned pnpm, with workflow-contract assertions for the new invocation. Merge readinessKeep open for maintainer review. The patch correctly moves the process into the trusted harness before Corepack selects pnpm, fixing the current-main path that still resolves from the workspace root; the protected maintainer label and pending exact-head checks require a release-owner decision. Priority: P2 Review scores
Verification
How this fits togetherRelease validation downloads an immutable package candidate and validates it before Docker E2E work proceeds. A trusted harness owns the package-manager pin and supplies the tarball validator, while the candidate tarball remains an input to that validator. flowchart LR
Candidate[Immutable candidate tarball] --> Validation[Release validation job]
Harness[Trusted release harness] --> Pnpm[Pinned pnpm]
Validation --> Harness
Pnpm --> Validator[Tarball validator]
Validator --> Identity[Artifact identity checks]
Identity --> Result[Release validation result]
Decision needed
Why: The source and focused workflow contract support the fix, but this protected release-automation path controls which package manager validates immutable candidates. Before merge
Agent review detailsSecurityNone. PR surfaceTests +5, Config 0. Total +5 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the cwd-before-pnpm fix after exact-head checks are green, preferably with one redacted frozen-candidate mismatch validation trace retained in the PR. Do we have a high-confidence way to reproduce the issue? Yes, at source level: a frozen target with a different pnpm pin makes Corepack choose the workspace manifest before pnpm handles Is this the best way to solve the issue? Yes. Entering AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2a77e6e5a05d. LabelsLabel justifications:
EvidenceWhat 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)
|
eafbb00 to
0acd05d
Compare
What Problem This Solves
Fixes a release-validation failure when the trusted
mainharness validates a frozen candidate whose pnpm pin differs frommain.Why This Change Was Made
The release harness already installs its own pinned pnpm. The validator now starts from that harness directory, so Corepack resolves the same pinned package manager before the validator receives the immutable candidate tarball path.
User Impact
Release maintainers can validate older or extended-stable candidate packages with the current trusted release workflow even when their pnpm pins differ from
main. This does not alter candidate bytes, release refs, tags, or npm state.Evidence
pnpm --dir .release-harnessapplied the harness’s 11.15.1 directory, which pnpm correctly rejected.fdc1c2e6c1b5f41d00edb2eb55244fa7c51f87dd, version2026.6.35.node scripts/run-vitest.mjs test/scripts/release-no-push-workflow.test.ts(15 passed)actionlint .github/workflows/openclaw-live-and-e2e-checks-reusable.ymlnode_modules/.bin/oxfmt --check test/scripts/release-no-push-workflow.test.ts.agents/skills/autoreview/scripts/autoreview --mode local --base origin/main— clean, no accepted/actionable findings.