SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.15903 · 2026

Control-Plane Placement Shapes Forgetting: An Architectural Study of Agent Memory Across Thirteen System Configurations

Dongxu Yang, Deeplethe

arXiv · PDF

Code that ran

8 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.15903.json · badge: /api/ran/2606.15903.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
deeplethe/lethe canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
build_corpus Ran
ran; our contract draft was wrong, not the code
deeplethe/lethe/bench/longmemeval_v1.py
code served (permissive licence) · get_code("fd1f0e39b5b74584")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    'entry': {
        'haystack_sessions': [
            [
                {'role': 'user', 'content': 'Hello, how are you?'},
                {'role': 'assistant', 'content': 'I am doing well.'},
                {'role': 'user', 'content': 'What is your name?'}
            ],
            [
                {'role': 'user', 'content': 'Tell me a story.'},
                {'role': 'assistant', 'content': 'Once upon a time...'},
                {'role': 'user', 'content': 'That was great!'}
            ]
        ],
        'haystack_session_ids': ['session_001', 'session_002']
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dcg Ran
ran; our contract draft was wrong, not the code
deeplethe/lethe/bench/mempalace_bench.py
code served (permissive licence) · get_code("d57d8272b00e38b9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

def dcg(relevances, k):
    """Discounted Cumulative Gain."""
    score = 0.0
    for i, rel in enumerate(relevances[:k]):
        score += rel / math.log2(i + 2)
    return score

# relevances should be an iterable of numeric values (relevance scores)
# k should be an integer specifying how many top items to consider
relevances = [3.0, 2.5, 2.0, 1.5, 1.0]
k = 3

ARGS = {
    "relevances": relevances,
    "k": k
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
evaluate_retrieval Ran
ran; our contract draft was wrong, not the code
deeplethe/lethe/bench/mempalace_bench.py
code served (permissive licence) · get_code("ebe9bc3f0edfb480")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

def dcg(relevances, k):
    """Discounted Cumulative Gain."""
    score = 0.0
    for i, rel in enumerate(relevances[:k]):
        score += rel / math.log2(i + 2)
    return score

def ndcg(rankings, correct_ids, corpus_ids, k):
    """Normalized DCG."""
    relevances = [1.0 if corpus_ids[idx] in correct_ids else 0.0 for idx in rankings[:k]]
    ideal = sorted(relevances, reverse=True)
    idcg = dcg(ideal, k)
    if idcg == 0:
        return 0.0
    return dcg(relevances, k) / idcg

def evaluate_retrieval(rankings, correct_ids, corpus_ids, k):
    """
    Evaluate retrieval at rank k.
    Returns (recall_any, recall_all, ndcg_score).
    """
    top_k_ids = set((corpus_ids[idx] for idx in rankings[:k]))
    recall_any = float(any((cid in top_k_ids for cid in correct_ids)))
    recall_all = float(all((cid in top_k_ids for cid in correct_ids)))
    ndcg_score = ndcg(rankings, correct_ids, corpus_ids, k)
    return (recall_any, recall_all, ndcg_score)


# Construct valid arguments for evaluate_retrieval
# rankings: list of indices into corpus_ids
# correct_ids: set/list of correct document ids
# corpus_ids: list mapping indices to document ids
# k: rank cutoff

rankings = [0, 2, 1, 3, 4]  # indices into corpus_ids
correct_ids = ["doc_A", "doc_C"]  # the correct document IDs we're looking for
corpus_ids = ["doc_A", "doc_B", "doc_C", "doc_D", "doc_E"]  # corpus mapping indices to IDs
k = 3  # evaluate at rank 3

ARGS = {
    "rankings": rankings,
    "correct_ids": correct_ids,
    "corpus_ids": corpus_ids,
    "k": k
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
event_hash Ran
ran; our contract draft was wrong, not the code
deeplethe/lethe/lethe/receipt.py
code served (permissive licence) · get_code("f3c18e8e3e3f6a84")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bytes. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import hashlib

# Construct a valid event_row tuple
# Format: (id, memory_id, kind, depth_before, depth_after, timestamp, meta_json)
event_row = (
    1,                    # eid (id)
    42,                   # mid (memory_id)
    "event_type_A",       # kind
    5,                    # db (depth_before)
    7,                    # da (depth_after)
    1234567890.123456,    # ts (timestamp as float)
    '{"key": "value"}'    # meta (meta_json as string)
)

ARGS = {
    "event_row": event_row
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
hash_embed Ran
ran, honoured the contract we drafted
deeplethe/lethe/lethe/embed.py
code served (permissive licence) · get_code("d427fe99ed18f29a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import hashlib
import math

ARGS = {
    'text': 'hello world',
    'dim': 768
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
merkle_root Ran
ran; our contract draft was wrong, not the code
deeplethe/lethe/lethe/receipt.py
code served (permissive licence) · get_code("415a06339dd16f10")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bytes. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import hashlib

# Construct valid arguments for merkle_root
# The function takes a list of bytes objects and builds a binary Merkle tree

# Create some test leaf nodes as bytes
leaf1 = hashlib.sha256(b"leaf1").digest()  # 32 bytes
leaf2 = hashlib.sha256(b"leaf2").digest()  # 32 bytes
leaf3 = hashlib.sha256(b"leaf3").digest()  # 32 bytes
leaf4 = hashlib.sha256(b"leaf4").digest()  # 32 bytes

# Test case 1: Multiple leaves
leaves_multiple = [leaf1, leaf2, leaf3, leaf4]

ARGS = {
    "leaves": leaves_multiple
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ndcg Ran
ran; our contract draft was wrong, not the code
deeplethe/lethe/bench/mempalace_bench.py
code served (permissive licence) · get_code("9257acfb3b218b9c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

def dcg(relevances, k):
    """Discounted Cumulative Gain."""
    score = 0.0
    for i, rel in enumerate(relevances[:k]):
        score += rel / math.log2(i + 2)
    return score

def ndcg(rankings, correct_ids, corpus_ids, k):
    """Normalized DCG."""
    relevances = [1.0 if corpus_ids[idx] in correct_ids else 0.0 for idx in rankings[:k]]
    ideal = sorted(relevances, reverse=True)
    idcg = dcg(ideal, k)
    if idcg == 0:
        return 0.0
    return dcg(relevances, k) / idcg

# Setup code to construct valid arguments
rankings = [0, 2, 1, 3]
correct_ids = {0, 2}
corpus_ids = {0: "doc_0", 1: "doc_1", 2: "doc_2", 3: "doc_3"}
k = 3

ARGS = {
    "rankings": rankings,
    "correct_ids": correct_ids,
    "corpus_ids": corpus_ids,
    "k": k,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
text_hash Ran
ran; our contract draft was wrong, not the code
deeplethe/lethe/lethe/receipt.py
code served (permissive licence) · get_code("a6f0526eda6349a3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import hashlib

ARGS = {
    "text": "Hello, World!"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fastembed_local Not yet run
unverified (harvested, no recorded run)
deeplethe/lethe/lethe/embed.py
code served (permissive licence) · get_code("da55ed7f0bc22720")
How it ran

no invocation recorded.

ingest Not yet run
unverified (harvested, no recorded run)
deeplethe/lethe/lethe/ingest.py
code served (permissive licence) · get_code("836dd53dde05d82d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Where an LLM sits in an agent memory pipeline -between the recall plane that retrieves stored facts (extensively benchmarked) and the control plane that mutates them via supersede, release, purge (largely untested) -shapes which forgetting failure modes the system recovers. Comparing thirteen system configurations on a common 385-case adversarial surface (four deterministic, two veconly, two inscribe-LLM, two KG-abstraction, one inscribe+mutation joint, two mutation-LLM hook backends) -we observe three placement regimes with partly complementary coverage: deterministic primitives suffice for lexical/temporal categories but fail canonicalization (≤5 % on identifier-obfuscation, 0 % on cross-lingual); inscribe-time LLM recovers canonicalization (100 %) but cannot help intent-aware deletion (0 % on prefix-collision and compound-fact); a mutation-time hook recovers intent-aware deletion (78-85 %) and brightens nearly all categories simultaneously: a capability lift of +22.6 to +24.1 pt on the 345 non-primitive-existence cases (deterministic 70.1-70.7 % → hook 93.3-94.2 %), plus ∼+6 pt from edit-primitive availability on compound_fact (headline overall 91.7-93.2 %); ∼$0.17 per 385-case run, mutation latency ∼2.3 s/case vs. 64-191 ms/case deterministic, recall hot path unchanged.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.15903")
get_code_for_paper("2606.15903")
have("2606.15903")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.15903.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.15903.svg)](https://syntology.ai/paper/2606.15903)

Connect an agent — have() is free.