Nguyen Le Phong

From a Great AI Demo to Behavior Users Can Depend On

What changes between an AI demo and production: a written behavior spec, real evals, recovery paths, guardrails for a model that gets fooled, monitoring, pinned models.

The demo lands. You paste in a customer email, the model writes a reply that sounds like your best support agent on a good day, and within a minute the room is planning the launch. Then someone asks the boring questions. What if the email is in Vietnamese and English at once? What if the order number is missing? What if the provider takes twelve seconds? What if the reply promises a refund we don't offer?

Three people sit around a table covered in printouts and sticky notes, a laptop in front of them showing several app screens, checking an AI prototype against a launch list.
A demo shows the feature can work once. Production is about what it does on every other day.

Those questions are the real work, and they're good news. A prototype's job is to show what's possible quickly, and it did. It was built for the happy path, which is fine as long as nobody mistakes it for a promise to users. This post walks through the gaps between "it worked in the demo" and "people can depend on it", with a checklist you can bring to the next demo.

The model call is the small part

Back in 2015, a group of Google engineers wrote "Hidden Technical Debt in Machine Learning Systems." Their warning was that quick wins in ML are dangerous to treat as free, and that real-world ML systems commonly pick up massive ongoing maintenance costs. Among the causes they listed: undeclared consumers, data dependencies, configuration problems and changes in the external world (Sculley et al., NIPS 2015). LLM features run into all of those. The prompt and the model call fit on one slide. Input handling, retrieval, guardrails, logging, fallbacks, evals and cost control are where the weeks go.

Write down what the feature promises

A demo says "look what it can do." A production spec says what you promise, what you don't, and how you'll notice when the promise breaks. Before building more, answer these in writing:

  • Which inputs do we support, and which do we politely decline?
  • When information is missing, does the feature ask a question or make a guess?
  • What evidence does the user see next to the answer (sources, the record it used)?
  • What do we log, and what must never be logged?
  • What happens when the provider is down, slow or returns something malformed?

Most of these turn out to be product decisions wearing an engineering costume. Settle them with the PM now, because they're far cheaper to answer in a doc than in an incident review.

Swap the demo examples for a real eval set

A demo proves a handful of examples. Production needs a set of cases that looks like real traffic: easy, vague, empty, very long, mixed-language, adversarial and domain-specific ones. Hamel Husain's post "Your AI Product Needs Evals" (March 2024) lays out three levels: cheap assertion-style unit tests on every change, human and model review of logged traces, and A/B tests once the product is mature enough for real users. His case study, a real estate assistant called Lucy, had plateaued after early prompt tweaks and kept hitting "whack-a-mole" failures until the team built an evaluation process around it.

Two of his points are worth copying straight away. Remove the friction from looking at your data, because reading real traces is where you find the failure modes nobody imagined. And a 100% pass rate isn't the goal: how many failures you can live with is a product decision. How to Evaluate an LLM Feature Before Your Users Do It for You goes deeper on building that set.

Plan the recovery path before the wrong answer

The model will be wrong sometimes. What users experience depends on what happens next. Good recovery options include:

  • showing the source so the user can check it,
  • marking low-confidence parts instead of smoothing them over,
  • asking a narrower follow-up question,
  • handing the case to a person,
  • saving a draft for review instead of taking the action.

The closer the feature gets to money, privacy, someone's reputation or a customer's trust, the more of these you need, and the more they should be tested like any other code path. For layering defenses against made-up answers, see Reducing Hallucinations in LLMs, One Layer at a Time.

Assume the model will get fooled

Once real users and real documents flow through a feature, some of that text will try to steer the model. The OWASP Top 10 for LLM Applications, 2026 edition (released August 2026), keeps prompt injection at number one and sensitive information disclosure at number two, and moves excessive agency up to third (OWASP GenAI). The project leads frame it bluntly: stop trying to build a model that can't be fooled, and design the system around it so that a fooled model can't do serious damage (Help Net Security).

In practice that means the model gets the narrowest permissions the feature needs, its output is validated before anything acts on it, and risky actions such as refunds, deletes or outgoing messages go through a check that the model can't talk its way past.

Watch real behavior, and pin the model

An HTTP 200 tells you the request came back. It says nothing about whether the answer helped. Track what users do with the output: accept it, edit it, retry, abandon the flow, report a problem. Edit rate and retry rate per intent usually tell you more than a latency graph. Without those signals, the team is steering by its memory of the demo.

The model under your feature also changes. Pin a specific model version in production instead of a moving alias, and plan for upgrades. Vendors retire models on a schedule: as of November 2026, Anthropic's docs commit to at least 60 days' notice before retiring a publicly released model and recommend testing replacements well before that date. Claude Sonnet 4.5, for example, was deprecated on 30 September 2026 with retirement set for 30 November 2026 (Anthropic model deprecations). Your eval set is what makes those upgrades a routine afternoon instead of a scary week.

A checklist to keep next to every demo

Before "ship it"

Supported inputs and refusal rules. Evidence shown with each answer. An eval set built from realistic cases. Recovery paths for wrong or slow answers. Permissions and output checks that hold even if the model is fooled. Privacy boundary: what gets logged, what never does. Cost limit and latency target. Pinned model version and an upgrade plan. A named owner who reviews failures every week.

None of this kills the excitement. It slows the room down just long enough to see the rest of the work, which is a lot cheaper than finding it in production.

Try this week

  • Take your current AI prototype and write five inputs it was never shown: empty, vague, mixed-language, hostile, very long. Run them and read every output.
  • Pick the riskiest action the feature can take and add a check the model can't skip.
  • Add one user signal to your logs, such as whether the answer was edited before it was sent.
  • Look up the model version you're on and its retirement date. Put a reminder in the calendar to test the replacement a month ahead.
What did you think?

Frequently asked questions

Why do AI prototypes fail in production?
Demos are built for the happy path. Production brings vague, empty, mixed-language and hostile inputs, slow or failing providers, model upgrades, and users who depend on the answer. Without an eval set, recovery paths, guardrails and monitoring, those cases show up first as user complaints.
What should an LLM feature have before launch?
Supported inputs and refusal rules, evidence shown with answers, an eval set built from realistic cases, recovery paths for wrong or slow answers, permissions and output checks that hold even if the model is fooled, a privacy boundary for logs, cost and latency limits, a pinned model version with an upgrade plan, and a named owner who reviews failures.
How do I evaluate an AI feature before release?
Build a set of cases that looks like real traffic, including easy, vague, empty, long, mixed-language, adversarial and domain-specific inputs. Hamel Husain describes three levels: cheap assertion tests on every change, human and model review of logged traces, and A/B tests once the product is mature. Decide as a product team how many failures are acceptable.
Should I pin the model version in production?
Yes. Use a specific model version instead of a moving alias, and plan upgrades. Vendors retire models on a schedule. As of November 2026, Anthropic commits to at least 60 days' notice before retiring a publicly released model and recommends testing replacements well ahead of time. Run your eval set against the new version before switching.