Skip to content

fix(package): publish readable dist inventory - #133549

Merged
RomneyDa merged 1 commit into
mainfrom
fix/package-dist-inventory-public-mode
Aug 30, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/package-dist-inventory-public-mode

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Forward-ports the explicit public mode for dist/postinstall-inventory.json to 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.
  • Focused oxlint was attempted but its prerequisite prepare-extension-package-boundary-artifacts fails 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.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 5:15 PM ET / 21:15 UTC.

ClawSweeper review

What this changes

This PR makes the generated package distribution inventory explicitly world-readable and adds a POSIX permission assertion.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: ac33c39a43652c1299c9d272c915769b330eaf8e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused, net-neutral in production code, and protects the changed file-mode behavior with a direct filesystem assertion.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored packaging PR; the supplied focused test nevertheless exercises the production writer and checks its resulting filesystem mode.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored packaging PR; the supplied focused test nevertheless exercises the production writer and checks its resulting filesystem mode.
Evidence reviewed 8 items Current-main gap: Current main writes the inventory without an explicit mode, so the requested behavior is not already implemented there.
Introduced owner-boundary fix: The pinned PR delta changes only the shared inventory producer to request mode 0644, covering both ordinary and publish inventory wrappers.
Consumer path: Installed postinstall cleanup reads this exact inventory before determining which dist files to prune, making readability an operator-visible package contract.
Findings None None.
Security None None.

How this fits together

Package 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]
Loading

Before merge

  • Resolve merge risk (P1) - The central @openclaw/fs-safe mode contract could not be independently source-inspected in this node_modules-less checkout because network access was unavailable; rely on the PR's focused mode assertion and exact-head CI before merge.
  • Complete next step (P2) - No repair job is needed: no actionable patch defect was found, and this MEMBER-authored PR remains for normal exact-head CI and maintainer review.
Agent review details

Security

None.

PR surface

Tests +5, Other 0. Total +5 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 5 0 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 2 6 1 +5

Review metrics

Metric Value Why it matters
Production versus test delta production +1/-1 (net 0); tests +5/-0 The fix adds no production growth and the test directly protects the packaged file-mode contract.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one explicit 0644 declaration at the shared inventory producer so all packaging paths emit readable metadata without changing unrelated JSON writer defaults.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This is a bounded package-artifact correctness fix with limited release/install blast radius.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored packaging PR; the supplied focused test nevertheless exercises the production writer and checks its resulting filesystem mode.

Label justifications:

  • P2: This is a bounded package-artifact correctness fix with limited release/install blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor proof gate does not apply to this MEMBER-authored packaging PR; the supplied focused test nevertheless exercises the production writer and checks its resulting filesystem mode.

Evidence

What I checked:

Likely related people:

  • Shakker: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit 951786e into main Aug 30, 2026
158 of 160 checks passed
@RomneyDa
RomneyDa deleted the fix/package-dist-inventory-public-mode branch August 30, 2026 22:14
vincentkoc added a commit that referenced this pull request Aug 30, 2026
* 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)
  ...
vincentkoc added a commit to shojikumaru/openclaw that referenced this pull request Aug 30, 2026
…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)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant