Repository navigation
chore(deps): upgrade fs-safe to 0.11.0 - #148087
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. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
|
Codex review: blocked before merge. Reviewed September 14, 2026, 12:55 PM ET / 16:55 UTC (Revision 2). ClawSweeper reviewWhat this changesUpgrades fs-safe across OpenClaw, 1Password, and OpenShell, adapts streamed file creation, and documents and tests recovery for hardlinked secret files. Merge readiness⛔ Blocked before merge - 1 item remains The earlier recovery concern is addressed, and no blocking patch defect was found. This maintainer-owned upgrade remains useful: fetched main still uses fs-safe 0.10.0. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s filesystem facade delegates guarded file operations to fs-safe for core and plugin callers. Its secure-file reader also supplies credentials to SecretRef resolution and Gateway secret activation. flowchart TD
A[Core and plugin file requests] --> B[OpenClaw filesystem facade]
B --> C[fs-safe filesystem checks]
D[Configured secret files] --> C
C --> E[Guarded file results]
C --> F[Policy errors]
E --> G[Secret resolution and activation]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +7, Tests +76, Docs +25, Config 0, Other 0. Total +108 across 10 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the upstream filesystem improvements with the documented credential-replacement path, retaining OpenClaw’s native-off defaults and 1Password’s explicit hardlink exception. Do we have a high-confidence way to reproduce the issue? Not applicable as a standalone bug report; source and the resolver regression establish the intentional hardlink rejection and recovery path, without reviewer-side execution. Is this the best way to solve the issue? Yes. The small adapter preserves the existing dependency owner and error contract, and the recovery follow-up addresses the previous review’s concrete upgrade concern. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3c08384584f5. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Document private single-link credential replacement at the configured path. Extend the existing resolver regression to verify rejection, recovery, and preservation of the old hardlink inode and bytes.
|
Compatibility disposition: proceed with fs-safe 0.11.0's intended single-link requirement. Existing hardlinked file-provider credentials must be replaced before strict activation. The documented recovery in e3d0075 was exercised through actual SecretRef resolution and runtime snapshot preparation, preserving the configured path and the old alias inode/bytes. The explicit 1Password broker-token allowance remains verified. Windows ACL recovery and a live reload RPC remain outside this proof. |
* chore(deps): upgrade fs-safe to 0.11.0 * docs(secrets): explain hardlinked credential recovery Document private single-link credential replacement at the configured path. Extend the existing resolver regression to verify rejection, recovery, and preservation of the old hardlink inode and bytes.
What Problem This Solves
Bring the filesystem, archive, and private-file improvements in fs-safe 0.11.0 into OpenClaw and its 1Password and OpenShell plugins.
User Impact
Archive-heavy workflows and file transfers benefit from fewer reads, copies, and repeated validation. File SecretRef providers now reject hardlinked secret files; 1Password's explicitly allowed broker-token hardlinks remain supported. Existing native-mode defaults stay in place. If an existing file SecretRef is hardlinked, replace its configured path with a private single-link file before startup or reload; the recovery recipe preserves its contents and other links to the old inode.
Why This Change Was Made
Pin all three consumers and the seven optional native packages to the same release through the generated lockfile. Refresh only fs-safe's exact-version cooldown exceptions, with removal after September 22.
Adapt the existing Root.create wrapper to select the string/Buffer or async-byte-stream overload before forwarding. This preserves the dependency's types, publication checks, and OpenClaw's errno diagnostics. The existing Root type also gains upstream entries, streamed creation, and recursive-remove options; no new SDK subpath is introduced.
Evidence
The published 0.11.0 release passed Linux/macOS/Windows CI, all seven native builds, package smoke tests, and registry integrity/provenance verification. Release workflow.
On this branch, 779 tests passed across 15 files, with two platform skips: Root operations and new streamed-create/exclusive-publication/byte-limit regressions; errno preservation; SDK compatibility and locks; SecretRef resolution; 1Password; OpenShell; and plugin dependency contracts. Core production/test types, plugin types, scoped changed-file checks, and formatting passed. All three affected npm-format lock mirrors validate against pnpm, the frozen install passes supply-chain policy, and independent review found no actionable P0–P2 findings.
The original create adapter reproduces TS2769 against the released declarations; the narrowed adapter passes. Local consumer proof ran on macOS; PR CI supplies additional platform coverage.
The recovery follow-up passed 59 focused SecretRef/runtime tests and the existing 1Password broker-token hardlink subprocess test. A separate synthetic macOS probe invoked the actual SecretRef resolver and runtime snapshot preparation: ordinary private-file setup succeeds, a hardlinked credential is rejected, and both succeed after executing the documented replacement recipe. The configured path is unchanged, the replacement is a new single-link
0600inode, and the old alias retains its inode and bytes. No real credentials or operator Gateway were used; this does not claim Windows ACL recovery or a live reload RPC.The follow-up changes only documentation and the existing resolver test. Changed-file checks, document MDX, formatting, and the standard link audit pass. Managed P2 review found no actionable test finding; the credential-path documentation was reviewed by the maintainer and verified by executing its recipe. The optional repository-wide anchor audit reports 54 errors in six unchanged pages, with no broken link in the edited document.