Skip to content

fix(memory): preserve newer indexes and disclose automatic rebuild costs - #146908

Merged
obviyus merged 3 commits into
mainfrom
bugloop/memory-rebuild-older-only
Sep 13, 2026
Merged

obviyus merged 3 commits into
mainfrom
bugloop/memory-rebuild-older-only

Conversation

@obviyus

@obviyus obviyus commented Sep 13, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

After a rollback, an ordinary memory search could rebuild an index written by a newer OpenClaw and call the embedding provider without disclosing possible cost.

This corrects a regression introduced by #146713. AI-assisted.

Why This Change Was Made

Newer versions take precedence over older versions when checking the index. Automatic synchronization preserves newer indexes; explicit reindex remains available.

User Impact

After an OpenClaw index-format upgrade, the first search can rebuild an older
index before returning results. Rebuilding can take longer and can incur costs
from the configured embedding provider. An index written by a newer OpenClaw
remains paused; upgrade OpenClaw or reindex explicitly. Later searches reuse the
repaired index. Status inspection alone does not rebuild it.

A search that requests a rebuild retains the existing provider-cost disclosure, including on retrieval failure or timeout.

Evidence

Real CLI runs with two declared runtime-format fixtures reproduced a rebuild on every version switch before this change. On the candidate, the upgrade rebuilt once, rollback made no embedding requests, and switching forward reused the preserved index. These fixtures exercise the real CLI; they are not two separately installed released versions.

Live Gateway searches cover older, current, newer, and mixed stored versions. The retained 2026.7.1-2 state repairs once after current Doctor prepares a copy. Three later searches return known facts without re-embedding documents. Recording providers establish requests, not billed cost. This is search compatibility proof, not an old-updater rerun.

Compatibility

No schema, configuration, protocol, or public SDK changes. Production code grows to carry repair notices through existing response and error fields without changing the search API.

Consumers

The classifier serves search admission, the synchronization writer, and status identity. CLI, Gateway, and tool results consume the existing diagnostic formatter. Deep status has its own recovery text. Search can also hand retry work to a separate maintenance manager, so disclosure must cross that handoff. Active Memory preserves successful-search warnings separately from failure state.

Invalidation

The decision whether a runtime index is older or newer is made by exactly one mechanism at extensions/memory-core/src/memory/manager-reindex-state.ts:153.

The existing writer lease rechecks identity. Successful repair refreshes the existing index generation; notices apply only to searches that observe a repair request.

Contention

Concurrent searches share one rebuild and each receives its disclosure. The existing writer and publication leases are unchanged.

Tests

The retained candidate run passes 69 focused memory tests. A separate Gateway run passes 17 tests. The original-source tool regression run reports 10 failures and two current-version passes. The accepted merge ed397080e63c06374724c1e4f5b41911edb38d85 now has 311 distinct passing tests: 281 memory/CLI, 13 diagnostics, and 17 Gateway tests. One CLI assertion initially saw forced ANSI colors; the complete CLI file passed with FORCE_COLOR=0 NO_COLOR=1 on the same unchanged merge. No assertion, source behavior, or timeout was weakened.

Test commands on the accepted merge
OPENCLAW_E2E_USE_PREBUILT_DIST=1 node node_modules/vitest/vitest.mjs run --config test/vitest/vitest.extension-memory.config.ts extensions/memory-core/src/tools.index-upgrade.test.ts extensions/memory-core/src/tools.index-diagnostic.test.ts extensions/memory-core/src/tools.real-manager.test.ts extensions/memory-core/src/cli.test.ts extensions/memory-core/src/memory/manager-search-upgrade.test.ts extensions/memory-core/src/memory/manager-reindex-state.test.ts extensions/memory-core/src/memory/manager-search.test.ts extensions/memory-core/src/memory/manager.reindex-recovery.test.ts

FORCE_COLOR=0 NO_COLOR=1 OPENCLAW_E2E_USE_PREBUILT_DIST=1 node node_modules/vitest/vitest.mjs run --config test/vitest/vitest.extension-memory.config.ts extensions/memory-core/src/cli.test.ts

FORCE_COLOR=0 NO_COLOR=1 OPENCLAW_E2E_USE_PREBUILT_DIST=1 node node_modules/vitest/vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts packages/memory-host-sdk/src/host/types.test.ts

FORCE_COLOR=0 NO_COLOR=1 OPENCLAW_E2E_USE_PREBUILT_DIST=1 node node_modules/vitest/vitest.mjs run --config test/vitest/vitest.gateway-methods.config.ts src/gateway/server-methods/memory-search.test.ts

Test movement

The former keyword-only provenance table moved to a recording-provider version matrix. Path, citation, revision, and repeat-search outcomes remain covered. The former zero-query assertion for older/missing keyword-only indexes is not part of that new provider matrix; keyword-only repair is also covered by the real Gateway case and existing tool cases.

@clawsweeper

clawsweeper Bot commented Sep 13, 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 added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 6:25 AM ET / 10:25 UTC (Revision 2).

ClawSweeper review

What this changes

Memory Core preserves newer-format indexes during automatic synchronization and carries rebuild-cost warnings through CLI, Gateway, and agent-tool search results.

Merge readiness

⛔ Blocked before merge - 2 items remain

This remains necessary: current main still treats newer indexes as eligible for automatic repair. No actionable introduced defect was found, and verified maintainer status exempts this PR from the prior external-contributor proof gate.

Priority: P2
Reviewed head: ed397080e63c06374724c1e4f5b41911edb38d85

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused correction with meaningful regression coverage and no definite introduced defect; runtime results remain author-reported.
Proof confidence 🌊 off-meta tidepool Not applicable: Verified repository maintain status exempts this PR from the external-contributor proof gate. The body reports relevant CLI and Gateway version-switch results for the changed index manager, but no runtime trace was available for independent inspection.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Verified repository maintain status exempts this PR from the external-contributor proof gate. The body reports relevant CLI and Gateway version-switch results for the changed index manager, but no runtime trace was available for independent inspection.
Evidence reviewed 10 items Current main still needs the correction: At fetched main, the classifier compares format versions for inequality, and search admits OpenClaw-owned mismatches without distinguishing newer indexes. The requested rollback protection remains absent.
Classifier and writer agree: The classifier gives either newer format dimension precedence. The synchronization writer exits for that state unless the reason is explicit CLI indexing, before shadow rebuilding or ordinary source synchronization.
Notice lifetime and regression coverage: Tests exercise older, current, newer, and mixed versions through the registered memory tool, including concurrent searches, document-embedding counts, retrieval failure, detached maintenance, deadlines, and repeated searches. These are inspected test contracts, not reviewer-executed runtime proof.
Findings None None.
Security None None.

How this fits together

Memory Core indexes memory files and eligible session content for retrieval. Its manager checks stored index compatibility, coordinates rebuilding, and supplies results or recovery guidance to search callers.

flowchart TD
  A[Search request] --> B[Check stored index format]
  B --> C[Older or missing format]
  B --> D[Newer format]
  B --> E[Compatible format]
  C --> F[Existing rebuild writer]
  F --> G[Results and repair notice]
  E --> G
  D --> H[Pause with recovery guidance]
Loading

Before merge

  • Resolve merge risk (P1) - Rollback users with newer-format indexes will intentionally lose automatic search recovery until they upgrade or explicitly reindex; the maintainer-authored body accepts this tradeoff, but its runtime evidence uses format fixtures rather than two released installations.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +149, Tests +439, Docs +2. Total +590 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 13 192 43 +149
Tests 8 493 54 +439
Docs 1 4 2 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 689 99 +590

Review metrics

Metric Value Why it matters
Production versus test growth Production +149 lines net; tests +439 lines net The body justifies production growth by carrying one manager-owned notice across search consumers, with most growth devoted to regression coverage.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/memory-core/src/memory/manager-reindex-state.ts, migration/backfill/repair: extensions/memory-core/src/memory/manager-sync-ops.ts, migration/backfill/repair: extensions/memory-core/src/memory/manager.ts, unknown-data-model-change: extensions/memory-core/src/cli-index-search.runtime.ts, unknown-data-model-change: extensions/memory-core/src/memory-search-tool-query.ts, unknown-data-model-change: extensions/memory-core/src/memory/manager-reindex-state.ts, and 13 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Retain the documented rollback policy (recommended)
    Accept the maintainer-proposed pause for newer indexes, preserving the explicit reindex escape hatch and existing older-index recovery.

Technical review

Best possible solution:

Retain the maintainer-confirmed rollback policy, with one classifier protecting newer indexes and the existing writer repairing older indexes while callers disclose costs.

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

Yes, from source: a stored format version above the runtime version is classified as mismatched on current main and admitted to automatic repair. This review did not execute that path.

Is this the best way to solve the issue?

Yes. The patch keeps version ordering in the existing classifier, enforces it at the writer, and reuses existing warning fields without changing stored schemas or search parameters.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2908c7e8d26c.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Verified repository maintain status exempts this PR from the external-contributor proof gate. The body reports relevant CLI and Gateway version-switch results for the changed index manager, but no runtime trace was available for independent inspection.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded memory compatibility and cost-disclosure correction.
  • merge-risk: 🚨 compatibility: Rollback search changes from automatic rewriting to an intentional pause requiring upgrade or explicit reindex.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Verified repository maintain status exempts this PR from the external-contributor proof gate. The body reports relevant CLI and Gateway version-switch results for the changed index manager, but no runtime trace was available for independent inspection.

Evidence

What I checked:

  • Current main still needs the correction: At fetched main, the classifier compares format versions for inequality, and search admits OpenClaw-owned mismatches without distinguishing newer indexes. The requested rollback protection remains absent. (extensions/memory-core/src/memory/manager-search-orchestration.ts:194, 2908c7e8d26c)
  • Classifier and writer agree: The classifier gives either newer format dimension precedence. The synchronization writer exits for that state unless the reason is explicit CLI indexing, before shadow rebuilding or ordinary source synchronization. (extensions/memory-core/src/memory/manager-sync-ops.ts:254, ed397080e63c)
  • Notice lifetime and regression coverage: Tests exercise older, current, newer, and mixed versions through the registered memory tool, including concurrent searches, document-embedding counts, retrieval failure, detached maintenance, deadlines, and repeated searches. These are inspected test contracts, not reviewer-executed runtime proof. (extensions/memory-core/src/tools.index-upgrade.test.ts:57, ed397080e63c)
  • Explicit recovery and operator impact: Documentation states that newer indexes remain paused until OpenClaw is upgraded or the operator explicitly reindexes; older-index repair continues automatically and discloses possible provider cost. Public docs: docs/cli/memory.md. (docs/cli/memory.md:106, ed397080e63c)
  • Maintainer status verified: The collaborator-permission endpoint returns role_name maintain and permission write for obviyus. This resolves the differing association fields and makes the external-contributor proof requirement inapplicable.
  • Prior proof request and current evidence: The captured body at sourceRevision 8151227fd7f0e7719c90a7eb6eade12b62bf289b1b54c9ef84dbe09183cfe151 reports real CLI format-fixture switching and Gateway searches against retained state, plus 311 passing tests. It contains no attached runtime trace, and the supplied proof directory is empty. The prior trace request is not retained as an external-contributor merge gate after verifying the author's maintain role; reported runs are not represented as independently observed. (ed397080e63c)

Likely related people:

  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Yuval Dinodia: 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 (1 earlier review cycle)
  • reviewed 2026-09-13T09:51:53.710Z sha b0f4d5a :: needs real behavior proof before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime extensions: memory-core Extension: memory-core size: L maintainer Maintainer-authored PR labels Sep 13, 2026
@obviyus
obviyus marked this pull request as ready for review September 13, 2026 10:17
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 13, 2026
@obviyus

obviyus commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator Author

landpr-approve-admin-merge
pr: 146908
head: ed39708
scope: owner-review

@obviyus
obviyus merged commit e9c1cb7 into main Sep 13, 2026
264 checks passed
@obviyus
obviyus deleted the bugloop/memory-rebuild-older-only branch September 13, 2026 10:48
@obviyus

obviyus commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @obviyus!

Proof: Command-line, Gateway, and Telegram searches preserve newer indexes and report recovery advice. Older indexes rebuild once with cost disclosure; 311 focused tests pass.

  • Bug: A rollback search could rebuild a newer index and call the embedding provider without disclosing possible cost.
  • Fix: The index owner permits automatic upgrades, preserves newer indexes, and carries rebuild notices through background work, failures, and timeouts.
Before After
Switching versions repeatedly rebuilt the index without a cost warning. Upgrade rebuilds once with disclosure; rollback makes no embedding calls and preserves the newer index.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* refs/heads/temp/pr-146833: (43 commits)
  fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908)
  fix: retain route ownership while discovering conversations (#146927)
  refactor: reuse plugin fixture shell runner (#146920)
  fix(worker): stop preparing disabled live previews (#146896)
  fix(runtime): support Bun across tooling suite (#146807)
  chore(i18n): refresh native locales (#146924)
  perf(secrets): limit expiry metadata to transient credentials (#146882)
  fix(ui): preserve queued refreshes during session discovery (#146535)
  test(ui): wait for quiet scrolling and close named file tabs (#146836)
  fix(ui): prevent Usage hour filters from freezing during DST (#146919)
  test(ui): share browser page cleanup across layout fixtures (#146805)
  ci: balance complete PR runtime test groups (#146916)
  improve(infra): reduce scheduling work for session notice bursts (#146818)
  improve: prepare Gateway skill commands asynchronously (#146812)
  improve(agents): skip unused assistant delivery parsing (#146858)
  improve(ui): reuse date formatters across timestamp lists (#146789)
  fix(tests): isolate installer and Docker shell snippets (#146897)
  test(heartbeat): share explicit channel configuration fixtures (#146853)
  fix: retain conversation reply claims through write admission (#146866)
  perf(sessions): bound history reads and stabilize cursor paging (#146770)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* temp/pr-146802: (51 commits)
  improve: reduce worktree filesystem stalls and archive syncs (#146906)
  fix(ui): avoid extra chat rail work while replies stream (#146883)
  improve(ui): speed up populated Usage timelines (#146947)
  test(gateway): retain auth recovery failure diagnostics (#146925)
  fix(tests): create private temporary home directories (#146931)
  fix(backup): preserve discovery under concurrent state writes (#146912)
  fix: keep queued deliveries in their original state directory (#146917)
  fix(discord): settle voice waveform work before releasing input (#146885)
  fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908)
  fix: retain route ownership while discovering conversations (#146927)
  refactor: reuse plugin fixture shell runner (#146920)
  fix(worker): stop preparing disabled live previews (#146896)
  fix(runtime): support Bun across tooling suite (#146807)
  chore(i18n): refresh native locales (#146924)
  perf(secrets): limit expiry metadata to transient credentials (#146882)
  fix(ui): preserve queued refreshes during session discovery (#146535)
  test(ui): wait for quiet scrolling and close named file tabs (#146836)
  fix(ui): prevent Usage hour filters from freezing during DST (#146919)
  test(ui): share browser page cleanup across layout fixtures (#146805)
  ci: balance complete PR runtime test groups (#146916)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
…sts (openclaw#146908)

## What Problem This Solves

After a rollback, an ordinary memory search could rebuild an index written by a newer OpenClaw and call the embedding provider without disclosing possible cost.

This corrects a regression introduced by openclaw#146713. AI-assisted.

## Why This Change Was Made

Newer versions take precedence over older versions when checking the index. Automatic synchronization preserves newer indexes; explicit reindex remains available.

## User Impact

After an OpenClaw index-format upgrade, the first search can rebuild an older
index before returning results. Rebuilding can take longer and can incur costs
from the configured embedding provider. An index written by a newer OpenClaw
remains paused; upgrade OpenClaw or reindex explicitly. Later searches reuse the
repaired index. Status inspection alone does not rebuild it.

A search that requests a rebuild retains the existing provider-cost disclosure, including on retrieval failure or timeout.

## Evidence

Real CLI runs with two declared runtime-format fixtures reproduced a rebuild on every version switch before this change. On the candidate, the upgrade rebuilt once, rollback made no embedding requests, and switching forward reused the preserved index. These fixtures exercise the real CLI; they are not two separately installed released versions.

Live Gateway searches cover older, current, newer, and mixed stored versions. The retained 2026.7.1-2 state repairs once after current Doctor prepares a copy. Three later searches return known facts without re-embedding documents. Recording providers establish requests, not billed cost. This is search compatibility proof, not an old-updater rerun.

## Compatibility

No schema, configuration, protocol, or public SDK changes. Production code grows to carry repair notices through existing response and error fields without changing the search API.

## Consumers

The classifier serves search admission, the synchronization writer, and status identity. CLI, Gateway, and tool results consume the existing diagnostic formatter. Deep status has its own recovery text. Search can also hand retry work to a separate maintenance manager, so disclosure must cross that handoff. Active Memory preserves successful-search warnings separately from failure state.

## Invalidation

The decision `whether a runtime index is older or newer` is made by exactly one mechanism at `extensions/memory-core/src/memory/manager-reindex-state.ts:153`.

The existing writer lease rechecks identity. Successful repair refreshes the existing index generation; notices apply only to searches that observe a repair request.

## Contention

Concurrent searches share one rebuild and each receives its disclosure. The existing writer and publication leases are unchanged.

## Tests

The retained candidate run passes 69 focused memory tests. A separate Gateway run passes 17 tests. The original-source tool regression run reports 10 failures and two current-version passes. The accepted merge `ed397080e63c06374724c1e4f5b41911edb38d85` now has 311 distinct passing tests: 281 memory/CLI, 13 diagnostics, and 17 Gateway tests. One CLI assertion initially saw forced ANSI colors; the complete CLI file passed with `FORCE_COLOR=0 NO_COLOR=1` on the same unchanged merge. No assertion, source behavior, or timeout was weakened.

<details>
<summary>Test commands on the accepted merge</summary>

```sh
OPENCLAW_E2E_USE_PREBUILT_DIST=1 node node_modules/vitest/vitest.mjs run --config test/vitest/vitest.extension-memory.config.ts extensions/memory-core/src/tools.index-upgrade.test.ts extensions/memory-core/src/tools.index-diagnostic.test.ts extensions/memory-core/src/tools.real-manager.test.ts extensions/memory-core/src/cli.test.ts extensions/memory-core/src/memory/manager-search-upgrade.test.ts extensions/memory-core/src/memory/manager-reindex-state.test.ts extensions/memory-core/src/memory/manager-search.test.ts extensions/memory-core/src/memory/manager.reindex-recovery.test.ts

FORCE_COLOR=0 NO_COLOR=1 OPENCLAW_E2E_USE_PREBUILT_DIST=1 node node_modules/vitest/vitest.mjs run --config test/vitest/vitest.extension-memory.config.ts extensions/memory-core/src/cli.test.ts

FORCE_COLOR=0 NO_COLOR=1 OPENCLAW_E2E_USE_PREBUILT_DIST=1 node node_modules/vitest/vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts packages/memory-host-sdk/src/host/types.test.ts

FORCE_COLOR=0 NO_COLOR=1 OPENCLAW_E2E_USE_PREBUILT_DIST=1 node node_modules/vitest/vitest.mjs run --config test/vitest/vitest.gateway-methods.config.ts src/gateway/server-methods/memory-search.test.ts
```

</details>

## Test movement

The former keyword-only provenance table moved to a recording-provider version matrix. Path, citation, revision, and repeat-search outcomes remain covered. The former zero-query assertion for older/missing keyword-only indexes is not part of that new provider matrix; keyword-only repair is also covered by the real Gateway case and existing tool cases.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: memory-core Extension: memory-core gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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