Does Better Context Change Behaviour?
Chapter 1 defined memory behaviourally: remove the past, rerun the present task, and ask whether behaviour changed and whether the change was an improvement. Eleven chapters later, that test has never actually been run. Chapters 3 to 11 built a pipeline β retrieval, structure, association, routing, lineage, temporal state, open loops, frames, derived consequences β and measured each stage against ledgers of what the context contains. During development, a later assembly experiment, reported in Chapter 14, exposed the measurement anomaly that motivates the behavioural experiment reported here: at a 768-token budget the assembled context holds required-evidence recall of only 0.72 yet the reader answers at 0.955 key-claim coverage, better than the full raw context at 0.879. Either the ledger overstates what the task needs, or the reader answers without the evidence the book calls required, or the metric gives false confidence. Answer quality alone cannot distinguish those cases. This chapter builds the instrument that can.
A correct answer is not yet memory
A correct answer is compatible with four states of the world: the system used memory well, the system knew the answer already, the system guessed, or the system needed only part of what the ledger demands. The key-claim scorer cannot tell them apart. Neither can citation: a model can emit source identifiers it did not reason from. The only evidence that survives is interventional β hold the model, the task, the prompt and the decoding fixed, change only the memory supplied, and watch whether the structured behaviour changes and in which direction.
That gives the chapter its two separated measurements. Behavioural influence asks whether memory changed what the system did. Behavioural utility asks whether the change was better. A system can show influence without improvement, improvement without influence is impossible by definition, and a correct answer under both conditions demonstrates nothing about memory at all.
Tasks that require the past
Nine controlled tasks carry hidden behavioural ledgers written before any model ran, each with a frozen grader contract stating what earns full, partial and zero credit, what is forbidden, and what counts as equivalent. At least half depend on project-specific facts no model could know parametrically: the pgvector/HNSW/tsvector configuration of the baseline store, the reversibility rule that refuses a measured 0.474-to-0.464 mechanism, the four open loops blocking release, the contracted facade that must survive the corpus_import cleanup. And the tasks require application, not repetition β choosing a backend, holding a chapter, planning a migration β scored through a tiny deterministic project simulator whose transitions (including which actions count as harmful) are fixed in advance. The ninth fixture is the negative control: three present-state labels to echo exactly, where any behaviour change under memory is intrusion, not help.
The ladder
Every task runs the same reader (llama3.1:8b, temperature zero) under paired conditions that differ only in supplied memory. No-memory (B0) is the mandatory floor. Full visible history (B1, all 68 units across three projects) asks whether undifferentiated past helps, and a project-only control (B1P, the 57 Memory-project units) separates foreign-project contamination from unselected volume. Strong RAG (B2, frozen Chapter 10 C0) and frame-conditioned selection (B3, frozen C5) reprise the book’s own pipeline. Assembled memory (B4, the frozen A6 assembly output at 768 tokens whose construction is reported in Chapter 14) is the practical system. The auditable oracle (BO) is the diagnostic ceiling. Three interventions complete the ladder: decisive memory removed (BA), restored (BR), and deliberately wrong memory (BW) as a positive control for influence. A scrambled control (BS) replaces decisive evidence with distractors at matched shape. Frozen contexts are hashed; the runtime never sees a hidden label; repeats on three headline tasks test determinism.
Book result (frozen run
ch12-20260920T204414Z-behavior, grader v2, prompt v2, 9 tasks, 82 controlled outcomes, 3 repeats each on 3 tasks, plus a 76-outcome second-reader run and 10 time-locked transfer outcomes). Headline means are task-averaged over the seven tasks that run the full B0/B2/B3/B4/BO ladder, repeats averaged within task first β the only comparison in which every condition faces the same tasks:
condition success harmful tasks mean tokens
B0 no memory 0.226 0/7 β
B1 full history (68) 0.048 1/7 6242
B1P project-only (57) 0.179 0/7 5495
B2 strong RAG 0.393 0/7 2029
B3 frame-selected 0.357 0/7 1909
B4 assembled (768) 0.488 0/7 1180
BO oracle-auditable 0.524 0/7 1329
BA decisive removed 0.250* 1/6 1365
BR decisive restored 0.778* 0/6 1480
BW wrong memory 0.042* 2/4 120
BS scrambled 0.167* 0/2 1015
Starred rows run on intervention subsets (6, 6, 4, 2 tasks), not the matched seven. Parse rate is 75 of 82; all 7 failures sit in long unsectioned contexts (B1/B1P/B3/BA).
Four things in that table matter more than the headline.
Undifferentiated history hurts β and contamination is only half the story. Full 68-unit history across three projects scores 0.048 against 0.226 with nothing. Project-only history (57 Memory units, the B1P control) recovers to 0.179 β better than full history, still worse than nothing. Both history conditions sit below no-memory, so the earlier reading that only the full dump fails is false. Removing foreign projects repairs roughly half the loss; the remainder is volume without selection. So the Perfect Memory Paradox from Chapter 1 arrives as a number with its decomposition: preservation without selection is not memory but interference, and foreign-project contamination is one component of the interference, not the whole of it. Even perfectly scoped accumulation remains harmful without selection.
Better selection is not yet better behaviour. Strong RAG reaches 0.393, frame selection falls back to 0.357, assembly recovers to 0.488 at roughly three-fifths the tokens. Frame conditioning, which Chapter 10 showed improves context-selection metrics, does not improve downstream behaviour by itself here β on either reader (the second reader shows the same non-monotonicity: 0.524 β 0.452 β 0.643). That is a valuable finding, not a failure: better context-selection metrics do not automatically produce better downstream behaviour. The stronger end-to-end result is structured assembled memory over strong RAG over no memory, for both readers. Assembly recovers the behavioural advantage while using substantially less context β roughly 39% fewer tokens than selection on matched tasks. The layers interact non-additively: RAG establishes a strong retrieval baseline, frame-conditioned selection improves evidence properties without improving behaviour by itself, and bounded assembly over the framed evidence produces the best practical behavioural result. That non-additivity matters for later chapters. The oracle leads at 0.524, and restoration (0.778, over the 6 ablation-applicable matched tasks) tops even the oracle β returning the decisive item to an otherwise assembled context beats the ledger-minimum set, because the assembled context carries useful SHOULD-grade material the oracle strips.
Removal and restoration track. Across ablation-applicable tasks, removing decisive memory drops success to 0.250 and restoring it lifts success to 0.778. Three full MβMAβMR traces show the pattern individually: fix-store holds 1.0 across all three repeats, collapses to 0.333 with the postgres record stripped, and returns to 1.0 on restore; cite-rule goes 0.0 β 0.0 β 1.0, the restored decisive unit producing the book’s own rule identifier against two neighbour distractors; corpus-cleanup goes 0.833 β 0.0 β 0.833, the ablated run updating docs immediately and deleting the contracted facade. The reader’s behaviour depends on the specific remembered item, in both directions.
Wrong memory is influential and destructive. BW averages 0.042 with two harmful tasks out of four: the bare facade-deletion listing deletes the contracted facade (B6), and the stale SQLite record drives a SQLite configuration (B6 under grader v2, which records acting on superseded operational state as a harmful event). Full history also deletes the facade once. Most strikingly, removing decisive caller evidence (BA) lets the trap win too: the ablated cleanup run deletes the facade with B6 recorded. On fix-store the ladder is progressive rather than divergent: no-memory emits an unusable unknown backend (0.333), strong RAG and frame selection configure PostgreSQL partially (0.833 each), assembled and restored contexts configure it fully (1.0) β while deliberately wrong memory configures SQLite with B6 recorded. The failure-avoidance mechanism Chapter 8 built now has behavioural consequences, but in this run they appear at the wrong-memory extreme rather than between RAG and framing. The two directions together are the chapter’s result in miniature: correct memory can improve behaviour, and wrong memory can also control behaviour. A memory layer that decides what the model may see can cause the harmful action, not merely fail to prevent it. That is the positive control doing its job, and it is the bridge to Chapter 13: the system now has enough leverage to hurt the reader, so the next question is when it should trust its own framing that strongly.
Dimensions, not one number
Task success averages hide where memory helps. Reported separately, task-averaged over all tasks: constraint adherence moves 0.083 (B0) β 0.500 (B2/B3) β 0.583 (B4) β 0.600 (BO), and removal reverses it (0.250) while restoration completes it (0.750); open-work continuation moves 0.000 β 0.625 (B4) β 0.667 (BO), with restoration reaching 1.000 from 0.000 removed; failure avoidance is 1.000 everywhere except under project-only history, where a parse failure zeroes the single task, and under wrong memory, where the stale record wins (0.000); goal adherence moves 0.333 β 0.500 β 0.429, restoration lifting it to 0.714. Harmful actions are zero under no-memory, selection, assembly and oracle β and nonzero under full history, decisive-removed cleanup, and wrong memory. The book’s pipeline does not raise a single score; it raises constraint-following, continuation and avoidance while leaving the reader’s goal-directedness intact β and the negative control confirms the boundary: on the echo task, no-memory scores 1.0 while RAG and frame-selected context both go silent, abstaining (0.0 each) on the grounds that the labels are “not found in the evidence”. Memory that helps eight tasks hurts the ninth by displacing obedience to the present task: with evidence present, the reader treats the memory store as the source of truth and withholds the trivially correct echo.
The strict influence table over 73 paired comparisons reads: 14 full-success contributions, 2 harmful, 0 memory-not-necessary, 57 failed-to-repair. The last number needs the directional table beside it, because the strict table credits only perfect treated scores: across the same 73 pairs, structured actions change on all 73, scores improve on 32, degrade on 8, and stay equal on 33. A 0.00 β 0.75 move counts as failed-to-repair in the strict table and as improvement in the directional one; both are published, labelled for what they are. The honest majority is partial movement, not full success β memory moves behaviour on every pair, and moves it upward four times as often as down.
The 0.72 / 0.955 paradox, resolved
The anomaly that motivated this chapter dissolves into two findings, one about the ledger and one about the reader.
First, the ledger overstates necessity. On T1-architecture at A6@768, four of six MUST units are absent yet coverage is 1.0 β because the open-loop record mb-loop-ch10-experiment, unlabelled in that task’s ledger and therefore a distractor by default, carries the same actionable content (“no committed run”) as the missing MUST unit, alongside SHOULD-grade support for the remaining claims. The same substitution pattern covers the other high-coverage/low-recall tasks. This chapter confirms it behaviourally: review-arch under the identical 0.333-recall context holds the chapter for exactly the experiment-pending reason, scoring 1.0. The evidence was sufficient for the behaviour; the ledger was conservative about which units count. That is recorded as a ledger finding for the next benchmark version β alternative support between the loop record and the experiment-pending unit β not as a silent label edit, which the version rules forbid.
Second, the reader sometimes answers from partial evidence. At 768 tokens the composed policy protects disagreement and licences at the cost of required recall (0.72), yet answers better than the full context. That is not a contradiction once influence is measured: the protected structure carries the decision-relevant content even when MUST-counted units fall. Evidence sufficiency and reader sufficiency are different quantities, and the key-claim scorer measures only the second. Chapter 14’s headline stays valid within its bounds; it cannot be read as proof the missing evidence was unnecessary in general.
Two readers, one direction
A second reader (ministral-3:8b, 76 outcomes, no repeats) shows the same direction with different magnitudes on matched tasks: 0.000 β 0.524 (RAG) β 0.452 (selected) β 0.643 (assembled), oracle 0.536. Three reader-dependence findings stand out. First, the smaller reader starts from zero: it abstains without memory almost everywhere, so memory’s measured delta is larger even where its ceiling matches. Second, it is more suggestible: under wrong memory it follows the stale record, ships the unready chapter, and deletes the contracted facade twice over β and it deletes the facade even with no memory at all, where the primary reader holds. Memory teaches this reader restraint it does not have (assembled cleanup: facade intact, though migrations incomplete). Third, the ledger oracle is not a behavioural oracle for this reader: assembled context (0.643) beats the oracle (0.536) β the oracle strips SHOULD-grade material this reader actually uses. The instrument measures the memoryβreader interaction, not memory alone: the architecture supplies better evidence, but readers differ in floors, ceilings and suggestibility. The two readers are reported separately and never averaged.
Real-project transfer
Five time-locked repository questions at the frozen commit, manually adjudicated, scored separately from fixtures: which chapters have canonical runs, the fair-oracle gap in tokens, whether to promote the rejected drop revision, what the frame needs for misread tasks, and the repaired null-denominator rule. Memory-supplied answers average 0.95 against 0.35 without, per task: run-report 0.75/0.25 (one field wrong β the answer denies Chapter 14 a canonical run it has), fair-gap 1.0/0.0, promote-decision 1.0/1.0, frame-remedy 1.0/0.5, null-rule 1.0/0.0. The promote-decision task is non-diagnostic: its question states the breach, so rejection needs no memory (both conditions score 1.0). The null-rule task now works as designed: copying the 0.0 demonstration scores 0 without memory, stating explicit nulls scores 1.0 with it. Transfer is consistent with control, at small-n and with the disagreements that exist preserved in the frozen file.
What this chapter earns, and what it does not
Against the outcomes declared before the run, this is a Type A result on fixture evidence: on matched tasks, correct memory causes meaningful beneficial behavioural changes over no memory (0.226 β 0.488 assembled) and over strong RAG (0.393 β 0.488), removal drops success to 0.250 and restoration lifts it to 0.778, and the attribution traces name the decisive items. Full history scoring below no-memory (0.048 against 0.226) is the complementary Type A finding in the other direction: selection is what makes the past usable, and its absence is measurably harmful.
Five demotion clauses apply, and each is load-bearing. The fixtures are synthetic and few (9 controlled, 5 transfer); the primary reader is one small model with a second as transfer check only. One fixture is non-diagnostic (review-prose scores 0.0 under every condition including the oracle β the task does not separate conditions and is kept as a published instrument failure, not dropped). One task is behaviourally flat in v2 (credit-rule scores 0.0 under every condition including the oracle β without action demonstrations the reader abstains or omits the mechanism name everywhere, so the task measures format compliance rather than memory use; kept, not repaired after the fact). Repeats are deterministic on all three headline tasks (fix-store 3Γ1.0, ship-ch10 3Γ0.667, corpus-cleanup 3Γ0.833). Nothing here claims that memory improves behaviour in general; it claims that on memory-dependent controlled tasks, this reader acts better with structured project memory, and that targeted interventions attribute part of the improvement to specific remembered evidence.
What remains unsolved. The instrument now exists, and the first thing it reveals is how much behaviour it cannot yet explain: 57 of 73 pairs never reach full success under either condition, wrong memory is far worse on average (0.042) while being catastrophically worse in two cases, and the reader that benefits most is also the most suggestible. Chapter 12 establishes that memory can change behaviour beneficially, and that removing specific memories can reverse those gains. It also establishes the danger in the other direction: stale or inappropriate memory can produce destructive actions. Once memory has behavioural power, the next question is no longer merely which memories are relevant. It is when the system should trust its own framing strongly enough to let those memories control behaviour. That is Chapter 13 β When the Frame Is Wrong: whether memory can be made safer without being made weaker β the abstention path Chapter 10 specified but never built β and it now has a way to be measured.
Research foundations
The outside literature converges on the instrument rather than the mechanism. Mem2ActBench (Shen and colleagues, ACL 2026) draws the operative cut between remembering information and using memory to act, with tool tasks reverse-generated so the past is necessary by construction; this chapter’s memory-dependent fixtures follow the same rule in project form. MemoryArena (He and colleagues, 2026, preprint) couples acquisition with later use across interdependent sessions and reports that saturated recall collapses in agentic settings β the same direction as the 0.72/0.955 divergence, approached from the opposite side. CUB (HagstrΓΆm and colleagues, ACL 2026) supplies the warning this chapter heeds throughout: context present does not imply context used, and simple synthetic wins inflate. DRUID (HagstrΓΆm and colleagues, ACL 2025) motivates the real-project transfer: synthetic utilisation results overstate, so a small adjudicated set anchors the fixtures. LOCOMO-CONV (Chang and Chen, 2026, preprint) names the discrepancy class this chapter classifies as substitution β strong retrieval not translating into response quality, with silent grounding where memory helps without surfacing the gold fact. Agent Workflow Memory (Wang and colleagues, ICML 2025) and MemBench (Tan and colleagues, ACL Findings 2025) are precedent and background respectively: the former that remembered structure can move task success, the latter that effectiveness without a decision metric is not behaviour.
References
- Yiting Shen and colleagues, Mem2ActBench: A Benchmark for Evaluating Long-Term Memory Utilization in Task-Oriented Autonomous Agents (ACL 2026).
- Zexue He and colleagues, MemoryArena: Benchmarking Agent Memory in Interdependent Multi-Session Agentic Tasks (2026, preprint).
- Lovisa HagstrΓΆm and colleagues, CUB: Benchmarking Context Utilisation Techniques for Language Models (ACL 2026).
- Lovisa HagstrΓΆm and colleagues, A Reality Check on Context Utilisation for Retrieval-Augmented Generation (ACL 2025).
- Wen-Yu Chang and Yun-Nung Chen, When Users Don’t Ask: Benchmarking Context-Driven Memory Retrieval in Conversational Agents (2026, preprint).
- Zora Zhiruo Wang and colleagues, Agent Workflow Memory (ICML 2025).
- Haoran Tan and colleagues, MemBench: Towards More Comprehensive Evaluation on the Memory of LLM-based Agents (ACL Findings 2025).