Repository navigation
fix(package): publish readable dist inventory - #133549
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 5:15 PM ET / 21:15 UTC. ClawSweeper reviewWhat this changesThis PR makes the generated package distribution inventory explicitly world-readable and adds a POSIX permission assertion. Merge readinessKeep open. Current main still omits the explicit file mode, while this MEMBER-authored PR applies the producer-bound fix and adds a focused real-filesystem assertion; it remains appropriate for normal exact-head CI and maintainer approval. Priority: P2 Review scores
Verification
How this fits togetherPackage build and postinstall tooling generates an inventory inside the distributable package. Package validation and postinstall cleanup read that inventory later, so it must be accessible as packaged metadata. flowchart LR
A[Package build] --> B[Inventory writer]
B --> C[Distribution inventory]
C --> D[Installed package]
D --> E[Validation and cleanup]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +5, Other 0. Total +5 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one explicit 0644 declaration at the shared inventory producer so all packaging paths emit readable metadata without changing unrelated JSON writer defaults. Do we have a high-confidence way to reproduce the issue? Yes at source level: the added POSIX assertion invokes the production writer on a real temporary package directory and stats the resulting file, although this read-only review did not rerun it. Is this the best way to solve the issue? Yes. Applying the mode at the shared producer covers prepack, publish, validation, and bundled-plugin staging paths without weakening fs-safe defaults for unrelated files. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9830acc75d8f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
* origin/main: (55 commits) test: include v2026.8.1 release navigation (#133581) fix: stop cloud work before unrelated provider inspection finishes (#133476) fix(e2e): keep delete fixture target-compatible (#133526) fix(release): detect optional target E2E capability (#133525) fix(package): publish readable dist inventory (#133549) docs: add complete v2026.8.1 maintainer change index (#133585) fix(browser): preserve contextless worker and iframe sessions (#133571) fix(voice): discover configured provider candidates (#133507) refactor(ui): simplify chat rendering and lifecycle state (#133567) test: reduce maturity fixture cleanup time (#133566) improve: speed up legacy imports and transcript replacement (#133546) docs: add draft v2026.8.1 release notes (#133557) test: guard multi-project Vitest cache ownership (#133554) fix(memory): clarify default agent scope in command help (#133560) fix(clawdock): keep credentials out of diagnostic output (#133547) refactor(ui): avoid redundant presence work in avatar lists (#133548) fix(agents): recognize internal requester completion replies (#133543) fix: prevent duplicate queued user messages in chat clients (#133542) chore(ui): refresh control ui locales (#133544) fix(beam): restart delivery when the receiver changes (#133533) ...
…cked-delivery * origin/main: test: include v2026.8.1 release navigation (openclaw#133581) fix: stop cloud work before unrelated provider inspection finishes (openclaw#133476) fix(e2e): keep delete fixture target-compatible (openclaw#133526) fix(release): detect optional target E2E capability (openclaw#133525) fix(package): publish readable dist inventory (openclaw#133549) docs: add complete v2026.8.1 maintainer change index (openclaw#133585) fix(browser): preserve contextless worker and iframe sessions (openclaw#133571) fix(voice): discover configured provider candidates (openclaw#133507) refactor(ui): simplify chat rendering and lifecycle state (openclaw#133567) test: reduce maturity fixture cleanup time (openclaw#133566) improve: speed up legacy imports and transcript replacement (openclaw#133546) docs: add draft v2026.8.1 release notes (openclaw#133557) test: guard multi-project Vitest cache ownership (openclaw#133554) fix(memory): clarify default agent scope in command help (openclaw#133560)
Summary
Forward-ports the explicit public mode for
dist/postinstall-inventory.jsonto the current package-inventory writer. This is the same producer-boundary contract fixed for the extended-stable candidate in #133500: package consumers must be able to read the packaged inventory, while unrelated JSON writes retain fs-safe's private default.Proof
node scripts/run-vitest.mjs test/scripts/postinstall-bundled-plugins.test.ts— 29 passed.git diff --check— passed.prepare-extension-package-boundary-artifactsfails on unrelated current-main plugin-SDK declaration diagnostics before lint starts; no diagnostic references this change.Scope
Production: +1/-1. Test: +5/-0. The POSIX mode assertion is skipped on Windows, where POSIX permission bits are not portable.