Repository navigation
fix(memory-wiki): wiki search times out while a large import compiles - #188256
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. What this changesThis PR lets Gateway-hosted Wiki searches read existing pages while a shared service scheduler refreshes sources and compiled indexes. Example: Search for cobalt while 6,000 synthetic source files are being imported.
Review scores
ProductKind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains This PR addresses a current search-blocking path and has sufficient current-head Gateway proof; its freshness and automatic-retry policy still needs an owner decision. Priority: P2 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherMemory Wiki connects agent tools and Gateway RPCs to Markdown vault queries, source importers, and compiled SQLite snapshots; the plugin service owns background maintenance and shutdown. flowchart TD
A[Agent tool or Gateway RPC] --> B[Wiki query owner]
B --> C[Markdown query reader]
B --> D[Service refresh scheduler]
D --> E[Source synchronization]
E --> F[Compiler and snapshot store]
F --> C
C --> G[Search results]
Technical reviewBest possible solution: Use the existing service scheduler and source-sync owner to keep queries independent of maintenance, with owner-approved freshness and retry behavior. Do we have a high-confidence way to reproduce the issue? Current-main source places synchronization before querying within wiki_search's 30-second response budget; no target code was executed during this read-only review. Is this the best way to solve the issue? The defect is the query waiting for maintenance; the invariant is independent query completion with service-owned maintenance, and the patch uses existing scheduler, synchronization, compiler, and reader owners while removing the replaced dashboard path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6dbf7a2d45b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +113, Tests +213, Docs +16, Other +3. Total +345 across 11 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 4, 2026, 3:07 PM ET / 20:07 UTC (Revision 2). |
Inspectable Gateway behavior proof for current head
|
|
@clawsweeper re-review The behavior-proof request is addressed for current head The separate maintainer decision on the 60-second freshness window and 5–60-second retries remains open. |
|
🦞👀 Re-review progress:
|
|
@obviyus, this builds on your service-owned Wiki dashboard maintenance in #132296. Could you review the search fix, decide on the 60-second freshness window and 5–60-second retry backoff, and, if you approve those defaults, merge it for the next release? I have carried the combined Wiki backports across OpenClaw 2026.10.10 and 2026.11.1, and they made Wiki practical for my daily work. The current installation retains this behavior; the November 7 source comparison also confirmed that the refresh coordinator matches this PR. That is combined-backport experience, separate from the pinned candidate tests. The candidate passed 48 focused tests covering caller-scope closure, retries, cancellation and shutdown, plus types and targeted lint. The captured real Gateway proof uses 6,000 actual synthetic inputs: existing pages remain searchable during import, newly imported content is found after publication, and shutdown cancels cleanly. ClawSweeper now reports sufficient behavior proof and no actionable code findings; the freshness/retry decision remains open. Landing this would keep large refreshes from consuming the search deadline and remove a backport I currently maintain. Could you resolve that remaining decision for the next release? |
|
@obviyus, could you please review this fix for inclusion in the next official OpenClaw release, subject to the remaining maintainer decisions below? Deployment update — November 18: I have carried the release-adapted fix since OpenClaw 2026.10.10 and continue to reapply it across upgrades, including 2026.11.3, 2026.11.4 and the currently deployed 2026.11.5. It has remained stable in my use, with no regression attributable to this fix observed. This keeps Wiki search available while source refresh continues. I would appreciate having it included upstream so this correction no longer needs to be reapplied for each release. The 2026.11.5 installation passed package-byte verification, native Doctor/database migrations, restarted-Gateway health and active-plugin checks. This is operational evidence for my combined release adaptation; it does not claim a new pristine runtime proof of this PR head. Current PR head: Please explicitly decide the documented 60-second successful-refresh window and 5–60-second retry backoff before merging. My local use does not supply upstream policy approval. Previous follow-up and revision-specific evidence@obviyus, could you please review this again, decide the documented freshness/retry policy, and include the fix in the next official release if you approve? Deployment update (November 12): the release-adapted fix is included in my running combined OpenClaw 2026.11.3 build. After installation, I verified the package contents against the source-bound artifact and checked the restarted Gateway and relevant active plugins. This is operational evidence for the combined local adaptation, separate from a pristine build or fresh isolated behavior proof of this PR head. Earlier validation notes below remain tied to the revisions they name. Earlier PR-branch evidence (historical, separate from the deployed release adaptation): Keeping search independent of source refresh remains helpful for usable Wiki recall. GitHub currently reports head |
|
2026.11.7 update: I carried forward Wiki search during background refresh. Focused tests passed for searching during maintenance with and without a published snapshot, and for the Gateway delegating refresh to the service. The official tag still waits for source synchronization on the query path. |
- wiki_search and wiki.search answer from the current index, then start the existing service-owned source sync. - Replace the refresh coordinator, scheduler move, query hook, README section and test-lines allocation with the existing dashboard helper, moved to source-sync.ts. - One-shot callers without a running service still await the sync; wiki_get, CLI search, imports, compile, lint, apply and status are unchanged.
- Chain the refresh on the search promise so the query path keeps its shape.
- Without it the refresh opened plugin state after the /tools/invoke scope closed and failed with "This operation was aborted" on the built Gateway.
|
Built-Gateway proof for this fix (real unsafe-local importer and compiler, synthetic 6,000-source vault, isolated profile/state/port). Raw per-run events below. |
|
Landed in f9f7bf7. Wiki search now answers from the current index right away and refreshes imported sources in the background, so a large vault no longer fails with "wiki_search timed out after 30s" while it imports and compiles. Content imported since the last refresh shows up on the next search. Thanks @Baumus for finding this, for the real-Gateway proof and for the original fix; we replaced the refresh coordinator with the existing background helper in commits on top of yours. |
…#188256) Root cause: `extensions/memory-wiki/src/tool.ts:174` awaits `syncMemoryWikiImportedSources` (import, then a full compile) inside the 30 s `wiki_search` deadline, and `extensions/memory-wiki/src/gateway.ts:277` awaits the same sync before `wiki.search` with no deadline, so a large pending import fails or stalls searches for pages that are already on disk. Related: #187429, #132296, #166329 ## What Problem This Solves Fixes: `wiki_search` fails with "wiki_search timed out after 30s", and the `wiki.search` Gateway method hangs, when a large vault has source changes waiting to import and compile. The pages being searched for are already on disk. ## User Impact Searches answer from the current wiki at once while the Gateway imports and compiles in the background. Content that changed in the sources since the last refresh shows up on the next search, not this one. That one-search delay is the only staleness: pages written with `wiki_apply` are read live, and a vault with no compiled snapshot yet still answers through the existing full scan. Unchanged: `wiki_get`, `openclaw wiki search`, imports, compile, lint, apply and status still wait for the sync. `ingest.autoCompile: false` still never compiles. A caller with no running wiki service (one-shot hosts) still waits as before. ## Why This Change Was Made When the wiki service is running, `wiki_search` and `wiki.search` run the query first and then start the service-owned source sync that the Overview and Import Insights dashboards already use (#132296). That helper moves from `gateway.ts` to `source-sync.ts` as `refreshMemoryWikiImportedSources`. It still single-flights equal requests, queues on the vault mutation lock, is cancelled by the service signal and is joined at shutdown. The refresh starts after the query because a cold read owner activates through the same vault queue, so a refresh started first would block the search. The helper runs the sync with `runInDetachedAsyncContext`. Without it the built Gateway aborted every refresh after the `/tools/invoke` response with `Failed to open the plugin state database. | This operation was aborted`, so nothing was ever published. The dashboard path on main has the same defect and this fixes it too. This takes over Baumus's PR. Thanks @Baumus for finding this, carrying the fix in your own deployment since 2026.10.10 and for the real-Gateway proof (#188256 (comment)), which also found the async-scope abort. Your commits stay in the branch. The commits on top replace the refresh coordinator (60 s freshness window, 5–60 s retry backoff, retry handles), the move to the plugin service scheduler, the query hook, the README section and the test-line allocation with the existing dashboard helper. No new freshness or retry policy is needed: the next search or dashboard poll is the retry, as for dashboards today. ## Evidence The built Gateway (dist) runs in an isolated profile with a task-owned state, config and port. Requests go through `/tools/invoke` → `wiki_search` and through `openclaw gateway call wiki.search`. The importer and compiler are the real unsafe-local ones, with no mocks or delays. Fixture: a compiled vault with one `entities/cobalt.md`, then 6,000 new synthetic source files. Source `0` contains "Zirconium publication evidence." Harness and raw captures: #188256 (comment). | Run | Base 6052fff | This PR | | --- | --- | --- | | `wiki_search cobalt`, run 1 | HTTP 500 at 30.5 s, `wiki_search timed out after 30s` | HTTP 200 at 4.9 s, `entities/cobalt.md`, 0 pages imported, no new publication | | `wiki_search cobalt`, run 2 | HTTP 500 at 30.4 s, `wiki_search timed out after 30s` | HTTP 200 at 4.3 s, `entities/cobalt.md` | | `wiki_search zirconium` after publication | n/a | HTTP 200 at 8.4 s, the newly imported source page | | `wiki.search` RPC (`openclaw gateway call`), twice | no answer within 600 s; all 6,000 imported, still no publication | `entities/cobalt.md` in 8.8 s and 7.7 s; after publication `zirconium` returns the new page | Controls on this PR: - Cold vault with no compiled snapshot: answers `cobalt` in 4.3 s through the scan fallback. - Two concurrent searches plus one `wiki.overview` poll: all answer, and exactly one compile is published. - SIGTERM during the refresh: exit 0 in 2.2 s, no publication, journal unchanged after exit. - `ingest.autoCompile: false`: the search answers, all 6,000 sources import, and nothing compiles. - One-shot `openclaw wiki search zirconium`: still waits for import and compile (508 s on a loaded host) and returns the new page. - Without `runInDetachedAsyncContext`, both runs logged `background source sync failed: Failed to open the plugin state database. | This operation was aborted` and never published. Unit: `tool.deadline.test.ts` "answers from the current index while the service refreshes" fails on base with `wiki_search timed out after 30s` and passes here. Focused memory-wiki suites pass: 8 files, 95 tests. Local review on the head reports no findings. ## Merge Danger Two-way door. No config, schema, protocol or stored-data change; a revert restores the awaited sync. Blast radius: memory-wiki search through the agent tool and the `wiki.search` Gateway method while the plugin service runs. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit f9f7bf7)
…#188256) Root cause: `extensions/memory-wiki/src/tool.ts:174` awaits `syncMemoryWikiImportedSources` (import, then a full compile) inside the 30 s `wiki_search` deadline, and `extensions/memory-wiki/src/gateway.ts:277` awaits the same sync before `wiki.search` with no deadline, so a large pending import fails or stalls searches for pages that are already on disk. Related: #187429, #132296, #166329 ## What Problem This Solves Fixes: `wiki_search` fails with "wiki_search timed out after 30s", and the `wiki.search` Gateway method hangs, when a large vault has source changes waiting to import and compile. The pages being searched for are already on disk. ## User Impact Searches answer from the current wiki at once while the Gateway imports and compiles in the background. Content that changed in the sources since the last refresh shows up on the next search, not this one. That one-search delay is the only staleness: pages written with `wiki_apply` are read live, and a vault with no compiled snapshot yet still answers through the existing full scan. Unchanged: `wiki_get`, `openclaw wiki search`, imports, compile, lint, apply and status still wait for the sync. `ingest.autoCompile: false` still never compiles. A caller with no running wiki service (one-shot hosts) still waits as before. ## Why This Change Was Made When the wiki service is running, `wiki_search` and `wiki.search` run the query first and then start the service-owned source sync that the Overview and Import Insights dashboards already use (#132296). That helper moves from `gateway.ts` to `source-sync.ts` as `refreshMemoryWikiImportedSources`. It still single-flights equal requests, queues on the vault mutation lock, is cancelled by the service signal and is joined at shutdown. The refresh starts after the query because a cold read owner activates through the same vault queue, so a refresh started first would block the search. The helper runs the sync with `runInDetachedAsyncContext`. Without it the built Gateway aborted every refresh after the `/tools/invoke` response with `Failed to open the plugin state database. | This operation was aborted`, so nothing was ever published. The dashboard path on main has the same defect and this fixes it too. This takes over Baumus's PR. Thanks @Baumus for finding this, carrying the fix in your own deployment since 2026.10.10 and for the real-Gateway proof (#188256 (comment)), which also found the async-scope abort. Your commits stay in the branch. The commits on top replace the refresh coordinator (60 s freshness window, 5–60 s retry backoff, retry handles), the move to the plugin service scheduler, the query hook, the README section and the test-line allocation with the existing dashboard helper. No new freshness or retry policy is needed: the next search or dashboard poll is the retry, as for dashboards today. ## Evidence The built Gateway (dist) runs in an isolated profile with a task-owned state, config and port. Requests go through `/tools/invoke` → `wiki_search` and through `openclaw gateway call wiki.search`. The importer and compiler are the real unsafe-local ones, with no mocks or delays. Fixture: a compiled vault with one `entities/cobalt.md`, then 6,000 new synthetic source files. Source `0` contains "Zirconium publication evidence." Harness and raw captures: #188256 (comment). | Run | Base 6052fff | This PR | | --- | --- | --- | | `wiki_search cobalt`, run 1 | HTTP 500 at 30.5 s, `wiki_search timed out after 30s` | HTTP 200 at 4.9 s, `entities/cobalt.md`, 0 pages imported, no new publication | | `wiki_search cobalt`, run 2 | HTTP 500 at 30.4 s, `wiki_search timed out after 30s` | HTTP 200 at 4.3 s, `entities/cobalt.md` | | `wiki_search zirconium` after publication | n/a | HTTP 200 at 8.4 s, the newly imported source page | | `wiki.search` RPC (`openclaw gateway call`), twice | no answer within 600 s; all 6,000 imported, still no publication | `entities/cobalt.md` in 8.8 s and 7.7 s; after publication `zirconium` returns the new page | Controls on this PR: - Cold vault with no compiled snapshot: answers `cobalt` in 4.3 s through the scan fallback. - Two concurrent searches plus one `wiki.overview` poll: all answer, and exactly one compile is published. - SIGTERM during the refresh: exit 0 in 2.2 s, no publication, journal unchanged after exit. - `ingest.autoCompile: false`: the search answers, all 6,000 sources import, and nothing compiles. - One-shot `openclaw wiki search zirconium`: still waits for import and compile (508 s on a loaded host) and returns the new page. - Without `runInDetachedAsyncContext`, both runs logged `background source sync failed: Failed to open the plugin state database. | This operation was aborted` and never published. Unit: `tool.deadline.test.ts` "answers from the current index while the service refreshes" fails on base with `wiki_search timed out after 30s` and passes here. Focused memory-wiki suites pass: 8 files, 95 tests. Local review on the head reports no findings. ## Merge Danger Two-way door. No config, schema, protocol or stored-data change; a revert restores the awaited sync. Blast radius: memory-wiki search through the agent tool and the `wiki.search` Gateway method while the plugin service runs. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit f9f7bf7) Co-authored-by: RomneyDa <[email protected]>
…openclaw#188256) Root cause: `extensions/memory-wiki/src/tool.ts:174` awaits `syncMemoryWikiImportedSources` (import, then a full compile) inside the 30 s `wiki_search` deadline, and `extensions/memory-wiki/src/gateway.ts:277` awaits the same sync before `wiki.search` with no deadline, so a large pending import fails or stalls searches for pages that are already on disk. Related: openclaw#187429, openclaw#132296, openclaw#166329 ## What Problem This Solves Fixes: `wiki_search` fails with "wiki_search timed out after 30s", and the `wiki.search` Gateway method hangs, when a large vault has source changes waiting to import and compile. The pages being searched for are already on disk. ## User Impact Searches answer from the current wiki at once while the Gateway imports and compiles in the background. Content that changed in the sources since the last refresh shows up on the next search, not this one. That one-search delay is the only staleness: pages written with `wiki_apply` are read live, and a vault with no compiled snapshot yet still answers through the existing full scan. Unchanged: `wiki_get`, `openclaw wiki search`, imports, compile, lint, apply and status still wait for the sync. `ingest.autoCompile: false` still never compiles. A caller with no running wiki service (one-shot hosts) still waits as before. ## Why This Change Was Made When the wiki service is running, `wiki_search` and `wiki.search` run the query first and then start the service-owned source sync that the Overview and Import Insights dashboards already use (openclaw#132296). That helper moves from `gateway.ts` to `source-sync.ts` as `refreshMemoryWikiImportedSources`. It still single-flights equal requests, queues on the vault mutation lock, is cancelled by the service signal and is joined at shutdown. The refresh starts after the query because a cold read owner activates through the same vault queue, so a refresh started first would block the search. The helper runs the sync with `runInDetachedAsyncContext`. Without it the built Gateway aborted every refresh after the `/tools/invoke` response with `Failed to open the plugin state database. | This operation was aborted`, so nothing was ever published. The dashboard path on main has the same defect and this fixes it too. This takes over Baumus's PR. Thanks @Baumus for finding this, carrying the fix in your own deployment since 2026.10.10 and for the real-Gateway proof (openclaw#188256 (comment)), which also found the async-scope abort. Your commits stay in the branch. The commits on top replace the refresh coordinator (60 s freshness window, 5–60 s retry backoff, retry handles), the move to the plugin service scheduler, the query hook, the README section and the test-line allocation with the existing dashboard helper. No new freshness or retry policy is needed: the next search or dashboard poll is the retry, as for dashboards today. ## Evidence The built Gateway (dist) runs in an isolated profile with a task-owned state, config and port. Requests go through `/tools/invoke` → `wiki_search` and through `openclaw gateway call wiki.search`. The importer and compiler are the real unsafe-local ones, with no mocks or delays. Fixture: a compiled vault with one `entities/cobalt.md`, then 6,000 new synthetic source files. Source `0` contains "Zirconium publication evidence." Harness and raw captures: openclaw#188256 (comment). | Run | Base fa7a528 | This PR | | --- | --- | --- | | `wiki_search cobalt`, run 1 | HTTP 500 at 30.5 s, `wiki_search timed out after 30s` | HTTP 200 at 4.9 s, `entities/cobalt.md`, 0 pages imported, no new publication | | `wiki_search cobalt`, run 2 | HTTP 500 at 30.4 s, `wiki_search timed out after 30s` | HTTP 200 at 4.3 s, `entities/cobalt.md` | | `wiki_search zirconium` after publication | n/a | HTTP 200 at 8.4 s, the newly imported source page | | `wiki.search` RPC (`openclaw gateway call`), twice | no answer within 600 s; all 6,000 imported, still no publication | `entities/cobalt.md` in 8.8 s and 7.7 s; after publication `zirconium` returns the new page | Controls on this PR: - Cold vault with no compiled snapshot: answers `cobalt` in 4.3 s through the scan fallback. - Two concurrent searches plus one `wiki.overview` poll: all answer, and exactly one compile is published. - SIGTERM during the refresh: exit 0 in 2.2 s, no publication, journal unchanged after exit. - `ingest.autoCompile: false`: the search answers, all 6,000 sources import, and nothing compiles. - One-shot `openclaw wiki search zirconium`: still waits for import and compile (508 s on a loaded host) and returns the new page. - Without `runInDetachedAsyncContext`, both runs logged `background source sync failed: Failed to open the plugin state database. | This operation was aborted` and never published. Unit: `tool.deadline.test.ts` "answers from the current index while the service refreshes" fails on base with `wiki_search timed out after 30s` and passes here. Focused memory-wiki suites pass: 8 files, 95 tests. Local review on the head reports no findings. ## Merge Danger Two-way door. No config, schema, protocol or stored-data change; a revert restores the awaited sync. Blast radius: memory-wiki search through the agent tool and the `wiki.search` Gateway method while the plugin service runs. Co-authored-by: Ayaan Zaidi <[email protected]>
Root cause:
extensions/memory-wiki/src/tool.ts:174awaitssyncMemoryWikiImportedSources(import, then a full compile) inside the 30 swiki_searchdeadline, andextensions/memory-wiki/src/gateway.ts:277awaits the same sync beforewiki.searchwith no deadline, so a large pending import fails or stalls searches for pages that are already on disk.Related: #187429, #132296, #166329
What Problem This Solves
Fixes:
wiki_searchfails with "wiki_search timed out after 30s", and thewiki.searchGateway method hangs, when a large vault has source changes waiting to import and compile. The pages being searched for are already on disk.User Impact
Searches answer from the current wiki at once while the Gateway imports and compiles in the background. Content that changed in the sources since the last refresh shows up on the next search, not this one. That one-search delay is the only staleness: pages written with
wiki_applyare read live, and a vault with no compiled snapshot yet still answers through the existing full scan.Unchanged:
wiki_get,openclaw wiki search, imports, compile, lint, apply and status still wait for the sync.ingest.autoCompile: falsestill never compiles. A caller with no running wiki service (one-shot hosts) still waits as before.Why This Change Was Made
When the wiki service is running,
wiki_searchandwiki.searchrun the query first and then start the service-owned source sync that the Overview and Import Insights dashboards already use (#132296). That helper moves fromgateway.tstosource-sync.tsasrefreshMemoryWikiImportedSources. It still single-flights equal requests, queues on the vault mutation lock, is cancelled by the service signal and is joined at shutdown. The refresh starts after the query because a cold read owner activates through the same vault queue, so a refresh started first would block the search.The helper runs the sync with
runInDetachedAsyncContext. Without it the built Gateway aborted every refresh after the/tools/invokeresponse withFailed to open the plugin state database. | This operation was aborted, so nothing was ever published. The dashboard path on main has the same defect and this fixes it too.This takes over Baumus's PR. Thanks @Baumus for finding this, carrying the fix in your own deployment since 2026.10.10 and for the real-Gateway proof (#188256 (comment)), which also found the async-scope abort. Your commits stay in the branch. The commits on top replace the refresh coordinator (60 s freshness window, 5–60 s retry backoff, retry handles), the move to the plugin service scheduler, the query hook, the README section and the test-line allocation with the existing dashboard helper. No new freshness or retry policy is needed: the next search or dashboard poll is the retry, as for dashboards today.
Evidence
The built Gateway (dist) runs in an isolated profile with a task-owned state, config and port. Requests go through
/tools/invoke→wiki_searchand throughopenclaw gateway call wiki.search. The importer and compiler are the real unsafe-local ones, with no mocks or delays. Fixture: a compiled vault with oneentities/cobalt.md, then 6,000 new synthetic source files. Source0contains "Zirconium publication evidence." Harness and raw captures: #188256 (comment).wiki_search cobalt, run 1wiki_search timed out after 30sentities/cobalt.md, 0 pages imported, no new publicationwiki_search cobalt, run 2wiki_search timed out after 30sentities/cobalt.mdwiki_search zirconiumafter publicationwiki.searchRPC (openclaw gateway call), twiceentities/cobalt.mdin 8.8 s and 7.7 s; after publicationzirconiumreturns the new pageControls on this PR:
cobaltin 4.3 s through the scan fallback.wiki.overviewpoll: all answer, and exactly one compile is published.ingest.autoCompile: false: the search answers, all 6,000 sources import, and nothing compiles.openclaw wiki search zirconium: still waits for import and compile (508 s on a loaded host) and returns the new page.runInDetachedAsyncContext, both runs loggedbackground source sync failed: Failed to open the plugin state database. | This operation was abortedand never published.Unit:
tool.deadline.test.ts"answers from the current index while the service refreshes" fails on base withwiki_search timed out after 30sand passes here. Focused memory-wiki suites pass: 8 files, 95 tests. Local review on the head reports no findings.Merge Danger
Two-way door. No config, schema, protocol or stored-data change; a revert restores the awaited sync. Blast radius: memory-wiki search through the agent tool and the
wiki.searchGateway method while the plugin service runs.