Live Wire
15:33ZTASNIMNEWSShahid Mohaghegh is a lesson and example for today's generationThe Minister of Education in a conversation wi…15:32ZREADOVKANEPutin set the staffing level of the Russian Armed Forces at 2.399 million people. The President signed a decr…15:32ZJAHANTASNIShooting in the city of Midland in America15:32ZEURONEWSPutin set the staffing level of the Russian Armed Forces at 2,399,130 ​​people, including 1,510,000 military…15:31ZMYLORDBEBOGroup announces increased attacks on enemy infrastructure to deter civilian strikes15:31ZIDFOFFICIAIDF reveals recent operation killed over 10 Hezbollah field commanders15:31ZIDFOFFICIAIDF says over 10 Hezbollah commanders eliminated including appointed successors15:31ZDDGEOPOLITPutin Marks Russia Day, Praises Generation's Labor, Military Achievements15:33ZTASNIMNEWSShahid Mohaghegh is a lesson and example for today's generationThe Minister of Education in a conversation wi…15:32ZREADOVKANEPutin set the staffing level of the Russian Armed Forces at 2.399 million people. The President signed a decr…15:32ZJAHANTASNIShooting in the city of Midland in America15:32ZEURONEWSPutin set the staffing level of the Russian Armed Forces at 2,399,130 ​​people, including 1,510,000 military…15:31ZMYLORDBEBOGroup announces increased attacks on enemy infrastructure to deter civilian strikes15:31ZIDFOFFICIAIDF reveals recent operation killed over 10 Hezbollah field commanders15:31ZIDFOFFICIAIDF says over 10 Hezbollah commanders eliminated including appointed successors15:31ZDDGEOPOLITPutin Marks Russia Day, Praises Generation's Labor, Military Achievements
Markets
S&P 500742.69 0.67%Nasdaq25,953 0.55%Nasdaq 10029,681 0.80%Dow514.21 0.95%Nikkei92.95 0.84%China 5035.26 1.00%Europe89.7 0.27%DAX42.3 0.07%BTC$63,930 1.83%ETH$1,675 1.68%BNB$609.13 1.68%XRP$1.14 2.87%SOL$68.07 3.72%TRX$0.3139 2.22%DOGE$0.0893 5.08%HYPE$60.64 6.55%LEO$9.53 0.51%RAIN$0.0131 0.15%QQQ$722.71 0.78%VOO$683.07 0.71%VTI$367.1 0.77%IWM$294.7 1.48%ARKK$75.73 0.35%HYG$79.95 0.01%Gold$387.25 0.24%Silver$61.18 0.58%WTI Crude$126.06 2.15%Brent$48 2.30%Nat Gas$11.3 1.25%Copper$39.17 0.59%EUR/USD1.1567 0.00%GBP/USD1.3402 0.00%USD/JPY160.20 0.00%USD/CNY6.7623 0.00%S&P 500742.69 0.67%Nasdaq25,953 0.55%Nasdaq 10029,681 0.80%Dow514.21 0.95%Nikkei92.95 0.84%China 5035.26 1.00%Europe89.7 0.27%DAX42.3 0.07%BTC$63,930 1.83%ETH$1,675 1.68%BNB$609.13 1.68%XRP$1.14 2.87%SOL$68.07 3.72%TRX$0.3139 2.22%DOGE$0.0893 5.08%HYPE$60.64 6.55%LEO$9.53 0.51%RAIN$0.0131 0.15%QQQ$722.71 0.78%VOO$683.07 0.71%VTI$367.1 0.77%IWM$294.7 1.48%ARKK$75.73 0.35%HYG$79.95 0.01%Gold$387.25 0.24%Silver$61.18 0.58%WTI Crude$126.06 2.15%Brent$48 2.30%Nat Gas$11.3 1.25%Copper$39.17 0.59%EUR/USD1.1567 0.00%GBP/USD1.3402 0.00%USD/JPY160.20 0.00%USD/CNY6.7623 0.00%
OPENNYSEcloses in 4h 24m
themonexus.
Vol. I · No. 163
Friday, 12 June 2026
15:35 UTC
  • UTC15:35
  • EDT11:35
  • GMT16:35
  • CET17:35
  • JST00:35
  • HKT23:35
← back to Saturday edition◉ LIVE ON THE WIREfollow this thread in real time
Science

The Context Problem: Why AI Database Agents Hallucinate — and How Query Logs Might Fix It

Miro's data team discovered that AI agents querying live databases failed more often than not — not because of weak models, but because they lacked the contextual scaffolding that human analysts rely on. The fix may be sitting in every organization's SQL query logs.
Miro's data team discovered that AI agents querying live databases failed more often than not — not because of weak models, but because they lacked the contextual scaffolding that human analysts rely on.
Miro's data team discovered that AI agents querying live databases failed more often than not — not because of weak models, but because they lacked the contextual scaffolding that human analysts rely on. / Decrypt / Photography

When Miro's data engineering team began routing AI agents directly against their Snowflake data warehouse, the results were humbling. Across a series of internal benchmarks, the agents returned wrong answers more than 65 percent of the time — failures that ranged from incorrect aggregations to entirely hallucinated table joins. The models were not the problem. The context was.

The finding, documented by Miro's data team and reported by VentureBeat on 28 May 2026, represents a concrete data point in a broader reckoning inside engineering organizations: autonomous agents are powerful in sandboxed demonstrations and brittle in production environments where database schemas are sprawling, naming conventions are inconsistent, and the semantic relationships between tables require institutional knowledge the model never had.

The Context Gap in Database Agents

Modern AI database agents operate by translating natural-language questions into SQL queries. The architecture is elegant in theory: a model receives a user prompt, infers intent, generates a query against the target schema, and returns results. In practice, this pipeline assumes the model understands the database's logical structure — which tables exist, how they relate, what column names mean in context, and which historical queries established the patterns analysts use to validate outputs.

None of that context arrives with the prompt. When an agent receives a question like "What was our revenue growth in Southeast Asia last quarter?", it must infer which tables contain revenue data, how geography is encoded, and what definition of "growth" the organization typically uses — decisions that a human analyst makes from years of accumulated database familiarity.

Miro's team found that simply increasing model capability did not close this gap. Upgrading from one frontier model to another left error rates largely unchanged. The agents were not failing because they were not smart enough. They were failing because they were flying blind.

Query Logs as Institutional Memory

The intervention Miro's team tested was straightforward in concept: feed the agent historical SQL queries alongside the current question. Every organization with a mature analytics practice generates a continuous stream of these logs — records of which questions were asked, which queries were written to answer them, and which results were accepted or corrected. That history encodes exactly the institutional knowledge the agent lacks.

When Miro's agents received relevant prior queries as additional context, error rates dropped substantially. The agents could see how a previous analyst had structured a similar revenue question, which tables they had joined, and how they had filtered by region. The hallucinated table joins disappeared not because the model improved, but because the agent had access to the patterns humans had already established.

This approach — using query logs as a retrieval-augmented context layer — reframes the problem of agent reliability. Rather than requiring models to memorize database schemas during training, organizations can expose agents to the living record of how those schemas are actually used. The logs function as a form of organizational memory that survives staff turnover and documents the implicit conventions no schema diagram captures.

What This Means for the Autonomous Agent Thesis

The broader case for AI agents rests on the premise that automation can extend from simple, well-defined tasks into the complex, judgment-laden work of knowledge workers. Database querying sits at an awkward midpoint: structured enough to be automatable in principle, but dependent on contextual understanding that current models cannot reliably derive from schema metadata alone.

Miro's findings suggest a viable path forward that does not require waiting for the next generation of foundation models. Organizations with established analytics practices already possess the key input — years of logged queries that represent hard-won institutional knowledge. Making that knowledge accessible to agents is primarily an engineering and data architecture challenge, not a frontier model research problem.

The implications for enterprise AI deployment are not trivial. If database agents can be stabilized through context enrichment rather than capability scaling, the path to production reliability narrows considerably. Engineering teams do not need to wait for a breakthrough in reasoning; they need to build better retrieval pipelines around their existing query history.

Open Questions and Industry Adoption

Several caveats deserve attention. Miro's benchmarks were conducted against a specific database architecture and a defined set of query types. Whether the gains from query-log augmentation generalize across different schema designs, different domain vocabularies, or different agent architectures remains an open empirical question. The AI engineering community has not yet converged on standardized benchmarks for database agent reliability, making cross-organization comparisons difficult.

There is also the question of log quality. Query logs encode both correct patterns and legacy workarounds — queries written to compensate for schema design decisions that have since been corrected. An agent retrieving historical context without curation may inherit the habits of analysts who were working around database limitations, amplifying errors rather than correcting them.

Still, the core insight — that the hallucination problem in database agents is fundamentally a context problem, not a capability problem — offers a productive reframe. For organizations evaluating autonomous AI systems for data work, the relevant engineering question may not be which model to choose, but how to surface the institutional knowledge their existing query logs already contain.

This article was drafted from a single primary source. Monexus will update as additional benchmarks and independent replications become available.

© 2026 Monexus Media · reported from the wire