Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 4:47 PM ET / 20:47 UTC. ClawSweeper reviewWhat this changesThe PR writes the packaged postinstall inventory with mode 0644 and adds a non-Windows regression assertion for that file mode. Merge readinessKeep open. The previous Windows-specific blocker is fixed, and the direct extended-stable inventory producer now requests a public package-file mode with a portable regression assertion; this maintainer-authored, protected PR still needs normal exact-head CI completion before merge. Priority: P2 Review scores
Verification
How this fits togetherThe package build flow scans distribution files and writes a postinstall inventory into the package output. Package validation and installed-package maintenance then read that inventory after installation. flowchart LR
A[Package build] --> B[Distribution scan]
B --> C[Inventory writer]
C --> D[Package artifact]
D --> E[Package validation]
D --> F[Installed-package maintenance]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +6. Total +6 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the bounded extended-stable repair once exact-head checks are resolved, then apply the same explicit public-mode contract to the current-main package-inventory writer in a separate focused change. Do we have a high-confidence way to reproduce the issue? Yes—source inspection identifies the direct producer and the added POSIX assertion exercises the resulting file mode; the PR body reports that the pre-fix producer fails that assertion. Is this the best way to solve the issue? Yes for the extended-stable branch: set the mode at the package-metadata producer instead of weakening the secure default for every fs-safe JSON write; current main needs a separate equivalent forward-port. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 14d2cf0f5c07. 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)
|
* fix(package): make postinstall inventory readable * test(package): skip inventory mode assertion on Windows (cherry picked from commit 78b6d06)
What Problem This Solves
Fixes an issue where non-root users could receive a package tarball whose postinstall inventory is owner-only, causing package validation to reject the release artifact and preventing installed-package maintenance from reading its inventory.
Why This Change Was Made
The existing package-inventory producer uses the pinned fs-safe atomic writer, whose secure default file mode is
0600. The inventory is package metadata rather than private state, so the producer now explicitly writes it as0644; all candidate pack flows use that producer.User Impact
The packaged inventory remains readable after normal global installation, and candidate package validation no longer rejects its tarball for an owner-only
dist/postinstall-inventory.jsonentry.Evidence
782a8f7candidate: the unmodified producer wrote mode0600; the fix writes0644.node scripts/run-vitest.mjs run src/infra/package-dist-inventory.test.ts(14 passed). The added assertion fails on the pre-fix producer.node scripts/run-oxlint.mjs --tsconfig tsconfig.json src/infra/package-dist-inventory.ts src/infra/package-dist-inventory.test.ts.@openclaw/[email protected]public types acceptWriteJsonOptions.mode; its atomic writer applies the final mode after rename.