Every story here follows the same shape: a number that moved, the root cause, the fix, and the guardrail added afterwards. Learn the shape and the numbers travel with it.
Key Terms
| Term | In one line |
|---|---|
| Cache key collision | Normalizing the query text so aggressively that distinct questions hash together |
| Silent auto-migration | The provider deprecates your pinned version and moves you; CI catches nothing |
| Eval blind spot | A static aggregate score that hides a regression in one query category |
| Abstain gating | Refusing to answer below a retrieval-confidence threshold instead of guessing |
| Index staleness | Nightly rebuild means a Tuesday doc change is wrong until Wednesday |
| Context-window truncation | Long multi-turn threads silently dropping the earliest context |
| Cross-tenant leakage | Retrieval returning a chunk the requesting user was never entitled to see |
Numbers That Matter
| Figure | Value | Where it bites |
|---|---|---|
| Cost blowout | $8,200 → $41,000/month in one cycle | Six weeks after launch, no volume alarm existed |
| Vector scale wall | 400K chunks fine at p95 180ms | Single-node pgvector degrades as the corpus grows |
| Rate-limit incident | 429s to ~30% of users over 40 min | Traffic spike with no provider-side quota headroom |
| Eval false-negative | 150 golden pairs, 94% pass — regression still shipped | Aggregate scores hide per-category collapse |
| Adoption decay | 35% week one → falling by week three | Novelty is not adoption; instrument week 4+ |
| Latency drift | p95 1.8s at POC → degraded at ~2,000 users | Concurrency, not model speed, is the usual cause |
| Embedding migration | 1536 → 3072 dims | Full re-index, dual-write window, and a rollback path |
Decision Rules
- Alert on spend velocity, not just spend. A monthly budget alert fires after the money is gone; a day-over-day multiplier alert fires while you can still act.
- Never trust a single aggregate eval score. Break the golden set down by query category and alert on per-category regression — a flat 94% hid a total collapse on one category.
- Pin model versions and test the replacement before the provider forces you. Auto-migration inside a model family still changes behaviour, and CI that only checks response shape will pass it.
- Cache on semantics carefully. Over-normalizing the key merges distinct questions; include the entitlement scope in the key or you’ll serve one tenant’s answer to another.
- Rebuild-on-change, not rebuild-on-schedule. If a nightly job owns your index, your answers are wrong for up to 24 hours every time a source doc changes.
- Abstaining is a feature. A system that says “I don’t have a confident answer, here’s who does” outperforms one that guesses — and it is far easier to defend after an incident.
- Agentic failure is usually loop control, not reasoning: a planner with no iteration cap, no cost ceiling, and no termination criterion will spend real money going nowhere.
- Monitor answer quality, not only latency, errors and cost. All three were green during a relevance collapse in one query category.
Say This Out Loud
“About six weeks after launching an internal ticket summarizer our monthly spend went from roughly eight thousand to forty-one thousand in a single billing cycle. The root cause wasn’t a bug — it was success plus a missing guardrail: adoption tripled, every summary pulled full ticket history as context, and we had a monthly budget alert rather than a rate-of-change alert. We added per-feature cost attribution, a context-length cap, and a day-over-day velocity alarm. I now treat cost as a production signal with a pager, not a finance report.”
“We shipped a prompt change that passed our eval suite of a hundred and fifty golden pairs at ninety-four percent, essentially flat. It was still a regression — the aggregate hid a category that had collapsed almost entirely. That taught me that a single number is not an evaluation. We broke the golden set out by category and alerted on per-category movement, and we caught the next one before it left staging.”
“The most valuable feature we added was letting the assistant abstain. Below a retrieval confidence threshold it says it doesn’t have a confident answer and routes to a human. Correctness on the golden set went from seventy-one to eighty-nine percent, and more importantly the trust curve turned — people forgive ‘I don’t know’ and they don’t forgive confidently wrong.”