Repository navigation
chore(deps): update fs-safe to 0.27.0 - #188865
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
63c3525 to
03c28e3
Compare
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* chore(deps): update fs-safe to 0.27.0 * refactor(memory): preserve shared workspace directory modes via fs-safe
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'sfs-safe-remove.tsalready mapspermission-deniedand 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.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-lockfilepassed, 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
0755before adoption and passes afterward with new chains at0700, shared parents unchanged under simulated non-ownerEPERM, and new files at0600. 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
03c28e3ba33b080b972f7138bfcc0cd13674144athrough merge9de958da71f561b79ddde6ab6bc25346b693f723with main baseline8034bb1fafbe83e5ce95fc985686bc2f95ff5ce1. 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.checks-node-changed-15exec-approvals-runtime, introduced on main by #188833. The exact contract test fails identically on this head (0.27.0) and clean merge-base6f7b63cwith a frozen 0.26.15 install. Package export/file contracts are unchanged.checks-node-changed-compact-small-16isEnabled, 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)checks-ui-e2e (2/7)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.