Repository navigation
chore(deps): update fs-safe to 0.24.1 and clone plugin source captures - #166189
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 6, 2026, 2:41 PM ET / 18:41 UTC (Revision 6). ClawSweeper reviewWhat this changesThe branch upgrades fs-safe to 0.24.1 and uses guarded copy-on-write copies for plugin source snapshots and aliases, with updated regression coverage and documentation. Merge readiness⛔ Blocked before merge - 1 item remains The PR remains useful: current main still uses the older synchronous copy paths. No introduced correctness or security defect was found, and the new published-driver upgrade evidence resolves the previous compatibility-proof blocker. Hosted CI remains failed; its documented qualification belongs to the native landing workflow. Priority: P2 Review scores
Verification
How this fits togetherPlugin capture creates independent snapshots of installed plugin files before OpenClaw loads or reloads them. Source checks and content receipts verify those snapshots before the loader consumes them. flowchart TD
A[Installed plugin files] --> B[Source boundary and inode pin]
B --> C[Guarded snapshot copy]
C --> D{Cloning supported?}
D -->|Yes| E[Independent shared-storage snapshot]
D -->|No| F[Independent byte copy]
E --> G[Source and receipt verification]
F --> G
G --> H[Plugin loader]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +11, Tests -4, Docs +2, Config 0, Other 0. Total +9 across 20 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Use fs-safe as the single guarded copy owner while preserving independent snapshot identity, portable fallback, restrictive modes, and existing receipt verification. Do we have a high-confidence way to reproduce the issue? Yes: the report supplies a concrete APFS generation-capture comparison, and current main retains the implicated copy paths. This read-only review inspected source and supplied observations without executing a reproduction. Is this the best way to solve the issue? Yes: the patch adopts the existing filesystem dependency's guarded synchronous copy contract and removes the competing fallback, while preserving the capture owner's content and receipt checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 69ccd1e6b7ba. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
|
CI attribution for head CI run 37495639159, attempt 2 is still failed: 158 successful jobs, 19 skipped, these two failed Node shards, and their downstream
All comparisons used independent frozen installations and the existing runner: pnpm install --frozen-lockfile
# QA only, exactly as in the hosted lane:
pnpm build qaRuntime
CI=1 OPENCLAW_VITEST_MAX_WORKERS=2 NODE_OPTIONS=--max-old-space-size=8192 \
node --import tsx scripts/ci-run-node-test-shard.mtsMemory used the original two recorded groups in order, QA retained the original two-target order:
AMD A/B run. The AMD baseline itself has only about six seconds of deadline margin. This is a timing observation, not a reproduction of the hosted timeout or a general performance claim. The source audit establishes a causal boundary: the fixture enables staged bundled plugins ( The installed 0.24.0 and 0.24.1 npm distributions each contain 294 runtime JavaScript files; only The Memory diagnostic observed the expected system-only entry and later mixed provenance in the real SQLite worker; it cannot recover the original CI entry's missing facts. The QA original logs do not identify the timeout phase. Main run The required product proof is separately green on the exact PR head: full typecheck matrix, 677 consumer tests, all 104 lock mirrors, canonical package checks, the published 2026.9.8-driver upgrade, APFS before/after clone proof, and independent review through P2. Landing will use |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* commit 'c39d9b0692dbaafa5b1bfe02514c9f6411ab5546': (30 commits) fix(ci): clear MCP audit and service-worker test blockers (#166217) test(gateway): wait for steering admission in FIFO fixtures fix(llama-cpp): managed setup crashes and loops on macOS below 13.3 (#163358) perf(worktrees): avoid full session parsing during GC (#166072) fix(update): recover stopped legacy managed services (#166232) perf(gateway): stream bounded link preview metadata (#166195) perf(diagnostics): release completed Git operation state (#166214) chore(deps): update fs-safe to 0.24.1 and clone plugin source captures (#166189) feat(clients): adopt worker-local inference placement (#163647) test: serialize PowerShell completion process suites (#166229) test: stabilize release timing boundaries (#166218) refactor(sessions): persist run outcomes only; liveness comes from the run registry (#165733) test(gateway): prove mention refresh after config retargeting fix(team-reports): keep the missed closed day when catch-up runs after midnight (#165780) test(gateway): join WebChat queue admission and drain completion fix(logging): reject blank diagnostic stability query fields (#145532) fix(agents): report unparseable serialized edit arguments (#163577) improve(anthropic): log Claude Code version probe failures (#157697) fix(agents): clarify prompt-size provider failures (#159712) fix(memory): re-throw non-ENOENT/ENOTDIR errors in root memory file lookup (#107921) ...
105 upstream commits. openclaw#166106 deletes narrating comments and simplifies small helpers across the channel plugins, including 39 Feishu files. openclaw#166189 updates fs-safe to 0.24.1, which only touches extensions/feishu/package.json on the Feishu side. extensions/feishu/src/outbound.ts conflicted. openclaw#166106 reworded the local image path comment inside the inline sendText handler, and this branch moved that handler into deliverFeishuOutboundText. The merge keeps the branch's handler and carries the new comment wording into it. The other files both sides touch (channel.ts, config-schema.ts, markdown.ts, reply-dispatcher.ts) took openclaw#166106's edits automatically. Those edits remove comments and simplify expressions without changing behavior. No upstream change touches a config schema, so the generated files were regenerated from this merge and came out identical to the previous branch head. build:docker ran in a separate detached checkout of this commit. Counts are core 2494, channel 3876 and plugin 4524. The core and plugin hashes match upstream/main. The generated metadata differs from upstream/main only by the two Feishu markdown.tables entries. The three generated-file checks pass there. Feishu: 101 files and 1521 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.
openclaw#166189) * chore(deps): update fs-safe to 0.24.1 * refactor(plugins): clone pinned source captures with fs-safe
What Problem This Solves
Large synchronous plugin captures and captured aliases still write full copies on APFS despite requesting clones. This finishes the capture work deferred from #165981. Thanks @matthematics1137 for the report and measurements.
Closes #161739.
User Impact
Ordinary captures and aliases use guarded copy-on-write copies where supported, retaining independent inodes and contents. Existing source-change rejection, restrictive modes, bounded reads, and later receipt verification remain in force.
Why This Change Was Made
fs-safe 0.24.1 lets
copyRootFileSyncbind its own admitted source to OpenClaw's still-open source pin before creating the destination. Both capture paths now use it withclone: "auto", bigintexpectedSourceIdentity, an admitted-sizemaxBytes, andsourceHardlinks: "allow". Initial hashes come from the owned destination descriptor before disposal; source facts bind to the returnedsourceIdentity.Ordinary captures retain
0600 | (source.mode & 0100). Aliases copy the first retained snapshot's mode and bytes while preserving the original plugin's ledger identity. The earlier source fingerprint check, ctime-only handling, receipt size/framing, lazy-acquisition checks and final verification remain. Every caller creates fresh destinations in a private capture tree; create-only publication does not remove a supported overwrite path.The
/dev/fdand/proc/self/fdshortcut and OpenClaw's descriptor-copy fallback are removed. fs-safe owns capability fallback and identity-safe cleanup; real I/O failures remain fatal. Growth beyond the pinned size maps to the existing reload retry message with its cause. Native namespace hardlink/reference compatibility stays with its existing owner.All 13 direct pins and seven platform locks move exactly to 0.24.1. No unrelated dependency entries change, including transitive 0.12.0. Reviewed-release exceptions expire 2026-10-13T10:36:37.223Z; #165997's os/cpu/libc constraints are preserved.
Release · Changelog
Evidence
Current implemented head:
2d4c30063470b9a7195a829b2fdee8d47bef4c55.9e569285/ fs-safe 0.24.02d4c3006/ fs-safe 0.24.1st_blocks(not exclusive allocation)Measured on macOS APFS, arm64, Node 24.21.0 with the same harness. These are complete generation captures with two independent 1 GiB outputs, not bare-copy timings. Per-file
st_blockscan count shared extents, and shared-host free-space deltas are noisy; neither is presented as exact new physical allocation. Host-wide used-space changes were +3,156,451,328 B and −30,216,192 B respectively, reflecting concurrent host activity rather than exclusive capture allocation. The unchanged large-file harness records before/after block counts, free space, per-process writes and clone metadata. This single same-host comparison is 4.56× faster; receipt digest is identical. Source mode remains 0755 and both captures are 0700. Mutating one capture leaves the source and sibling byte-identical to their originals.pnpm tsgo:allpasses (core/UI production, 27 core test shards, extensions, scripts and four root test graphs); all 104 lock mirrors pass. The canonical base-aware consumer selector runs 34 files: 677 tests passed, three expected platform/runtime skips (APFS, the Bun-only file and a Bun-native case). Source-swap rejection passed on Linux; APFS clone proof passed separately on macOS. Consumer wall time: 208.50 s plus canonical runtime preparation. The canonical full build, package inventory/tarball guards and published2026.9.8driver update all pass on the same head. The real updater finishes in 386.440 s (486 s complete cell, unchanged 1125 s budget), replaces the managed Gateway process, preserves durable messages and the OAuth sidecar, keeps incognito messages absent, and serves the exact candidate build withreadyz=200. AWS proof, leasecbx_fb77df2394cd.Capture adoption deletes 168 lines and adds 177 (net +9), including tests/docs; production is +47/-36 (net +11) because pin/receipt binding and the earlier fingerprint guard must be explicit. The full PR, including version replacements, is +256/-247. No net removal is claimed.