Skip to content

chore(deps): update fs-safe to 0.27.0 - #188865

Merged
steipete merged 2 commits into
mainfrom
chore/fs-safe-0270
Oct 31, 2026
Merged

steipete merged 2 commits into
mainfrom
chore/fs-safe-0270

Conversation

@steipete

@steipete steipete commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Updates the direct fs-safe dependency to 0.27.0 and replaces observed-directory-mode workarounds with its explicit preservation API.

User Impact

Memory and shared state-root writes preserve existing directory modes without attempting an owner-only chmod. Newly created atomic-write parents finish at 0700; file-mode, durability, confinement, and mutation-authority rules remain intact. No OpenClaw release is included.

Why This Change Was Made

All 13 direct pins move to 0.27.0, building on the merged pin alignment in #188719. All 11 published package records have verified npm integrity values; importer and snapshot references and expiring reviewed-release exemptions are updated. [email protected] independently requires fs-safe 0.26.15, so its transitive package records remain.

Release audit: 0.27.0 has one feature entry, #1050 (dirMode: "preserve"). Watch-hint admission (#1046, OpenClaw #186752) and awaited borrowed-handle overwrite authority (#1049) already shipped in 0.26.15. The error-code contract is unchanged. OpenClaw's fs-safe-remove.ts already maps permission-denied and the other operational wrappers to their errno causes; no mapping change is needed. The upstream shared option type now includes preservation even for private APIs that reject it at runtime; OpenClaw’s private-secret wrapper explicitly retains its numeric-only directory-mode type.

Writer Adoption / retained policy
DREAMS.md Let fs-safe create private parents and preserve existing parents; keep file mode and mutation authority.
Dreaming Markdown reports Remove mkdir/stat mode workaround; preserve existing parents, create missing chains at 0700.
Promotion memory replacement Remove parent stat; keep file mode, preimage/hash checks, publication reconciliation, and in-place fallback.
Config publication, recovery, rollback and update restoration (#171869) Preserve only the selected state root; private child directories retain numeric 0700 policy.
Non-default-mode secret-adjacent text Use the selected-root preservation policy; default private-store path remains numeric.
Plugin package/build manifests, config audit scrub, legacy-agent migration receipt Replace observed parent mode with preservation; keep independent file modes and durability.
Private stores, default secret writes, private-dir repair, Root/copy APIs Retain their distinct numeric/private contracts; private APIs reject preservation.

Config locking already owns state-root creation before config publication, so that creation path remains intact; this refactor removes only its observed-mode request. Private store and secret-create APIs retain numeric directory enforcement because they reject "preserve".

Evidence

Frozen pnpm install --frozen-lockfile passed, including after rebase. All 13 npm lock mirrors were generated and validated by the lock owner, with 11 new-version records each. Production core/extension/script typechecks, extension-test and infra-test typechecks, targeted type-aware lint, formatting, and whitespace checks passed.

Default pinned-Bun proof: 352 scoped tests passed (151 memory/fs-safe and 201 core), with four platform skips. The four targeted CLI/receipt cases intentionally deselected 99 unrelated cases. Completed config, recovery, migration, secret, removal, SDK, and memory suites passed. The remaining broad rollback schema matrix was canceled and replaced by its actual shared-root rollback case; no failing assertion was bypassed. Initial concurrent-source compilation invalidations were rerun against a frozen tree.

A direct production-path probe reproduced report parents at 0755 before adoption and passes afterward with new chains at 0700, shared parents unchanged under simulated non-owner EPERM, and new files at 0600. The secret-adjacent write regression failed with the old numeric caller and passed with preservation. The existing tests retain file-mode, umask, authority, conflict, and private-directory coverage. The scoped test-line allocation accounts for 46 added regression lines.

Independent Codex autoreview is scoped-clean at P0–P2 for the complete change, including the private-secret type correction. The final rebase resolved only alignment conflicts: all 36 reviewed source/dependency files are byte-identical to the reviewed and tested candidate. Current-head PR CI is the broad proof. Its unrelated failures and exact-head landing attribution are recorded below. No OpenClaw CHANGELOG edit, release, or publication is included.

Refs #184867
Refs #186752
Refs #185007
Refs #171869

Refs #169011

CI attribution

CI run 41150174513, attempt 1, tests head 03c28e3ba33b080b972f7138bfcc0cd13674144a through merge 9de958da71f561b79ddde6ab6bc25346b693f723 with main baseline 8034bb1fafbe83e5ce95fc985686bc2f95ff5ce1. The following failures are outside this change; their relevant source blobs are identical in the baseline and tested merge. All 181 jobs are terminal, including passing security-fast and all three PostgreSQL conformance shards. The aggregate is red only because of the four failures below. The native inherited-failure landing route retains this failed result.

Failed job Attribution and focused evidence
checks-node-changed-15 The typed SDK guide references private exec-approvals-runtime, introduced on main by #188833. The exact contract test fails identically on this head (0.27.0) and clean merge-base 6f7b63c with a frozen 0.26.15 install. Package export/file contracts are unchanged.
checks-node-changed-compact-small-16 Both Workboard terminal-hook cases fail because their logger fixture lacks isEnabled, now called by diagnostics added on main in #188782. Both exact cases fail with the same stack on 0.27.0 and the frozen 0.26.15 baseline.
checks-ui-e2e (1/7) Composer layout suite launches WebKit, but CI's browser requirement list omits that suite. The browser executable is absent, so suite setup fails before its cases run. Both selected browser suites pass locally (12/12) on candidate and baseline with browser prerequisites installed.
checks-ui-e2e (2/7) The unchanged diff-view assertion calls getComputedStyle(token.parentElement!); CI reports a non-Element argument. The exact case passes on candidate and baseline, consistent with a transient detached-element assertion. The original failure remains recorded; the detachment trigger was not reproduced.

The automated failure table labels the Node jobs unknown (no matching main job) and the UI jobs new (main job passed; selected scope not compared). The source comparisons and candidate/baseline reruns above supply the additional attribution. No CI rerun, scope expansion, or unrelated source repair was used to chase green. This is an attributed inherited-failure landing, not a claim that CI passed.

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T00:28:15.275566Z 03c28e3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 03c28e3ba33b080b972f7138bfcc0cd13674144a
  • Maintainer: @steipete
  • Repository role: admin

These dependency graph changes were made:

  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • extensions/acpx/package.json
  • extensions/codex/package.json
  • extensions/cua-computer/package.json
  • extensions/file-transfer/package.json
  • extensions/knowledge/package.json
  • extensions/llama-cpp/package.json
  • extensions/matrix/package.json
  • extensions/memory-core/package.json
  • extensions/migrate-claude/package.json
  • extensions/openshell/package.json
  • extensions/qa-lab/package.json
  • extensions/signal/package.json
  • package.json

Carefully review these changes before merging.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 03c28e3ba33b080b972f7138bfcc0cd13674144a
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/infra/secret-file.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/secrets/config-io.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 31, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. label Oct 31, 2026
@steipete
steipete merged commit b932008 into main Oct 31, 2026
276 of 285 checks passed
@steipete
steipete deleted the chore/fs-safe-0270 branch October 31, 2026 00:58
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
* chore(deps): update fs-safe to 0.27.0

* refactor(memory): preserve shared workspace directory modes via fs-safe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: matrix Channel integration: matrix channel: signal Channel integration: signal clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. cli CLI command changes dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: acpx extensions: codex extensions: llama-cpp extensions: memory-core Extension: memory-core extensions: openshell extensions: qa-lab plugin: cua-computer plugin: file-transfer plugin: knowledge plugin: migrate-claude security-sensitive-changed size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant