Why the AI prototype is not production ready, and what is missing

A prototype proves the model can do the task once, with someone watching. This checklist covers what it still needs before real users touch it, from the evaluation set to the handover.

Written by
Baraqix Engineering
Published
Read
8 min
Filed under
agents, build notes
WhatsApp assistant and CRMWhatsApp AI assistant connected to a CRM for an insurance agency. Customers message the business number through the WhatsApp Business API. An AI assistant answers and writes to the CRM: leads, policies and follow ups. Scheduled follow ups go back out through WhatsApp. When a conversation needs a person, a handoff passes it to agency staff with its context.FIG/CRM-04WhatsApp assistant and CRMLIVE PATHMODELASYNC OR FALLBACKGUARDRAILCRMescalatewith contextscheduled follow upsIN/WHATSAPPCustomerAPI/WABA-01WhatsAppBusiness APIAGT/CRM-01AI assistantCRM/FOLLOWFollow upsCRM/LEADSLeadsCRM/POLICYPoliciesGRD/HANDOFFHuman handoffOUT/HUMANAgency staffWhatsApp assistant and CRMWhatsApp AI assistant connected to a CRM for an insurance agency. Customers message the business number through the WhatsApp Business API. An AI assistant answers and writes to the CRM: leads, policies and follow ups. Scheduled follow ups go back out through WhatsApp. When a conversation needs a person, a handoff passes it to agency staff with its context.FIG/CRM-04WhatsApp assistant and CRMLIVE PATHMODELASYNC OR FALLBACKGUARDRAILCRMscheduled follow upsIN/WHATSAPPCustomerAPI/WABA-01WhatsAppBusiness APIAGT/CRM-01AI assistantCRM/FOLLOWFollow upsCRM/LEADSLeadsCRM/POLICYPoliciesGRD/HANDOFFHuman handoffOUT/HUMANAgency staff

An AI prototype is not production ready because it proves one thing: the model can do the task on friendly input while someone watches. Production needs the rest of the system around the model. That means an evaluation set, guardrails, structured state, timeouts, a cost ceiling, a log of every call, access limits, a human handoff, monitoring and a handover your own team can run.

Most of the AI work that reaches us is already half built. Of the four places these projects usually stall, the second is the prototype that lives in a notebook. It answers questions. It has no authentication, no retries, no rate limits, no logs and no cost ceiling. This note turns that stall into a checklist a CTO can run against a prototype before funding the next stage.

We came to language models from backend work, and most of this list is ordinary service engineering. Every example below is a system already described on this site.

01

The checklist at a glance

TAB/01Ten areas between a prototype and a system that ships.
AreaWhat the prototype usually doesWhat production needs
EvaluationJudged by whoever tried it lastA fixed set of real inputs with expected results, run on every change
GuardrailsA sentence in the prompt asking the model to behaveChecks in code before and after the model, with a defined response when one trips
StateFacts held in the conversation contextA structured record the application owns, changed through narrow tools
Failure handlingWaits as long as the API takesTimeouts on every model and tool call, retries with backoff, a fallback
Cost and latencyNo ceiling and no measurementA budget per request and per day with a hard stop, on a dashboard
LoggingPrint statements in a notebookEvery call stored with what the model saw, what it did, the time and the cost
Access and dataOne key that reaches everythingAuthentication, permissions per tool and data source, read only where possible
Human handoffNone, the model answers everythingA trigger, a person on the other end, and the conversation passed along
MonitoringSomeone looks when a complaint arrivesAlerts on errors, latency and spend, and real usage reviewed against the evaluation set
HandoverLives in one engineer's headA repository the client controls and a handover document their team can work from
02

Evaluation and regression tests

A prototype is judged by whoever tried it last, on questions they expected to work. The first prompt change after that is a guess, because nobody can say whether it made things better or worse.

Production needs an evaluation set: real inputs with the result that should come back, run on every change to the prompt, the model, the chunker or the threshold. For retrieval that is the passage that should rank first. For an agent it is the tool calls it should make and the state it should end in. The note on the site search names this as an early change for a client corpus. The phone ordering agent note lists its own evaluation set as small and hand run, one reason that agent is still demo stage. On our projects the evaluation harness is set up before feature work starts.

03

Guardrails on input and output

In a prototype the guardrail is a sentence in the system prompt asking the model to behave. A determined user or a malformed file gets past it.

Input guardrails sit before the model: length caps, rate limits and checks on files and abusive input. Output guardrails sit after it: does the answer cite something real, does it clear a confidence threshold, does it promise what the business cannot deliver. Each needs a defined response in code when it trips.

The phone ordering agent has guardrails on both sides of the conversation, and when a caller keeps abusing it the server ends the call, so the model cannot be talked into staying. The site search caps a query at two hundred characters, allows each address thirty searches a minute, and drops any passage below a similarity of 0.35. When nothing clears that threshold, the search console shows the miss as a miss. An honest miss costs far less trust than a confident wrong answer.

04

Structured state the model does not have to remember

Prototypes keep the order, the customer's details and what has been agreed inside the context window, and trust the model to carry them to the end. Every long conversation or retry is a chance to drop something.

Production writes state into a record the application owns. The model proposes changes through narrow tools, and the application validates them. In the phone ordering agent every item, quantity and modifier goes into an order state machine, and the model is asked to read the order back before the call ends. A returning caller's last stated allergy is only ever used to form a question, so the agent reconfirms it on every call and the kitchen ticket carries what the caller said today. Memory in an agent is a good source of questions. It should never decide something about a person.

05

Failure handling and timeouts

A prototype calls the model and waits. If the call fails the user sees an error or nothing. A tool that hangs can stall the whole agent loop.

Every model and tool call needs a timeout, retries with backoff for failures worth retrying, and a fallback: a smaller model, a queue that finishes the work later, or a plain message. The site search uses the last kind and asks the visitor to wait a moment and try again. Our scraping engine, SYS/SCRAPE-04 on the home page, applies the same thinking outside language models, with one adapter per source, retry with backoff and change detection that flags a broken adapter before it corrupts data. Our AI integration builds carry authentication, rate limits, retries, logging and a cost ceiling from the first commit.

06

Cost and latency budgets

A demo costs almost nothing, so nobody budgets it. Real traffic changes that. An agent loop with one extra model call per step, or a retry policy without a ceiling, multiplies the bill before anyone notices.

Production needs a cost ceiling per request and per day with a hard stop, a latency target for each step, and a dashboard someone reads. Latency is often plain engineering. The site search loads its embedding model once at server start. Loading it per request would turn a thirty millisecond query into one measured in seconds.

07

Log every call, with what the model saw

When a prototype gives a wrong answer, the usual investigation is to ask again and hope it reproduces. With a language model it often will not.

Production logs every model call with what the model saw, meaning the prompt, the retrieved passages and the tool results, and what it did, meaning the answer and any tool calls. Add the model version, latency, tokens and cost. A wrong answer then becomes a bug you can trace. In the systems we build every answer carries the passages or rows it came from. The WhatsApp assistant we built for an insurance agency, SYS/CRM-06 and the diagram at the top of this note, writes every message to the CRM. The site search logs each query, its top score and the result count to PostgreSQL, and reading that table weekly is cheap research into what visitors ask.

08

Access control and data boundaries

A prototype runs with one API key and one database connection that reach everything. That stops being fine when a second user can talk to it.

Production decides who may use the feature, which tools the model may call for them, and which data each call may touch. The safest boundary is a capability the agent does not have. The phone ordering agent's call flag store has no delete method, and the reset script for testing runs only from the server command line. Our NL2SQL system, SYS/NL2SQL-02, validates the generated SQL against the schema and runs it read only. Agents that call a client's tools go through MCP servers with permissions the client defines. An agent that cannot do a thing does not need a prompt telling it not to.

09

A path to a person

Prototypes answer everything. In production some conversations should end with a person: the user asks for one, the question is outside what the system knows, the model is unsure, or a wrong answer would cost more than a slow one.

The handoff needs a trigger the system can detect, someone on the other end, and the conversation so far passed along. The WhatsApp assistant in SYS/CRM-06 answers routine questions from the agency's own policy information and hands the conversation to a person on the team when it needs one, which is why the diagram draws the handoff as a guardrail. Sometimes the right handoff is an exit. When a caller keeps abusing the phone ordering agent, it says goodbye politely and the server ends the call.

10

Monitoring after launch

Launch is when the inputs stop being the ones you tested, and a provider can update a model under the same name.

Production needs alerts on errors, latency and spend, and a regular review of real usage against the evaluation set, with failed inputs added as new cases. It also needs proof that the running system is the one you think it is. The phone ordering agent note describes a version endpoint that reports the commit and the process start time, added after a stale process quietly answered test calls for an afternoon. In our process this is the Pilot: the first real version in front of a limited set of users, with monitoring, an evaluation report against real usage, and a decision on whether to scale it.

11

A handover the client's team owns

A prototype often lives on one laptop and in one engineer's head. If that engineer moves on, the system goes with them.

Production ends with the client's team able to run and change the system without us. The code lives in a repository the client controls from the first commit. At the end of a Build the handover document covers how to run it locally, how it deploys, where the secrets live, what each service does, the evaluation harness and how to read it, the known limits, and what to watch in the logs. It is written for an engineer who has never seen the codebase, because leaving should always be possible.

12

How we approach this for a client

We start with a Discovery Sprint: two weeks, with a fixed price agreed before we start. It runs against the client's real data and ends with two things: an architecture document with the design, the evaluation plan, the risks in order and a priced build plan, and a working spike of the hardest part in a repository the client owns. A prototype that needs an honest route to production is one of the things a Sprint is for. The client keeps both deliverables whether or not we continue.

Baraqix Engineering. Written by the engineers who did the work.

NOTE/03. First published .

Where this work fits

The services behind this note.

  • SVC/AI-01

    AI integration

    RAG, agents, MCP servers and voice, built into the product you already have.

  • ENG/SPRINT

    Discovery Sprint

    A fixed price Discovery Sprint. The architecture document and a working spike on your real data, in a repository you own.

If something in this note looks like your problem, the reply comes from the engineers who built it.