Repository navigation
fix(deps): adopt fs-safe 0.27.1 for responsive filesystem operations - #192996
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesUpdates all direct fs-safe dependencies to 0.27.1, refreshes the lockfile, and replaces the matching release-age exemptions. Example: A POSIX Gateway writes a workspace file while storage is slow.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: the dependency upgrade addresses verified filesystem stalls, but it breaks an existing memory-reader fault-injection regression. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherOpenClaw filesystem adapters and bundled plugins pass confined read and write requests to fs-safe, which performs guarded filesystem operations and returns bytes, receipts, or errors. flowchart LR
A[Gateway and agent tools] --> B[OpenClaw filesystem adapters]
C[Bundled plugins] --> D[fs-safe]
B --> D
D --> E[Async POSIX operations]
D --> F[Identity and policy checks]
E --> G[Filesystem]
F --> G
Technical reviewBest possible solution: Retain the aligned dependency upgrade and update the memory-reader fault injection to exercise asynchronous traversal without weakening its retry and error assertions. Do we have a high-confidence way to reproduce the issue? Upstream identifies the blocking native operations and supplies parent-failing real-binding regressions; current main still consumes the affected version, and no target code was executed during this review. Is this the best way to solve the issue? Updating the shared filesystem dependency is the smallest complete adoption path; the existing consumer regression must follow its changed asynchronous I/O boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d0fc13b500f5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceConfig 0, Other -1. Total -1 across 15 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 4, 2026, 3:44 PM ET / 20:44 UTC. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
|
Merged via squash.
|
…penclaw#192996) * fix(deps): adopt fs-safe 0.27.1 for responsive filesystem operations * test(fs): align fault injection with asynchronous traversal * test(fs): measure filesystem effects at their owning boundaries * test(qa): align hard-kill recovery with resume contract
…penclaw#192996) * fix(deps): adopt fs-safe 0.27.1 for responsive filesystem operations * test(fs): align fault injection with asynchronous traversal * test(fs): measure filesystem effects at their owning boundaries * test(qa): align hard-kill recovery with resume contract Source: 5b0e4e8 Release adaptation: Adopted exact fs-safe 0.27.1 root and 12 bundled declarations from baseline 0.26.13, matching 13 lock importers and native package integrity/snapshot blocks copied from pinned source. Kept unrelated lock metadata and transitive entries. Four directly affected filesystem regressions retained; unrelated QA crash-resume test and allocation omitted. Existing async API only; no resolvePathPrefix/vendoring. Consistency assertion, JSON parse, formatting/diff pass. No install changed; native runtime proof remains pending. Later 0.28 update/rollback deliberately excluded. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 2fde0641ff865f1d881b6ac4df10db02ab7f19d7)
What Problem This Solves
OpenClaw still uses fs-safe 0.27.0, whose native POSIX staged writes and awaited path traversal can block the Gateway event loop on slow storage.
User Impact
Adopts fs-safe 0.27.1, which moves those filesystem waits off the JavaScript thread while preserving confinement, identity checks, file modes, and durability. This addresses the affected operations, not every source of event-loop delay.
Why This Change Was Made
Update all 13 direct pins together, regenerate the pnpm lockfile, and replace the 11 exact-version release-age exemptions. The exemptions expire seven days after the final package publication. The independent acpx dependency on fs-safe 0.26.15 remains unchanged. The lockfile also contains one pnpm-generated normalization of existing
[email protected]optional metadata; no unrelated dependency versions changed.Five existing tests now observe the intended boundaries:
The narrow 60-line test allocation matches exact net growth for scoped fault injection, retry assertions, and the existing crash/restart lifecycle proof. No new test cases, production hooks, runtime source, timeouts, or OpenClaw release metadata changed.
Related: #190233
Upstream fixes: openclaw/fs-safe#1052, openclaw/fs-safe#1053, openclaw/fs-safe#1054
Evidence
Current ready-PR CI validates
ba2fd98c0e89372decfbfa1005804574e80881dd. Its QA lane passed the changed real-Gateway restart test (16.15s test time, 53.84s Vitest wall time, 55.46s runner shard) and its sibling. The existing E2E process/restart boundary cannot be proved by a mocked helper; no new test case was added. The complete run, build, PostgreSQL conformance, and aggregate gate passed; required checks are green.Upstream release run completed package integrity, signature, and provenance verification. All 11 new lockfile integrity values match the registry.
pnpm 12.15.0 lockfile-only resolution passed supply-chain policy verification for all 1,748 entries. All 13 manifests and importers agree; the 11 older package records and 11 older snapshots remain unchanged.
Native formatting and
git diff --checkpassed. Independent review of the complete 21-file candidate againstfc5fec19bdefeb475edbccaaf9d19557af59a9e0found no P0–P2 defects in the working-tree repair; its index-only stale-assertion finding was resolved by staging that repair. A separate review caught and corrected empty-transcript polling during startup.On
f210fdaf6180db12f77a732182fdea33d4b5175e, ready-PR CI passed the build, catalog, and file-transfer lanes. Its QA failure demonstrated the obsolete no-resume assertion; the current patch corrects that contract. That failure is corrected and the replacement-head run above passed.On previous head
a52e5ae6fb0217493e0b929f9f2e58a0b90bb908, the exact-source build, memory lane, and agents-core tools lane passed. Preflight checkout logs bind that manual-run proof to the source SHA; its workflow ref differs. Subsequent ready-PR CI reported the catalog/file-transfer measurement failures and the stale SIGKILL expectation described above. These prior results are not presented as final-head proof or a green broad manual run.Local runtime/build and focused Testbox proof were unavailable: the code-only worktree has no qualified dependency installation, and the wrapper correctly refused a stale tooling owner before allocation. The config-docs pre-commit check had the same setup gap; commits used the documented hook-skip route after separate native formatting proof. Hosted CI owns the missing checks.
The initial manual dispatch failed configuration preflight before build or runtime tests. Later dispatches used the documented default validation setting. No failures were hidden with ignores, snapshots, or retries.