Repository navigation
refactor: unify filesystem observation for reloads and refreshes - #158182
roboclaw-bot wants to merge 10 commits into
Conversation
Migrate Config, developer source supervision, Skills, and Memory to caller-admitted fs-safe observation. Preserve domain settling, guarded reads, bounded admission, and joined shutdown. Dependent draft: compatible published /watch package pin and platform acceptance remain before-merge gates. Co-authored-by: Vincent Koc <[email protected]>
OpenClaw-Publication: 00755629-03b3-47d8-aa1c-48f33c882b2f
|
🦞👀 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 September 25, 2026, 1:35 PM ET / 17:35 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch replaces separate Config, development, Skills, and Memory file watchers with guarded fs-safe observation and updates their tests, documentation, Plugin SDK output, and CI routing. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 12 items remain Keep this draft open. Current main does not contain the cutover, and the branch remains useful, but its declared dependency cannot load the new observation API and its upgrade behavior needs an owner decision. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway and workers observe configuration files, development sources, skill folders, and memory files to trigger reloads, refreshes, and indexing. Each consumer validates and settles filesystem notifications before changing active state. flowchart LR
A[Filesystem edits] --> B[Guarded observer]
B --> C[Consumer validation and settling]
C --> D[Config reload]
C --> E[Skills and development refresh]
C --> F[Memory indexing]
Decision needed
Why: That is a deliberate upgrade and platform-support tradeoff; tests cannot authorize it on behalf of existing operators. Before merge
Findings
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use one guarded observation owner while preserving effective refresh for existing installations and publishing an intentional, documented Plugin SDK contract. Do we have a high-confidence way to reproduce the issue? Yes. Manifest inspection proves the pinned package lacks /watch, and the changed mode selectors plus the dependency contract establish the unsupported-host failure path; this read-only review did not execute the branch. Is this the best way to solve the issue? No. A release-backed dependency pin and a compatibility decision for native-only settings are needed before the single-observer cutover is safe to ship. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d72d20c9ca6c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
Integrate main while retaining its Gateway lease and replay safeguards, desktop coverage, and the completed filesystem-observation cutover. Treat initial reconciliation as readiness rather than a second file mutation, preserving real startup activity and later unknown invalidation. Join the reload lease before driving the fixture restart clock. Verified 757 Gateway cases, 42 Config cases, 39 affected Skills cases, and 128 CI routing/inventory cases. Dependency release and platform acceptance remain before-merge gates for this draft. Co-authored-by: Vincent Koc <[email protected]>
OpenClaw-Publication: f9d509b2-0b34-457b-b662-773cc4b4b084
Bound Memory and Skills notification output while preserving availability ordering, join accepted writes independently from observer retirement, and stop observation on output failure. Add real held-scan shutdown/replacement proofs across the four consumers and strict fixture assertions. Qualification uses exact fs-safe CI candidate 39c949e88e4de3381db008e8ab18e27faf0bce8d: 73 focused tests, production and test typing, SDK surface/export checks, and the full checkout-local build passed. Clean registry installation and actual desktop/Bun execution remain before-merge gates. Co-authored-by: Vincent Koc <[email protected]>
OpenClaw-Publication: 08dda411-3696-4171-9534-e6bdd2634be5
Integrate current main without reviving the retired Chokidar fixture. Keep RPC phase diagnostics and preserve unavailable messages while draining the initial Memory change notification. Memory worker tests pass 4/4; Gateway test typing and scoped lint pass. The isolated RPC runtime test remains blocked by the installed-service runtime-publication refusal; no service identity, credentials, or Gateway state were altered. Co-authored-by: Vincent Koc <[email protected]>
OpenClaw-Publication: b8e614df-c503-4000-9edb-1efdf826a2ea
Integrate pinned main e124d77. Retain upstream targeted-session queue and inherited provider state, keep database-owned release facts instead of a duplicate teardown flag, and preserve guarded no-follow metadata sampling instead of the retired raw-path stat adapter. Memory queue, targeted-sync, startup/close, observation-retirement, and settling suites pass 23/23. Memory typing and scoped lint pass. Earlier c20 full build/type qualification is not relabeled as this integration head. No blocked service/RPC route was retried. Co-authored-by: Vincent Koc <[email protected]>
OpenClaw-Publication: b2ff3111-419b-4c6c-93e4-191b82757997
Use fs-safe invalidations and scope replacement while keeping source selection, settling, reload and indexing policy with each owner. Remove first-party Chokidar, bespoke native transports and duplicate observation tests. Preserve joined application work and watch-limit degradation; isolate manual Gateway writer fixtures from filesystem readiness. Supersedes #158182. Thanks @vincentkoc. Co-authored-by: Vincent Koc <[email protected]>
Use fs-safe invalidations and scope replacement while keeping source selection, settling, reload and indexing policy with each owner. Remove first-party Chokidar, bespoke native transports and duplicate observation tests. Preserve joined application work and watch-limit degradation; isolate manual Gateway writer fixtures from filesystem readiness. Supersedes #158182. Thanks @vincentkoc. Co-authored-by: Vincent Koc <[email protected]>
Use fs-safe invalidations and scope replacement while keeping source selection, settling, reload and indexing policy with each owner. Remove first-party Chokidar, bespoke native transports and duplicate observation tests. Preserve joined application work and watch-limit degradation; isolate manual Gateway writer fixtures from filesystem readiness. Supersedes #158182. Thanks @vincentkoc. Co-authored-by: Vincent Koc <[email protected]>
Use fs-safe invalidations and scope replacement while keeping source selection, settling, reload and indexing policy with each owner. Remove first-party Chokidar, bespoke native transports and duplicate observation tests. Preserve joined application work and watch-limit degradation; isolate manual Gateway writer fixtures from filesystem readiness. Supersedes #158182. Thanks @vincentkoc. Co-authored-by: Vincent Koc <[email protected]>
…ptures (#159226) * refactor(infra): share filesystem observation policy Centralize polling overrides, guarded source admission and metadata sampling. Bound remote file notifications and join accepted output before shutdown. * refactor: migrate config, skills, memory and dev watchers Use fs-safe invalidations and scope replacement while keeping source selection, settling, reload and indexing policy with each owner. Remove first-party Chokidar, bespoke native transports and duplicate observation tests. Preserve joined application work and watch-limit degradation; isolate manual Gateway writer fixtures from filesystem readiness. Supersedes #158182. Thanks @vincentkoc. Co-authored-by: Vincent Koc <[email protected]> * fix(memory): use host filesystem observation for captured plugins Pair watch with SDK Root admission so captured plugin dependencies cannot split fs-safe's module-local Root registry. Preserve the strong Root check and route existing watcher tests through the host SDK boundary. Keep the eager Skills subscriber snapshot with Array.from and remove the new lint suppression without changing the production suppression allowlist. * fix: preserve fs-safe fallback for legacy polling overrides Treat legacy false, zero and empty polling overrides as a native preference so Bun and installations without the native addon retain working observation. Capture Config polling-recovery eligibility per observer to preserve the explicit override retry limit. Prepare the Skills recovery test through its existing worker owner and load the real snapshot dependency before cases begin. Keep recovery assertions, timeouts and artifact verification unchanged. * test(memory): check resolved observation backend health * fix(plugins): preserve native capture authority and lifetime * test(ci): scope native Doctor proof to its runtime owners * fix(plugins): break capture storage type import cycle * fix(memory): import observation types through host SDK * test(gateway): isolate operation journal fixtures * fix(qa): point worktree lifecycle scenario at surviving run-end cleanup tests #160308 deleted src/agents/worktrees/service.run-end-cleanup.test.ts, which the managed-worktrees-workboard-lifecycle scenario still listed as a codeRef, so extensions/qa-lab/src/scenario-catalog.test.ts failed on main. The surviving run-end cleanup outcome coverage lives in service.test.ts (late claims, stale lifecycle writes) and service.removal-safety.test.ts (dirty retention). (cherry picked from commit 3a300c6) * test: isolate planner contracts and share installer shell * refactor(gateway): schedule remote skill refresh (#160318) ## What Problem This Solves Remote-node skill refresh still kept a private debounce timer and threaded its handle through Gateway startup and shutdown. ## User Impact Skill changes keep the existing 30-second debounce, now owned by the kernel scheduler. Shutdown joins an active refresh and suppresses late broadcasts. Updating needs no operator action or config, storage, or public SDK migration. ## Why This Change Was Made Schedule refresh directly with the existing scheduler. Remove the timer getter/setter, delay option, runtime handle, and redundant close hook. Production **+18/-36/net -18**; tests **+100/-38/net +62**; docs **0**. Production counts use src/** and extensions/** with the work-order test exclusions. ## Evidence Deslop and Codex autoreview completed with no actionable findings through P2. Focused proof passed on blacksmith-testbox lease `tbx_01m3k4y56rf9r63tzs4hck3pek`, [run 36378613468](https://github.com/openclaw/openclaw/actions/runs/36378613468); unchanged source/test hashes were verified in the later proof. Each command used `pnpm test <file> --maxWorkers=1`: | File | Tests | Command wall | |---|---:|---:| | src/gateway/server-startup-early.test.ts | 14 | 14.763 s | | src/gateway/server-close.test.ts | 80 | 23.385 s | | src/gateway/server-startup-lifetime.test.ts | 14 | 37.299 s | The closeout docs PR will carry the complete census and merged-main sleep/shutdown proof; that live proof is still pending. Exact-head `node scripts/check-changed.mjs --base 5362ba0 -- <all 6 changed paths>` passed on `4fafc2add7ceeba82307bc25447af0262785364e`: production typecheck, 25 dependent test type graphs, lint (0 warnings/errors), dead-export scans and boundary guards. Check wall **1610.89 s**. Provider blacksmith-testbox, lease `tbx_01m3khvbn4fa9jb0bhe5qqp3we`, [run 36397188865](https://github.com/openclaw/openclaw/actions/runs/36397188865). The candidate was materialized in a clean detached worktree because native sync retained its hydration HEAD. ## Inherited CI failures and landing evidence Completed exact-head CI [36402003337](https://github.com/openclaw/openclaw/actions/runs/36402003337) has two underlying failures plus its aggregate gate. Both match independent PRs: - `gateway-agent-skill-refresh.e2e.test.ts:304` (called from line192): expected lifecycle count3, actual2. Identical without this cutover on approval [run36401825740/job108861794753](https://github.com/openclaw/openclaw/actions/runs/36401825740/job/108861794753). The unchanged synchronous `src/skills/runtime/refresh-state.ts` producer invokes the test's earlier registered listener directly. This PR changes a separate downstream remote-bin refresh consumer; the failing lifecycle count precedes the debounce/broadcast assertion. - `subagent-completion-blocked.e2e.test.ts:78`, ordinary delivery exhaustion: expected suspended, actual pending. Identical on questions [run36403551682/job108867383832](https://github.com/openclaw/openclaw/actions/runs/36403551682/job/108867383832). Neither PR touches that completion owner. Focused tests and the complete exact-head Testbox gate passed. The maintainer's standing instruction authorizes pinned admin squash over these inherited failures. No CI rerun or weakened assertion was used. The installed wrapper rejects the CLI admin argument shape; the native workflow's protected GraphQL merge route preserves the same squash, message, and expected-head payload used by that CLI operation. (cherry picked from commit df785c0) * test(gateway): adapt skills proof to fs-safe lifecycle * test(skills): normalize Windows observation lookup * test(memory): isolate guarded reconciliation from native hints (cherry picked from commit f07aececc0b5641a00adfd0271c89e7c7162d38d) * test(channels): update Synology context builder inventory Match the selected builder spelling after the Synology inbound route was inlined in #160639. Preserve the existing caller inventory assertion and production behavior. * test(skills): assert subscription renewal during recovery * fix(ci): exchange hybrid parallel groups within the job cap 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. * fix(test): retire subagent sweepers before SQLite owners 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. * test(ci): isolate worker boundary fixtures from prebuilt mode 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. * test(ci): align runner fixture with canonical main --------- Co-authored-by: Vincent Koc <[email protected]>
…ptures (openclaw#159226) * refactor(infra): share filesystem observation policy Centralize polling overrides, guarded source admission and metadata sampling. Bound remote file notifications and join accepted output before shutdown. * refactor: migrate config, skills, memory and dev watchers Use fs-safe invalidations and scope replacement while keeping source selection, settling, reload and indexing policy with each owner. Remove first-party Chokidar, bespoke native transports and duplicate observation tests. Preserve joined application work and watch-limit degradation; isolate manual Gateway writer fixtures from filesystem readiness. Supersedes openclaw#158182. Thanks @vincentkoc. Co-authored-by: Vincent Koc <[email protected]> * fix(memory): use host filesystem observation for captured plugins Pair watch with SDK Root admission so captured plugin dependencies cannot split fs-safe's module-local Root registry. Preserve the strong Root check and route existing watcher tests through the host SDK boundary. Keep the eager Skills subscriber snapshot with Array.from and remove the new lint suppression without changing the production suppression allowlist. * fix: preserve fs-safe fallback for legacy polling overrides Treat legacy false, zero and empty polling overrides as a native preference so Bun and installations without the native addon retain working observation. Capture Config polling-recovery eligibility per observer to preserve the explicit override retry limit. Prepare the Skills recovery test through its existing worker owner and load the real snapshot dependency before cases begin. Keep recovery assertions, timeouts and artifact verification unchanged. * test(memory): check resolved observation backend health * fix(plugins): preserve native capture authority and lifetime * test(ci): scope native Doctor proof to its runtime owners * fix(plugins): break capture storage type import cycle * fix(memory): import observation types through host SDK * test(gateway): isolate operation journal fixtures * fix(qa): point worktree lifecycle scenario at surviving run-end cleanup tests openclaw#160308 deleted src/agents/worktrees/service.run-end-cleanup.test.ts, which the managed-worktrees-workboard-lifecycle scenario still listed as a codeRef, so extensions/qa-lab/src/scenario-catalog.test.ts failed on main. The surviving run-end cleanup outcome coverage lives in service.test.ts (late claims, stale lifecycle writes) and service.removal-safety.test.ts (dirty retention). (cherry picked from commit f4ed4c2) * test: isolate planner contracts and share installer shell * refactor(gateway): schedule remote skill refresh (openclaw#160318) ## What Problem This Solves Remote-node skill refresh still kept a private debounce timer and threaded its handle through Gateway startup and shutdown. ## User Impact Skill changes keep the existing 30-second debounce, now owned by the kernel scheduler. Shutdown joins an active refresh and suppresses late broadcasts. Updating needs no operator action or config, storage, or public SDK migration. ## Why This Change Was Made Schedule refresh directly with the existing scheduler. Remove the timer getter/setter, delay option, runtime handle, and redundant close hook. Production **+18/-36/net -18**; tests **+100/-38/net +62**; docs **0**. Production counts use src/** and extensions/** with the work-order test exclusions. ## Evidence Deslop and Codex autoreview completed with no actionable findings through P2. Focused proof passed on blacksmith-testbox lease `tbx_01m3k4y56rf9r63tzs4hck3pek`, [run 36378613468](https://github.com/openclaw/openclaw/actions/runs/36378613468); unchanged source/test hashes were verified in the later proof. Each command used `pnpm test <file> --maxWorkers=1`: | File | Tests | Command wall | |---|---:|---:| | src/gateway/server-startup-early.test.ts | 14 | 14.763 s | | src/gateway/server-close.test.ts | 80 | 23.385 s | | src/gateway/server-startup-lifetime.test.ts | 14 | 37.299 s | The closeout docs PR will carry the complete census and merged-main sleep/shutdown proof; that live proof is still pending. Exact-head `node scripts/check-changed.mjs --base 9cd18e6 -- <all 6 changed paths>` passed on `4fafc2add7ceeba82307bc25447af0262785364e`: production typecheck, 25 dependent test type graphs, lint (0 warnings/errors), dead-export scans and boundary guards. Check wall **1610.89 s**. Provider blacksmith-testbox, lease `tbx_01m3khvbn4fa9jb0bhe5qqp3we`, [run 36397188865](https://github.com/openclaw/openclaw/actions/runs/36397188865). The candidate was materialized in a clean detached worktree because native sync retained its hydration HEAD. ## Inherited CI failures and landing evidence Completed exact-head CI [36402003337](https://github.com/openclaw/openclaw/actions/runs/36402003337) has two underlying failures plus its aggregate gate. Both match independent PRs: - `gateway-agent-skill-refresh.e2e.test.ts:304` (called from line192): expected lifecycle count3, actual2. Identical without this cutover on approval [run36401825740/job108861794753](https://github.com/openclaw/openclaw/actions/runs/36401825740/job/108861794753). The unchanged synchronous `src/skills/runtime/refresh-state.ts` producer invokes the test's earlier registered listener directly. This PR changes a separate downstream remote-bin refresh consumer; the failing lifecycle count precedes the debounce/broadcast assertion. - `subagent-completion-blocked.e2e.test.ts:78`, ordinary delivery exhaustion: expected suspended, actual pending. Identical on questions [run36403551682/job108867383832](https://github.com/openclaw/openclaw/actions/runs/36403551682/job/108867383832). Neither PR touches that completion owner. Focused tests and the complete exact-head Testbox gate passed. The maintainer's standing instruction authorizes pinned admin squash over these inherited failures. No CI rerun or weakened assertion was used. The installed wrapper rejects the CLI admin argument shape; the native workflow's protected GraphQL merge route preserves the same squash, message, and expected-head payload used by that CLI operation. (cherry picked from commit fdde317) * test(gateway): adapt skills proof to fs-safe lifecycle * test(skills): normalize Windows observation lookup * test(memory): isolate guarded reconciliation from native hints (cherry picked from commit f07aececc0b5641a00adfd0271c89e7c7162d38d) * test(channels): update Synology context builder inventory Match the selected builder spelling after the Synology inbound route was inlined in openclaw#160639. Preserve the existing caller inventory assertion and production behavior. * test(skills): assert subscription renewal during recovery * fix(ci): exchange hybrid parallel groups within the job cap 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. * fix(test): retire subagent sweepers before SQLite owners 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. * test(ci): isolate worker boundary fixtures from prebuilt mode 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. * test(ci): align runner fixture with canonical main --------- Co-authored-by: Vincent Koc <[email protected]>
|
Closing this draft as superseded by #159226, which explicitly credits @vincentkoc and was merged on September 29 as 52992fb. That commit is present in current main. Config reload, Skills refresh, Memory indexing, and development watching now use the released fs-safe API; main pins @openclaw/fs-safe 0.22.0 and preserves native-preferred polling fallback for the existing CHOKIDAR controls. The library work was separately merged via openclaw/fs-safe#690 and is included in the verified 0.22.0 registry release. The canonical consumer head 6f6d3e3 has successful CI at https://github.com/openclaw/openclaw/actions/runs/36536115258. This is reconciliation of already-landed work, not a new merge, deployment, or claim of fresh consumer-runtime execution. Leaving the historical branch and discussion intact rather than rebasing an obsolete implementation back into main. |
…ns (#161543) Complete the fs-safe watcher migration for catalog and usage-template caches, with non-persistent subscriptions so one-shot commands exit naturally. Preserve atomic-save and missing-root recovery behavior. Re-read selected sources after undetailed invalidations and restart the dev child only when content changes. Keep unchanged Skills coverage available, and honor CHOKIDAR_INTERVAL for forced polling and automatic fallback. Remove redundant native transports and transport-specific fixtures. Completes #159226 and supersedes #158182. Dependency pins remain owned by main. Co-authored-by: Vincent Koc <[email protected]>
…ns (openclaw#161543) Complete the fs-safe watcher migration for catalog and usage-template caches, with non-persistent subscriptions so one-shot commands exit naturally. Preserve atomic-save and missing-root recovery behavior. Re-read selected sources after undetailed invalidations and restart the dev child only when content changes. Keep unchanged Skills coverage available, and honor CHOKIDAR_INTERVAL for forced polling and automatic fallback. Remove redundant native transports and transport-specific fixtures. Completes openclaw#159226 and supersedes openclaw#158182. Dependency pins remain owned by main. Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Consolidates the separate Config, development supervisor, Skills, and Memory observation engines so recovery and shutdown use one guarded filesystem contract instead of parallel Chokidar/native implementations.
User Impact
Each workflow retains its validation, settling, source-selection, and cache/index policy. Notifications remain advisory: they never authorize reads or silently admit a replacement Root. Shutdown joins owned work and preserves genuine teardown errors without stranding independent resources.
Dependent implementation draft—not ready to merge or install from the declared registry pins. This needs fs-safe #666 and a legitimate published version exposing /watch. Registry version 0.19.0 does not contain this feature; manifests deliberately do not pretend otherwise.
Native observation is limited to actual Node.js/Linux with trusted procfs. macOS, Windows, Bun, and other unsupported runtimes explicitly select polling by default. CHOKIDAR_USEPOLLING=false, 0, and empty values remain native-only and may leave observation unavailable on unsupported hosts. Package-owner acceptance of this platform/resource tradeoff remains a before-merge decision.
Why This Change Was Made
fs-safe owns guarded observation, reconciliation, and physical retirement. Consumers retain accepted/rejected Config include policy, development-source filtering and trusted links, Skills discovery versus supporting-resource invalidation, and Memory dirty→settled→index ordering and host placement.
This removes direct Chokidar dependencies and superseded transports. Admission is bounded: Config four native workers, development four lifetime-pinned Roots, and Memory/Skills sixteen native workers each per process. Starting, retiring, and failed-close workers retain their budget. These are ceilings, not a performance-win claim.
Evidence
Local qualification uses the immutable unpublished candidate 39c949e88e4de3381db008e8ab18e27faf0bce8d from artifact 10863096644. Both tarballs were integrity-checked; all 608 installed root-package files and two native-package files match. Installation used a temporary package-manager hook—not library patches, vendoring, or type shims. No hook or local artifact dependency is committed.
The canonical include handoff’s missing-file case takes ~0.5s; its first existing-file case included ~19s shared worker compilation (~21s total). Measured other local case costs: Skills native admission ~0.7s, supporting resources ~0.9s, Memory alias flow ~0.5s, manager cleanup ~0.05–1s, and committed-index filesystem cases ~8–10s each. Cold worker compilation is separate (~18s). Sixteen Linux subscriptions added ~269 MiB RSS and 112 active descriptors; joined close returned descriptors to baseline.
Whole-candidate AutoReview completed; actionable consumer findings were repaired. Independent scoped reviews found no new P0–P2 issues in the final Config alias and bootstrap corrections. Main integration exposed an extra initial Config invalidation that could supersede restart work: bootstrap reconciliation now retains the former ignore-initial behavior, while detailed startup activity, overflow, and later unknown invalidations remain actionable. The known dependency-release gate remains open.
Earlier focused qualification passed 88 Skills cases. After integrating main and resolving the overlap, 757 Gateway cases, 42 Config cases, 39 affected Skills cases, and all 128 CI routing/Windows inventory cases passed. Gateway wall time was 41.64s; Config was 10.51s. Production and changed-test lint passed. The original five-job/time bounds are unchanged, with all newly added main Windows cases retained; three additional OS-neutral helper/lifecycle files stay in Linux/macOS rather than the Windows list. Portable polling, path-policy, and Windows behavior coverage remains enrolled.
The held-scan/backpressure continuation reproduced both remote workers returning with accepted stdout writes still blocked. One bounded notifier now joins output independently from physical cleanup, preserves final availability ordering, stops admission on output failure, and handles reentrant shutdown. Native Config stop/replacement, native Skills/development shutdown, and real Memory polling scans held across stdout backpressure, EOF, and output failure now have direct proofs. The final affected run passed 73 tests across 11 files in 83.30s; held-scan bodies take tens to hundreds of milliseconds. Independent continuation AutoReview found no actionable P0–P2 issues.
Source-bound local qualification: code commit
c20b18568c81310af75ab3e6a7c58e6a09e42f26passed full core and extension production/test typing, SDK export/surface checks, scoped lint, and the documented checkout-local full build (6m 59.6s) against the exact candidate artifact. The earlier service-identity refusal was not bypassed: this build used its ordinary checkout-local owner without changing Gateway identity or credentials. Installed artifact bytes were reverified (608 root-package files and two native-package files). This is artifact-bound proof, not a clean registry install. Integration is pinned to maine124d77e00fadc6108ed5bfc0e57101a40151197, not a moving target. Memory queue/provider ownership and guarded no-follow sampling are preserved; 23 Memory integration tests passed (45.12s), with Memory typing/lint passing. Earlier worker cases passed 4/4 and Gateway fixture typing/lint passed. The RPC runtime launch was refused by installed-service publication admission; no identity or service was changed.Remaining qualification: clean installation from the declared registry pins and actual consumer macOS/Windows/Bun execution. The declared dependency does not export /watch; a compatible legitimate release must be pinned before that clean-install proof. This host is Linux without Bun or a desktop runtime. Blacksmith run 36140098730 previously lacked authentication to download the exact artifact; its lease was stopped and the unchanged attempt was not repeated. Platform proof needs an approved matching runtime/runner and supported artifact transfer or the released dependency. The package-owner platform/resource decision remains open.
Contributor
@vincentkoc requested and directed this migration.
Work sessions
View the OpenClaw team session