Skip to content

chore(deps): adopt fs-safe 0.18.1 identity repair - #155771

Merged
vincentkoc merged 2 commits into
mainfrom
chore/fs-safe-0181-adoption
Sep 22, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
chore/fs-safe-0181-adoption

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Adopts the published fs-safe 0.18.1 repair for secure temporary directories whose filesystem identity contains signed 64-bit values.

User Impact

OpenClaw and six plugins receive the reviewed dependency release. This removes the dependency publication prerequisite for the separate FreeBSD update work in #149882; it does not qualify that update flow, ARM startup, or installed upgrades.

Why This Change Was Made

Updates the seven direct pins and canonical lockfile, including all seven optional native package versions. No production code, tests, overrides, patches, or unrelated resolutions change (nine metadata files, +61/-61).

The upstream release contains more than the signed-identity repair: its full 25-commit/171-path delta was reviewed, including monotonic lock deadlines, root-write policy, creation/native contracts, and preservation of primary errors during cleanup. Public exports, runtime floors, and native API remain compatible. Release: https://github.com/openclaw/fs-safe/releases/tag/v0.18.1; signed-identity repair: openclaw/fs-safe#586.

The existing reviewed cooldown allowlist moves only the eight exact fs-safe/root-native selectors to 0.18.1. Strict minimum release age remains 10,080 minutes; unrelated exceptions remain unchanged. The comment requires manual removal after 2026-09-29T12:41:53.020Z; it is not automatic expiry.

Evidence

  • Current signed head d51a5091989ca5d032d31d8458d53794a9ff2b4a, tree 964c43f15564b54e638bc5131a48d771489a18ae, normally merges frozen main 739e2410702e0b1ad1d17a6dac07ddc0ab6dbebb into the original signed adoption commit. All nine metadata postimages and the authored diff remain byte-identical. Independent source/context review and a fresh scoped autoreview against that base found no actionable issue.
  • The earlier CI failure was an inherited 701-root shard overflow, already repaired by feat: compare Kitchen Sink Gateway resource costs #155734. This composition includes that canonical repair; it does not raise the 700-root guard or duplicate the fix. A close/reopen refresh still selected the obsolete merge and was cancelled; it is not proof of the corrected source.
  • The following install, consumer, and package command receipts belong to original head e7d11b01a90ec0537cfa960be06434d925ed0d2f, tree 2cfff5b1c7430b0a5754248d71db614c072b6855; they are not relabeled as new-head execution.
  • Independently checked generated lock semantics and all eight official registry version/SRI records. Exactly seven importer and eight root/native package/snapshot updates; unrelated records, including 0.12.0 consumers, remain unchanged.
  • Fresh frozen install on Linux x64, Node 24.19.0 / pnpm 12.4.0; strict policy, installed dependency/native versions, default/import boundary, native loading and filesystem identity checks passed.
  • Sixteen selected consumer files: 716 passed, one Windows-only case skipped, command exit 0, 58.326 seconds. Covers temporary directories, filesystem writes/streams/errors, private/secret files, locks, archives, plugin copy/install, and package/runtime dependency contracts. No tests were added or changed.
  • One canonical package-openclaw-for-docker.mjs --allow-unreleased-changelog build/package command completed with exit 0 in 624.639 seconds. No Docker invocation. Source inventory was unchanged before and after execution.

Evidence limit: the native run ended 7, with artifact collection exiting 9, after the consumer and package commands completed. The retained source-bound stdout receipt records the counts, command exits, and output hashes, and was independently checked. Original test JSON/logs, pack metadata, emitted files, and the package bytes were not retained: the selected roughly 95.5 MB package is incompatible with the collector's 10 MiB compressed-artifact limit (the collector did not expose which bounded check returned 9). This is command-completion evidence, not an independently audited per-case log archive, a warning-free build claim, a reusable package, or an overall successful native run. No completed consumer/build command was rerun to replace that result.

Exact-head CI 35746061585, attempt 1 passed, including the canonical build and both core type stripes. Its actual tested merge was f986fbabc599e4aa8f7144b485f86553c919e4e4, tree d9948726a2aca83b93768107666d10e3382f22ee, with ordered parents 6b89bf8cefc2d553fcaa4f0fc63362ce9d9ce8f5 and d51a5091989ca5d032d31d8458d53794a9ff2b4a. Six retained original job logs independently bind the seven newly relevant suites: skill download/upload ownership, browser secure-read/ACL and install layout, update compatibility binding fixtures, and the repaired shard-capacity guard (152 passed, one native Windows case skipped). The current-head ClawSweeper review has no actionable finding or remaining rank-up move. Linux exclusion of the Windows-only case is not native Windows proof. Fresh FreeBSD x64/ARM and installed upgrade qualification belongs to the integrated update candidate, not this dependency-only change.

@vincentkoc vincentkoc self-assigned this Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​openclaw/​fs-safe@​0.18.0 ⏵ 0.18.1100 +110010098 +1100

View full report

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 22, 2026
@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: d51a5091989ca5d032d31d8458d53794a9ff2b4a
  • Maintainer: @vincentkoc
  • Repository role: admin

These dependency graph changes were made:

  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • extensions/file-transfer/package.json
  • extensions/llama-cpp/package.json
  • extensions/migrate-claude/package.json
  • extensions/onepassword/package.json
  • extensions/openshell/package.json
  • extensions/signal/package.json
  • package.json

Carefully review these changes before merging.

@vincentkoc vincentkoc closed this Sep 22, 2026
@vincentkoc vincentkoc reopened this Sep 22, 2026
@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 Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 11:27 AM ET / 15:27 UTC.

ClawSweeper review

What this changes

Updates OpenClaw and six plugins to fs-safe 0.18.1, including native packages and exact-version release-age exceptions, to support valid signed filesystem identities.

Merge readiness

✅ Ready for maintainer review

The dependency adoption remains useful: reviewed main still uses 0.18.0, and no introduced correctness defect was found. The maintainer-authored PR should remain open through normal validation and merge gates.

Priority: P2
Reviewed head: d51a5091989ca5d032d31d8458d53794a9ff2b4a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, consistent dependency adoption with verified registry integrity and clearly bounded validation claims.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored adoption is exempt from the external-contributor proof gate. Reported Linux install and consumer checks exercise the dependency on the original head; upstream native identity proof supports the repair, while integrated FreeBSD upgrades remain outside this PR. No stored-data contract changes were identified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored adoption is exempt from the external-contributor proof gate. Reported Linux install and consumer checks exercise the dependency on the original head; upstream native identity proof supports the repair, while integrated FreeBSD upgrades remain outside this PR. No stored-data contract changes were identified.
Evidence reviewed 8 items Pinned introduction scope: The complete introduced diff changes only dependency versions, matching lockfile records, and eight exact release-age selectors. Unrelated overrides, build permissions, and 0.12.0 consumers remain unchanged.
Current-main necessity: Fetched main still directly pins fs-safe 0.18.0. The latest supplied release, v2026.9.5, pins 0.13.1, verified through GitHub contents after the local release blob could not be retrieved.
Actual dependency boundary: The temporary-directory resolver loads @openclaw/fs-safe/temp and delegates to resolveSecureTempRoot. This establishes the fs-safe dependency contract as relevant; the patch supplies no Codex dependency signal.
Findings None None.
Security None None.

How this fits together

OpenClaw delegates secure temporary directories and many guarded file operations to fs-safe. The library checks filesystem identity, ownership, and permissions before returning usable paths or performing writes.

flowchart TD
  A[Core and plugin file operations] --> B[fs-safe dependency]
  C[Filesystem identity and permissions] --> B
  B --> D{Ownership and identity valid?}
  D -->|Yes| E[Admit directory or perform guarded operation]
  D -->|No| F[Reject unsafe operation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Config 0, Other 0. Total 0 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 8 16 16 0
Generated 0 0 0 0
Other 1 45 45 0
Total 9 61 61 0

Review metrics

Metric Value Why it matters
Release-age policy 8 exact-version exceptions updated; 10,080-minute strict minimum retained The exception remains bounded to reviewed fs-safe artifacts and requires manual removal after the documented date.

Technical review

Best possible solution:

Adopt the published repair through the existing dependency owner while keeping integrated FreeBSD update qualification with its separate implementation PR.

Do we have a high-confidence way to reproduce the issue?

Yes, at the dependency boundary: the former guard rejects valid negative device or inode values, and upstream records native FreeBSD before/after evidence. This review did not execute an integrated OpenClaw reproduction.

Is this the best way to solve the issue?

Yes. Updating the existing dependency and its native packages preserves one filesystem owner and avoids an OpenClaw-specific workaround.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 494bb6f82676.

Labels

Label changes:

  • add P2: This is a focused dependency repair for valid filesystem identities, with no demonstrated urgent product-wide outage.
  • 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 member-authored adoption is exempt from the external-contributor proof gate. Reported Linux install and consumer checks exercise the dependency on the original head; upstream native identity proof supports the repair, while integrated FreeBSD upgrades remain outside this PR. No stored-data contract changes were identified.

Label justifications:

  • P2: This is a focused dependency repair for valid filesystem identities, with no demonstrated urgent product-wide outage.
  • 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 member-authored adoption is exempt from the external-contributor proof gate. Reported Linux install and consumer checks exercise the dependency on the original head; upstream native identity proof supports the repair, while integrated FreeBSD upgrades remain outside this PR. No stored-data contract changes were identified.

Evidence

What I checked:

  • Pinned introduction scope: The complete introduced diff changes only dependency versions, matching lockfile records, and eight exact release-age selectors. Unrelated overrides, build permissions, and 0.12.0 consumers remain unchanged. (package.json:2250, d51a5091989c)
  • Current-main necessity: Fetched main still directly pins fs-safe 0.18.0. The latest supplied release, v2026.9.5, pins 0.13.1, verified through GitHub contents after the local release blob could not be retrieved. (package.json, 494bb6f82676)
  • Actual dependency boundary: The temporary-directory resolver loads @openclaw/fs-safe/temp and delegates to resolveSecureTempRoot. This establishes the fs-safe dependency contract as relevant; the patch supplies no Codex dependency signal. (src/infra/tmp-openclaw-dir.ts:61, d51a5091989c)
  • Upstream identity repair and authority checks: The released owner accepts signed 64-bit device/inode values while retaining nonzero inode, matching owner, directory type, no-follow opening, exact identity revalidation, descriptor chmod, and final verification. No reachable authorization bypass was identified. The fixing PR is merged: fix(temp): accept signed Node directory identities fs-safe#586. (src/secure-temp-repair.ts:40, fb70418d8cbd)
  • Published dependency and supply-chain checks: Inspected release metadata, the 25-commit change inventory, and focused identity, Root-write, cleanup, and native patches. All eight npm 0.18.1 metadata integrity values match the target lockfile; registry repository fields identify openclaw/fs-safe. Public package exports and runtime floor are unchanged in the manifest delta. Release: https://github.com/openclaw/fs-safe/releases/tag/v0.18.1. (package.json, fb70418d8cbd)
  • Validation attribution and limits: The captured body reports a Linux frozen install, native loading checks, 716 passing consumer tests, one Windows-only skip, and successful package-command completion on e7d11b0. It explicitly retains overall run exit 7 and collector exit 9, with original logs/package bytes unavailable. The nine dependency postimages are unchanged at the reviewed head. These reports do not establish integrated FreeBSD upgrades or current-head execution. (d51a5091989c)

Likely related people:

  • steipete: 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.

@vincentkoc
vincentkoc merged commit 439396f into main Sep 22, 2026
215 checks passed
@vincentkoc
vincentkoc deleted the chore/fs-safe-0181-adoption branch September 22, 2026 16:21
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 22, 2026
* commit 'f3327bde3c6052a4ed6d487bb09fbe1e11c0cd35': (25 commits)
  fix(test): pass the fixture lifetime to launcher fixtures (#155825)
  fix(test): prepare history benchmark before child deadlines (#155780)
  refactor(config): derive tool contracts from schemas (#155484)
  chore(deps): update fs-safe to 0.18.1 (#155771)
  fix(doctor): allow repair with retained deleted-agent sessions (#155752)
  fix(setup): await inference probe cleanup (#155407)
  fix(mcp): recover expired SSE sessions and speed up parsing (#155497)
  fix(release): forward the stable soak waiver through the candidate helper (#155798)
  feat: calibrate Gateway plugin resources through retirement (#155792)
  fix: preserve the invoked launcher when restarting Node (#147621)
  fix(sessions): stop repeated failed worker exit cleanup (#154720)
  fix(ui): preserve active replies and tools after failed steering (#155746)
  fix(ci): retain missing-load-path baseline diagnostics (#154861)
  fix(gateway): keep session lists responsive during activity updates (#155767)
  fix: keep plugin queues bound to their selected session (#155714)
  chore(i18n): refresh native locales (#155571)
  fix(ci): wait for reset hook entry and join fixture cleanup (#155770)
  test: move subagent fixtures to module boundaries (#155727)
  fix(gateway): retain question requester authority through settlement (#155335)
  perf(gateway): move progress-card reads off the main thread (#153857)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 23, 2026
* chore(deps): update fs-safe to 0.18.1

* chore(deps): integrate fixed main for fs-safe validation

Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: signal Channel integration: signal dependencies-changed PR changes dependency-related files extensions: llama-cpp extensions: onepassword 1Password plugin extensions: openshell maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. plugin: file-transfer plugin: migrate-claude rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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