chain-rdeveloper portal
build

Conversation Quality Review — October 2026

A research-backed audit of svc-ai's conversation pipeline. It covers input gate → reconnaissance → planning → retrieval → synthesis → evaluator, and memory most of all. It records what was found, what changed, and what the evidence does and does not show. It follows the Agent Graph Review, which fixed what models were shown, structured output, serialisation and cost; nothing it shipped is re-opened here. How memory works now is in Memory.

How it was verified

  • Code inspection of the full request lifecycle: svc-core's request builders and svc-ai's routers, engines and graph (app/agents/graph.py, app/inference/engines/*), the stores, and the rules.

  • The real graph, driven offline on tests/agents/scripted_model.py: a chat model that answers structured calls with raw tool-call arguments, so LangChain's own parser runs. Every finding about what a node sends is asserted on recorded calls.

  • Labelled datasets, two of each kind.

    • A development set, written and labelled before the code it measures.

    • A held-out set, written and labelled by an independent author (a separate agent with no access to the code under test) and never tuned on.

    • Where the two disagree, the held-out figure is the one to believe. They do disagree once (the write cue, below).

  • A stand-in embedding model. The deployment embeds with Titan V2 (Bedrock) or text-embedding-3-small; neither was reachable from the devcontainer. The semantic leg was measured with BAAI/bge-small-en-v1.5 (fastembed, ONNX, in a scratch environment, not a project dependency). It shows the leg working. Its similarity floor does not transfer to the deployment's models.

  • A real Postgres 16 for the store and migration 28: up from empty, down and up again, alembic check, and the store's queries against live rows.

  • Not verified live. No model was called. The deployment's monthly spending ceiling was reached in October 2026, and live measurement runs need approval (see the cost-control plan). Every quality figure below is a retrieval or classification measurement, not an answer-quality one. What remains to be measured live, and how, is in Next steps.

  • Literature checked against arXiv, the ACL Anthology, OpenReview, the proceedings sites and the official docs. Each source is marked peer-reviewed, preprint, vendor or docs.

1. The execution graph, verified

Every execution compiles to the same wrapper (AgentGraphBuilder.build):

__gate__ ─ trivial (heuristic: greetings, thanks; bare "yes" only with no conversation) ─▶ END
   │  one triage call: route + task shape (+ scope check with clarify_scope, + worth_remembering)
   │  (it was followed by __recon__ until October 2026; merged)
   │   └─ scope ambiguous ─▶ __clarify__ ⏸ (no model call)
   ▼
__memory_read__ (store set: a conversation with an agent)          no model call; ≤1 embedding
   ▼
__planning__ ─ no model call for a single node; ExecutionPlan call for a multi-node graph
   ├─ direct ─────────────────────────────▶ skill node(s)
   └─ retrieve ─▶ internal / external / tools (parallel Send fan-out)
                 │  internal: QueryPlan + RerankResult calls; agentic gap-fill when evidence falls short
                 ▼
           skill node(s) ─▶ [__synthesis__ — multi-node graphs only]
                 ▼
           __evaluator__ ── fail with material gaps, budget left ─▶ revise (agent / retrieval / synthesis)
                 ▼
           [__hitl__] ▶ __memory_write__ (≤1 summary call, ≤1 extraction call, ≤1 embedding) ▶ END

Model calls per turn, as the scripted runs count them:

Agent shapeCalls on a turn that retrieves nothingNotes
Plain agent with knowledge+ QueryPlan, + RerankResult (+ the agentic pass when the evidence falls short)always_retrieve puts internal retrieval on every substantive turn, except (since 18 October 2026) one a successful triage sent to the web alone: that turn goes direct and costs what the row above does (respect_triage_web_route, Knowledge Retrieval). Until then triage's route was overridden here too
Skill graph+ ExecutionPlan, + one call per node, + synthesisA stored skill is pinned: every node runs
Any shape, revision+ agent (or retrieval) + evaluator, per failure naming gaps, up to 2 (Thorough)
Memory+ embedding at read; + embedding, ≤1 summary, ≤1 extraction at writeExtraction runs only on a cued or flagged turn

What an answering node reads is unchanged from the previous review: [system, …≤10 earlier turns, task]. The task opens with <request_context>: date, plan, knowledge, tool ledger, state, notes, memory, and reasoning standards when needed.

2. Diagnosis

Ranked by how much each costs conversation quality, with what makes the case.

#FindingEvidenceStatus
D2Memory kept the pipeline's output as if the person had said it. Each episode appended the quality check's score, critique and gaps. Since B1.2 left the current conversation out of recall, those reached only unrelated conversations: their purpose was gone and only the noise remained. A failed answer was remembered as a conclusion. A turn with an attachment was remembered as the start of the document, which svc-core puts before the question.Code inspection (memory_write_fn, svc-core router.py documents XML). OWASP ASI06 (2026) names "automatic re-ingestion of an agent's own generated outputs into trusted memory". Xiong et al. (ACL 2026): stored mistakes recur.Fixed. And since 25 October 2026 a turn whose tools could not stand behind its answer, or whose answer was the day's, keeps only the question: an honest "the search found nothing" passed the quality check, was kept, and was repeated for the same question an hour later without a search (memory/turn_outcome.py, migration 31; memory.md)
D3Memory crossed people and workspaces. Five paths, all in production code:svc-core / svc-ai sweep; each pinned by a test nowFixed
• A dashboard tile ran its agent as the board's creator with memory on: on an organisation's board, the creator's memories were recalled into what every member saw. Every scheduled refresh also wrote a memory of a prompt nobody typed.targets.AgentTarget, test_a_dashboard_tile_keeps_the_agents_memory (it pinned memory on)
• An agent with its skill graph on runs in SkillEngine, whose state context dropped the agent's id. Its memories had no agent, and recall read the person's memories of every agent in every workspace.graph_based._base_state_context
• Standalone skill runs, and a model evaluated with tools, used the same person-only namespace._memory_store
• A personal agent's owner read and cleared it agent-wide — including the memories of their personal projects' members, who chat with it through inheritance.svc-core _memory_owner, network/knowledge._memory_user
• Deleting an account, organisation or project never removed svc-ai's memories. Deleting an agent wiped them before its own deletion committed.svc-core delete routes
D4Memory was stored unredacted. Audit redact_pii runs on the stream and the batch response, after the graph — so after __memory_write__. An answer redacted for the person was kept whole, and recalled into later prompts. A policy filter_pii rule did not reach recalled memories either.Lifecycle trace (engine.infer_stream, rules.StreamGuard)Fixed
D5Long conversations lost their early turns. History replays the newest 10 turns. The conversation under way was left out of recall entirely, on the assumption that the history held it — true only for 10 turns.Code inspection; dev case dpo-03 and held-out current_earlyFixed
D6The quality check judged follow-ups without the conversation. Its input was the request alone, so "make it shorter", "the second one" and "now for France" were judged with no referent. A correct draft could be failed and sent for revision on a gap the conversation had settled; a wrong one could pass.Code inspection (evaluator_node_fn); test_evaluator_context.pyFixed — unmeasured live
D7The quality check runs on the agent's own model. LLM judges favour their own output (Panickssery et al. NeurIPS 2024; Zheng et al. NeurIPS 2023).Literature; steps_llmNot changed — Next steps
D8Revisions are prompted self-correction. Without external feedback that does not reliably help, and can hurt (Huang et al. ICLR 2024: GPT-3.5 CommonSenseQA 75.8 → 41.8 after two rounds; Kamoi et al. TACL 2024). The check's code-verified citations and evidence are external feedback; its "gaps" are partly not.LiteratureNot changed — measure fewer revisions (B2.3)
D9Triage's route is computed and discarded on plain agents without knowledge.Code inspectionNot changed there: its other outputs are used; removing the call needs a benchmark run. On an agent with knowledge the route now decides whether the knowledge is searched: a successful web-only triage is kept (18 October 2026, respect_triage_web_route). And since 25 October 2026 a plain agent reads triage's judgement that a request needs current information: recall leaves out every episode and the request context says nothing remembered is current (graph.LIVE_DATA_KEY)

Looked at and found sound, so left alone: the planner (no call on a single node; plans validated, and their failure degrades safely), synthesis (multi-node only, with the persona and the date), and the trivial shortcut.

This review also called retrieval sound (query planning, hybrid RRF, reranking, corrective gap-fill). It was not, as CHAINR Bot's "whats in the news" answer showed on 18 October 2026:

  • The dense leg never ran. qdrant-client 1.17 has no AsyncQdrantClient.search, so every semantic search raised and was swallowed, and every agent's knowledge was searched by keyword alone.

  • The routing inventory said "Empty collection" of every vector knowledge base (CollectionInfo.vectors_count is gone too) and listed no documents.

  • always_retrieve overrode triage, so a turn triage sent to the web searched the knowledge anyway.

  • Corrective gap-fill re-injected irrelevant knowledge. A failed check on a web answer went back to the knowledge, and packed the guide's News paragraph again as new evidence.

The relevance judge rated that paragraph 1.0, the quality check saw 800 characters of a five-result web search, and the reviser 400 of its own results. Each is fixed: Knowledge Retrieval, Which turns search the knowledge, Relevance and Agent Graph. The retrieval tests had used a bare AsyncMock() as the Qdrant client, which answered search all along.

3. Interventions and their evidence

InterventionProblemEvidenceImplementationExpected benefitTrade-offValidated by
Preferences always recalledPreferences rarely share words with a requestLongMemEval's preference questions are a weak spot of similarity retrieval; Zep reports gains on them from structure (vendor preprint)kinds.POLICIES[preference].always, capped at sixStyle followed on every answer~20–60 tokens per preference on every calltest_every_request_gets_the_preferences_it_should
Curated memories from the person's own wordsNo facts, preferences or goals existed; only turn logsLoCoMo: RAG over extracted observations beats raw turns (41.4 vs 31.7, peer-reviewed). LongMemEval: facts help beside raw values, hurt instead of them. OWASP ASI06 / Agentic T1: validate before commit, provenance, no self-ingestion.extraction (one call) + validate (quote grounding, reported speech, PII and credentials, labels from the server); episodes kept alongsideDurable personal context across conversationsAn extra call on some turnstest_extraction.py, test_memory_nodes.py
Corrections supersede; temporary facts expireContradictions and stale factsMemoryAgentBench: no current memory system handles updates reliably (≤7% multi-hop; ICLR 2026). Zep invalidates rather than deletes (vendor). LongMemEval: updates are often missed.superseded_*, expires_at; recall leaves both out; old rows kept for the recordStale facts stop reaching the modelA correction the model does not mark stays beside the old fact (both dated)stale = 0 on both sets (recency: 4 on dev)
Write policy: cue or triage flagAn extraction call every turn is mostly wastedLangMem warns that over-extraction costs precision (docs). Mem0 extracts every turn (vendor).cues (free) or triage worth_remembering (+111 prompt tokens)Extraction on a minority of turnsThe cue alone misses a third (held-out)test_write_policy.py
Quality-gated episodes; no verdicts in memoryD2Xiong et al. 2026 (peer-reviewed); OWASP ASI06keep_answer; migration 28 strips old verdictsMistakes and pipeline chatter stop recurringA failed turn's conclusion is lost, its question keptTestTheEpisode
Beyond-window episodesD5MemGPT: the evicted queue is recalled from storage (preprint)The store leaves out only the replayed turns' episodesFollow-ups to early turns resolve—dev follow_up_beyond_window, held-out current_early
Dated, kinded, framed blockUndated items under no instructionLongMemEval: time-aware context helps temporal questions. Shi 2023: "feel free to ignore" recovers 1.5–5.4 points.render.blockThe model knows what each memory is and may ignore it~100 tokens of note when anything is recalledTestTheBlock
Isolation and lifecycleD3OWASP Agentic T12 (shared-memory poisoning) and ASI06 (per-tenant namespaces); MINJA shows query-only users poisoning memory read by others (NeurIPS 2025)See authorization.md#agent-memoryNo cross-person or cross-workspace recallTiles no longer personalisesvc-core and svc-ai tests; real Postgres
Memory redactionD4— (a correctness fix)Redaction(stored=output_redactor, recalled=input_redactor)Audit and policy PII rules hold for memory—test_what_is_kept_is_redacted…, test_recalled_text_is_redacted…
Quality check reads the conversationD6Conversational query reformulation (Ma et al. EMNLP 2023; Mao et al. EMNLP Findings 2023): a follow-up's meaning lives in its context<conversation> (2 turns: the latest answer up to 1,200 characters, other messages 400) and <resolved_request> in the evaluator input; prompt calibrationFewer false failures and spurious revisions on follow-ups~260 more prompt tokens per check typically, at most ~1,000, when there is historytest_evaluator_context.py; live: samples/evaluation/conversation-continuity.json

4. Memory architecture

The smallest schema that fits the existing store and tenancy model: four kinds in the existing agent_memories table, with no new service and no vector database. One person's memories of one agent are a few hundred short texts, scored in process. Embeddings live on the row, so deleting a row deletes its vector, and erasure stays one DELETE. Lifecycle:

turn ─▶ episode (always; request only if the check failed) ─┐
     └▶ cue / triage flag ─▶ extraction (1 call) ─▶ validate ─┼▶ redact (audit) ─▶ embed ─▶ store
                                                              │       (dedupe → restate, correction → supersede,
                                                              │        forget → delete, date → expire)
request ─▶ candidates (scope, workspace, active, not replayed) ─▶ rank (words | meaning, recency,
           relative cut) ─▶ redact (policy) ─▶ dated block ─▶ answering call ─▶ recall counted

The category mapping from the brief:

Brief's categoryHere
Preferences and procedural knowledgepreference (how to answer, how a kind of task should be done)
Goals and ongoing projectsgoal
Working contextThe replayed history (unchanged), plus episodes beyond it
Episodic memoriesepisode
CorrectionsAn operation (replace → supersede), not a kind

Details, isolation, cost and limits: Memory.

5. What changed

AreaChangeWhere
StoreScoped candidates (agent, user, workspace, active, not replayed); one-transaction writes that act only on the scope's rows; recall counting; no namespace without an agentapp/db/postgres/memory_store.py
Schemakind, evidence, workspace, embedding / embedding_key, expires_at, superseded_at / superseded_by, confirmed_at, recall_count / last_recalled_at; old verdicts strippedsvc-ai migration 28, models.AgentMemory
GraphMemory nodes call the service; recall uses the standalone query and the replay count; triage carries worth_remembering; the evaluator reads <conversation> and <resolved_request>; GraphState.memories holds RecalledMemory (registered for checkpoints)app/agents/graph.py, app/agents/checkpoint.py, app/prompts.py
Engines and rulesEvery graph engine carries the agent's id; no store without an agent; memory redaction from the run's rules, on resume too; RulesEnforcer.input_redactorapp/inference/engines/graph_based.py, app/routers/agent.py, app/inference/rules.py
EmbeddersSimilarityFloors.memory (provisional)app/services/embeddings.py
MeteringSteps memory_recall, memory_index; purpose memory.extractapp/services/metering.py, fe-core components/cost/steps.ts
APIEntries carry kind, evidence, workspace and status; DELETE /memory?user_id=app/routers/memory.py
svc-coreTiles and evaluations run without memory; a model with tools says so; every memory route and network view narrowed to the caller; memory cleared after agent, account, organisation and project deletionservices/evaluation/targets.py, router/app/agents/router.py, services/network/knowledge.py, services/memory_lifecycle.py (new), users, organisations and projects routers
fe-coreMemory pages show each memory's kind, the person's words, and whether it was replaced or has endedutil/agentMemory.ts (new), pages/agents/Agent.tsx, pages/agents/SystemAgent.tsx, StatusBadge.MEMORY_STATE
SamplesTen multi-turn cases for live measurement of follow-up handlingsamples/evaluation/conversation-continuity.json

6. Evaluation dataset and regression suite

modules/svc-ai/tests/memory/ (repeatable, offline, part of make test-ai):

SetSizeWrittenTests
heldout_write_cases.json100 messagesIndependently; never tuned onThe same floors, held out
recall_cases.json4 banks (62 memories), 34 requests across 14 categories (3 banks, 52 memories, 29 requests and 13 categories until 18 October 2026)Before the ranking; the bot bank after the ranking and the lexical fixes, labelled on meaning before any runMatched recall, precision, irrelevant, stale, characters; nothing but preferences for abstain-like requests
heldout_recall_cases.json2 banks (72 memories), 30 requests across 11 categoriesIndependentlyThe same, held out
Extraction cases24 proposals, including adversarial onesWith the validatortest_extraction.py
Graph casesNodes and two conversations through the compiled graph—test_memory_nodes.py, test_evaluator_context.py

Labels were corrected twice after the first run, both because they broke the labelling rule (preferences are relevant or acceptable for every request), not to fit results. The ranking was changed twice after a first look: a second lexical pass condition (two shared words at ≥0.3 coverage), and a background prior on idf. The second was found by a unit test, not by the data. Both were made before the held-out sets were run.

Run it: cd modules/svc-ai && uv run pytest tests/memory and uv run python -m tests.memory.report (add --embedder active for the deployment's embedder, or --embedder bge-small for the stand-in, from an environment with fastembed installed).

7. Results

Recall: baseline against candidates

The ablation the brief asks for. "Matched recall" leaves out preferences, which the ranked strategies return for every request. "Irrelevant" counts memories that were neither relevant nor acceptable. "Stale" counts superseded or expired memories, and episodes the history already replays.

Development set (29 requests; measured 17 October 2026, before the bot bank):

StrategyMatched recallPrecisionCompleteIrrelevant (requests)StaleChars / request
Recency — the store until now0.760.2218/29177 (29)4985
Curated, no relevance0.550.4819/29107 (29)0468
Lexical (no embedder)0.670.9822/292 (2)0223
Hybrid, stand-in embedder, floor 0.700.810.9825/292 (2)0245

Held-out set (30 requests):

StrategyMatched recallPrecisionCompleteIrrelevant (requests)StaleChars / request
Recency0.450.090/30217 (30)11,062
Curated, no relevance0.680.3722/30217 (30)0834
Lexical0.760.9725/305 (4)0322
Hybrid, floor 0.700.870.9727/305 (4)0339

Development set with the bot bank (34 requests, 18 October 2026; hybrid not re-measured):

StrategyMatched recallRecallPrecisionCompleteIrrelevant (requests)StaleChars / request
Curated, no relevance0.500.670.5022/34113 (34)0429
Lexical0.700.800.9827/343 (3)0221

On the 29 requests before it, the same runs read recency 0.76 / 0.60 / 0.22 / 18/29, curated 0.55 / 0.65 / 0.48 / 19/29 and lexical 0.67 / 0.77 / 0.98 / 22/29 (matched recall / recall / precision / complete). The held-out set is unchanged. The bot bank holds CHAINR Bot-style memories, written lower case without apostrophes. The floors hold and were not relaxed: 0.70 ≥ 0.62 matched, 0.97 ≥ 0.95 precision, 3 ≤ 4 irrelevant.

  • "whats in the news today" (bot-01, abstain) recalls only the preference. The three news-related episodes each cover 0.346 of it, under the 0.4 floor.

  • "whats in the news" (bot-05, abstain), the incident's own wording, is one informative word, so it covered any memory holding "news" in full: it recalled the earlier "can my agent read the news?" turn, answered with granting the News repository. A request form needs two informative words to vouch for a memory by its words (recall.LEXICAL_MIN_FORM_TERMS); with it, bot-05 recalls only the preference, and no other labelled request in either set changed (requiring two shared words instead would have cost two complete development requests).

  • The one new intrusion is a measured limitation, not relabelled. "whats new in dashboards" also recalls "how do I create a new agent?": in a two-word request "new" and "dashboard" weigh the same, so coverage is 0.500 against LEXICAL_FLOOR 0.4.

  • Without the lexical fixes (the old stopwords, stemming and document terms patched back in, a simulation and not a test), the set would send 5 irrelevant memories across 4 requests instead of 3 across 3. The fixes trade three news intrusions ("news" had stemmed to "new", "whats" to "what") for that one.

  • A per-case test now holds every abstain-like request to nothing but preferences: 7 on the development set (4 abstain, 3 irrelevant), 6 held out (2 unrelated, 4 near miss).

By category on the 34 requests, lexical then recency ("complete" ignores intrusions): abstain 5/5, 0/5 · irrelevant 3/3, 0/3 · episodic 6/7, 5/7 · follow_up_clarified 1/1, 0/1 · fact 0/2, 1/2 · paraphrase 0/3, 2/3 · preference 1/2, 0/2 · fact_update 3/3, 2/3 · project_context 3/3, 3/3 · expired 1/1, 0/1 · follow_up_beyond_window 1/1, 0/1 · follow_up_in_window 1/1, 1/1 · old_but_relevant 1/1, 0/1 · temporal_active 1/1, 0/1.

The stand-in's floor, swept on the 29 development requests (development / held-out matched recall, precision, irrelevant):

FloorDevelopmentHeld-out
0.600.88 / 0.92 / 90.87 / 0.90 / 20
0.650.81 / 0.97 / 40.85 / 0.93 / 11
0.700.81 / 0.98 / 20.87 / 0.97 / 5
0.750.67 / 0.98 / 20.76 / 0.97 / 5

By category, on the 29 development requests: requests where every relevant memory came back and nothing stale did.

Category (dev)RecencyLexicalHybridCategory (held-out)RecencyLexicalHybrid
expired / temporary0/22/22/2expired / temporary0/44/44/4
follow-up beyond the window0/11/11/1current conversation, early turns0/22/22/2
follow-up in the window1/11/11/1current conversation, recent turns0/22/22/2
irrelevant / abstain0/55/55/5unrelated / near miss0/66/66/6
old but relevant0/11/11/1old episode0/22/22/2
paraphrase2/30/32/3paraphrase0/31/32/3
episodic5/65/66/6project0/53/54/5

What this shows:

  • Relevance gating is the improvement. Precision rises from 0.22 / 0.09 to 0.97–0.98, irrelevant memories sent fall from ~200 to 2–5, and the block shrinks to a quarter or a third.

  • Supersession and expiry take stale recall to zero.

  • Words alone miss paraphrases ("what's my job?" against "data protection officer"); the dense leg is what finds them.

  • The recency baseline's development-set recall (0.76) is inflated by small banks, where "the newest eight" is half of everything.

Write policy

SetPrecisionRecallTurns sent for extraction
Held-out (100)0.830.6335%

The development figure is not to be believed. Its author wrote both the messages and the patterns, and the held-out set shows the gap. The misses are durable statements phrased in ways the patterns do not know: "Board meets quarterly…", "Our fiscal year runs April to March", "I use they/them pronouns". That is why triage's worth_remembering also sends a message for extraction. Its accuracy is unmeasured (it needs a model). The patterns were not re-tuned on the held-out set, which would have spent it.

Tests

SuiteResult
svc-core4,860 passed
fe-core (vitest)1,779 passed
svc-ai migrations on Postgres 16upgrade from empty, downgrade and upgrade, alembic check clean; migration 28's clean-up checked on seeded legacy rows

8. Trade-offs

Per substantive turn, tokens counted with cl100k_base:

BeforeAfterNote
Triage—+111 promptCacheable with the system prompt where the model's minimum allows
Quality check—+~260 prompt typically, at most ~1,000, when there is historyThe cost of D6's fix: the latest answer up to 1,200 characters, other messages 400
Extraction—one call on a cued or flagged turn: ~1.2–1.6K in, ~50–150 out, on the steps model35–50% of turns by the cue; triage adds an unmeasured share
Embeddings—≤1 at read (the request), 1 at writeAbout 330 tokens a turn: ~3 cents per thousand turns at the catalogue's Titan V2 price ($0.10 per million)
Latency—+1 embedding round trip before planning; extraction after the answer has streamed, before doneThe answer's tokens are not delayed; the stored turn is
Database1 query read, 1 insert2 queries + 1 update read; 1 transaction writeBounded scans (400 episodes, 200 curated)

Complexity added: one package (8 small modules), one migration, one svc-core service. Complexity not added is in the conclusions.

9. Security, privacy, migration and operations

  • Isolation, as listed for D3, with the store's SQL checked on Postgres: authorization.md#agent-memory.

  • Poisoning. Curated memories come only from the person's own quoted words, with documents removed and quoted text refused. Episodes are labelled as the assistant's summaries. The block is framed as notes, not instructions. A model-written episode may still carry what a web page said; it cannot become a fact or a preference.

  • Sensitive data. PII and credentials are never curated. Stored text is redacted by the Output rules and recalled text by the Input rules. Special categories (health, religion …) are kept out by the extraction prompt only, since pattern detection would refuse "I work in health insurance".

  • Erasure. Account deletion now reaches svc-ai. Embeddings are a column, so a deleted row leaves no vector behind.

  • Migration 28 runs at svc-ai startup. It adds nullable columns (and two with defaults), and strips old verdicts with one UPDATE … WHERE content ~ …. Existing rows become episodes with no embedding and no workspace: recalled by their words, staying with their agent. The downgrade drops the columns; the verdicts it removed are not restored.

  • Rows with no agent, from skill-graph turns and skill runs before this change, are never recalled again. They stay in the person's export and in "clear all" (by user), and are not deleted by the migration: they are the person's data.

  • Operations. The memory floor is provisional per embedder. Tune it with python -m tests.memory.report --embedder active once the deployment's embedder is reachable (about 130 short texts). Log lines to watch: [memory] could not embed, [memory] extraction failed, and the write node's kept episode + N memories (… dropped).

Next steps

In order:

  1. Measure follow-ups live (needs approval and room under the ceiling).

    • Load samples/evaluation/conversation-continuity.json as a dataset and Evaluate CHAINR Bot and one agent before and after deploying this change.

    • The verdicts compare like for like, since the agent's version does not change.

    • The figure is pass rate and revisions per case; revisions are in the decision record's steps.

    • The platform benchmark's turns:multi cases move with it.

  2. Tune floors.memory with the report against Titan V2 (deployed) and text-embedding-3-small (direct).

  3. Memory fixtures for evaluation cases (design): situation.memories, a list of {kind, text, recorded}, read-only, served by a fixture store for the run. Evaluations run with memory off, so today nothing measures whether recalled memory makes answers better. Fixtures would make preference adherence, irrelevant-memory resistance and stale-memory suppression gradable by the LLM judge, reproducibly. The plumbing is the same path tool_fixtures takes (dataset → context → agent_spec → svc-ai spec → engine).

  4. Measure extraction live. The write sets' kinds labels are the ground truth: run the extraction step on each durable message and score proposals against them, and the triage flag's precision and recall the same way.

  5. A separate quality-check model (D7), same provider as triage, adopted only when the gold datasets hold.

  6. Fewer revisions (D8): B2.3 measures Balanced's one revision against Thorough's two. The self-correction literature predicts little loss.

  7. Semantic de-duplication of curated memories at write, using the embedding already computed.

  8. Correct a memory in place from the memory page. Today a correction is made in chat, or by deleting it.

Conclusions

Which three changes are most likely to improve end-to-end conversation quality?

  1. Relevance-gated recall. It stops ~1,360 tokens of mostly irrelevant earlier turns going into every answering call. It has the strongest evidence: the distractor literature, and an offline precision of 0.22 / 0.09 → 0.97–0.98.

  2. The quality check reading the conversation. A context-blind check fails correct follow-ups and sends them to revision. The code shows it; the size of the effect is unmeasured.

  3. Curated memory from the person's own words, with preferences always recalled and corrections superseding. Before this, nothing durable about a person was kept at all, beyond turn logs.

The isolation, redaction and lifecycle fixes matter more than any of these, but as correctness and safety rather than quality.

Which memory improvements give the greatest measurable benefit?

  • Relevance gating: precision, irrelevant memories and tokens, in the tables above.

  • Supersession and expiry: stale recall 4 → 0 on the development set.

  • The dense leg: matched recall 0.67 → 0.81 and 0.76 → 0.87 with a stand-in embedder (the development figure on the 29 requests before the bot bank).

  • Episodes beyond the replayed window: every early-turn follow-up case now passes; recency passed none.

What should stay as it is, because the evidence does not justify more?

  • No graph or temporal-knowledge-graph memory (Zep).

  • No LLM update decision on every turn (Mem0). Full context beat Mem0 on accuracy in Mem0's own paper, and MemoryAgentBench finds that no system handles updates reliably.

  • No reranker call for memory, and no reflection or consolidation jobs.

  • No vector database for memory: per-person sets are small, and erasure stays one DELETE.

  • No cross-agent, person-wide memory: it would carry what a person said in one workspace into another.

  • No background memory writes: they would escape the turn's metering and spend limit.

  • No more revision rounds. Triage and the planner stay as they are until a benchmark run says otherwise.

What shows that the changes work?

  • The held-out ablation, the two-conversation graph test, the isolation tests, and the store and migration on a real Postgres.

  • What does not yet show it: any live answer-quality figure. The first deploy's benchmark run and the continuity sample (step 1) are the measurement. Until they are in, the quality claims above are about what reaches the model, not about what it writes.

Sources

Peer-reviewed unless marked.

  • Liu et al., Lost in the Middle, TACL 2024.

  • Shi et al., Large Language Models Can Be Easily Distracted by Irrelevant Context, ICML 2023.

  • Cuconasu et al., The Power of Noise, SIGIR 2024.

  • Yoran et al., Making Retrieval-Augmented Language Models Robust to Irrelevant Context, ICLR 2024.

  • Joren et al., Sufficient Context, ICLR 2025.

  • Asai et al., Self-RAG, ICLR 2024.

  • Yan et al., CRAG, arXiv 2401.15884 (preprint).

  • Jeong et al., Adaptive-RAG, NAACL 2024.

  • Park et al., Generative Agents, UIST 2023.

  • Packer et al., MemGPT, arXiv 2310.08560 (preprint).

  • Zhong et al., MemoryBank, AAAI 2024.

  • Xu et al., A-MEM, NeurIPS 2025.

  • Chhikara et al., Mem0, arXiv 2504.19413 (vendor preprint).

  • Rasmussen et al., Zep, arXiv 2501.13956 (vendor preprint).

  • An, Fidelity Before Structure, arXiv 2601.00821 (preprint, under review).

  • Xiong et al., How Memory Management Impacts LLM Agents, ACL 2026.

  • Maharana et al., LoCoMo, ACL 2024.

  • Wu et al., LongMemEval, ICLR 2025.

  • Hu et al., MemoryAgentBench, ICLR 2026.

  • Es et al., RAGAS, EACL 2024 demos.

  • Ru et al., RAGChecker, NeurIPS 2024 Datasets & Benchmarks.

  • Zheng et al., Judging LLM-as-a-Judge, NeurIPS 2023 Datasets & Benchmarks.

  • Panickssery et al., LLM Evaluators Recognize and Favor Their Own Generations, NeurIPS 2024.

  • Huang et al., Large Language Models Cannot Self-Correct Reasoning Yet, ICLR 2024.

  • Kamoi et al., When Can LLMs Actually Correct Their Own Mistakes?, TACL 2024.

  • Gou et al., CRITIC, ICLR 2024.

  • Schluntz & Zhang, Building Effective Agents, Anthropic 2024 (vendor blog).

  • Greshake et al., indirect prompt injection, AISec 2023.

  • Chen et al., AgentPoison, NeurIPS 2024.

  • Dong et al., MINJA, NeurIPS 2025.

  • OWASP Top 10 for LLM Applications 2025; OWASP Agentic AI Threats and Mitigations v1.1; OWASP Top 10 for Agentic Applications 2026 (standards).

  • Ma et al., Query Rewriting for Retrieval-Augmented LLMs, EMNLP 2023.

  • Mao et al., LLM4CS, Findings of EMNLP 2023.

  • LangGraph and LangMem memory documentation (docs).