Skip to content

chore(deps): upgrade fs-safe to 0.11.0 - #148087

Merged
steipete merged 2 commits into
mainfrom
codex/bump-fs-safe-0.11.0
Sep 14, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/bump-fs-safe-0.11.0

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

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 0600 inode, 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.

@steipete
steipete requested a review from a team as a code owner September 14, 2026 08:07
@clawsweeper

clawsweeper Bot commented Sep 14, 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.

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

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/onepassword/package.json
  • extensions/openshell/package.json
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of @openclaw/openclaw-secops, or an OpenClaw organization member with Maintain or Admin repository access.

  • Current SHA: e3d0075279d17cc53d02c04a2c3b3dbf3462bb32
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 14, 2026, 12:55 PM ET / 16:55 UTC (Revision 2).

ClawSweeper review

What this changes

Upgrades 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
Reviewed head: e3d0075279d17cc53d02c04a2c3b3dbf3462bb32

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused dependency upgrade with meaningful boundary coverage and an addressed recovery request; no blocking defect remains.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor gate does not apply to this maintainer-owned PR. Its captured macOS resolver and snapshot-preparation observations nevertheless address the prior upgrade concern: ordinary credentials work, hardlinks fail, and documented replacement restores resolution while preserving the old alias.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor gate does not apply to this maintainer-owned PR. Its captured macOS resolver and snapshot-preparation observations nevertheless address the prior upgrade concern: ordinary credentials work, hardlinks fail, and documented replacement restores resolution while preserving the old alias.
Evidence reviewed 11 items Introduced adapter preserves the existing owner: The wrapper retains the dependency Root instance, bound methods, and errno translation; the introduced branch narrows input types before forwarding either supported create overload.
Dependency contract applies directly: SecretRef file providers call the re-exported fs-safe readSecureFile with insecure permissions disabled, so the dependency’s new hardlink rejection directly changes credential activation.
Released secure-file behavior verified: Release source rejects multiply linked files during admission and rechecks the retained descriptor after reading. The upstream comparison confirms these checks were added between 0.10.0 and 0.11.0.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

  • Resolve merge risk (P1) - Existing hardlinked file-provider credentials require operator replacement and can prevent strict Gateway startup until repaired. The owner-reviewed recipe and reported macOS recovery address this transition; Windows ACL recovery and a live reload RPC remain outside that evidence.
Agent review details

Security

None.

PR surface

Source +7, Tests +76, Docs +25, Config 0, Other 0. Total +108 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 1 8 1 +7
Tests 3 100 24 +76
Docs 1 26 1 +25
Config 4 12 12 0
Generated 0 0 0 0
Other 1 37 37 0
Total 10 183 75 +108

Review metrics

Metric Value Why it matters
Credential compatibility 1 newly rejected file shape Multiply linked file-provider credentials now fail admission, making the included recovery guidance operationally significant.

Stored data model

Persistent data-model change detected: migration/backfill/repair: pnpm-workspace.yaml. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Proceed with documented operator recovery (recommended)
    Retain the intentional hardlink restriction and carry the reviewed replacement guidance with the upgrade, accepting that affected operators must repair their credential file before activation.

Technical review

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

Labels

Label justifications:

  • P2: This is a bounded dependency improvement with an explicitly documented credential compatibility change.
  • merge-risk: 🚨 compatibility: Previously accepted hardlinked file-provider credentials can stop resolving after upgrade and require operator replacement.
  • 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 external-contributor gate does not apply to this maintainer-owned PR. Its captured macOS resolver and snapshot-preparation observations nevertheless address the prior upgrade concern: ordinary credentials work, hardlinks fail, and documented replacement restores resolution while preserving the old alias.

Evidence

What I checked:

  • Introduced adapter preserves the existing owner: The wrapper retains the dependency Root instance, bound methods, and errno translation; the introduced branch narrows input types before forwarding either supported create overload. (src/infra/fs-safe.ts:108, e3d0075279d1)
  • Dependency contract applies directly: SecretRef file providers call the re-exported fs-safe readSecureFile with insecure permissions disabled, so the dependency’s new hardlink rejection directly changes credential activation. (src/secrets/resolve.ts:209, e3d0075279d1)
  • Released secure-file behavior verified: Release source rejects multiply linked files during admission and rechecks the retained descriptor after reading. The upstream comparison confirms these checks were added between 0.10.0 and 0.11.0. (src/secure-file.ts:74, 5209566a355f)
  • Dependency release and supply-chain scope: The published release lists integrity values matching the changed lockfile pins; its release workflow completed successfully at the release commit. Package metadata identifies openclaw/fs-safe as the source repository and retains version-pinned optional native packages without an install lifecycle script. (package.json, 5209566a355f)
  • Prior recovery request addressed: The follow-up adds an operator replacement recipe and extends the actual resolver test through successful ordinary resolution, hardlink rejection, and recovery with a new private inode while preserving the old alias’s bytes. (src/secrets/resolve.test.ts:287, e3d0075279d1)
  • Captured production-path recovery evidence: The supplied complete PR body, captured with sourceRevision ffc02f2b2f5c18304084fca6caa6851bd8eacbe66597ff1d7bd2b641c34a8787, reports a synthetic macOS run through the real SecretRef resolver and runtime snapshot preparation. Ordinary setup succeeded, hardlinked input failed, and both entrypoints succeeded after the documented replacement recipe. It expressly excludes Windows ACL recovery and a live reload RPC. Public docs: docs/gateway/secrets/secretref-contract.md. (docs/gateway/secrets/secretref-contract.md:137, e3d0075279d1)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-14T08:30:02.733Z sha 54bd00f :: blocked before merge. :: none

@steipete steipete self-assigned this Sep 14, 2026
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.
@steipete

Copy link
Copy Markdown
Contributor Author

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.

@steipete
steipete merged commit a393db4 into main Sep 14, 2026
200 of 201 checks passed
@steipete
steipete deleted the codex/bump-fs-safe-0.11.0 branch September 14, 2026 17:46
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files extensions: onepassword 1Password plugin extensions: openshell maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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