Beyond Context Windows: Persistent Discovery Context for Data-Centric Agents
Summary
This paper introduces persistent discovery context, a lightweight memory layer for data-centric agents that stores prior intent-to-object mappings to enhance retrieval quality across tasks, demonstrating improvements in structured data environments.
View Cached Full Text
Cached at: 09/03/26, 06:01 AM
# Persistent Discovery Contextfor Data-Centric Agents
Source: [https://arxiv.org/html/2609.02129](https://arxiv.org/html/2609.02129)
## Beyond Context Windows: Persistent Discovery Context for Data\-Centric Agents
Jalal Mahmud
###### Abstract
Data\-centric agents repeatedly perform a discovery step before planning or execution: identifying the data objects relevant to a task\. Yet successful discovery outcomes are typically discarded rather than reused\. We introduce*persistent discovery context*, a lightweight memory layer that stores prior intent\-to\-object mappings and reuses them to augment future retrieval\. Across three structured data environments, persistent discovery context consistently improves retrieval quality over metadata\-only search, remains effective with automatically generated memories, and exposes a reproducible interference failure mode\. In lexically sparse domains, memory\-only retrieval can even outperform metadata\-based retrieval\. These findings suggest that discovery outcomes constitute a useful form of reusable context for data\-centric agents\.
## 1Introduction
Agent memory systems store conversations\([Packer et al\., 2023](https://arxiv.org/html/2609.02129#bib.bib1)\), observations\([Park et al\., 2023](https://arxiv.org/html/2609.02129#bib.bib4)\), executable skills\([Wang et al\., 2024](https://arxiv.org/html/2609.02129#bib.bib5)\), and reusable workflows\([Wang et al\., 2025](https://arxiv.org/html/2609.02129#bib.bib6)\)\. These mechanisms help agents retain information across tasks and sessions\. Data\-centric agents face a different challenge: before planning or execution, they must determine which data objects are relevant to a task\. Although many tasks require similar tables and attributes, discovery is typically treated as a per\-task operation\. Relevant objects are identified, used once, and discarded rather than retained as reusable context\. This raises a simple question:*Should successful discovery outcomes persist across tasks?*
We define a discovery outcome as a mapping between a task intent and the data objects that proved useful for accomplishing that task\. Existing metadata catalogs and schema\-linking methods support discovery\([, 2026](https://arxiv.org/html/2609.02129#bib.bib18);[Yu et al\., 2018](https://arxiv.org/html/2609.02129#bib.bib17);[Wang et al\., 2020](https://arxiv.org/html/2609.02129#bib.bib16);[Pourreza and Rafiei, 2023](https://arxiv.org/html/2609.02129#bib.bib15)\)but do not preserve successful discovery outcomes across tasks\.
To address this gap, we introduce*persistent discovery context*, a lightweight memory layer that stores prior intent\-to\-object mappings and reuses them to augment future retrieval\. We evaluate the approach on three real\-world structured data environments across 125 held\-out tasks\. Our findings arefourfold\. First, persistent discovery context consistently improves retrieval quality over metadata\-only retrieval across all three domains\. Second, the approach remains effective when initialized with LLM\-generated memories, showing that useful gains can still be obtained despite imperfect memory construction\. Third, we identify a reproducible interference failure mode in which semantically related but incorrect memories degrade retrieval quality\. We additionally observe that in lexically sparse domains, memory\-only retrieval can outperform metadata\-based retrieval, suggesting that accumulated discovery experience can sometimes provide a stronger signal than object descriptions alone\.
## 2Persistent Discovery Context
We assume a registry of data objects \(tables and attributes\) augmented with natural\-language metadata\. Registry search retrieves candidate objects using standard text\-based retrieval over this metadata\.
Discovery Memory\.A discovery memorym=⟨intent,objects⟩m=\\langle\\texttt\{intent\},\\;\\texttt\{objects\}\\ranglerecords a prior mapping between a natural\-language task description and the set of data objects that proved relevant\. Discovery memories are persisted at the registry level and accumulate across tasks within the same data environment\. Memories are created from prior discovery outcomes and reused across related tasks\.
Memory\-Augmented Retrieval\.Given a queryqq, registry retrieval produces a relevance scorer\(q,oi\)r\(q,o\_\{i\}\)for each candidate objectoio\_\{i\}\. We then retrieve the most similar discovery memories and use them to augment object rankings\.
score\(q,oi\)=r\(q,oi\)\+α∑m∈top\-Kmsim\(q,m\.intent\)⋅𝟏\[oi∈m\.objects\]\\text\{score\}\(q,o\_\{i\}\)=r\(q,o\_\{i\}\)\+\\alpha\\sum\_\{m\\in\\text\{top\-\}K\_\{m\}\}\\text\{sim\}\(q,m\.\\texttt\{intent\}\)\\cdot\\mathbf\{1\}\[o\_\{i\}\\in m\.\\texttt\{objects\}\]\(1\)
whereα\\alphacontrols the influence of memory and𝟏\[oi∈m\.objects\]\\mathbf\{1\}\[o\_\{i\}\\in m\.\\texttt\{objects\}\]indicates whether objectoio\_\{i\}appeared in a retrieved memory\. Settingα=0\\alpha=0recovers standard registry search\. Settingr\(q,oi\)=0r\(q,o\_\{i\}\)=0yields a memory\-only ranker \(S2\)\.
## 3Experiment
### Datasets and Tasks
We evaluate on three real\-world structured data environments from structurally distinct domains\.
Finance\.Czech PKDD’99 banking dataset\([Berka and Bruha, 1999](https://arxiv.org/html/2609.02129#bib.bib7)\): 6 tables, 42 attributes covering client accounts, transactions, and loans\.
NYC Collisions\.NYPD Motor Vehicle Collisions\([New York City Open Data, 2025](https://arxiv.org/html/2609.02129#bib.bib2)\): 3 tables, 41 attributes covering crash\-, vehicle\-, and person\-level records\.
Northwind\.Microsoft Northwind Traders\([Microsoft, 2025](https://arxiv.org/html/2609.02129#bib.bib3)\): 8 tables, 43 attributes covering customers, orders, products, employees, suppliers, and categories\.
For each domain, we construct a registry augmented with natural\-language descriptions manually authored from schema names, relationships, and dataset documentation\. The same descriptions are used across all retrieval conditions\. We organize tasks into 15 task families \(5 per domain\)\. Each family groups queries that share the same relevant data objects but vary in surface vocabulary, defined thematically based on domain knowledge \(e\.g\.,transaction\_behavior,loan\_risk,injury\_severity\)\. Each family contains one seed task used to initialize discovery memory and a set of held\-out evaluation tasks, ranging from 5 to 12 tasks per family\. To estimate sensitivity to seed selection, we additionally perform a leave\-one\-out \(LOO\) rotation in which every task within a family serves as the seed in turn; results are reported in Appendix[G](https://arxiv.org/html/2609.02129#A7)\. Across all domains, the benchmark contains 140 tasks, comprising 125 held\-out evaluation tasks and 15 seed tasks\. We additionally construct three interference tasks used only for the analysis in Table[2](https://arxiv.org/html/2609.02129#S3.T2)\. Each task is manually annotated with 3–5 relevant data objects\.
### Experimental Conditions
We compare four retrieval settings:
- •S0: Raw Metadata\.Search over object names only\.
- •S1: Registry\.Search over object names and descriptions\.
- •S2: Memory\.Objects ranked using discovery memory alone, without registry retrieval \(i\.e\.,r\(q,oi\)=0r\(q,o\_\{i\}\)=0in Equation[1](https://arxiv.org/html/2609.02129#S2.E1)\)\.
- •S3: Registry\+Memory\.S1 augmented with discovery memory \(Eq\.[1](https://arxiv.org/html/2609.02129#S2.E1)\)\.
Unless otherwise noted, S0–S3 use TF\-IDF retrieval\. Memory similarity uses the same retrieval model as the registry retriever\. We setKm=5K\_\{m\}\{=\}5; since each domain has 5 task families with one seed memory each, this retrieves all stored memories weighted by similarity\. To evaluate retriever independence, we also evaluate S1, S2, and S3 using a neural retriever based onall\-MiniLM\-L6\-v2sentence embeddings\([Reimers and Gurevych, 2019](https://arxiv.org/html/2609.02129#bib.bib8)\); these conditions are denoted S1⋆, S2⋆, and S3⋆\. We additionally evaluate all conditions \(S0–S3\) with BM25 as an alternative lexical retriever and compare against a naive\-injection variant \(S4\); both are reported in Appendix[H](https://arxiv.org/html/2609.02129#A8)and Appendix[F](https://arxiv.org/html/2609.02129#A6)\. To test robustness to imperfect memories, we replace the manually annotated intent\-to\-object mappings used to initialize discovery memory with mappings generated automatically by Claude Haiku \(Appendix[C](https://arxiv.org/html/2609.02129#A3)\)\.
Table 1:F1@5 on held\-out evaluation tasks\. Unstarred: TF\-IDF;⋆: neural \(all\-MiniLM\-L6\-v2\)\. Memory conditions useα=0\.5\\alpha=0\.5\. Full metrics in Appendix[B](https://arxiv.org/html/2609.02129#A2); LOO robustness in Appendix[G](https://arxiv.org/html/2609.02129#A7)\.
### Main Results
Table[1](https://arxiv.org/html/2609.02129#S3.T1)summarizes the results\.
Persistent discovery context improves retrieval\.Adding discovery memory \(S3\) improves F1@5 across all three domains using TF\-IDF retrieval: finance0\.396→0\.4990\.396\\to 0\.499\(\+0\.103\+0\.103\), NYC collisions0\.299→0\.4820\.299\\to 0\.482\(\+0\.183\+0\.183\), and Northwind0\.446→0\.5280\.446\\to 0\.528\(\+0\.082\+0\.082\)\. Appendix[I](https://arxiv.org/html/2609.02129#A9)illustrates the downstream impact on agent planning quality\. The largest gain occurs in NYC collisions \(\+0\.183\+0\.183from S1 to S3 vs\.\+0\.072\+0\.072from S0 to S1\), suggesting that memory compensates for lexical mismatches that metadata descriptions alone cannot resolve\.
With neural retrieval, memory improves F1@5 by\+0\.167\+0\.167in finance,\+0\.119\+0\.119in Northwind, and\+0\.051\+0\.051in NYC collisions, where the neural base retriever is already strong \(S1⋆MRR=0\.848\\mathrm\{MRR\}=0\.848; Appendix[B](https://arxiv.org/html/2609.02129#A2)\)\. The smaller gain in NYC is consistent with the neural retriever already resolving much of the lexical opacity that discovery memory compensates for in the TF\-IDF setting\. This pattern is confirmed by the memory\-weight ablation \(Appendix[E](https://arxiv.org/html/2609.02129#A5)\), which shows that lowerα\\alphavalues perform better when the base retriever leaves less room for memory to contribute\.
Memory alone is informative in lexically sparse domains\.Under TF\-IDF retrieval, S2 \(Memory only\) surpasses S1 \(Registry\) in NYC collisions \(0\.4120\.412vs\.0\.2990\.299\), showing that the memory signal alone outperforms metadata search when attribute names are compound and lexically opaque \(e\.g\.,contributing\_factor\_vehicle\_1\)\. In finance and Northwind under TF\-IDF, S1 remains stronger than S2, so combining both signals \(S3\) is necessary to benefit from memory\. Under neural retrieval the pattern partially inverts: S2⋆outperforms S1⋆in finance \(0\.5330\.533vs\.0\.4270\.427\) and Northwind \(0\.4940\.494vs\.0\.4800\.480\), while S1⋆remains stronger in NYC collisions \(0\.4350\.435vs\.0\.4180\.418\)\.
Memory gains are not uniform across task families\. Families with distinctive object vocabularies \(e\.g\., temporal analysis or transaction behavior\) benefit most from discovery memory, while families whose objects recur across multiple task types exhibit near\-zero or negative gains \(Appendix[D](https://arxiv.org/html/2609.02129#A4)\)\.
LLM\-generated memories remain useful\.Automatically generated memories achieve object\-level agreement \(F1\) of 0\.698, 0\.762, and 0\.735 \(finance, NYC, Northwind\) against manually annotated discovery memories\. Retrieval still outperforms S1 in two domains \(F1@5=0\.433\\mathrm\{F1@5\}=0\.433vs\.0\.3960\.396in finance;0\.4520\.452vs\.0\.2990\.299in NYC\) and remains above S0 in all three, indicating robustness to imperfect memory construction \(Appendix[C](https://arxiv.org/html/2609.02129#A3)for details\)\.
### Negative Result: Cross\-Family Interference
Table[2](https://arxiv.org/html/2609.02129#S3.T2)illustrates a consistent failure mode across all three domains\. When a semantically similar but incorrect discovery memory is activated, retrieval quality falls below the no\-memory baseline\. For example, in finance, the term*withdrawal*can activate a transaction\-behavior memory when the task actually concerns loan analysis\. In NYC collisions,*vehicle type*can activate a vehicle\-profile memory when the task concerns injury analysis\. Similar effects occur in Northwind, where order\-related vocabulary appears across multiple task families\. These results show that discovery memory is not universally beneficial\. Surface\-level vocabulary overlap can activate incorrect memories and distort rankings when the appropriate task family has not yet been observed\. This failure mode motivates future work on memory selection, confidence estimation, and interference\-aware retrieval\.
Table 2:Cross\-family interference\. Each task is evaluated under S1 \(no memory\), S3 seeded with an incorrect family memory, and S3 seeded with the correct family memory\.
## 4Related Work
Agent memory systems store reusable artifacts such as conversational context and knowledge \(MemGPT\)\([Packer et al\., 2023](https://arxiv.org/html/2609.02129#bib.bib1)\), observations and reflections \(Generative Agents\)\([Park et al\., 2023](https://arxiv.org/html/2609.02129#bib.bib4)\), executable skills \(Voyager\)\([Wang et al\., 2024](https://arxiv.org/html/2609.02129#bib.bib5)\), and workflows \(Agent Workflow Memory\)\([Wang et al\., 2025](https://arxiv.org/html/2609.02129#bib.bib6)\)\. AgentSM\([Biswal et al\., 2026](https://arxiv.org/html/2609.02129#bib.bib12)\)and MERIT\([Wang et al\., 2026](https://arxiv.org/html/2609.02129#bib.bib9)\)extend memory to data\-centric agents by storing execution experience for schema reasoning, planning, and SQL generation\. In contrast, we study a smaller memory artifact: discovery memory, represented as reusable intent\-to\-object mappings\. Rather than storing trajectories or reasoning processes, discovery memory records which data objects proved relevant for a task and evaluates these discovery outcomes as a retrieval problem \(R@5, MRR, F1@5\) rather than through downstream planning, SQL generation, or execution\.
Our work is also related to schema linking and Text\-to\-SQL\([Yu et al\., 2018](https://arxiv.org/html/2609.02129#bib.bib17);[Wang et al\., 2020](https://arxiv.org/html/2609.02129#bib.bib16);[Pourreza and Rafiei, 2023](https://arxiv.org/html/2609.02129#bib.bib15)\), knowledge\-augmented SQL systems such as KAT\-SQL\([Baek et al\., 2025](https://arxiv.org/html/2609.02129#bib.bib10)\), metadata catalogs such as DataHub\([, 2026](https://arxiv.org/html/2609.02129#bib.bib18)\), and data\-discovery systems such as Starmie\([Fan et al\., 2023](https://arxiv.org/html/2609.02129#bib.bib11)\)\. These systems focus on schema linking, reasoning, query generation, metadata management, or learning better object representations\. In contrast, we investigate whether successful discovery outcomes themselves should persist as reusable intent\-to\-object mappings across tasks\.
The closest conceptual connection is relevance feedback\([Rocchio, 1971](https://arxiv.org/html/2609.02129#bib.bib14);[Salton and Buckley, 1990](https://arxiv.org/html/2609.02129#bib.bib13)\), which reuses historical relevance signals to improve future retrieval\. Discovery memory differs in that it operates on agent\-generated object selections rather than user interaction signals, transfers across semantically related but lexically distinct tasks rather than refining a single query, and captures reusable mappings between task intents and sets of structured objects rather than document\-level relevance\.
## 5Discussion and Conclusion
Across three structurally distinct domains, persistent discovery context consistently improves retrieval quality over metadata\-only search across both lexical and neural retrievers and remains effective with automatically generated memories\. These findings suggest that successful discovery outcomes constitute a reusable memory artifact that complements conversation, experience, and workflow memory for data\-centric agents\.
The primary limitation is memory interference: semantically similar but incorrect memories can degrade retrieval below the no\-memory baseline\. Future work includes interference\-aware memory selection, memory aging, larger\-scale evaluation across more domains and tasks, and evaluation using agent\-generated discovery traces\. More broadly, these findings suggest that agent memory may extend beyond conversations and workflows to include reusable knowledge about how to navigate complex data environments\.
## References
- Baeket al\.\(2025\)J\. Baek, H\. Samulowitz, O\. Hassanzadeh, D\. Subramanian, S\. Shirai, A\. Gliozzo, and D\. BhattacharjyaKnowledge base construction for knowledge\-augmented text\-to\-sql\.InFindings of the Association for Computational Linguistics: ACL 2025,Vienna, Austria,pp\. 26569–26583\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.findings-acl.1363)Cited by:[§4](https://arxiv.org/html/2609.02129#S4.p2.1)\.
- Berka and Bruha \(1999\)P\. Berka and I\. BruhaThe PKDD’99 discovery challenge: understanding financial data\.Discovery Challenge Workshop Notes, PKDD\.Cited by:[§3](https://arxiv.org/html/2609.02129#S3.SS0.SSS0.Px1.p2.1)\.
- Biswalet al\.\(2026\)A\. Biswal, C\. Lei, X\. Qin, A\. Li, B\. Narayanaswamy, and T\. KraskaAgentSM: semantic memory for agentic text\-to\-sql\.arXiv preprint arXiv:2601\.15709\.Cited by:[§4](https://arxiv.org/html/2609.02129#S4.p1.1)\.
- \[4\]\(2026\)DataHub: the metadata platform for the modern data stack\.DataHub Project\.Note:[https://datahubproject\.io/](https://datahubproject.io/)Accessed: 2026\-06\-16Cited by:[§1](https://arxiv.org/html/2609.02129#S1.p2.1),[§4](https://arxiv.org/html/2609.02129#S4.p2.1)\.
- Fanet al\.\(2023\)G\. Fan, J\. Wang, Y\. Li, D\. Zhang, and R\. J\. MillerSemantics\-aware dataset discovery from data lakes with contextualized column\-based representation learning\.Proceedings of the VLDB Endowment \(PVLDB\)16\(7\),pp\. 1545–1558\.External Links:[Document](https://dx.doi.org/10.14778/3598581.3598589)Cited by:[§4](https://arxiv.org/html/2609.02129#S4.p2.1)\.
- Microsoft \(2025\)MicrosoftNorthwind sample database\.Note:[https://learn\.microsoft\.com/en\-us/dotnet/framework/data/adonet/sql/linq/downloading\-sample\-databases](https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/sql/linq/downloading-sample-databases)Accessed 2026Cited by:[§3](https://arxiv.org/html/2609.02129#S3.SS0.SSS0.Px1.p4.1)\.
- New York City Open Data \(2025\)New York City Open DataMotor vehicle collisions – crashes\.Note:[https://data\.cityofnewyork\.us/](https://data.cityofnewyork.us/)Accessed 2026Cited by:[§3](https://arxiv.org/html/2609.02129#S3.SS0.SSS0.Px1.p3.1)\.
- Packeret al\.\(2023\)C\. Packer, S\. Wooders, K\. Lin, V\. Fang, S\. G\. Patil, I\. Stoica, and J\. E\. GonzalezMemGPT: towards LLMs as operating systems\.arXiv preprint arXiv:2310\.08560\.Cited by:[§1](https://arxiv.org/html/2609.02129#S1.p1.1),[§4](https://arxiv.org/html/2609.02129#S4.p1.1)\.
- Parket al\.\(2023\)J\. S\. Park, J\. C\. O’Brien, C\. J\. Cai, M\. R\. Morris, P\. Liang, and M\. S\. BernsteinGenerative agents: interactive simulacra of human behavior\.InProceedings of the 36th Annual ACM Symposium on User Interface Software and Technology \(UIST\),Cited by:[§1](https://arxiv.org/html/2609.02129#S1.p1.1),[§4](https://arxiv.org/html/2609.02129#S4.p1.1)\.
- Pourreza and Rafiei \(2023\)M\. Pourreza and D\. RafieiDIN\-sql: decomposed in\-context learning of text\-to\-sql with self\-correction\.InAdvances in Neural Information Processing Systems,Cited by:[§1](https://arxiv.org/html/2609.02129#S1.p2.1),[§4](https://arxiv.org/html/2609.02129#S4.p2.1)\.
- Reimers and Gurevych \(2019\)N\. Reimers and I\. GurevychSentence\-BERT: sentence embeddings using Siamese BERT\-networks\.InProceedings of EMNLP,Cited by:[§3](https://arxiv.org/html/2609.02129#S3.SS0.SSS0.Px2.p3.1)\.
- Rocchio \(1971\)J\. J\. RocchioRelevance feedback in information retrieval\.InThe SMART Retrieval System,Cited by:[§4](https://arxiv.org/html/2609.02129#S4.p3.1)\.
- Salton and Buckley \(1990\)G\. Salton and C\. BuckleyImproving retrieval performance by relevance feedback\.Journal of the American Society for Information Science41\(4\),pp\. 288–297\.Cited by:[§4](https://arxiv.org/html/2609.02129#S4.p3.1)\.
- Wanget al\.\(2020\)B\. Wang, R\. Shin, X\. Liu, O\. Polozov, and M\. RichardsonRAT\-sql: relation\-aware schema encoding and linking for text\-to\-sql parsers\.InProceedings of the 58th Annual Meeting of the Association for Computational Linguistics,pp\. 7567–7578\.Cited by:[§1](https://arxiv.org/html/2609.02129#S1.p2.1),[§4](https://arxiv.org/html/2609.02129#S4.p2.1)\.
- Wanget al\.\(2024\)G\. Wang, Y\. Xie, Y\. Jiang, A\. Mandlekar, C\. Xiao, Y\. Zhu, L\. Fan, and A\. AnandkumarVoyager: an open\-ended embodied agent with large language models\.Transactions on Machine Learning Research\.Cited by:[§1](https://arxiv.org/html/2609.02129#S1.p1.1),[§4](https://arxiv.org/html/2609.02129#S4.p1.1)\.
- Wanget al\.\(2026\)Y\. Wang, N\. L\. Kuang, P\. S\. Yu, Z\. Yao, and Y\. HeLearning to retrieve: dual\-level long\-term memory for text\-to\-sql agents\.arXiv preprint arXiv:2606\.00547\.Cited by:[§4](https://arxiv.org/html/2609.02129#S4.p1.1)\.
- Wanget al\.\(2025\)Z\. Z\. Wang, J\. Mao, D\. Fried, and G\. NeubigAgent workflow memory\.InProceedings of the 42nd International Conference on Machine Learning,Cited by:[§1](https://arxiv.org/html/2609.02129#S1.p1.1),[§4](https://arxiv.org/html/2609.02129#S4.p1.1)\.
- Yuet al\.\(2018\)T\. Yu, R\. Zhang, K\. Yang, M\. Yasunaga, D\. Wang, Z\. Li, J\. Ma, I\. Li, Q\. Yao, S\. Roman, Z\. Zhang, and D\. RadevSpider: a large\-scale human\-labeled dataset for complex and cross\-domain semantic parsing and text\-to\-sql task\.InProceedings of the 2018 Conference on Empirical Methods in Natural Language Processing,Brussels, Belgium,pp\. 3911–3921\.External Links:[Document](https://dx.doi.org/10.18653/v1/D18-1425)Cited by:[§1](https://arxiv.org/html/2609.02129#S1.p2.1),[§4](https://arxiv.org/html/2609.02129#S4.p2.1)\.
## Appendix ADataset and Registry Statistics
The finance registry contains 6 tables and 42 attributes\. The NYC collisions registry contains 3 tables and 41 attributes\. The Northwind registry contains 8 tables and 43 attributes\.
Across three domains we construct 140 tasks in total: 125 held\-out evaluation tasks organized into 15 task families \(5 per domain\), and 15 seed tasks \(one per family\) used only to populate discovery memory\. We additionally construct 3 cross\-family interference tasks \(one per domain\)\.
## Appendix BFull Retrieval Results
Table[3](https://arxiv.org/html/2609.02129#A2.T3)reports R@5, R@10, MRR, and F1@5 for all conditions\. The F1@5 column matches Table[1](https://arxiv.org/html/2609.02129#S3.T1)in the main paper\.
Table 3:Full retrieval results on held\-out evaluation tasks\. Unstarred: TF\-IDF;⋆: neural \(all\-MiniLM\-L6\-v2\)\. All memory conditions useα=0\.5\\alpha=0\.5\.
## Appendix CLLM\-Generated Discovery Memories
To evaluate robustness to imperfect memories, we replace manually annotated discovery memories with memories generated automatically by Claude Haiku\. For each seed task, the model receives the task description and registry contents and is asked to identify the relevant data objects\.
Generated memories are evaluated against manually annotated discovery memories using object\-level F1\. We then use the generated memories to initialize discovery memory and measure downstream retrieval F1@5:
- •Finance: memory agreementF1=0\.698\\mathrm\{F1\}=0\.698; S3F1@5=0\.433\\mathrm\{F1@5\}=0\.433vs\. S1F1@5=0\.396\\mathrm\{F1@5\}=0\.396
- •NYC Collisions: memory agreementF1=0\.762\\mathrm\{F1\}=0\.762; S3F1@5=0\.452\\mathrm\{F1@5\}=0\.452vs\. S1F1@5=0\.299\\mathrm\{F1@5\}=0\.299
- •Northwind: memory agreementF1=0\.735\\mathrm\{F1\}=0\.735; S3F1@5=0\.435\\mathrm\{F1@5\}=0\.435vs\. S1F1@5=0\.446\\mathrm\{F1@5\}=0\.446
Finance and NYC show clear improvement over registry\-only search\. Northwind LLM memories do not improve over S1, reflecting noisier object selections in a domain with higher cross\-entity vocabulary overlap \(e\.g\., order\-related terms appearing across multiple task families\)\.
Across all three domains, retrieval quality remains above the raw\-metadata baseline \(S0\), indicating robustness to imperfect memory construction\.
## Appendix DPer\-Family Analysis
Memory gains are not uniform across task families\.
Figure 1:F1@5 improvement \(S1→\\rightarrowS3\) by task family\.Families with distinctive object vocabularies benefit most from discovery memory\. The top three families—temporal analysis \(\+0\.34\+0\.34\), supply chain \(\+0\.26\+0\.26\), and transaction behavior \(\+0\.26\+0\.26\)—show the largest gains, while families such as loan risk \(\+0\.19\+0\.19\) and account activity \(\+0\.17\+0\.17\) show moderate improvement\.
In contrast, families whose objects appear across multiple task types show near\-zero or negative gains\. Customer demographics \(−0\.077\-0\.077\), regional economics \(−0\.102\-0\.102\), and product catalog \(−0\.074\-0\.074\) all degrade slightly relative to registry\-only retrieval\. In these cases, the seed memory introduces objects that overlap with unrelated queries, adding a bias that the registry score cannot fully overcome\.
These results suggest that discovery memory is most effective when the relationship between task intent and relevant objects is specific and stable, and least effective—or mildly harmful—when multiple task families share similar object sets\.
## Appendix EMemory Weight Ablation
Figure 2:Recall@5 and F1@5 as a function of memory weightα\\alphaacross three domains and two retrievers\.α=0\\alpha\{=\}0recovers registry\-only \(S1\);α=1\\alpha\{=\}1gives memory full control\. Both retrievers peak atα=0\.25\\alpha\{=\}0\.25; over\-weighting memory degrades performance in all settings\.As shown in Figure[2](https://arxiv.org/html/2609.02129#A5.F2), both TF\-IDF and neural retrieval peak atα=0\.25\\alpha=0\.25across all three domains\. The absolute gain from theα=0\\alpha=0baseline to the peak is substantially smaller for neural retrieval \(e\.g\., NYC collisions:\+0\.197\+0\.197under TF\-IDF vs\.\+0\.065\+0\.065under neural\), consistent with a stronger base retriever leaving less room for memory to contribute\. Over\-weighting memory atα=1\.0\\alpha=1\.0degrades performance in all settings\. Settingα=0\\alpha=0recovers the registry\-only baseline\. Table 1 reports results at the defaultα=0\.5\\alpha\{=\}0\.5; using the ablation\-optimalα=0\.25\\alpha\{=\}0\.25yields modest additional gains but the main conclusions are unchanged\.
## Appendix FBlending vs\. Direct Memory Injection
Table[4](https://arxiv.org/html/2609.02129#A6.T4)compares registry\+memory blending \(S3\) against a direct injection baseline \(S4\) that promotes all objects associated with the highest\-scoring memory to the front of the ranking without combining memory and registry scores\.
Table 4:Comparison of S3 \(Registry\+Memory, blended\) and S4 \(Naive Injection\) on held\-out evaluation tasks\. S3 outperforms S4 in both MRR and F1@5 across all three domains\.S3 outperforms S4 in both MRR and F1@5 across all three domains\. Directly injecting objects from a retrieved memory can elevate irrelevant objects when the memory only partially matches the query\. By combining registry and memory signals, S3 preserves retrieval precision while still promoting objects associated with relevant prior discovery outcomes\.
## Appendix GLeave\-One\-Out Seed Robustness
Table[5](https://arxiv.org/html/2609.02129#A7.T5)reports F1@5 mean and standard deviation under leave\-one\-out \(LOO\) seed rotation\. For each task family, every task serves as the seed in turn while the remaining tasks are evaluated, yielding 56, 51, and 36 evaluation trials for Finance, NYC Collisions, and Northwind, respectively\. The relative ordering of methods is consistent with the fixed\-seed results in Table[1](https://arxiv.org/html/2609.02129#S3.T1), indicating that the observed gains are not sensitive to the choice of seed task\.
Table 5:F1@5 mean±\\pmstd under leave\-one\-out seed rotation\. Unstarred: TF\-IDF;⋆: neural retriever\.
## Appendix HBM25 Retriever Comparison
Table[6](https://arxiv.org/html/2609.02129#A8.T6)reports S0–S3 results using Okapi BM25 in place of TF\-IDF\. BM25 underperforms TF\-IDF at the S1 and S3 levels across all three domains; S0 differences are negligible\. A notable gap appears at the S1 registry level \(e\.g\., Finance: 0\.358 vs\. 0\.396; NYC: 0\.292 vs\. 0\.299; Northwind: 0\.388 vs\. 0\.446\), reflecting that BM25’s term\-frequency saturation is poorly matched to the long, semantically rich prose descriptions in the registry\. S2 \(memory\-only\) results are comparable between BM25 and TF\-IDF, as memory retrieval matches queries against short intent strings rather than registry descriptions\. Despite the weaker base, S3 still improves over S1 with BM25 in all three domains, confirming that memory boosting is beneficial regardless of the underlying retriever\.
Table 6:BM25 retriever results on held\-out evaluation tasks \(S0–S3\)\. TF\-IDF F1@5 is shown in parentheses for comparison\.
## Appendix IAgent\-in\-the\-Loop Demonstration
To assess downstream impact, we provide the top\-5 retrieved objects from S1 and S3 to a planning agent \(Claude Haiku\) and ask it to generate an analysis plan for the task “Find customers with unusual cash withdrawals\.”
Figure 3:Illustrative effect of retrieval context on downstream agent planning\. With S1 retrieval, the agent must infer that a transactions table exists and works around its absence\. With S3 retrieval, the agent directly referencestrans\.operationandtrans\.type, producing a more executable analysis plan\. Same model, same task; only the retrieved context changes\.S3 retrieval provides the exact transaction\-related objects needed for the task, while S1 retrieval contains mostly demographic objects\. As a result, the S3 plan directly references the correct operational fields and produces a more executable analysis strategy\.Similar Articles
What I'm learning trying to ensure context continuity for different agents across different sessions
The author introduces AICTX, an open-source tool that preserves structured operational state across coding agent sessions, reducing the need for agents to rediscover repository context each time.
Context as an Environment: Programmatic Context Management for Long-Horizon Agents
This paper introduces Scroll, a programmatic context management system for long-horizon LLM agents that treats sessions as executable environments with persistent state, achieving superior performance on memory and agent benchmarks.
Context Graphs for Proactive Enterprise Agents
This paper proposes Context Graphs, a live relational data structure for enterprise entities that enables proactive agents to surface relevant information before users query, formalizing components for delta detection, proactivity scoring, and LLM-powered surfacing.
I built a context window optimization framework for coding agents — open source + paper
The author introduces 'Apohara Context Forge,' an open-source framework and methodology for optimizing context windows in coding agents using role-aware segmentation and tiered relevance scoring.
PEEK: Context Map as an Orientation Cache for Long-Context LLM Agents
This paper introduces PEEK, a system that caches orientation knowledge about recurring external contexts as a context map, enabling LLM agents to reuse context knowledge across invocations and significantly improving efficiency and accuracy on long-context reasoning and information aggregation tasks.