From AI prototype to production: seven gaps and how to test them

Taking an AI prototype to production is the work of turning a demo that runs for the person who built it into an application a whole team can depend on every working day. We measure the distance between the two as seven gaps, and each gap has a pass or fail test you can run on your own prototype without reading a line of code.

Portrait of Tarang ChokshiWritten by Tarang Chokshi, Head of SaaS & AI Development, Rivulet IQ. Leads the team that builds web applications and mentors the AI engineering team.

Published . Last reviewed .

You leave with
Seven pass or fail tests for your prototype
Verdict
Keep, fix or rebuild, part by part
Worked example
An animation studio's rebuild

Is what you have a prototype, a pilot or a production application?

The three stages differ in who uses the tool, what data it touches and what happens when it fails. The useful question is which row your tool is in today, and what would move it to the third.

The three stages
StageWho uses itWhat data it touchesWhen it fails
PrototypeThe person who built itSamples the builder choseThe builder notices and retries
PilotA small named group who know it is a trialA limited slice of real dataSomeone is watching, and work falls back to the old way
ProductionEveryone the job belongs to, including people who have never met the builderAll of the real dataThe application reports the failure itself, and a named person owns the fix

If the word "application" is the unclear part, start with What is an enterprise AI application?.

What are the seven gaps between a prototype and a production application?

Each of the seven gaps is something a prototype may skip and a production application must have. Each gap below has a test you can run and what passing or failing it looks like.

  • Access

    The testAsk how a new colleague would get in.

    Pass
    Everyone signs in with their own company account, roles decide what each person sees, and someone has tried to reach another user's data and been refused.
    Fail
    A shared login, an open link, or a key pasted into the code.
  • Data path

    The testAsk for a written list of every outside service your data passes through.

    Pass
    The list exists and says, for each service, what it keeps and whether it may train on your data.
    Fail
    "It goes to the AI."
  • Answer quality

    The testAsk it something it cannot know.

    Pass
    It says it has no confident answer, and a saved set of real cases with expected results is rerun whenever a prompt or the model changes.
    Fail
    It always answers, and quality was judged by trying a few examples.
  • Record

    The testAsk what it did for one named user on a day last week.

    Pass
    The interaction is found by user and date, with the input, the output and the model version.
    Fail
    No log, or one that lives on the builder's laptop.
  • Cost at full use

    The testAsk what a month costs when everyone uses it.

    Pass
    Cost per task has been measured and projected for every user, and a cap or alert is set.
    Fail
    Cost is known only from the builder's own testing.
  • Upkeep

    The testHave a second engineer deploy it from the written instructions.

    Pass
    They manage it on a clean machine without calling the builder.
    Fail
    Only the builder can start it, or it runs inside one person's account.
  • Daily use

    The testWatch a daily user attempt the main task with the builder out of the room.

    Pass
    They finish unaided, and several people can use it at once and see where their request stands.
    Fail
    Only the builder and managers have tried it, or it serves one person at a time.

How should you read your results?

Pass gaps 1, 2 and 3 before the tool is given real company data, however good its output looks. Passing those three with anything from 4 to 7 still open describes a pilot: fine for a small group who know it is a trial. Seven passes is the minimum for production. "We are not sure" counts as a fail until someone shows you the evidence. An engineering go-live checklist goes further than these seven: our written one for AI features has 21 items.

What does AI software need that ordinary software does not?

AI software needs three things ordinary software does not: a way to check answers that vary, a limit on what it does with the content it reads, and a cost measured at full use.

The same question can produce a different answer on a different day, and the provider can update or withdraw the model underneath. That is why the pass for gap 3 is a saved set of cases that gets rerun.

An application that reads email, uploaded files or web pages is reading text someone else wrote, and the model may act on instructions inside it. The OWASP Gen AI Security Project lists this risk, prompt injection, first among its ten risks for applications built on large language models, and says it is unclear whether fool-proof prevention exists (OWASP LLM01:2025, checked November 29, 2026). The practical response is to limit what the application may do without a person's approval.

Cost is the third. A prototype used by one person says little about the bill for a department, which is all gap 5 asks about.

Keep, fix or rebuild: which verdict fits your prototype?

A prototype review ends in a verdict of keep, fix or rebuild, decided by where the fails sit. The verdict is given per part of the prototype, such as the model, the workflows, the interface and the layer underneath, and the overall recommendation follows from the parts. Here is when each overall recommendation applies.

Keep

When it appliesSeven passes, or fails a setting can close, such as turning on individual sign-in or a spending alert.

What happens nextIt stays where it is, with a named owner and a date for the next test run.

Fix

When it appliesGaps 1 and 2 pass on the platform it already runs on. What is missing can be added around a working core: a test set, logging, documentation, a screen for people other than the builder.

What happens nextThe core stays, the missing layers are built, and all seven tests are run again.

Rebuild

When it appliesPassing gap 1 or 2 takes a different environment: one that enforces individual access, keeps data where the data must stay, and serves several people at once.

What happens nextA new application is built on infrastructure that can pass. The prototype becomes the specification.

A rebuild keeps more than the word suggests. The prompts, the workflows, the choice of model and the builder's sample outputs normally carry over, and those samples become the first test set for gap 3. What gets replaced is the layer underneath, from sign-in and storage to logging and deployment. Rivulet IQ Foundation sets out the rules we apply to that layer, and the review that produces the verdict is the first step of AI Product Development.

Which prototypes are worth promoting?

A prototype is worth promoting when the idea held up in use, the source data supports it, and enough people would use it to justify the upkeep.

Some prototypes are already where they belong. A tool that saves its builder time and touches no private data can stay a prototype.

What does the work look like, in order, on a real project?

On one recent project the work ran as a review phase ahead of any building, a verdict on each part of the prototype, two delivery phases and a final test run in which 88 of 103 checks passed.

An animation studio came to us with an image tool one of its own people had built in a browser-based AI prototyping environment. It worked, but users waited in line with no view of job status, and it ran outside the studio's own infrastructure. The studio wanted its models in-house to protect its intellectual property, so the location alone failed gap 2 and the overall recommendation was a rebuild. What followed is the order we recommend.

  • Review before building.

    The first scope, agreed separately and ahead of the build, was a discovery and architecture review: a teardown of the prototype, an audit of the studio's GPU servers and storage, interviews with the people who would use the tool, a target architecture, and written acceptance criteria for image quality.

  • Keep and fix what already works.

    The verdict on the studio's model and style settings was keep. The generation workflows and the interface were, in our terms, both a fix: the workflows were repackaged for the studio's own servers, and the interface moved to a new front end.

  • Rebuild the missing layer as a small first release.

    The queue, job status and error handling were built new, with role-based access and structured logging, on the studio's own GPU servers. Model fine-tuning, video generation and a chatbot were kept outside phase one so the first release stayed small.

  • Add capacity second.

    Phase two brought several GPUs with fair turn-taking between artists, and each artist's queue position on screen. The load test simulated a studio day: artists arrive, generate, vary a prompt, pause and sometimes cancel.

  • Run the whole checklist and triage every miss.

    In the final run on a test server, 88 of 103 checks passed, and triage reduced the other 15 to two small fixes and one stale line in the specification. Automated browser tests ran alongside, on three browser engines at seven screen sizes.

  • Rehearse the handover and name the owner.

    Phase two was delivered on November 4, 2026, with a deployment guide and an upgrade guide that had both been dry-run end to end. Someone then has to be the person who is called when it fails and who reruns the tests when the model changes.

Questions before you commit to a production build.

What do you need from the person who built the prototype?

We need the prototype as it runs today, the prompts and workflows behind it, a set of outputs the builder considers good, and some of the builder's time. The builder knows which results are right, and that knowledge becomes the first test set.

How do we keep answers consistent after a model update?

You know by rerunning the saved test set from gap 3 against the new version before anyone relies on it. Providers update and withdraw models on their own schedule, and the test set is what shows whether the answers have changed. Our working rule for AI projects also treats every prompt as code, version-controlled and peer-reviewed.

Is code written with AI coding tools safe to put into production?

Code written with AI coding tools is safe to ship when it has had the same human review, and passed the same tests, as any other code. On a recent set of tasks built end to end with a coding agent, a senior developer's review found one minor spacing fix on mobile and no major issues.

How long does it take to get from prototype to production?

The time depends on four things: the security rules that apply, the number of systems to connect, the number of users, and how accurate the tool has to be. On the animation studio project the discovery scope was dated July 27, 2026 and the second delivery phase was handed over on November 4.

What should you do with your own prototype this week?

Run the seven tests yourself and write each result down as pass, fail or not sure. If any of the first three fails, hold real data back from the tool until you have a verdict. If you would like us to run the tests with you, tell us about the prototype.