Repository navigation
Freeze the Mem0 and LangGraph stores v0.1.2, v0.1.4 and v0.3.0 wrote and read them with the current readers (#271) - #321
Merged
Conversation
…and read them with the current readers (#271) Each release's own CLI and backend code wrote two stores per optional backend: one running every scenario of the memtomem family plus rows the SDK holds that syncmill never wrote and a SIGKILLed board run, and one whose scratch namespace and shared namespace each pass a 100-row page. The default suite reads them with the standard library; the real tests (SYNCMILL_TEST_MEMORY_BACKENDS_REAL=1, new CI job memory-backends-real) run HEAD's adapters and everything above them over copies, with the exact FastEmbed model files recorded in models.json. v0.2.0 was generated once and measured equal to v0.3.0 row for row. HEAD's Mem0 delete_namespace leaves rows on disk (#320); that check is xfail. Refs #271 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n Mem0 and LangGraph tests (#271) Each engine checks, on exit, that every FastEmbed model it loaded is the recorded revision's snapshot with the recorded bytes, instead of mirroring how the cache resolves a revision. The generator's unchanged-row check now covers the vector values (Mem0 dense and BM25, each LangGraph embedding), so all three releases were regenerated with it. The room recall must come before the task text, search_multi keeps its best-first order, and the killed run's row is checked for its heading and task. Refs #271 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rd pool (#271) Mem0 adds a row's BM25 score only when the keyword search ranks it among its first max(4 * top_k, 60) hits. The bulk store's 106 shared rows tie there, so which of them get it depends on the store's order of ties: CI's ubuntu job ranked the second and third hits of three bulk rows differently from the macOS release read. LangGraph's dense ranking matched on both. Refs #271 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #271 (Memory family, part 2a). Follows #317 and #319, which froze the memtomem stores. Mem0 and LangGraph migration artifacts are part 2b.
What this freezes
The stores v0.1.2, v0.1.4 and v0.3.0 wrote through their optional backends, Mem0 (Qdrant local: pickled points with dense and
bm25sparse vectors, plushistory.db) and LangGraph (one SQLite file of JSON values and content embeddings). Each release's own CLI and backend code wrote two stores per backend:rununder every strategy, a failed run, Unicode with CRLF,###headings, a long prompt, a finishedboard run,room apply), then rows the SDK holds that syncmill never wrote, and last aboard runSIGKILLed in its second stage;sharedeach pass one 100-row page.Release differences are frozen as written. v0.1.2 shares every result straight into
shared, taggedtask-resultand the agent: no private row, no later-phase kind, no plan row, nosearch_multi, and its Mem0 reader returns no tags. v0.1.x bodies open with a##heading, and v0.1.x rooms write no memory. v0.1.x's board GC collects the finished run's scratch namespace when the next run claims;index.jsonrecords those rows asvanished.v0.2.0 was generated once and is not frozen: its four stores equal v0.3.0's row for row (generated ids aside). Its adapters, SDK lock and
memory.pyare the same apart from one docstring.How the tests hold HEAD to them
bm25vector; the foreign rows' shapes;LangGraphBackend._rowover every stored item; no stored path; the killed run's lease.SYNCMILL_TEST_MEMORY_BACKENDS_REAL=1, new CI jobmemory-backends-realon ubuntu and macOS): HEAD's adapters and everything above them, run over copies. That coversget/count, search, kind filters,search_multi,status,share_chunk,search_context, the shared readers and gateway (refused on a board-scoped view), each strategy's recall, a run and a room round, and the board GC.models.jsonrecords each file's revision and sha256, andfetch_models.pyfetches them. Each test engine checks, on exit, that every model FastEmbed actually loaded is that snapshot with those bytes. A cache whose ref FastEmbed cannot resolve makes it fall back to another directory, and that case fails.Findings
delete_namespacereports success but leaves rows on disk that return on reopen. mem0 2.0.11'sdelete_alldeletes concurrently over Qdrant local's one SQLite connection. The board GC tombstones such a namespace anyway. The on-disk check isxfail(strict=False).Verification
suite-run: CLEAN. 27 default tests pass. Real SDKs: 114 passed, 3 skipped (BM25 test on LangGraph), 3 xfailed (Mem0 backend: delete_namespace reports success but leaves rows on disk that come back on reopen #320), locally with a freshly fetched cache.exactcount, shared-reader guards, scoped union, GC fallback) each fail a test with an assertion. The model check fails on a changed model file and on a cache that falls back to another directory.models.jsonstores{name, sha256}entries, because a"tokenizer.json": "<hex>"line reads to secret scanners as a key.🤖 Generated with Claude Code