MIT found that 95% of enterprise GenAI pilots returned no measurable P&L impact, and only 5% reached production at scale. Almost none of those failures were model failures.
The stalled pilots we get called into look identical from the inside. Someone spent three months on prompts and model selection. Nobody looked at the pipeline feeding it. When we trace a bad output back, it is a brittle query pulling stale or wrong records — the model was working correctly on garbage. Fix the pipeline and the same model suddenly looks smart.
The model is the kernel. The integration layer is the operating system around it, and that is where pilots die. Gartner forecast $644 billion in global GenAI spend for 2025, up 76.4% in a year, against that 95% figure. Big spend is not safe spend.
The demo-to-production cliff
A demo runs on clean, hand-picked data. Production does not. That is the entire gap, and it has three concrete failure modes once an agent gets write-access:
- Runaway cost. An agent stuck in a retry loop runs unattended for hours and burns thousands in API spend before anyone wakes up.
- Prompt injection. The top agentic risk, and not hypothetical — one arXiv study cut attack success from 73.2% to 8.7%, but only after layering multiple defenses. A single successful injection exfiltrates a secret in minutes.
- Quadratic token growth. Cost can scale with the square of context length, not linearly. "Just add more context" gets expensive fast, and past roughly the 40% context-fill mark many models get less accurate anyway. More context is not free, and it can make the system dumber.
None of these are model-quality problems. They are control problems, and NIST's GenAI Profile (AI 600-1) names all of them.
Three questions before anything gets write-access
Ask these of any partner, internal team, or yourself:
- Where is the circuit breaker that stops a runaway agent, and who set the spend cap?
- Who owns the audit trail when the agent writes to production data?
- What requires human approval before the agent executes a sensitive action?
A clean answer to those three tells you more than any benchmark. Build the circuit breaker before you grant write-access, not after the first incident.
Name your pattern
A demo says "we use AI." A production system names its pattern, and each one has a caveat you inherit:
- Self-RAG — the model rewrites its query and checks its own retrieval. Good for messy queries. Extra model calls add latency.
- Corrective RAG — filters or rejects weak retrieved chunks. Use when wrong context is costly. Needs a tuned relevance scorer.
- Adaptive RAG — routes simple and complex queries differently. Routing logic is its own complexity.
- GraphRAG — retrieves over a knowledge graph instead of flat text. Strong on relational data. Graph build and upkeep is real, ongoing work.
- Agentic orchestration — bounded tool calls with control flow. Untrusted output must never call tools directly.
These stack into retrieve, rank, generate, verify. Latency compounds at every layer, so caching and tight chunking are not optimizations you defer.
How do you know it works, rather than sounds confident?
Evals. This is the phase teams skip and the reason pilots die on real data.
Automation is safe when you can specify the objective and verify the output against it. No verification, no safe automation — you are shipping on vibes. The phased path that survives contact with production data:
- Scope one narrow workflow with a measurable outcome.
- Prove it on messy production data, not a clean sample, so you find out where it actually fails.
- Add evals and guardrails, so failures get caught before users do.
- Harden for latency, cost, and edge cases under real load.
- Hand over documented, with rollback in place.
Step five matters more than it sounds. A model has no memory of your system between sessions, so the knowledge has to live in documentation and code rather than in one engineer's head. "Done" means it still works in six months.
What it costs, and where the budget actually leaks
Roughly $50K for a proof of concept, $2M+ for a production system at scale with compliance. But the build is rarely what blows the budget — the runtime is. Quadratic token billing and cloud shock, the penalty for running elastic AI infrastructure with a static data-center mindset. Right-size compute before you scale, not after.
The most expensive AI code is not the broken kind. It is the code that almost works — it runs, it looks fine in review, and it writes to the wrong data while the screen looks correct. That is also true of the pilot itself. It demos beautifully and returns nothing, and the reason is never the part everyone spent three months tuning.
Full breakdown — integration patterns, NIST AI RMF mapping, and how to evaluate a delivery partner: teamvoy.com/blog/generative-ai-implementation-services
Written by Taras Voytovych, Founder & CEO at Teamvoy. More engineering writing at teamvoy.com/blog.
Top comments (0)