Repository navigation
chore(deps): update fs-safe to 0.23.1 and simplify copies - #165374
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: blocked before merge. Reviewed October 5, 2026, 8:13 AM ET / 12:13 UTC (Revision 5). ClawSweeper reviewWhat this changesUpdates fs-safe to 0.23.1 and delegates ordinary file-copy fallback to it while preserving SQLite’s separate disk-space admission. Merge readiness⛔ Blocked before merge - 1 item remains The earlier upgrade/recovery proof blocker is resolved, and no introduced correctness or security defect was found. This remains useful work: current main still uses fs-safe 0.23.0 and the application fallback adapter. Recorded baseline comparisons support inherited CI failure attribution without claiming green CI. Priority: P2 Review scores
Verification
How this fits togetherThe updater copies installed runtime files and plugin trees into private staging before replacing a package. SQLite copies also preserve source identity, space admission, and destination publication receipts for snapshot and recovery callers. flowchart TD
A[Installed runtime and plugins] --> B[Inventory and identity checks]
B --> C[Guarded filesystem copy]
D[SQLite snapshot source] --> E[Clone or space admission]
E --> C
C --> F[Private staged files]
F --> G[Verification and update recovery]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -50, Tests -54, Docs 0, Config 0, Other -1. Total -105 across 24 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Let fs-safe own clone fallback while SQLite retains space admission and updater recovery preserves the previous serving installation. Do we have a high-confidence way to reproduce the issue? Not applicable as a dependency and ownership cleanup; the supplied real seccomp observations establish the relevant copy-refusal scenario without a reviewer-side execution. Is this the best way to solve the issue? Yes. The dependency now implements the fallback contract, and retaining only SQLite’s distinct space-admission logic avoids competing fallback owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7879c7f7749c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
|
CI attribution for The comparison used the run's recorded main parent
The worker job also failed on its single hosted rerun. No further hosted rerun was requested. The cleanup mismatch follows the existing AggregateError change in #164788; the Telegram mock mismatch follows #165236. The worker/recovery reproductions establish that those failures predate this bump; they do not claim a diagnosis of their internal recovery bugs. Fifty direct test, fixture, owner, and runner/config source blobs are unchanged between the baseline and tested merge. Linux receipts, all on AWS lease Both Linux checkouts used pnpm 12.5.1 and a frozen install, followed by the same preparation and CI runner: pnpm install --frozen-lockfile
CI=1 VITEST=1 OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build qaRuntime
node --import tsx scripts/ci-run-node-test-shard.mtsThe final command retained the original jobs' ordered Representative outputs in both versions: The latest inspected completed scheduled main run, 37276090760, failed in different Doctor authority/type checks. The inherited-failure decision rests on the controlled A/B above, not merely on main also being red. A separate local limitation remains explicit: the candidate's macOS 50-file replay additionally hit the unchanged 20-second bus-shutdown child timeout after printing These CI failures qualify for the documented native inherited-failure path. Landing is still held for the full published-driver upgrade/recovery proof; no merge has been attempted. The real copy-owner seccomp proof and the canonical candidate package build have already passed. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
52 upstream commits. Upstream's X guest helpers (openclaw#165543) change channel schema content without changing any count. In Feishu, openclaw#165371 removes the test-only fetchImpl and lookupFn options from FeishuStreamingSession and app registration, and openclaw#165374 updates fs-safe. This branch's reply-dispatcher already builds the streaming session with three arguments, and none of its Feishu tests used the removed options. Two generated files conflicted, docs/.generated/config-baseline.sha256 and src/config/bundled-channel-config-metadata.generated.ts. Both were regenerated from this merge rather than hand-merged. build:docker ran in a separate detached checkout of this commit. Counts stay core 2505, channel 3874 and plugin 4490. The core and plugin hashes match upstream/main and the channel hash is new, as predicted. The three generated-file checks pass there. Feishu: 101 files and 1520 tests in the extension project, 17 files and 218 tests in the database-workers project, all passing. The forwarder test and the routing guards pass, 503 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines, assertion-safety, database-worker, test-timeout-race and test-mock-exports ratchets against upstream/main, oxlint and oxfmt on the 43 changed code files all pass.
What Problem This Solves
Updates OpenClaw to fs-safe 0.23.1 so container clone refusals and gVisor file creation use the dependency's fixes, and removes OpenClaw's temporary clone-fallback adapter.
Related: #165257, #164113.
User Impact
Retained updater files and candidate plugin snapshots keep copying when a container denies FICLONE. Fresh installs on gVisor benefit from the corrected no-replace publication fallback. Native-required mode remains fail-closed for unavailable publication capabilities, and genuine I/O errors remain fatal.
The installed updater owns the first update hop: an affected 2026.9.7 installation still needs a manual npm install of a fixed release. Later drivers inherit the copy fix through fs-safe 0.23.1 or newer.
Why This Change Was Made
fs-safe now owns FICLONE capability detection and guarded byte fallback. This removes the application adapter, syscall-message matching, sticky clone-disable state, once-per-operation warning, obsolete mock scenarios, and its PR-wrapper inventory entry. Ordinary copies call
Root.copyIndirectly withclone: "auto".SQLite retains its independent disk-space contract. When a caller supplies
beforeByteCopy, it first requests a required clone; only a normalized cloning-capability refusal can lead to space admission and a byte copy. fs-safe has no public callback before automatic byte fallback, so usingautothere would bypass admission or unnecessarily reject low-space reflinks. The narrow cloning-unavailable message check also prevents a no-replace publication refusal from being mistaken for a clone refusal.All source identity and inventory checks, create-only publication, caller-selected durability, restrictive modes, byte bounds, hardlink policies, concurrent-copy draining, and the SQLite publication receipt remain. A failure after publication never triggers another copy. Existing snapshot verification and rollback ownership remain unchanged.
Net 105 lines removed: 50 production lines, 54 test lines, and one tooling inventory line. The 68-line adapter is deleted. SQLite's admitted byte limit, receipt, identity checks, and meaningful admission/publication tests are retained.
Release audit
All eight packages were verified on npm. All 13 direct pins and seven platform locks are exact 0.23.1; lockfile changes are limited to those packages. Reviewed-release exceptions expire on 2026-10-12T05:31:03.967Z. ACPX's independent transitive fs-safe 0.12.0 is unchanged.
Release: https://github.com/openclaw/fs-safe/releases/tag/v0.23.1
Changelog: https://github.com/openclaw/fs-safe/blob/v0.23.1/CHANGELOG.md
npm: https://www.npmjs.com/package/@openclaw/fs-safe/v/0.23.1
Evidence
pnpm changed:lanes --json: dependency changes select all lanes.pnpm tsgo:all: passed, including core, UI, tests, extensions, scripts, and root-test graphs.df96d22d333breproduces the remainingextensions/telegram/src/fetch.tsentry; main had already removed the other stale entry forextensions/oc-path/src/oc-path/universal.ts. The remaining 32 planned checks completed separately; only broad core lint failed, on 13 untouched files exceeding line limits. Those 13 source blobs are identical between the CI main base and tested merge. The original failed gates are preserved.cbx_a1131b4192f9, released). Actual FICLONE EPERM reproduces the 0.23.0 failure; 0.23.1 copies through the real retained-runtime and SQLite owners in required-native mode. Bytes, modes, independent inodes, source integrity, admission-before-allocation, and refusal without destination output were checked. Actual FICLONE EIO stays fatal with no admission or destination. This covers copy-owner flows, not the full update CLI/service lifecycle. Command: 21.251 s; seccomp phase: 7.299 s. One stalled transfer was cancelled and a single full-resync retry completed; a proof-only raw-errno assertion was corrected to the documented normalized error before the successful run.ae5a957+ exact PR head): 45 passed, 2 expected skips across SQLite, retained runtime, candidate plugin tree, and runtime path-index suites on AWS; 9.51 seconds. This covers main's intervening relocation-owner refactor without changing the reviewed PR head.e4a6a90cecb53453eb9514301917f08b495738a3001fca892088fc921c945f6b.03d8194761c8candidate build, with readiness and durable/incognito assertions passing. Update 385.686s; full cell 476.415s within the original budget. This canonical cell passed; that combined run later exited nonzero on an invalid companion failure fixture, which is excluded from preservation proof.2cbffda21577ba765cf10743cab5d053d55b9231e8bdfcc54e24be01e09069d4.shutdown-completeonly in the local tested-merge replay; its isolated diagnostic never reached the assertion because worker preparation timed out. Hosted CI passed that case. Its cause remains unresolved and is not classified as inherited or fixed. Earlier negative-fixture attempts that missed retention or stopped before independent preservation checks are excluded from the final proof.The Matrix and Memory plugin manifest changes only move their exact fs-safe dependency pins. No stored-data schema, serialization, or vector/embedding metadata changes are introduced. Both the published-driver upgrade and candidate-owned refusal/preservation paths are now proven separately from the copy-owner syscall checks.