Repository navigation
chore(deps): update fs-safe to 0.26.2 - #169469
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 real behavior proof before merge. What this changesThis PR upgrades fs-safe to 0.26.2 and carries exact file identities through backup, restore, update, workspace, and plugin operations. Example: A Windows file has inode 18014398509481985.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep open: the dependency migration has clear value, but the existing ownership-marker finding remains unresolved and can let an upgraded export overwrite a replacement workspace file. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherOpenClaw delegates guarded filesystem operations to fs-safe; its consumers carry identity receipts from admission through publication, verification, and cleanup. flowchart TD
A[Backup and update commands] --> B[OpenClaw filesystem consumers]
C[Workspace and plugin operations] --> B
B --> D[fs-safe exact identity receipts]
D --> E[Filesystem effects]
F[Persisted export ownership markers] --> B
Technical reviewBest possible solution: Distinguish newly exact ownership markers from ambiguous legacy markers, preserve foreign replacement files, and retain compatibility for safely representable legacy IDs. Do we have a high-confidence way to reproduce the issue? The released producer, candidate reader, dependency comparator, and final writer establish the failing upgrade path by source inspection; no target code or tests were run. Is this the best way to solve the issue? Exact receipts are the appropriate shared solution, but their persisted representation must preserve whether an identity was observed exactly or serialized from a legacy Number. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 70885c1bbbda. Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: Persisted marker provenance must remain trustworthy before it authorizes workspace-file writes. EvidenceSecurity concerns:
What I checked:
Likely related people:
PR surfaceSource +42, Tests +132, Config 0, Other 0. Total +174 across 53 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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 HistoryReview history (9 earlier review cycles; latest 8 shown)
Reviewed October 12, 2026, 7:40 AM ET / 11:40 UTC (Revision 10). |
ade2bf2 to
bfab90a
Compare
bfab90a to
20790ac
Compare
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Carry fs-safe exact identities through reads, cache revisions, migration claims, media staging, service backups, and deletion journals. Accept released rounded receipts in their original numeric domain, retain their legacy provenance, and upgrade verified observations on the next write while preserving permission and replacement checks. The fs-safe 0.26.2 dependency pin and original migration already landed in #169469. Keep generic Node-only identity cleanup, UI changes, deployment controllers, PR tooling, and CI inventories outside this change.
* fix: delegate Windows long paths to fs-safe Use fs-safe 0.26.2 path normalization while preserving private creation, pre-mutation refusal tracking, and native descriptor ownership. * fix: preserve exact filesystem receipts through recovery Carry fs-safe exact identities through reads, cache revisions, migration claims, media staging, service backups, and deletion journals. Accept released rounded receipts in their original numeric domain, retain their legacy provenance, and upgrade verified observations on the next write while preserving permission and replacement checks. The fs-safe 0.26.2 dependency pin and original migration already landed in #169469. Keep generic Node-only identity cleanup, UI changes, deployment controllers, PR tooling, and CI inventories outside this change.
* chore(deps): update fs-safe to 0.26.2 * fix: preserve exact file identity round trips
…169485) * fix: delegate Windows long paths to fs-safe Use fs-safe 0.26.2 path normalization while preserving private creation, pre-mutation refusal tracking, and native descriptor ownership. * fix: preserve exact filesystem receipts through recovery Carry fs-safe exact identities through reads, cache revisions, migration claims, media staging, service backups, and deletion journals. Accept released rounded receipts in their original numeric domain, retain their legacy provenance, and upgrade verified observations on the next write while preserving permission and replacement checks. The fs-safe 0.26.2 dependency pin and original migration already landed in openclaw#169469. Keep generic Node-only identity cleanup, UI changes, deployment controllers, PR tooling, and CI inventories outside this change.
Every private lstatIfExists caller omits options or passes the existing bigint:true default. Put that single policy at the fs.lstat operation and remove two redundant caller arguments. Preserve full-width BigIntStats identities, ENOENT-only suppression and every ownership, durability and permission check established by #169469. No schema, persisted shape, public export or permission change. Best-effort tradeoffs accepted: none for this addition; the removed parameter had only the existing default as its valid value. BELOW-500 residue now removes 16 net production lines across two files. Combined P2 review, focused graph types and formatting pass; import edges are unchanged. SDK declaration preparation timed out before lint analysis; runtime proof gaps remain explicit for coordinator bundling.
What Problem This Solves
Updates all 13 direct
@openclaw/fs-safepins from 0.26.0 directly to 0.26.2, including all eleven root/native package records, and adapts identity consumers to the exact receipts introduced in 0.26.2. The intermediate 0.26.1 release correctly rejects rounded Windows file IDs; passing legacy numeric receipts back would reject unchanged files on NTFS volumes with large IDs.User Impact
Windows backup, snapshot, restore, plugin loading, workspace reads, and update paths retain full-width file identity checks. Existing metadata/content verification and conservative cleanup remain intact. The upstream release also improves filesystem operation performance and Windows long-path private creation. Portable Windows owner/ACL inspection requires .NET Framework 4.6.2+.
Why This Change Was Made
0.26.1 and 0.26.2 changelog, 0.26.2 release, Windows identity hardening #949, and exact receipts #962. Follows the package/lock mechanics of #168629; no OpenClaw changelog edit because release generation owns it.
All eleven published npm packages were checked for version, publication time, integrity and platform constraints before updating. The reviewed-release allowlist expires after 2026-10-18T22:41:10.360Z. The existing transitive 0.21.3 dependency remains owned by its upstream consumer.
Identity call-site audit
Numeric metadata stays numeric where required. No Number-to-bigint recovery of a rounded identity and no pathname re-stat to manufacture a publication receipt.
infra/directory-durability.tspublication/source cleanupexactTargetIdentityinfra/sqlite-snapshot.tssource/staging/admissionmoved.identity/publication.identitymoved.exactIdentity/publication.exactIdentity; metadata retained separatelyinfra/sqlite-snapshot-file.tsreopen/hash/cleanupsnapshot/manifest.tshashing/copyopened.statused as identityopened.exactIdentity; numeric metadata retained; direct target fstat is bigintsnapshot/git-backup-codec.ts.statas expected identity.identitysnapshot/local-repository.tspublication map/failurespublication.identity/details.targetIdentitypublication.exactIdentity/details.exactTargetIdentity.identityand numeric observations.exactIdentityand bigint observationssnapshot/local-repository-directory-policy.tsinfra/backup-create-stream.tsinfra/backup-archive-publication.tsinfra/backup-scratch.tsRoot.stat().exactIdentityinfra/backup-tar-walk.tsinfra/backup-sqlite-snapshot.tsinfra/backup-sqlite-source-groups.tscommands/backup-resource-inventory.tscommands/doctor-migration-backup.tscommands/doctor-update-schema-guard.tsinfra/system-run-cwd-binding.tsinfra/tls/gateway.tsinfra/update-database-backup.tsinfra/update-database-restore.tsinfra/update-global.tsrename cleanupcli/update-cli/update-command-git.ts.stat.exactIdentityagents/workspace-file-read.tsopened.statin source identity tupleopened.exactIdentity; cache metadata unchangedplugins/plugin-module-loader-cache.ts.statvs numeric post-close stat.exactIdentityvs bigint post-close statplugin-sdk/memory-host-core.ts.stat; marker reader accepted unsigned decimals only.exactIdentity; parse signed or positive bigint decimal marker IDsplugin-sdk/memory-host-event-export.ts.statidentity.exactIdentity; content checks retainedinfra/package-local-overrides.tsrequired-native probeexpectedSourceIdentity: source.statsource.exactIdentityinfra/state-migrations.no-replace-move.tsparent admission.exactIdentitycompanionsAlready-exact inputs were retained:
plugins/plugin-source-file.tsandplugin-generation-file-capture.tscopyRootFileSync/batch source receiptsplugins/plugin-native-admission.tsinfra/sqlite-file-copy.tsRootCopyPublicationReceiptinfra/sqlite-readonly-location.tssameFileContentsSynctakes descriptorsinfra/sqlite-file-generation.tsinfra/sqlite-rollback-recovery.tsinfra/sqlite-worker-identity.tsinfra/update-recovery-baseline-capture.tsinfra/session-sqlite-migration-artifact.tsBigIntinfra/state-migrations.no-replace-move.tssource publicationinfra/state-migrations.state-dir.tsinfra/state-migrations.agent-owner-recovery.tsinfra/state-migrations.session-store-paths.tsconfig/sessions/session-store-config.tsmedia/playback-transcode.tsstaged inputmedia/store.read-scope.tsinfra/install-package-dir.tsinfra/update-candidate-plugins.tsinfra/update-candidate-plugin-tree.tsandupdate-candidate-plugin-file.tsinfra/update-candidate-state.worker.tsinfra/package-local-overrides.tsdirectory guardreadDirectoryIdentityconfig/write-lock.tsreadDirectoryIdentityagents/github-tool-profile-cleanup.tscli/update-cli/update-command-artifact.tscommands/doctor/shared/missing-configured-plugin-install.repair.tsextensions/codex/src/app-server/computer-use-service-path.tsand consumersextensions/openshell/src/backend.tsAll other
copyIncallers pass paths/Roots and policy/size options, leaving identity acquisition to fs-safe. Numeric metadata/manual comparisons that never enter fs-safe identity APIs remain unchanged.Searches covered
sameFileIdentity,sameFileContentsSync,expectedSourceIdentity,sourceIdentity, publication/parent receipts,readDirectoryIdentity, retained/staged publication, allcopyIncalls, and legacy receipt/PathStat dev/ino projections acrosssrcandextensions.Other release audit
No further calling-contract changes for mkdir, list/walk, synchronous/batched copy,
copyIn, move, read/hash, locks, temp creation/cleanup, removal, writes/private creation, or native publication. No public byte/entry/depth budget or timeout change is listed in the two release sections, and upstream error/lock/root/walk contract files are unchanged. OpenClaw does not assert the upstream syscall/async-resource implementation budgets. The intentional newpath-mismatchrejection is handled by the exact-identity migration above.Evidence
os/cpu/libcconstraints.Initial CI found five optional
PathStat.exactIdentitytype errors and stale bigint/publication test doubles. The follow-up commit explicitly rejects missing exact companions, updates the test doubles, and round-trips signed marker identities; the SQLite and bootstrap failures were reproduced before correction and pass afterward. Follow-up Codex review is scoped-clean P0–P2. Large-ID proof uses synthetic OS stat observations with real filesystem publication and tar output; this downstream PR does not claim a native Windows filesystem run. The new tar regression takes about 40 ms of test execution; its owning file was included in the 44.96s two-file wrapper run.Effect-boundary and marker compatibility proof
invoke-system-run.test.tsexercises the production handler: the allowed durable-approval control callsrunCommandonce; replacing its approved directory returnsSYSTEM_RUN_DENIEDwithout callingrunCommand. Both cases pass.Current reviewed head:
20790ac8961215e39e5a1484b3c80c494defb907. The initial draft was pushed immediately after the first commit. The final code review is clean at P0–P2. Two subsequent rebases resolved adjacent dependency/allowlist conflicts; range-diff confirms the identity correction is patch-identical, and the latest resolution preserves main’s current Solid exemption.Stored-data compatibility
Inspected the tagged
v2026.10.2implementation: memory-export ownership markers already use schema version 3 and decimal-stringfileDev/fileInofields. This PR keeps that schema and writer envelope; the parser change accepts the existing positive strings plus signed exact IDs. Positive-v3 and signed-marker publish/list/refresh tests pass, as do inode-substitution and refresh/retirement preservation tests. No settings schema, SQLite schema, retention rule, or migration is changed by this PR. Backup/snapshot/restore tests exercise preserved content and identity fences.A complete native Windows upgrade from v2026.10.2 was not run. Downstream large-ID proof uses synthetic OS identities with real filesystem publication and tar output; upstream fs-safe supplies native NTFS exact-receipt proof. Already-rounded legacy marker IDs cannot recover lost identity bits and remain foreign, preserving the file. This limitation is explicit rather than inferred ownership from matching content.
CI qualification
Exact-head CI run 38211479551, attempt 3, tested merge
c97239270a23a18db35c8db7073bbdbfbc505b9aover main baseline14c82fa143285d12179df40556b11792b6e21b93: 170 successful jobs, 19 skipped, four independently qualified inherited failures, and their failed aggregate gate. CI remains red; landing uses the native inherited-failure exception.The repeated node-worker launch-wire failure reproduces on both that baseline with installed
@openclaw/fs-safe0.26.0 and the tested merge with 0.26.2: the reconciled manifest still equals the original at line 284. Main commit883d61f645a0a89216d2509bc2e3e56bec8dda4edelivers worker replies before workspace reconciliation finishes. The test drains currently registered invokes and reads placement without joining that later publication. Its assertion, reply-delivery and reconciliation owners are byte-identical between baseline and tested merge. Focused baseline and candidate runs reached the same assertion in 1519.95 and 1175.08 seconds including preparation. Only startup/proof budgets were increased for the loaded Mac; assertions and identity checks were unchanged.The quota-reset failure also reproduces on the same baseline:
stale-success=truefails at line 80 withexpected +0 to be 1, before the older companion request reaches the held usage endpoint within the original 2,800 ms poll. Its direct companion, failure-classification and auth-usage owners are unchanged. The qualifying replay took 291.38 seconds including preparation. A local-only public Codex discovery timeout of 120 seconds let cold initialization finish; quota assertions stayed unchanged. An earlier initialization failure is excluded from attribution.The Google embedding host-broker error and raw transcript cursor
generation_mismatchretain independent matching baseline reproductions and inspected unchanged owner paths. Paired-node lifecycle passed on attempts 2 and 3, qualifying its attempt-1 failure as a flake. Telegram command-menu did not execute in attempt 3 because its shard stopped at quota-reset. Separate focused baseline and tested-merge runs both reproduced its original 120-second timeout at line 115; it is not claimed as passing CI.Fresh full-diff Codex autoreview found no actionable P0-P2 findings. Passing build, production types and 104 npm lock-mirror evidence is reused from the identical reviewed head and tested merge. All 23 evidence artifacts and 37 failure-source bindings were verified before native admission. The single Linux lease ended without test proof and is stopped. No production fix or identity-check relaxation was needed; the reviewed head remains
20790ac8961215e39e5a1484b3c80c494defb907.