Here's a number that should make every enterprise AI leader uneasy: 68%. That's the share of companies with 100+ employees that have, in the past six months, traced a confident-but-wrong AI agent answer to missing or inconsistent business context, according to a July 2026 VentureBeat Pulse survey of 101 enterprises. The most common answer wasn't "once" — it was "more than once." This is not a model problem. The models are doing exactly what they were trained to do. The problem is what happens before the model generates its response — the context feeding into it. And the infrastructure enterprises are building to fix bad context is, so far, mostly revealing just how much bad context there actually is. Context failure is no longer an incident. It's a condition.
The Bill for Confident Garbage Is Coming Due
The financial damage isn't theoretical anymore. Amazon ran up a $1.8 million bill on an Anthropic Claude project — an 860% overshoot — that went unnoticed for five months. The task: matching author information on product pages. An engineer's postmortem noted that "mistakes that were trivial before the AI era became catastrophically expensive." Uber burned through its entire 2026 AI budget in four months and then capped every engineer at $1,500 per month in token spend. ServiceNow exhausted its full-year Anthropic coding budget in the first few months of the year. A single large enterprise client racked up $500 million in one month on Claude because no one set spending limits or usage guardrails. The common thread behind these blowouts? Every turn of the loop re-feeds the context window. The more context an agent requires to do its job, the more tokens it consumes, and the more chances it has to get the context wrong.
Six Ways Context Breaks
Industry analysis has converged on six primary failure modes, and they're all structural rather than technological. Context starvation happens at spawn time. An AI agent initializes without the business metadata it needs to interpret what it retrieves — definitions, ownership, lineage, business rules. As one CEO put it, the problem at the heart of many AI disappointments isn't bad code, it's context starvation. Agents dropped into complex organizations without institutional knowledge start with insufficient information, and no amount of mid-chain correction fixes a bad start. Context rot is the slow poison. AI systems don't just lose context between sessions — they degrade within sessions as conversations grow longer, favoring tokens at the beginning and end of input while ignoring the middle. Box CEO Aaron Levie has described the phenomenon: "The model will just get very confused and potentially focus on the wrong part of the information." For coding agents specifically, context rot manifests as the agent not erroring out, but getting quietly worse — re-introducing bugs it already fixed. The lost-in-the-middle problem is positionally dependent rather than content dependent. The same information may be retrieved correctly or missed depending solely on where it appears in the context window. Research on maximum effective context windows shows models claiming 200K tokens typically become unreliable around 130K — not a gradual decline, but sudden failure. The expansion from 4K tokens in 2022 to 1M+ in 2025 created a tempting illusion that capacity equals capability. Context window exhaustion from MCP bloat is the new tax. The Model Context Protocol was supposed to solve integration problems, but Anthropic's own research found MCP servers consuming a third of developer context windows before any real work began. On GitHub, one developer measured 20-30 registered MCP tools consuming 15-30KB of context window just for schemas. Ten MCP servers can consume 73% of the window, triggering compression before the first user message. Y Combinator president Garry Tan publicly declared "MCP sucks," complaining about bloated context, clumsy authentication, and manually toggled servers. Perplexity's CTO Denis Yarats said in March 2026 that his team is moving away from MCP. Context fragmentation and permission blindness hit at the enterprise level. Every system in a company speaks a slightly different language, and agents trained on that Tower of Babel produce confident garbage. Atlan's analysis of context problems notes agents struggle with "Context Fragmentation, Collision, Permission Blindness" — they retrieve data they shouldn't have access to, or fail to retrieve data they need because permissions aren't propagated. RAG implementation failures round out the list. 72-80% of enterprise RAG implementations fail to meet their stated objectives, and only about 30% of RAG pilots reach production. The demos are great. The production systems aren't. Research consistently shows these failures stem not from model quality but from infrastructure decisions made in the first few weeks of development.
The Semantic Layer Paradox
The industry has settled on a remedy: a governed semantic or context layer that gives agents and BI a shared understanding of the data. Enterprises are building this at scale — 32% run one in production, another 31% are piloting or building one, and 20% more are evaluating. But here's the paradox: enterprises with governed semantic layers are catching context failures at more than twice the rate of those without. 50% of enterprises with a semantic layer report recurring context failures, versus just 21% without one. The layer isn't causing failures — it's making them visible. This is, counterintuitively, good news. You can't fix what you can't measure. The organizations investing in context infrastructure are the ones learning just how broken their current context is. The ones without it are flying blind, assuming their agents are working when they're failing silently. The ROI can be substantial. A Strategy-commissioned study by UserEvidence found Mosaic's semantic layer produced an average net benefit of $3.4 million per customer, with ROI of 551% and a two-month payback period. Dataworkers reported a 66% reduction in AI agent hallucinations after deploying a context layer, saving each data team over $1.3 million annually. Gartner predicts that by 2027, organizations that prioritize semantic layers in AI-ready data will see accuracy improvements of up to 80% and cost reductions of up to 60%.
The Architecture Isn't Settled
There's no consensus on the right approach. According to the VentureBeat Pulse survey, hybrid retrieval leads at 30%, with "multiple architectures chosen by use case" close behind at 29% — a difference of one respondent. Enterprises remain firmly unwilling to hand the context layer to a single provider: just 12% intend to consolidate onto one model provider's native context stack. 37% hold to best-of-breed, and 37% plan an explicit mix. The buying criteria are shifting. Access control and permissions are now tied with ease of data ingestion as the top selection factor at 24% each. Response correctness is the primary success metric for 38% of enterprises. Companies are beginning to buy retrieval for the properties that govern context rather than the properties that move it. The cost of getting it wrong is staggering. AI hallucinations cost businesses $67.4 billion in losses in 2024 alone, according to Forbes. S&P Global reports companies abandoning AI initiatives jumped to 42% in 2025, up from 17% the year before. RAND puts the AI project failure rate at 80.3% in 2025 — roughly twice the failure rate of traditional IT projects. Three out of four enterprises that put AI customer-facing agents into production have already pulled them back, per Sinch's May 2026 research. Trust in fully autonomous AI agents fell from 43% to 27% in a single year.
[SPONSORED]
▶ ENTERPRISE GPU CLUSTERS ◀
Scale your AI model training seamlessly. Book a Demo.
What Practitioners Are Saying
The developer community has been vocal about these failures for months. On Hacker News, one commenter observed: "LLMs need context more than humans to perform well at any given task. They are inherently limited when tackling tasks whose context and results are specific to a business. Enterprises are experiencing FOMO. They love LLMs but are frustrated because their LLM doesn't fully understand their business." Another captured the operational reality: "Engineering time is very expensive and AI coding agents actually work now... but waiting for the LLM to 'just fix it' results in losses because it's such a mentally tiring workflow." On GitHub, practitioners are documenting the hard limits: "Hard limits still bite. Going over the model's max-tokens limit is a hard error, not a soft degradation. Long-context recall is imperfect. Even at 1M tokens, retrieval accuracy degrades with depth." One developer noted that OpenCode's context window handling relies on static values instead of resolving each model's actual window dynamically, leading to cache poisoning where a low limit from one provider overwrites another's native limit. One developer summarized the frustration with MCP economics: "A single MCP server with 8 tools might add 2,000 tokens of tool descriptions." Multiply that across multiple servers, and the context window is consumed before any actual work begins. The cost of knowledge fragmentation is also quantifiable at the enterprise level. Gartner estimates poor knowledge management costs Fortune 500 companies $31.5 billion annually in productivity losses. McKinsey puts the revenue and productivity loss from knowledge silos at $3.1 trillion annually. A Xebia study found knowledge fragmentation costs enterprises with 200 engineers between $2.3 and $3.1 million annually in avoidable costs.
Context Engineering Goes Mainstream
The emerging consensus is that context needs to be engineered as a first-class concern, not an afterthought. ThoughtWorks' Technology Radar notes that "as agents tackle more complex tasks, dumping raw data into large context windows leads to context rot and degraded reasoning. To combat this, teams are shifting from static, monolithic prompts to progressive context disclosure." The market is responding. Context engineering roles now command salaries between $84,000 and $235,000. NIO, the Chinese EV maker, is hiring an "Enterprise Semantic and Context System Architecture Expert" at a monthly salary of 50-80K RMB. Foote Partners reports AI engineering non-certified skills command a 20-24% base salary premium, with context engineering as a core component. Startups are moving in. Engram raised $98 million in eight months for a "memory layer" that lets models retain organizational workflows and context. Jedify raised $24 million in Series A funding, backed by Norwest with Snowflake as a strategic investor, to build "context graphs" for AI agents. MemoraX AI, founded by a former Huawei chief expert, completed three funding rounds in three months in 2026. The requirements for an effective context layer are structural. It must be dynamic — context must evolve as data and business rules change. It must be durable — persisting across sessions and agents. It must be governed, with access control baked in rather than bolted on. And it must be semantically consistent, with metrics and definitions shared rather than siloed. A semantic layer that exposes consistent definitions through MCP gives agents access to institutional context they can't derive from raw tables or prompt engineering. But semantic layers alone aren't enough. As Atlan's analysis notes, "Semantic layers failed because of misaligned incentives, poor migration economics, and being outside the execution path." The next generation — context graphs that sit in AI's execution path — may fare better, but risk fragmentation across vertical agents.
Why Detection Is Half the Battle
The 68% figure from VentureBeat's survey is a wake-up call. But it's also, paradoxically, a sign of progress. Enterprises are finally building the infrastructure to detect context failures. The first step to solving a problem is knowing you have one. VentureBeat's data supports this: 57% of enterprises reported confident-but-wrong agent answers traced to missing context, with over half saying it happened more than once. Among enterprises with governed semantic layers, the detection rate is more than double that of those without. The organizations investing in context infrastructure are the ones learning just how broken their context is. The alternative is what Atlan's analysis describes: "Most failures here aren't model failures. They're context failures. Enterprises wire strong models into weak data stacks, then act surprised when agents hallucinate numbers, double count revenue, or ignore row-level security."
The Path Forward Isn't More Model
The evidence suggests that without a fundamental shift in how enterprises think about context, the failure rates will only climb. Gartner predicts over 40% of agentic AI projects will be canceled by the end of 2027, citing escalating costs, unclear business value, and inadequate risk controls. LangChain's survey of 1,300+ practitioners confirms output quality is the top production barrier, and the root cause in most cases is not model quality. The survivors will be the ones that figured out context engineering before the bills came due. They'll be the ones who invested in governance, who measured context correctness, who built semantic layers that catch failures early rather than discovering them after a $1.8 million surprise. The question now is straightforward: will enterprises invest in the context engineering required to turn detection into prevention? Or will they continue wiring powerful models into broken context stacks and wondering why their AI investments aren't paying off? As one Hacker News commenter put it: "They all suck. I have to constantly switch between different CLIs, manually pass context around, and each agent has its own isolated memory." The models were never the problem. The context was.