Manuscript Offprint
arXiv:2609.03141What Happens When the Model Eats the Stack? Rethinking the Research Agenda for Data Agents to Withstand the Bitter Lesson
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
The bitter lesson poses an existential question for the data systems community, whereby large language models (LLMs) trained end-to-end are rapidly internalizing new capabilities that previously required carefully engineered data agents. Guided by empirical insights, we argue that as models continue to improve, many proposed system layers designed to compensate for model limitations on a given task will increasingly be subsumed by the model itself. We instead identify enduring research opportunities, which lie in supporting data agents across many queries with curated contextual information about the data environment, which we call persistent semantic context. We find that these context layers demonstrate strong promise for improving data agent performance, but they also raise significant system challenges. Thus, a key requirement for future data systems will lie in natively serving persistent semantic contexts as a first-class abstraction in order to enable capable data agents working over huge, complex knowledge corpora. Towards this vision, we outline exciting new research opportunities, including designing efficient context data structures, storage methods, compression techniques, and semantic consistency protocols, to ensure integrity and correctness of the stored contextual knowledge.
1 INTRODUCTION
Driven by increasingly powerful frontier large language models (LLMs), agentic capabilities are undergoing a dramatic transformation that rapidly shifts the landscape for data agents and promises to enable users' natural language questions over their data. Once simple text generators, LLMs have evolved over the past several years to autonomously execute complex, long-horizon tasks by reasoning, invoking tools, executing code, and forking subagents when paired with a terminal, file system and execution loop.
This trajectory poses an existential question for the data systems community, one crystallized by Sutton's bitter lesson [17]: general methods that scale computation (e.g., end-to-end model training) ultimately displace hand-engineered domain knowledge. Consequently, we ask the question, as models continue to improve, threatening to eat the stack with internalized capabilities, what systems problems will endure and become more crucial for enabling future data agents?
To ground this question empirically, we study the evolution of agentic capabilities for data processing over the past two years. We measure the performance of both state-of-the-art, human-designed data agents and general coding agents on recent data agent benchmarks using frontier models from 2025 to 2026. Our experimental analysis reveals surprising insights, which counter conventional wisdom on agent-first system design. First, we find that as model capabilities improve, general coding agents substantially outperform human-designed data agents, achieving higher accuracy and obviating the need for these pipelines that impose human priors through
rigid scaffolding and task decomposition. Moreover, newer models are rapidly improving the efficiency of general coding agents, drastically reducing the average number of turns and tokens required per query. This trend directly challenges the premise of recent work [11], which argues that future data systems will be bottlenecked by agentic speculation, a workload characterized by sheer scale and inefficiency of agent-issued queries, which data systems will need to optimize for. We instead see that newer models natively improve efficiency on a given task, solving each one with fewer actions and less frequent failures, on average, over successive model generations.
Interestingly, we find that significant challenges remain in supporting data agents across many queries with rich contextual information about the data environment. Even the strongest agents must repeatedly re-acquire context about their environment, incurring significant relative costs to rediscover schema, join paths, and data semantics that prior queries already surfaced. These inefficiencies that persist are not failures of reasoning, which models are rapidly internalizing, but rather they are failures of knowledge about a particular data environment, which is external to the model, changes as data changes, and may be wastefully re-derived.
As a result, an increasingly important requirement for more capable data agents will lie in non-parametric contextual information, i.e., explicit knowledge of the working environment that the model does not acquire during training as parametric knowledge. We refer to this contextual knowledge as persistent semantic context. This state will be constructed offline to provide a language-based representation of knowledge about the data environment, and its associated costs can be amortized across many user queries. We demonstrate the promise of semantic context, finding that even simple, agent-authored contexts (e.g., files that the agent writes offline given historical traces and access to the data environment) can significantly improve accuracy and reduce per-task exploration, a finding likewise substantiated in recent work [1, 2, 10]. However, we also find that persistent semantic contexts introduce significant system overheads, creating important new challenges, which our community is well-positioned to address.
In order to serve more capable data agents, future data systems will need to natively serve persistent semantic contexts as a first-class abstraction. Towards this vision, we outline new research opportunities, including designing new semantic consistency protocols to ensure the integrity and correctness of stored contextual knowledge, as well as designing efficient physical layouts, data structures and compression techniques for this layer. In summary, we make the following contributions:
- We study the evolving capabilities of general coding agents and human-designed data agents over the past two years, measuring their task performance, efficiency, and failure modes on recent data agent benchmarks.

(a) TAG-Bench
(b) DAB
Figure 1: Performance of general coding agents (blue) and human-designed data agents (orange) with successive model versions, including o3 (released early 2025), GPT-5 (released mid-2025), and GPT-5.6 Sol (released mid-2026) on two data-agent benchmarks, TAG-Bench and DAB.
-
We demonstrate that while increasingly capable models are improving performance and efficiency for individual tasks, a significant enduring challenge lies in supporting data agents across many queries with persistent semantic context, which provides rich contextual information about the data environment.
-
Based on these insights, we outline new research opportunities that target a key requirement of future data systems: native support of persistent semantic contexts for agents.
model reasoning levels and report results with low reasoning for simplicity, finding consistent trends at other levels.
With more capable models, general coding agents substantially outperform human-designed data agents. Figure 1 reports the performance of general coding agents and state-of-the-art human-designed data agents on TAG-Bench and DAB. Notably, we see that with GPT-5.6 Sol, the general coding agent achieves significantly higher accuracy on both benchmarks than the human-designed data agent using the same model. Interestingly, with the weaker o3 model, on TAG-Bench, the human-designed Agentar-Scale-SQL data agent achieves higher accuracy and better token efficiency than the o3 coding agent. However, over successive model generations, this trend reverses, with the coding agent achieving both better accuracy and token efficiency than the human-designed data agent with the same models. These results indicate that as more capable models internalize capabilities such as planning, code generation, debugging, and validation, their performance and generalization will likely surpass that of data agents with human-imposed priors and fixed designs.
General coding agents are rapidly improving both accuracy and token efficiency. Figure 1 shows that on TAG-Bench, the Coding Agent improves both accuracy and token efficiency with successive model versions. In fact, the GPT-5.6 Sol Coding Agent achieves accuracy comparable to that of the Oracle baseline, which consists of expert-written queries run with the LOTUS runtime [15]. Similarly, on DAB, the GPT-5.6 Coding Agent significantly outperforms prior agents, gaining over 35 percentage points over the o3 Coding Agent while improving token efficiency by over 2×. These gains come from a general agent harness with no task- or data-specific engineering.
Newer models drastically reduce the number of turns per query, improving token efficiency. We study the efficiency of the Coding
What Happens When the Model Eats the Stack? Rethinking the Research Agenda for Data Agents to Withstand the Bitter Lesson

Figure 2: Turns per query for Coding Agents across model generations on DAB.
Agents by measuring the number of turns per query on DAB, decomposed by action types such as schema exploration, analytical computation, and verification. Figure 2 demonstrates a sharp decline in the number of turns per query required by coding agents with successive model generations. Notably, the GPT-5.6 Sol1 Coding Agent reduces the number of turns per task by about 4× compared to the o3 Coding Agent. This efficiency gain is driven by significantly fewer turns spent on analytical and semantic querying, as well as fewer verification or recovery steps. Interestingly, this trend counters the premise suggested by prior work [11], which presumes that agentic workloads will create a high volume of speculative, inefficient queries for data systems. Instead, we should expect models to continue becoming more efficient, formulating correct answers with fewer turns per query.
The relative cost of schema exploration has increased over successive model generations. We also see from Figure 2 that while more capable models spend fewer turns overall, steps spent on schema exploration or data profiling remain a substantial relative cost for the GPT-5.6 Sol1 Coding Agent. As reasoning, planning, and debugging capabilities improve, a growing fraction of agent effort is devoted to acquiring information that the model cannot know a priori: what data exists, what it means, and which sources are relevant to the task at hand. We expect that as models become more capable, a substantial cost will shift from iteratively formulating queries and validating results to understanding the data environment itself.
Existing challenges lie in environmental and contextual understanding. To understand trends in failure modes and remaining gaps, we analyze the trajectory of each failed Coding Agent query on TAG and DAB. We use GPT-5.6 Sol1 to assign each trace to a root-cause cluster, following a taxonomy of five key failure clusters described in Table 1. Figure 3 shows the distribution of failures for both benchmarks. We find that execution errors due to incorrect tool use or execution decline as model capability increases. Meanwhile, the remaining errors for GPT-5.6 Sol1 are dominated by failures of environmental knowledge. Specifically, over 60% of failures arise from semantic misinterpretation, including misunderstanding task meaning or relying on invalid proxies (C1), using the wrong data sources, tables, fields, or metrics (C2), or incorrectly using entities, join keys, and identifiers.

Figure 3: Failures by root-cause cluster for Coding Agents across model generations on TAG and DAB.
Table 1: Unified taxonomy of root-cause failure clusters.
| Failure Cluster | |
| C1 | Misinterpreted task meaning or reliance on an invalid proxy |
| C2 | Wrong data source, table, field, or metric |
| C3 | Entity, join-key, or identifier mismatch |
| C4 | Incorrect filtering, aggregation, ranking, or output logic |
| C5 | Runtime, tooling, or command-execution failure |
Persistent semantic context can improve performance and amortize per-task exploration, but introduces significant system overheads. To study the performance implications of leveraging richer contextual information, we evaluate the GPT-5.6 Coding Agent, providing it with additional persistent context generated offline using different techniques. Specifically, we generate Self-Curated contexts by prompting the coding agent to author its own context, targeting various performance goals, including reducing latency (Latency), improving accuracy (Accuracy), or capturing schema knowledge to reduce online exploration (Schema). We also evaluate GEPA [2], targeting improved accuracy. We run each context-generation baseline with GPT-5.6 Sol1, providing it with access to 12 sample queries and all databases in DAB. During evaluation, we run the GPT-5.6 Sol1 Coding Agent on all remaining held-out DAB tasks, appending the generated context to the user prompt. We compare against the No Context baseline, which appends no persistent context to the model input but allows the model to explore its environment per query, as in the previous experiments.
Figure 4 demonstrates that agent-generated contexts can effectively improve performance along various target metrics. As Figure 4a shows, the Self-Curated (Accuracy) context produces a significant accuracy gain of 19 percentage points over the No Context Coding Agent. Interestingly, the Self-Curated (Latency) context reduces the average number of agent turns per query and latency compared to the Accuracy-based contexts, but still increases latency over the No Context baseline, as seen in Figure 4b. On the other hand, the Self-Curated (Schema) context effectively captures knowledge about the data environment, allowing the agent to spend significantly fewer turns per query on schema exploration during evaluation, as Figure 4b demonstrates. However, the overall Coding Agent accuracy drops modestly, as shown in Figure 4a, possibly due to the agent's over-reliance on the curated context for some tasks and overfitting to the small 12-trajectory sample.

(a) Coding Agent Performance with Different Persistent Contexts
(b) Turns per query.
Figure 4: Performance of the GPT-5.6 Sol Coding Agent with additional Self-Curated or GEPA-generated context provided during task execution on held-out DAB tasks. The context is constructed offline using GPT-5.6 Sol and 12 sample trajectories to target different metrics (Latency, Accuracy, and Schema Knowledge), then appended to the model prompt during evaluation.
Table 2: Build time, build cost, and memory overhead of techniques for context construction.
| Build Time | Build Cost | Context Size (KB) | |
|---|---|---|---|
| Self-Curated (Accuracy) | 164.9s | $1.09 | 2.52 |
| Self-Curated (Latency) | 154.9s | $1.13 | 2.25 |
| Self-Curated (Schema) | 3413.6s | $9.60 | 162.14 |
| GEPA (Accuracy) | 1359.8s | $12.16 | 7.55 |
Turning to Table 2, we see that constructing and storing the persistent context can be costly, with substantial build times, build costs, and memory overheads that raise new system challenges. Notably, our setting constructs contexts in a small-scale environment, with only 12 historical traces and 12 datasets, whereas realistic data agent environments will contain terabytes of data involving thousands of tables and long-horizon agent traces. Even in our small-scale experimental setting, constructing the contexts required hundreds to thousands of seconds. The Self-Curated (Schema) context exhibited the highest costs, with a build time of over 3,400 seconds, a cost of $9.60, and a size of 162 KB. These overheads result from the agent performing an expansive offline search over the datasets and storing a large amount of knowledge about the data environment to reduce online exploration. We expect the system costs associated with building, storing, and maintaining persistent contexts to scale with the size and complexity of the data store, as well as with the scope and horizon of agent tasks.
3 TOWARDS A BITTER-LESSON-PROOF RESEARCH AGENDA
As models continue to improve, many capabilities that previously required carefully engineered agent pipelines—including planning, code generation, tool use, debugging, and iterative validation—are increasingly provided directly by the underlying model. Consequently, system layers whose primary purpose is to compensate for weaknesses in these capabilities are likely to diminish in importance over time. This trend reflects the Bitter Lesson [17]: improvements
in general learning systems ultimately outperform increasingly sophisticated hand-engineered algorithms and heuristics.
However, even highly capable models cannot rely solely on their parametric knowledge when interacting with large, complex data environments. To answer user requests accurately, they must leverage organization-specific knowledge about the current data environment. For example, answering a request such as "Write a quarterly business review explaining why European revenue missed forecast, reconcile the discrepancy against Finance's official numbers, and recommend corrective actions" requires identifying authoritative datasets across multiple systems, resolving conflicting metric definitions, understanding organization-specific business conventions, interpreting semi-structured documentation, and validating intermediate results. The underlying data environments may span terabytes—significantly larger than typical code repositories—and contain dynamic, organization-specific, and undocumented conventions. This makes contextual information crucial for task completion, and the cost of repeatedly re-acquiring it high.
We therefore lay out a research agenda for the database community centered on supporting persistent semantic context, an explicit, language-based representation of knowledge about the data environment that is constructed offline, efficiently accessed online, and amortized across many queries. The value and volume of this layer will continue to increase over time as models become more capable and user tasks become more complex, growing in both scope and task horizon, requiring the agent to retain external information such as canonical metric definitions, authoritative data sources, entity relationships, historical discoveries, organizational conventions, and user-specific preferences. Moreover, persistent semantic context can be effectively authored by the model itself, indicating that its quality and size will natively scale alongside model capability as better models are able to leverage and maintain more context and more effectively distill learned environmental knowledge into higher-quality persistent context. Complementing techniques that involve more costly model training and parametric weight updates [16, 18, 22], the context layer will need to retain
What Happens When the Model Eats the Stack? Rethinking the Research Agenda for Data Agents to Withstand the Bitter Lesson
an explicit knowledge state that is easily editable, fresh, reliable, and human-auditable. Supporting this functionality will require solving substantial new challenges, creating exciting opportunities for the database community. We outline key directions for the research community, which will require developing new techniques for semantic consistency, to ensure the correctness and integrity of persistent contexts, as well as optimized data structures, construction methods, physical designs, and compression techniques.
3.1 Maintaining Semantic Consistency
Over time, the data environment will change as new tables are introduced, schemas evolve, documentation is updated, business definitions are rewritten, users provide corrections, statistical shifts occur in the underlying data, and query patterns change. These updates can invalidate the persistent context, leading to incorrect or inefficient agent executions. This raises a substantial new challenge, which we refer to as semantic consistency, i.e., ensuring that the natural language or semantic knowledge contained within the context layer is up-to-date and correct. Unlike traditional consistency models, which typically reason about explicit data objects and operations such as reads, writes, and updates, semantic consistency is challenging because context layers contain implicit relationships between natural-language artifacts. A change to one concept, dataset, or workflow may invalidate seemingly unrelated context entries whose dependencies are not explicitly represented, requiring systems to reason about changes in meaning rather than changes in state. Below we outline several challenges and exciting directions for further research.
Consistency Scope. Future context layers will likely require mechanisms analogous to namespaces or multi-version data management, allowing multiple semantic views to coexist while ensuring consistency within their intended scope. At the finest granularity, an individual user may maintain a personalized context layer that captures their preferred datasets, prior interactions, and accumulated execution history. At a broader scope, project teams often share common business definitions, recommended datasets, procedural guidance, and examples that should remain synchronized across collaborators. At the enterprise level, updates to governance policies, trusted data products, or canonical business metrics should propagate consistently across all agents operating within the organization. Finally, some context originates outside the enterprise—for example, public documentation, regulatory guidance, or external APIs—introducing a global scope in which organizational context must remain synchronized with external sources. Determining the appropriate scope of a semantic update therefore becomes a fundamental systems problem. When new knowledge is acquired, the system must determine who should observe the update, how it should propagate across overlapping scopes, and when conflicting semantic views should be reconciled or allowed to coexist.
Consistency Models. Once the scope of consistency has been established, the next question is what guarantees the system should
provide. Classical database systems offer a rich spectrum of consistency models, ranging from strong consistency to eventual consistency, each reflecting a different tradeoff between freshness, availability, and maintenance cost. An analogous design space exists for semantic context. Applications such as regulatory reporting or production dashboards may require strong semantic consistency, ensuring that every agent observes the latest approved context before execution. Conversely, collaborative analytics may tolerate eventual semantic consistency, allowing semantic updates to propagate asynchronously while reducing maintenance overhead. Finally, systems may adopt query-triggered semantic consistency, lazily revalidating portions of the context layer only when they are accessed by an agent. Such an approach amortizes maintenance costs across future workloads and may be particularly attractive for large context layers containing thousands of semantic artifacts. Determining the appropriate semantic consistency model—and understanding its implications for accuracy, latency, scalability, and maintenance cost—remains an open research question.
Consistency Methods. Once inconsistency has been detected, the system must decide how to restore consistency. One approach is incremental semantic maintenance, where the context layer is decomposed into fine-grained semantic artifacts that are selectively revalidated and updated as new information becomes available. This resembles incremental view maintenance, where systems propagate changes to derived representations without recomputing them from scratch. However, unlike traditional views, semantic context is generated from heterogeneous sources—including schemas, documentation, historical queries, and agent trajectories—and changes may propagate through implicit semantic dependencies rather than explicit relational dependencies. At the other extreme, increasingly capable long-context models may make holistic regeneration an attractive alternative. Rather than maintaining complex dependency structures, a system could periodically regenerate the context layer directly from the underlying environment. The appropriate granularity of maintenance introduces a rich design space: fine-grained incremental updates may improve scalability and reduce token costs for large context layers, while holistic regeneration may benefit smaller environments where end-to-end models can reason over the complete context. Understanding this tradeoff—and developing workload-aware strategies for semantic maintenance—represents an important research opportunity.
3.2 Context Construction and Physical Design
Crucially, the semantic context layer allows redundant online query processing to shift to an offline preprocessing stage that can be amortized. Rather than requiring agents to repeatedly explore schemas, inspect tables, and rediscover organizational knowledge, the agent system constructs a reusable semantic representation, such as natural-language Markdown files. Several existing works demonstrate the promise of performing an offline processing step [1, 2, 10, 20] to improve the agent's efficiency on downstream queries. However, building the semantic context layer for general data agents will require processing a substantial data environment and a large volume of historical traces, making scalability and efficiency core problems for the offline build. An open question remains as to how the community should design techniques for constructing context layers at scale while providing efficient build times, low memory footprints, and fast access patterns. Excitingly, many of these systems challenges are analogous to traditional indexing problems, which the database community is well-equipped to explore.
Data Structure. One central open question is: what data structure should represent semantic context? Unlike a B-tree or hash index, a semantic context structure must encode heterogeneous information—including schemas, documentation, historical queries, execution traces, and organizational knowledge—while supporting efficient construction, updates, and retrieval. Existing works have already proposed several candidates, ranging from free-form text files to structured knowledge graphs and vector indexes [5, 7, 20]. These techniques present different tradeoffs in build time, memory overhead, update complexity, retrieval efficiency, and freshness. Future research is needed to understand which representations are best suited for different workloads. Much like classical database systems combine multiple physical structures (e.g., indexes, materialized views, and caches), semantic context may also require workload-specific combinations of representations.
Physical Design. The physical organization of semantic context presents new opportunities. During execution, agents are likely to rely on both query-agnostic context, such as schema descriptions, business terminology, and organizational documentation that can be reused across many executions, and query-aware context, such as intermediate reasoning, execution traces, or task-specific insights generated for a particular workload. These heterogeneous access patterns raise classical physical design questions. Which context should be stored persistently? Which should be cached or indexed? How should semantic memory be partitioned across fast but expensive representations (e.g., KV cache or local text memory) versus slower but compact long-term storage?
Compression. A long-lived semantic context layer may eventually contain millions of tokens of schemas, documentation, historical query traces, execution logs, and agent-generated reasoning, far exceeding what can be consumed directly by an LLM. While recent work has explored compaction over KV caches [6, 21] that serve as the agent's working memory over a session, considerably less attention has been paid to compressing persistent semantic memory. Future systems will require efficient techniques to consolidate accumulated knowledge while preserving the information most useful for downstream tasks. More broadly, semantic context introduces a new lifecycle management problem: as agents continuously generate new observations, systems must determine what should be retained, merged, compressed, or discarded, motivating new garbage collection and compression policies.
4 CONCLUSION
We propose a vision for future database research towards enabling data agents amid the rapid evolution of model capabilities. Contextual knowledge and understanding over large, complex data environments remains a substantial challenge for state-of-the-art agents, making persistent semantic contexts crucial. Demonstrating both the promise and system challenges associated with persistent semantic contexts, we outline exciting research opportunities for designing data systems that natively support agents with efficient context data structures, storage and compression techniques, as well as semantic consistency.
ACKNOWLEDGMENTS
This research was supported in part by affiliate members and other supporters of the Stanford DAWN project, including Meta, Google, and VMware, as well as Cisco, SAP, and a Sloan Fellowship. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the sponsors.
REFERENCES
[1] agentsm2026 2026. AgentSM: Semantic Memory for Agentic Text-to-SQL. https://arxiv.org/abs/2601.15709.
[2] Lakshya A. Agrawal et al. 2025. GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning. https://arxiv.org/abs/2507.19457.
[3] Asim Biswal, Liana Patel, Siddarth Jha, Amog Kamsetty, Shu Liu, Joseph E. Gonzalez, Carlos Guestrin, and Matei Zaharia. 2025. Text2SQL is Not Enough: Unifying AI and Databases with TAG. https://arxiv.org/abs/2408.14717. CIDR 2025.
[4] dab2025 2026. DAB: A Benchmark for Data Agents over Fragmented Enterprise Data. https://arxiv.org/abs/2603.20576.
[5] Darren Edge, Ha Trinh, Newman Cheng, et al. 2024. From Local to Global: A Graph RAG Approach to Query-Focused Summarization. https://arxiv.org/abs/2404.16130.
[6] Sabri Eyuboglu, Ryan Ehrlich, Simran Arora, Neel Guha, Dylan Zinsley, Emily Liu, Will Tennien, Atri Rudra, James Zou, Azalia Mirhoseini, and Christopher Re. 2025. Cartridges: Lightweight and general-purpose long context representations via self-study. arXiv:2506.06266 [cs.CL]. https://arxiv.org/abs/2506.06266
[7] Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. 2021. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. http://arxiv.org/abs/2005.11401 arXiv:2005.11401 [cs].
[8] Boyan Li, Yiran Peng, Yupeng Xie, Sirong Lu, Yizhang Zhu, Xing Mu, Xinyu Liu, and Yuyu Luo. 2026. DeepEye: A Steerable Self-driving Data Agent System. In Companion of the International Conference on Management of Data. ACM, 74–77. https://doi.org/10.1145/3788853.3801612
[9] Jinyang Li, Binyuan Hui, Ge Qu, Jiaxi Yang, Binhua Li, Bowen Li, Bailin Wang, Bowen Qin, Rongyu Cao, Ruiying Geng, Nan Huo, Xuanhe Zhou, Chenhao Ma, Guoliang Li, Kevin C. C. Chang, Fei Huang, Reynold Cheng, and Yongbin Li. 2023. Can LLM Already Serve as A Database Interface? A Big Bench for Large-Scale Database Grounded Text-to-SQLs. http://arxiv.org/abs/2305.03111 arXiv:2305.03111 [cs].
[10] Kevin Lin, Charlie Snell, Yu Wang, et al. 2025. Sleep-time Compute: Beyond Inference Scaling at Test-time. https://arxiv.org/abs/2504.13171.
[11] Shu Liu, Soujanya Ponnapalli, Shreya Shankar, et al. 2026. Supporting Our AI Overlords: Redesigning Data Systems to be Agent-First. https://arxiv.org/abs/2509.00997. CIDR 2026.
[12] OpenAI. 2025. Introducing GPT-5. https://openai.com/index/introducing-gpt-5/. Accessed 2026-08-04.
[13] OpenAI. 2025. Introducing OpenAI o3 and o4-mini. https://openai.com/index/introducing-o3-and-o4-mini/. Accessed 2026-08-04.
[14] OpenAI. 2026. GPT-5.6: Frontier Intelligence That Scales with Your Ambition. https://openai.com/index/gpt-5-6/. Accessed 2026-08-04.
[15] Liana Patel, Siddharth Jha, Carlos Guestrin, and Matei Zaharia. 2024. LOTUS: Enabling Semantic Queries with LLMs Over Tables of Unstructured and Structured Data. https://doi.org/10.48550/arXiv.2407.11418 arXiv:2407.11418 [cs].
[16] Idan Shenfeld, Mehl Damani, Jonas Hübottler, and Pulkit Agrawal. 2026. Self-Distillation Enables Continual Learning. arXiv:2601.19897 [cs.LG]. https://arxiv.org/abs/2601.19897
[17] Richard S. Sutton. 2019. The Bitter Lesson. http://www.incompleteideas.net/Incldeas/BitterLesson.html.
[18] Arnav Tandon, Karan Dalal, Xinhao Li, Daniel Koceja, Marcel Rod, Sam Buchanan, Xiaolong Wang, Jure Leskovec, Sanmi Koyejo, Tatsunori Hashimoto, Carlos Guestrin, Jed McAlleb, Yejin Choi, and Yu Sun. 2025. End-to-End Test-Time Training for Long Context. arXiv:2512.23675 [cs.LG]. https://arxiv.org/abs/2512.23675
What Happens When the Model Eats the Stack? Rethinking the Research Agenda for Data Agents to Withstand the Bitter Lesson
[19] Pengfei Wang, Baolin Sun, Xuemei Dong, Yaxun Dai, Hongwei Yuan, Mengdie Chu, Yingqi Gao, Xiang Qi, Peng Zhang, and Ying Yan. 2025. Agentar-Scale-SQL: Advancing Text-to-SQL through Orchestrated Test-Time Scaling. arXiv:2509.24403 [cs.CL] https://arxiv.org/abs/2509.24403
[20] Qizheng Zhang et al. 2025. Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models. https://arxiv.org/abs/2510.04618.
[21] Adam Zweiger, Xinghong Fu, Han Guo, and Yoon Kim. 2026. Fast KV Compaction via Attention Matching. arXiv:2602.16284 [cs.LG] https://arxiv.org/abs/2602.16284
[22] Adam Zweiger, Jyothish Pari, Han Guo, Ekin Akyürek, Yoon Kim, and Pulkit Agrawal. 2025. Self-Adapting Language Models. arXiv:2506.10943 [cs.LG] https://arxiv.org/abs/2506.10943
A EXPERIMENTAL DETAILS
A.1 Human-designed Baselines
Agentar-inspired SQL pipeline. We implement a SQL-only approximation of Agentar-Scale-SQL [19] for the 60 non-aggregation TAG-Bench queries. The model generates SQL from the original question and live SQLite schema, then receives one round of execution feedback to refine its query. Because the complete Agentar inference pipeline is not public, our baseline uses its published generation prompt but does not reproduce its unreleased multi-generator, revisor, or selector components.
1 Task Overview:
2 You are a data science expert. Below, you are provided with a
3 database schema and a natural language question. Your task is to
4 understand the schema and generate a valid SQL query to answer the
5 question.
6 Database Engine:
7 SQLite
9 Database Schema:
10 {db_schema}
11 This schema describes the database's structure, including tables,
12 columns, primary keys, foreign keys, and any relevant relationships
13 or constraints.
15 Question:
16 {question}
17 Instructions:
18 - Make sure you only output the information that is asked in the
19 question. If the question asks for a specific column, make sure to
20 only include that column in the SELECT clause, nothing more.
21 - The generated query should return all of the information asked in
22 the question without any missing or extra information.
23 - Before generating the final SQL query, please think through the
24 steps of how to write the query.
25 Output Format:
26 In your answer, please enclose the generated SQL query in a code block:
27 ~~sql
28 -- Your SQL query
29 ---
30 Take a deep breath and think step by step to find the correct SQL query.
Listing 1: Agentar-inspired SQL-generation prompt.
1 You are performing execution-guided iterative SQL refinement.
2 Review the original task, the SQL previously generated, and its
3 execution result. Decide whether that result fully answers the
4 original question. If it does not, revise the SQL. You may use your
5 own knowledge and semantic reasoning about values visible in the
6 result. The revised SQL must be standalone and its execution must
7 return exactly the requested answer, with no missing or extra values.
8 You do not have access to a reference or gold answer.
9 ORIGINAL TASK:
10 {original_prompt}
11 PREVIOUS SQL:
12 ~~sql
13 {previous_sql}
14 ---
15 EXECUTION RESULT:
16 {execution_preview}
17 Return exactly one revised SQL query in a ~~sql code block.
Listing 2: Execution-guided refinement prompt.
What Happens When the Model Eats the Stack? Rethinking the Research Agenda for Data Agents to Withstand the Bitter Lesson
DeepEye. On DAB, we run DeepEye's open-source Supervisor/workflow agent end-to-end [8]. We add data-source connectors for DuckDB and MongoDB.
A.2 Context Generation Baselines
All context-generation experiments use the same fixed stratified split of DAB: 12 development queries (one from each database environment) and 42 held-out queries. Context is constructed offline with GPT-5.6 Sol. After construction, each context artifact is frozen and appended to the first user prompt.
A.2.1 Self-Curated.
Accuracy and latency contexts. For each objective, a single generator call receives all 12 development trajectories: questions, correctness and validator feedback, agent messages, ordered commands and outputs, token measurements, and latency measurements. Listings 3–4 show the common generator prompt and the objective-specific suffixes. The generated instruction blocks, which are injected verbatim during evaluation, appear in Listings 5 and 6.
You are designing reusable procedural instructions for a database-question agent. You are running as GPT-5.6 Sol with high reasoning.
You have access to exactly 12 development trajectories from an earlier GPT-5.6 Sol/high run in development_traces.jsonl.
Each JSON line contains the question, correctness and validator feedback, latency/token metrics, agent messages, and the ordered command trajectory with tool outputs. These are the only empirical examples you may use.
Analyze all 12 trajectories, including both successes and failures. Identify recurring root causes, inefficient behaviors, reliable strategies, and interactions between accuracy and action count. Distinguish an accidental one-query fix from a reusable behavioral rule.
First build an internal evidence table for every proposed instruction: (a) the recurring behavior it addresses, (b) how often that behavior appears, (c) whether it occurs in correct traces, incorrect traces, or both, (d) its likely accuracy benefit, and (e) its likely latency/action cost. Do not emit the table, but use it to reject rules supported by only one idiosyncratic example unless they prevent a broad class of severe errors.
Produce a compact instruction block that will be injected verbatim into the FIRST user prompt of unseen held-out database questions. The evaluator will not mount a skill and the downstream agent must not spend actions locating or reading one.
Requirements for instructions:
-
Write standalone imperative guidance, not an analysis or retrospective.
-
Generalize across SQLite, DuckDB, PostgreSQL, MongoDB, structured metadata, free text, multiple sources, aggregation, ranking, and exact formatting.
-
Do not mention DataAgentBench, traces, development/held-out splits, query IDs, dataset names, ground-truth answers, or example-specific constants.
-
Do not tell the downstream agent to read a skill or auxiliary instruction file.
-
Do not prescribe progress messages.
-
Preserve the benchmark rules: use only sanctioned databases, execute the computation, and return the requested answer format.
-
Prefer conditional decision rules over unconditional extra steps. State the observable trigger, the action, and the stopping condition.
-
Do not impose a single hard action cap across heterogeneous questions. If budgets are useful, use risk-sensitive soft budgets with explicit escalation triggers.
-
Separate indispensable correctness checks from redundant confirmation. Require a check only when it can discriminate between plausible answers.
-
Avoid comprehensive database-agent advice the base model likely knows. Include only trace-supported behavioral deltas.
-
Keep the instruction block between 120 and 450 words. Every instruction must justify its prompt-token and behavioral cost.
-
End
predicted_tradeoffswith falsifiable predictions for commands/query, output tokens/query, latency/query, and accuracy relative to baseline.
Before answering, verify that you analyzed 12 unique trajectories. Return only the requested JSON object containing analysis_summary, instructions, and predicted_tradeoffs.
Listing 3: Common Self-Curated generation prompt.
[Accuracy] Primary objective: maximize accuracy on unseen tasks.
Design the smallest set of high-value guardrails that would have prevented multiple recurring incorrect answers. Prioritize population/grain mistakes, semantic interpretation, cross-source key alignment, sparse-field semantics, ranking/ties, date boundaries, parsing coverage, and exact output shape only when supported by the traces.
Do not turn every risk into a mandatory action. For each check, specify a detectable risk trigger and a cheap decisive test. Preserve successful baseline behavior: avoid replacing model judgment with rigid procedures, avoid repeated schema reads, and avoid verbose planning. Prefer one composed computation plus one risk-triggered validation over several incremental probes. If two computations disagree, prescribe how to select the interpretation grounded in the question and data rather than merely running more variants.
Target a measurable accuracy improvement without increasing median commands, tokens, or latency by more than necessary. Remove any instruction whose only effect is to encourage generic caution.
[Latency] Primary objective: minimize end-to-end latency and action count on unseen tasks while maintaining at least the original agent's accuracy.
Reduce model reasoning time as well as tool time. Remove redundant exploration, fragile commands, repeated schema reads, unnecessary narration, alternative computations that cannot change the answer, and unconditional verification. Favor consolidated catalog/schema reads and one composed robust computation.
Do not obtain speed by prematurely accepting a plausible result. Replace the previous style of global hard action caps and near-elimination of verification with a risk-gated policy:
-
stop immediately for low-risk direct lookups once the requested result shape is obtained;
-
perform one cheap targeted check when semantics, joins, dates, ties, parsing, sparse fields, or aggregation grain could plausibly change the answer;
-
escalate beyond the soft budget only after a failed command, low join/ parser coverage, contradictory evidence, or an unresolved ambiguity that affects the result.
Specify which operations should be combined, which small diagnostics are worth their latency, and an explicit stopping condition after a decisive check. Preserve correctness-critical semantic processing. The intended improvement is fewer recovery and redundant analytical actions, not fewer data-grounding actions.
Listing 4: Objective-specific suffixes for Self-Curated context generation.
Use only the sanctioned databases, execute the computation, and return the requested answer rather than an unexecuted query.
Inspect the catalog, schema, and representative records once. Translate the request into the target population, entity grain, filters, measure, grouping, ranking, and output cardinality. When an entity can have repeated rows, versions, labels, or events, deduplicate by its canonical ID at the requested stage; add a distinct-count/cardinality check only if duplication could change the result.
When combining sources, first test the proposed keys on a few records and compute match coverage and join fan-out alongside the main computation. Do not treat a sample name, display text, or repository example as the canonical owner when an ID or link table exists. Normalize case, whitespace, prefixes, or suffixes only when the data demonstrates that mapping.
If the requested concept is a topic, intent, qualification, or category with no structured field, do not substitute literal keyword occurrence. Use the relevant text and knowledge evidence with a coverage-oriented
What Happens When the Model Eats the Stack? Rethinking the Research Agenda for Data Agents to Withstand the Bitter Lesson
semantic rule; inspect a small contrasting sample and category prevalence, then stop when the interpretation is stable. Treat a missing row or null as "absent" only if the source represents the complete eligible population.
If free-text parsing materially drives the answer, measure parse coverage and ambiguity. Inspect misses or multiple matches only when they could affect the winner; expand parsing until coverage is complete or the remaining misses provably cannot change it. Parse date variants before filtering and express inclusive calendar windows as a half-open range. For moving-window or EMA calculations, materialize the intended period sequence and decide whether missing periods are zero or unknown from the question's meaning.
For top-k results, inspect the cutoff for ties. Use a requested or data-defined secondary key; otherwise expose the tie rather than inventing an arbitrary tie-break.
Prefer one composed computation plus one cheap, winner-discriminating validation. Escalate only for join loss/fan-out, material parser misses, cutoff ties, sparse-absence uncertainty, or genuinely competing interpretations. If variants disagree, select the one grounded in the wording, schema, and data semantics; do not average, vote, or keep querying without a decision criterion. Finish with exactly the requested fields, order, count, precision, and no extra explanation when "only" is requested.
Listing 5: Generated Self-Curated Accuracy context.
Use only the databases authorized in the supplied catalog/description, execute the computation against them, and return exactly the requested fields, ordering, rounding, and format.
Start from the supplied catalog; do not scan the filesystem when connection details are already present. In one initial command, read the catalog/description and inspect only the relevant schemas, value samples, and basic counts across candidate sources. Use python3 directly for cross-database orchestration, open analytical files read-only, quote unusual identifiers, and avoid reserved aliases.
Before computing, fix the semantic contract internally: eligible population, entity grain and unique key, join keys, date bounds, metric, grouping, ranking, tie policy, and output shape. Honor explicit key/grain language: deduplicate or count references by the stated ID before attributing results to a repository, package, business, or other parent. Prefer structured fields and relations; do not substitute a free-text keyword for a category label unless the data establishes that encoding.
Compose filtering, key normalization, deduplication, joining, aggregation, ranking, and formatting into one robust computation. When prose parsing is unavoidable, handle observed wording variants and retain matched/unmatched counts. If joins or parsers affect the answer, perform one cheap coverage diagnostic and inspect only unmatched records capable of changing the winner. For dates, rolling statistics, or EMA, check inclusivity, missing-period treatment, and initialization only when those choices could alter the result. For top-N results, inspect cutoff ties and never invent an arbitrary tie-break.
Stop immediately after a low-risk direct lookup produces the requested shape. Otherwise perform one targeted check comparing the plausible alternative that could change the answer; stop once it preserves the winner or resolves the ambiguity. Treat 2-3 tool actions as a soft target for direct structured lookups and 3-5 for multi-source, parsing, or statistical tasks. Exceed these only after a failed command, low coverage, contradictory evidence, or unresolved result-changing ambiguity. Do not repeat schema reads or computations that cannot change the answer.
Listing 6: Generated Self-Curated Latency context.
A.2.2 GEPA. We use GEPA version 0.1.1 [2] to optimize a persistent instruction prompt for accuracy. Optimization starts from an empty instruction and uses the same 12 development tasks as both training and validation data. Each candidate is evaluated through the same isolated Codex harness used for the no-context baseline. We cap optimization at 60 logical metric evaluations.