# From AI Prototype to Production

> A six-row scorecard for the gap between an AI demo and production: evals, failure handling, cost, observability, rollback, ownership.

Software Engineering · Deep Dive · By iVirtualSoft Editorial · Published 2026-12-04 · 6 min read

Every AI demo has a moment where someone chooses the input. Production removes that moment. From then on, inputs arrive at three in the morning, in the wrong language, pasted half-formatted from a PDF, and some are written by people who want the system to misbehave. The model is the same on both sides of launch. Almost everything around it has to change.

**Short answer:** an AI prototype becomes a production system when it has a measurable definition of "good", automated checks that run on every change, limits on what it can cost and do, visibility into what it did, a way back, and a named owner.

## An old gap with a new component

None of this is new. Sculley and colleagues argued in [Hidden Technical Debt in Machine Learning Systems](https://papers.nips.cc/paper_files/paper/2015/hash/86df7dcfd896fcaf2674f757a2463eba-Abstract.html) that fast ML results carry hidden maintenance costs, and named risks such as entangled components, hidden feedback loops, undeclared consumers, data dependencies and changes in the external world. Swap "model" for "prompt plus model plus tools" and the list still fits. A prompt is configuration that behaves like code. A model upgrade by your provider is a dependency change you did not schedule.

The same group's [ML Test Score](https://research.google/pubs/the-ml-test-score-a-rubric-for-ml-production-readiness-and-technical-debt-reduction/) paper (IEEE Big Data, 2017) observed that a model's behavior is hard to specify in advance, which makes specific tests hard to write. Its answer was a rubric of 28 concrete tests and monitoring needs. That instinct transfers to LLM systems: you cannot assert exact outputs, so you score the system against a rubric.

## The production gap scorecard

Here is the rubric we would apply. It has six dimensions. For each, the left column is what a working demo usually has, and the right is what production needs.

| Dimension | Demo-grade | Production-grade |
|---|---|---|
| Eval coverage | A handful of inputs the builder picked, judged by eye | A versioned set drawn from real work, with edge cases and a held-out slice, run automatically on every change |
| Failure handling | Model output used as-is; errors surface as stack traces | Output validated against a schema; timeouts, bounded retries and a defined fallback, each exercised in staging |
| Cost ceiling | Whatever the test account was billed | Per-request token limit, latency target and monthly cap, written down and enforced as failing checks |
| Observability | Console logs, if any | A trace per request with prompt version, model, retrieved context IDs, tool calls, tokens, latency and outcome |
| Rollback | Edit the prompt and hope | Pinned model versions, prompts in version control, the previous configuration always deployable, rollback rehearsed |
| Ownership | Whoever built it | A named owner for quality, incidents, changes and retirement, plus a human review loop |

How to use it: score each row honestly as demo-grade, partial or production-grade. The rule we'd apply is that any row still at demo-grade blocks launch for anything consequential, and partial is acceptable only with a date and an owner attached. Rows are not equally hard to fix later. Eval coverage and ownership are the expensive ones to retrofit, because every other row depends on them: you cannot tell whether a fallback is good enough without evals, and you cannot keep any of it working without an owner.

## Closing each gap

### Eval coverage

Start with the task, not the model. Anthropic's [guidance on building evaluations](https://platform.claude.com/docs/en/test-and-evaluate/develop-tests) says evals should "mirror your real-world task distribution" and include edge cases such as irrelevant or missing input, overly long input and ambiguous cases where even humans would disagree. It recommends turning vague goals into measurable ones: not "safe outputs" but a stated threshold over a stated number of trials. It also favors automated grading, by string match, code or another model, noting that more questions with slightly lower-signal automated grading beat fewer hand-graded ones. When a model grades another model's output, use a different model from the one that produced it, as Anthropic advises, and spot-check the grader against human judgment.

[OpenAI's Evals migration guide](https://developers.openai.com/api/docs/guides/evals) gives a practical start: score a few cases by hand, check your graders against them, and resolve differences before "using the scores in CI". The same page records that OpenAI's hosted Evals API and dashboard shut down on 30 November 2026. Own your eval harness rather than renting it.

Our additions: draw cases from real work, redacted where they contain personal data, and give every case an owner who can say what the right answer is. If nobody can say, the task is not ready for automation.

### Failure handling

Never feed model output straight into something that acts. Validate against a schema, check values against allowed ranges, and reject or route to a person on failure. OWASP lists [Improper Output Handling (LLM05) and Excessive Agency (LLM06)](https://genai.owasp.org/llm-top-10/) among its 2025 top ten LLM risks. The model proposes; deterministic code decides.

Every model call also needs a timeout, a bounded retry policy and a defined behavior when the model is slow, wrong or down: a cached answer, a simpler deterministic path, or a handoff to a person. A fallback you have never forced in staging is a guess.

### Cost ceiling

Write the budgets before the first prompt. They turn "it feels slow" into a failing check, and they shape design: a task that needs a large model, three retrieval calls and a retry loop may not fit, and it is cheaper to learn that on day one.

### Observability

Log enough to reconstruct any request. [OpenTelemetry's Generative AI semantic conventions](https://github.com/open-telemetry/semantic-conventions-genai) define a common vocabulary for GenAI spans, metrics and events, including MCP, so traces from different components line up. As of December 2026 the repository's front page does not state a stability level, so check its status before standardizing on attribute names. Capture prompt and response text deliberately, not by default; it often holds personal or confidential data. The companion piece on [data boundaries](https://www.ivirtualsoft.com/insights/ai-data-boundaries) covers logging without leaking.

### Rollback

Pin model versions where the provider allows it, keep prompts in version control, and attach a version identifier to every logged request. Then a quality drop traces to a change, and rollback is a config revert. Release to a small group first, compare against the current process, then widen. A rollback path that has never been run does not count.

### Ownership

A system with no owner decays. Name who watches the dashboards, who triages failures, who approves prompt and model changes, and who decides when to retire it. For consequential actions, a person approves before the system acts, and sampled production outputs feed confirmed failures back into the eval set. The NIST [AI Risk Management Framework](https://www.nist.gov/itl/ai-risk-management-framework) (version 1.0, January 2023) is a voluntary framework organized around four functions: Govern, Map, Measure and Manage. Ownership is Govern in miniature, and the other rows map onto the rest. For agents, the controls go further; see [what it takes to build AI agents that work](https://www.ivirtualsoft.com/insights/ai-agents-that-work).

## Where the scorecard sits in delivery

In [our six-stage delivery approach](https://www.ivirtualsoft.com/engineering.html), the scorecard is filled in at Analyze (success criteria and budgets), designed for at Design (validation, fallbacks, approval points), built in at Engineer (versioning from the first commit), proven at Validate (evals before and after every change), enforced at Deploy (staged release, dashboards, rollback) and kept honest at Improve (monitoring and failures fed back into evals). Nothing here is a separate "AI phase". Evals are tests. Prompts are config. Tracing is logging with a better schema.

## What should you do first?

If you have a working prototype and nothing else, collect fifty real examples with agreed answers, write the budgets, and run the prototype against the examples. Then fill in the scorecard. That exercise usually decides whether the next step is hardening, redesign or stopping, and it costs days, not months.

The takeaway is the scorecard's own rule: a prototype is ready when no row is still demo-grade, and the two rows to fix first are the ones everything else rests on, evals and an owner.

## References

- [Hidden Technical Debt in Machine Learning Systems (NIPS 2015)](https://papers.nips.cc/paper_files/paper/2015/hash/86df7dcfd896fcaf2674f757a2463eba-Abstract.html)
- [The ML Test Score: A Rubric for ML Production Readiness and Technical Debt Reduction (IEEE Big Data 2017)](https://research.google/pubs/the-ml-test-score-a-rubric-for-ml-production-readiness-and-technical-debt-reduction/)
- [NIST AI Risk Management Framework](https://www.nist.gov/itl/ai-risk-management-framework)
- [Anthropic, Define success criteria and build evaluations](https://platform.claude.com/docs/en/test-and-evaluate/develop-tests)
- [OpenAI, Evals migration guide](https://developers.openai.com/api/docs/guides/evals)
- [OpenTelemetry semantic conventions for Generative AI](https://github.com/open-telemetry/semantic-conventions-genai)
- [OWASP Top 10 for LLM Applications 2025](https://genai.owasp.org/llm-top-10/)

Source: https://www.ivirtualsoft.com/insights/ai-prototype-to-production
