Skip to content

refactor: use fs-safe for file watching and preserve Doctor plugin captures - #159226

Merged
steipete merged 28 commits into
mainfrom
codex/fs-safe-watch-adoption-20260926
Sep 29, 2026
Merged

steipete merged 28 commits into
mainfrom
codex/fs-safe-watch-adoption-20260926

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Related: #159605 (merged). Supersedes #158182. Thanks @vincentkoc.

What Problem This Solves

Config reload, Skills refresh, Memory indexing and the development supervisor maintain separate filesystem watchers. Their consolidation also exposed a Doctor bug: temporary plugin capture paths could survive a read-only inspection even though its cleanup had deleted the files.

User Impact

File edits continue to trigger reloads, refreshes and indexing through released fs-safe 0.21.2, including Bun and Node installations without its native addon. Doctor keeps loaded native plugin files usable after inspection without changing the live admission store. This introduces no configuration or stored-data migration.

Existing CHOKIDAR_* controls remain supported. Unset, false, zero and empty polling overrides prefer native observation with polling fallback; other nonempty values force polling. Explicit polling and fallback honor CHOKIDAR_INTERVAL (100 ms default, 20 ms minimum). Native observation retains 30-second reconciliation and each consumer keeps its recovery policy.

Why This Change Was Made

fs-safe owns guarded scans, backend selection, generation fencing and subscription retirement. OpenClaw retains source selection, settling, reload/indexing policy and joins for application work. The change removes 908 net production implementation lines across 42 files, excluding tests, support, tooling, comments and blanks. Main's scheduler and planner work receives no reduction credit.

Memory obtains Root admission and observation from the host SDK so captured plugins use the same fs-safe module instance. Replacement Skills subscriptions re-admit their selected directory after joined retirement; healthy scope updates retain their Root. This fixes recovery after replacing an external skill collection.

Native capture storage is separate from database authority. Doctor stores captures outside disposable database snapshots; deferred receipt publication retains the original installed-index authority. Read-only inspections cannot become writers during later cache retirement. Entirely missing obsolete namespaces can be recaptured, while active or partially missing captures still fail validation.

Evidence

Current head: 6f6d3e3915074cd0ad37ed809a970630d02e1e7c (tree ec3b29cfe4132f44e0c13a11f32eb5ddf028b165), based on main 7972c35315d71727cc4a387f8e5f4a21d86bbf75 and its released fs-safe 0.21.2 dependency, plus canonical main teardown repair 1475b6f8. Since package source 71bdd822, the only changes are that canonical repair and the canonical sparse-runner fixture fix bb4573cd. Watcher, capture, update, SDK and dependency source remains byte-identical to the tested package. Current normal CI passed on this exact head: 163 successful jobs, 17 skipped, zero failures or cancellations, including all five standard Windows rows and both formerly failing shards. Earlier failed/cancelled attempts are retained below. Corrected installed-package acceptance passed on the same immutable package; the narrow receiving deltas are qualified separately, without relabeling package source. Main's Memory accessor inlining and shared batch type are preserved alongside the cutover's joined cleanup, which still retires providers and database resources when observation closure fails.

The two hosted watcher findings are fixed. Unused inaccessible include roots no longer block primary Config observation; selected or ambiguous roots still propagate errors, successful aliases remain pinned, and changed selection retries admission. Memory explicitly uses the released library's ceiling of one million directories and examined entries per subscription. Larger trees retain refresh-on-search fallback; this is a finite ceiling, not unlimited observation.

Both regressions failed on the earlier code for the intended reason: unused-root EACCES, and an actual 4,097-directory tree exceeding the default scan budget. With 0.21.2, the new Config case passed in 51 ms and the large-tree edit case in 22.036 s. The receiving owner group passed 30 cases in 262.31 s (including worker preparation), the remote-subscription close case passed in 3.724 s (127.88 s wrapper including preparation), and the hybrid cap case passed in 10.681 s (21.20 s wrapper). Types, scoped lint, formatting and whitespace checks passed.

The cutover exposed fragmentation in hybrid CI packing: clean captured main fit, but the candidate produced 80 jobs against the unchanged 79 cap. Final hybrid consolidation now uses its existing bounded group-exchange optimizer, yielding 78 rows with all 277 group descriptors retained. Worker, runner, family and admission rules remain intact; row placement and timeouts derived from existing whole-config rules can change. All six unchanged packing/cap/queue/worker/serial-ownership regressions passed (13.38 s wrapper), and the focused P0–P2 review was clean. No test expectations, numeric caps or deadlines were weakened.

The full corrected integration review completed all five passes with no actionable P0–P2 findings. Its preceding assessment identified two further edge cases, both fixed: an indexing callback rejection no longer declares healthy Memory observation unavailable, and root-level Config directories use the stable volume root as observation authority. Both new cases failed on the preceding source for the intended reason and then passed; their complete owner files passed 23 tests in 77.24 s including preparation (new cases: 1 ms and 10 ms). Affected types, lint and formatting pass. Current native Windows observation and normal enforced CI both passed. Corrected installed-package proof passed; neither earlier failed attempt is counted as passing.

  • Merged Skills behavior: both affected suites passed 17 tests, 56.57 s runner / 68.79 s wrapper, on Node 24.21.0. They cover directory replacement, subsequent independent edits, admitted symlinks, cached content, registration gaps and joined retirement.
  • Memory indexing: receiving-source validation passed the original two groups once: 150 tests across 18 files in 114.333 s. The filesystem case took 1.391 s, using real polling subscriptions, explicit guarded scans and published SQLite rows for edit, deletion and root replacement. All 25 source hashes remained unchanged; every process joined and the owned lease completed. Source f07aecec contains the identical fixture patch now on this branch; this is not relabeled as final-head execution.
  • Linux integration and controls: source f3274f8a passed 44 tests across seven files in 97.482 s, after the canonical build took 445.003 s. Restoring stale Skills Root inheritance failed with path-mismatch; restoring the unrelated capture probe failed with EACCES. All 19 original hashes were restored. The current admission-view integration has its own owner proof above; this older run remains attributed to its executed source.
  • Installed upgrade: Corrected Package Acceptance 36531683986, attempt 1, passed using the existing OpenClaw 2026.9.6 updater to install the byte-verified source 71bdd822 package with tooling defdf2d3. Session migration, Doctor, installed identity, Gateway startup/health/status, root/include writes and atomic replacements, Skills creation, and joined cleanup passed. One initial memory_search was followed by read-only SQLite chunks and real FTS observations of warm-up (1.736 s), edit (1.735 s) and deletion (1.635 s, both stores empty), without another search/index/reconcile. This establishes automatic durable convergence, not event drainage or per-event causality. Observation took 51.336 s, candidate startup 86.882 s, stop 3.311 s, and the single lane attempt 1040 s, with no timeout. The sole 93-second startup advisory concerned the older baseline; candidate startup had none. The unchanged observer/source and verified package checksum retain the original source identity. The subsequent receiving changes affect sweeper test teardown and the sparse runner fixture; review, source comparison and receiving CI qualify those separately.
  • Current native macOS: real Node 24.21.0/arm64 observation with fs-safe and its loaded native addon both at 0.21.2 passed primary/include edits and atomic replacement of both files in 288–322 ms. All four stages completed within 3.404 s, below periodic reconciliation, with the native addon required, polling recovery disabled and a long polling interval. No fake timers or manual reconciliation; no warnings/errors or post-close callbacks. Shutdown joined, synthetic temporary state was removed, and source/dependency hashes stayed fixed.
  • Current native Windows: Windows Testbox Probe 36537023306 passed one actual Node 24.21.0/x64 Config adapter case in 5.418 s, using reviewed proof commit 0bf1b920 with the complete application tree bound to current head 6f6d3e39. The required fs-safe 0.21.2 native addon was verified loaded. Primary/include writes and both atomic replacements delivered in 318–355 ms, all within 3.58 s, below periodic reconciliation. No manual reconciliation, fake timers, warnings, errors or post-close callbacks; the child exited naturally and removed its owned fixture. The outer Windows Vitest launcher retained its separate temporary namespace because descendant-group completion was not attested; Actions teardown owns that cleanup. No broader launcher-cleanup claim is made.
  • Earlier transports and plugin boundaries: Node 24.21 and Bun 1.4.2 probes passed automatic edit delivery for false/zero/empty overrides and joined shutdown. Real macOS probes covered include/root edits, deletion/restoration, atomic replacement and ignored sibling churn. A two-copy fs-safe fixture reproduced foreign-Root rejection and verified the host-SDK Memory path. Native Windows observation observed edits and replacement in 43.5/30.5 ms with no post-close callbacks; this is retained source-qualified evidence, not final-head execution.
  • Doctor and native lifetime: genuine managed-plugin regressions failed before repair; receiving proof passed 133 tests across nine files in 445.78 s. The real Doctor/Koffi child retained usable native images and companion files after private cleanup, preserved live database bytes and reclaimed captures after child exit. Omitting the storage binding reproduced the deleted-image failure. The nested case took 18.231 s. Current Windows Doctor lifetime proof passed the existing real Koffi case on exact application head 6f6d3e39 with fs-safe 0.21.2: one passed, zero skipped, 24.567 s body / 120.97 s wrapper (79.9 s worker preparation). Its assertions verify both mapped native images and companions after normal and nested Doctor inspections, unchanged source database bytes, and capture deletion after child exit. Source, workflow, dependencies and artifact digest were verified. The test captures its child receipt rather than printing it on success; the non-skipped passing case is the boundary evidence. The outer Vitest namespace remains explicitly owned by Actions teardown. A real child is necessary to test mapped-image lifetime; these cases use the existing integration tier.
  • Gateway behavior: the source-qualified ebf752 Linux scenario passed five real turns, local CLI control, canonical/worktree selection, unchanged rescans and joined shutdown in 29.596 s, retaining its 90-second case and 20-second CLI limits. Startup-owner tests passed 14 cases in 26.19 s. This remains pre-integration evidence.
  • Review and static checks: the prior integrated build passed; receiving package build remains separately attributed. Affected types, lint, formatting, size and whitespace checks pass. Both hosted watcher defects and both later integrated-review findings are repaired; the full corrected five-pass review is clean.
Failure history, review decisions and evidence limits

CI on b6b276f4 ended with 100 successful, 61 cancelled, 17 skipped and two failed jobs including the gate. Two sparse-runner fixture cases inherited the outer job's prebuilt mode and attempted to import a package-preparation helper outside their synthetic closure. Setting the same flag locally reproduced exactly two failures; clearing it preserved all six original modes and assertions. The fixture now matches canonical main fix bb4573cd exactly. The repaired inherited-mode fixture plus real prebuilt-AI siblings passed 14 cases in 8.561 s (fixture 2.538 s); normal-mode fixture plus package-admission cases passed eight cases in 4.290 s. The final canonical spelling passed six cases in 1.096 s / 3.645 s wall, with clean P0–P2 review. The complete selected static gate passed in 265.831 s. No application code, assertions, deadlines or production dependency changed. A textual conflict between equivalent cleared values was resolved to the canonical main postimage without broad main integration.

CI on 71bdd822 ended with 125 successful, 37 cancelled, 17 skipped and two failed jobs including the gate. server.agent.rpc-contracts.test.ts failed during startup with Shared-state worker opening path changed, surfaced as unavailable required secrets; its Config watcher had not started. An independently reproduced test-teardown defect allows an old subagent sweeper to recreate a stale shared-state worker. Canonical main repair 1475b6f8 now retires and joins the original sweeper before SQLite teardown; this head includes its exact 11-file patch, including the awaited benchmark reset. The correction has a clean full-context P0–P2 review, 102 owning/sibling passing cases, two failing-before causal controls and receiving fixture/lifecycle proof. The original-row Blacksmith replay passed 1,435 tests across 112 files, using the original three plans, four Node/Bun invocations, literal include order, worker limits and deadlines. Node 24.19.0 and the exact CI-pinned Bun revision matched; the former failing Gateway group passed all 219 cases. Command execution took 448.191 s, cleanup joined and the lease stopped. Its first preparation attempt ran zero tests because Bun was absent; the corrected invocation used the existing pinned CI setup action. This replay does not establish the exact historical callback timing. No reduction credit is taken for this independently landed repair. Earlier-file lifecycle effects remain possible, so source equality and the startup location alone are not claimed as proof of independence.

Package Acceptance 36525423001 built and verified the current package, passed npm installation and update/package identity, then failed before watcher preparation. Its frozen tooling read only the hot session row after schema 24 had moved prompt snapshot fields into session_entry_snapshots. The corrected tooling uses the candidate's existing hydration logic; the old reader failed five of seven schema-24 cases, while the corrected reader and siblings passed 29 cases in 10.98 s. Corrected run 36531683986 passed using the same source 71bdd822 package (SHA-256 17677865f4390bf1c8b0c2f04db83ce0f6f46df434adb184cb552ebdf823d241) with tooling defdf2d3. The observer, published 2026.9.6 updater, scenario and no-push image policy are unchanged. The earlier failure did not exercise watchers or establish prompt preservation. The corrected run passed migration, all selected observation stages and cleanup, as detailed above.

CI on 8bea42ba failed only the stale Synology inventory assertion before fail-fast: 16 jobs succeeded, 146 were cancelled, 17 were skipped and two failed including the gate. Both affected files matched receiving main. Focused proof changed from five passing/one failing case to six passing cases (29.69 s wall). The separate eight-file local replay emitted 95 passing assertions but was interrupted during its lifecycle and exited nonzero; it is not complete green proof. The repaired head needs its normal CI run.

CI on 176edf10 passed the channel repair and 94 jobs overall, then failed the context test's stale strict Root identity assertion. Recovery correctly admits a new Root; all context-isolation assertions passed. The run ended with 68 cancelled, 17 skipped and two failed jobs including the gate. This head checks renewed subscription identity and removes a recovery count assertion that was already satisfied by the earlier healthy scope update. No production behavior or timeout changed.

CI on 172302d3 timed out the Memory filesystem case at its unchanged 120-second limit; 48 other cases in that group passed. The exact receiving-merge composition then passed all 150 cases in 118.557 s; one observational replay passed in 107.337 s. The historical timeout did not reproduce and its precise cause remains unknown. The trace did establish native reconciliations overlapping the fixture's frozen settling clock. The corrected fixture uses real polling subscriptions and explicit reconciliation, matching the Skills fixture. Real Root admission, filesystem operations, SQLite publication assertions, deadlines and cleanup are preserved; production code is unchanged. Diagnostic and final Testboxes had 8 CPUs/32 GB versus CI's 2 CPUs/8 GB.

The earlier Windows collection case used backslashes to look up forward-slash registry keys. It now uses existing toWatchRoot; the corrected case passed in 187 ms before the previous run was cancelled by the Memory failure. The whole cancelled row is not counted as passing. The original Windows installer composition separately passed 540 cases/27 skips; its healthy and stalled scripts share one PowerShell process while retaining deadlines, failure and cleanup assertions.

Historical config-generation and PowerShell timeouts, plus a report-owner SIGTERM, remain recorded without invented causes. Successful replays are not claimed as fixes. The managed config-journal fixture now isolates managed writes using its existing watcher option; dedicated watcher-echo coverage remains. Independent planner contracts were separated without removing calls/assertions or increasing deadlines. Main's canonical packing fix repairs the independently reproduced 82-versus-79 hourly overflow; the formerly failing case passed in 21.526 s. Incoming fixtures use the current watcher helper, and native fixture construction was extracted unchanged to respect the existing file-length limit.

Fresh review questioned the sticky Memory unavailable flag after recovery. Main already has the identical callback and search behavior, and its old watcher resumes after reconciliation failures without clearing that flag. The cost is real but no new regression was established; this change retains the conservative fallback. A later assessment correctly distinguished a newly introduced indexing-callback error path from that pre-existing observation fallback; the extra unavailable notification is now removed, with a failing-before/passing-after recovery regression. The earlier second finding proposed releasing the development watch lock when observer retirement rejects. The actual CLI reports that failure and exits; the next invocation reclaims the dead PID's lock. There is no production caller that catches the rejection and retries within the same process. Retaining the fence until process exit avoids overlapping observers when retirement is uncertain. The review's findings result is retained, not described as a clean verdict.

CI on fa2e8015 failed the runtime API classification test after main removed the diffs and lobster runtime entrypoints. This head removes precisely those two obsolete IDs, retaining complete discovery equality and all 15 guarded export inventories. All seven guardrail cases passed. The old run remains failed/cancelled: 23 jobs succeeded, 138 were cancelled, 17 skipped and two failed including the gate.

The earlier f327 package run recorded startup warnings; the newer successful 176edf1 candidate started in 75.871 s without the 90-second advisory warning. Its successful artifact omits individual observation timings, the primed-agent list and a full first-hop exit snapshot; there is no independent same-PID receipt. Earlier invalid fixture reload mode and observer budget/priming errors were repaired in proof tooling, not represented as product fixes. Original failed runs remain failed. The final probe preserves strict readiness, the original five observation predicates, the 120-second total observer budget, 30-second RPC cap, restoration and joined cleanup.

No release, tag, npm publication or registry-image publication is part of this work.

@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 3:46 AM ET / 07:46 UTC (Revision 38).

ClawSweeper review

What this changes

The branch moves Config, Skills, Memory, and development file watching to fs-safe, removes Chokidar, and preserves native plugin captures during read-only Doctor inspections.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open: current main still uses the older watchers, so the central cutover remains useful. Earlier findings appear repaired, and real behavior evidence plus successful exact-head CI support ordinary landing review.

Priority: P2
Reviewed head: 6f6d3e3915074cd0ad37ed809a970630d02e1e7c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong source-bound runtime and upgrade evidence supports a broad, coherent cutover whose exact-head checks now pass.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The fs-safe Config adapter has real macOS and Windows 0.21.2 edit-delivery observations; the byte-verified installed candidate exercised the published updater, Gateway, Skills, Memory, and Doctor, while a real native-plugin child observed retained images and unchanged live database bytes. The earlier Windows Doctor child used 0.21.1, but its capture path uses Node filesystem operations and the 0.21.2 release leaves default mutation behavior unchanged. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The fs-safe Config adapter has real macOS and Windows 0.21.2 edit-delivery observations; the byte-verified installed candidate exercised the published updater, Gateway, Skills, Memory, and Doctor, while a real native-plugin child observed retained images and unchanged live database bytes. The earlier Windows Doctor child used 0.21.1, but its capture path uses Node filesystem operations and the 0.21.2 release leaves default mutation behavior unchanged. No stored-data contract changes.
Evidence reviewed 11 items Still needed on main: Current main's Config adapter imports Chokidar; its Plugin SDK file access entrypoint has no shared watch export. The branch's central cutover is not on main.
Introduced watcher ownership: The introduced Config patch replaces its Chokidar adapter with fs-safe subscriptions while retaining Config-specific path selection, settling, and retry behavior.
Plugin observation contract: The existing Plugin SDK entrypoint now exports host-owned fs-safe observation operations, and the plugin documentation explains why Memory must use that same module instance.
Findings None None.
Security None None.

How this fits together

File changes feed OpenClaw's reload, skill refresh, memory indexing, and development restart flows. Doctor separately inspects plugin code and must keep native capture files usable without turning its read-only inspection into a live state write.

flowchart LR
A[File edits] --> B[fs-safe observation]
B --> C{Relevant and stable?}
C --> D[Config and Skills updates]
C --> E[Memory index update]
C --> F[Development restart]
G[Doctor inspection] --> H[Retained native captures]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Dependency graph 0 packages added, 2 removed The lockfile removes Chokidar and its readdirp dependency, limiting the supply-chain change to dependency removal.

Stored data model

Persistent data-model change detected: serialized state: extensions/memory-core/src/remote/memory-files-worker.ts, unknown-data-model-change: extensions/memory-core/src/memory/file-watcher.ts, unknown-data-model-change: extensions/memory-core/src/memory/manager-watch-ops.ts, unknown-data-model-change: extensions/memory-core/src/memory/manager-watch-resources.ts, unknown-data-model-change: extensions/memory-core/src/memory/manager.ts, unknown-data-model-change: extensions/memory-core/src/memory/test-runtime-mocks.ts, and 13 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #159226
Summary: This PR is the viable watcher-cutover candidate named as superseding the earlier draft; the merged Doctor and fs-safe dependency work address overlapping or prerequisite pieces.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Use one fs-safe observation contract while preserving each consumer's reload or indexing policy, existing polling controls, and Doctor's native-capture custody during upgrades.

Do we have a high-confidence way to reproduce the issue?

Not applicable to the watcher refactor. The PR reports failing-before and passing-after evidence for branch regressions, but this read-only review did not execute a current-main bug reproduction.

Is this the best way to solve the issue?

Yes. Shared observation with consumer-owned policy and separate Doctor capture custody fits the existing ownership boundaries; current main's earlier Doctor repair does not replace the watcher cutover.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d2811224dc0d.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a substantial reliability and maintenance improvement with bounded user-facing impact.
  • merge-risk: 🚨 compatibility: Replacing watcher backends across existing installations can change polling and upgrade behavior; the PR documents legacy controls and supplies installed-upgrade proof.
  • merge-risk: 🚨 availability: Config, Skills, Memory, and development observation affect ongoing reload and refresh availability; the PR supplies native and fallback behavior evidence.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The fs-safe Config adapter has real macOS and Windows 0.21.2 edit-delivery observations; the byte-verified installed candidate exercised the published updater, Gateway, Skills, Memory, and Doctor, while a real native-plugin child observed retained images and unchanged live database bytes. The earlier Windows Doctor child used 0.21.1, but its capture path uses Node filesystem operations and the 0.21.2 release leaves default mutation behavior unchanged. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The fs-safe Config adapter has real macOS and Windows 0.21.2 edit-delivery observations; the byte-verified installed candidate exercised the published updater, Gateway, Skills, Memory, and Doctor, while a real native-plugin child observed retained images and unchanged live database bytes. The earlier Windows Doctor child used 0.21.1, but its capture path uses Node filesystem operations and the 0.21.2 release leaves default mutation behavior unchanged. No stored-data contract changes.

Evidence

What I checked:

  • Still needed on main: Current main's Config adapter imports Chokidar; its Plugin SDK file access entrypoint has no shared watch export. The branch's central cutover is not on main. (src/config/source-file.ts:2, d2811224dc0d)
  • Introduced watcher ownership: The introduced Config patch replaces its Chokidar adapter with fs-safe subscriptions while retaining Config-specific path selection, settling, and retry behavior. (src/config/source-file.ts:5, 6f6d3e391507)
  • Plugin observation contract: The existing Plugin SDK entrypoint now exports host-owned fs-safe observation operations, and the plugin documentation explains why Memory must use that same module instance. (src/plugin-sdk/file-access-runtime.ts:53, 6f6d3e391507)
  • Doctor capture separation: Doctor places native captures outside its disposable database snapshot. The capture directory and native namespace paths use Node filesystem operations; the earlier Windows Doctor run with fs-safe 0.21.1 therefore remains relevant to that capture lifetime, while the installed-package run exercises the current 0.21.2 package. (src/commands/doctor-lint-runner.ts:539, 6f6d3e391507)
  • Deferred publication boundary: The final installed-index writer rejects publication while the lifecycle lease is held or when the current plugin record's root or install hash differs from the captured publication. (src/plugins/installed-plugin-index-store-write.ts:253, 6f6d3e391507)
  • Upgrade behavior documented: The documentation retains the existing CHOKIDAR environment names, defines native preference and polling fallback, and describes each consumer's recovery behavior. Public docs: docs/help/environment.md. (docs/help/environment.md:139, 6f6d3e391507)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (37 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-29T00:17:03.167Z sha 176edf1 :: blocked before merge. :: [P2] Keep primary Config watching when an unused include root fails | [P2] Preserve automatic Memory refresh above the scan defaults
  • reviewed 2026-09-29T01:04:13.507Z sha fa2e801 :: blocked before merge. :: [P2] Keep primary Config watching when an unused include root fails | [P2] Preserve automatic Memory refresh above fs-safe scan defaults
  • reviewed 2026-09-29T02:49:15.356Z sha 7508613 :: blocked before merge. :: [P1] Keep the primary Config watch when an unused include root fails | [P2] Preserve automatic Memory refresh above fs-safe scan defaults
  • reviewed 2026-09-29T02:58:22.542Z sha 7508613 :: blocked before merge. :: [P1] Keep the primary Config watch when an unused include root fails | [P2] Preserve automatic Memory refresh above fs-safe scan defaults
  • reviewed 2026-09-29T05:25:15.349Z sha 71bdd82 :: blocked before merge. :: none
  • reviewed 2026-09-29T07:01:05.171Z sha b6b276f :: blocked before merge. :: none
  • reviewed 2026-09-29T07:20:09.928Z sha d8ce185 :: blocked before merge. :: none
  • reviewed 2026-09-29T07:32:54.891Z sha 6f6d3e3 :: blocked before merge. :: none

@steipete
steipete force-pushed the codex/fs-safe-watch-adoption-20260926 branch from 9caed07 to bc747d4 Compare September 27, 2026 04:39
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 27, 2026
Match the selected builder spelling after the Synology inbound route was inlined in #160639. Preserve the existing caller inventory assertion and production behavior.
Preserve read-only and writable admission partitioning, pinned publication authority, and complete capture placement across Doctor inspections. Remove the obsolete directory-only capture context and stale runtime API classifications.
Keep primary config observation active when an unused include root is inaccessible, retry that root when it becomes selected, and raise Memory scans to the released fs-safe limits. Preserve main test pruning and the separate CI retention-census owner. Focused runtime and routing proof passes; the newly isolated hybrid packing fragmentation is repaired in the following commit.
Reuse the existing bounded exchange optimizer for final hybrid consolidation. Preserve group ownership, child worker limits and admission budgets while reducing the fs-safe composition from 80 to 78 rows. Scope exchange by backend so valid Blacksmith layouts and cap-independent plan identity stay stable.
Integrate the released dependency and current Memory owner fields. Keep healthy observation available after indexing failures, and anchor root-level config directories at the stable volume root. Preserve joined observer/provider/database cleanup. Both regressions fail on the prior source and pass after repair; real macOS native observation and the complete corrected review pass.
Stop the original subagent registry before non-isolated file cleanup retires
its SQLite owners. Join accepted sweeps and cleanup tails while preserving
synchronous fixture resets, successor scheduling, and the actor path guard.
Await the new reset contract in the concurrency benchmark too.

Baseline controls demonstrate an old registry tick recreating a retired
shared-state owner and premature settlement of three in-flight retirements.
The receiving candidate passes 102 owning/sibling cases, including the
17-case nested fixture (16 passed, one expected skip). The benchmark with
eight child sessions also passes. The owning run took 156.42 seconds.
Types, lint, formatting, export scans, and repository guards were qualified.
The exact historical hosted timer schedule remains unobserved.
Keep synthetic historical runner fixtures in their explicit no-dist mode so
an inherited CI prebuilt flag cannot enter package preparation before the
worker-owner boundary. Preserve all six fixture modes and their assertions.
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: memory-core Extension: memory-core gateway Gateway runtime merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant