From Prototype to Platform
Our AI runtime passed every check we had, then a four-prompt demo showed us what those checks couldn't see.
Four prompts
The demo was four prompts long. It started with a margin question and ended with a time entry, in front of stakeholders, on a system we’d spent two months making testable.
The answers ran long. They pulled in material nobody had asked for. And when the questions reached into a project’s phases, the system didn’t understand that phases sit underneath a root project.
Two months of work, and the first real audience found three problems in four prompts. None of our checks had caught any of them. To see why, it helps to go back to January, when I thought we were most of the way to a product.
One front door
At the start of the year, the project analytics agent was the system’s only entrypoint. In January the team replaced it with one runtime that read the request and sent project questions to one set of tools and time-entry requests to another. Memory, tenant-scoped caches and deployment all moved behind that single door.
It was real progress. We’d gone from one specialist to something that could work across two domains, and adding a third capability no longer meant building it a front door of its own.
The shape also made sense for what we needed. People had to reach both analytics and time management through one conversation, without knowing or caring which part of the system did what. An orchestrator at the entrance that reads the request and hands it to the right specialist is the design most teams would sketch first, and for good reason.
Here’s where I went wrong. I treated a clean runtime shape as most of the distance to a product. Routing proved the parts could be connected. It didn’t prove the deployed agent would answer, that a prompt edit wouldn’t quietly change its behavior, or that an answer its author liked would hold up in a room full of people who’d actually use it.
Make it answer
The first gap was simple. Our delivery checks validated code and configuration. A pull request could go green while the agent it deployed couldn’t answer a single question.
So I wrote runtime validation that called the deployed agent, put the model’s reply straight into the pull request, and cleaned up after itself when a run failed. That last part matters more than it sounds. A check that leaves debris behind after a bad run makes the next run harder to trust.
Reviewers no longer had to guess whether the runtime was healthy from static checks. The answer was sitting in the PR.
If you’ve worked on an AI product, you’ve probably met this trap. Static checks tell you the code is shaped right. They say nothing about whether the model on the other end will reply, let alone reply with something sensible. Putting the live reply in the pull request changed the question from “did it deploy” to “did it answer,” and that’s the one worth asking before you merge.
About a week later I built the prompt-testing foundation, with unit suites across orchestration, both agent areas, response formatting, configuration and utilities, and made behavioral and component tests part of how we shipped. Until then, prompts were text we read by eye. After that, if a prompt or a helper could change an answer, it had a test. The work landed on both active branches the same day.
That changed what counted as engineering on this product. Orchestration instructions, agent prompts and formatting rules had sat outside the test suite because they looked more like copy than code. But anything that can change an answer is behavior, and behavior belongs in the same delivery system as everything else.
By the end of January I thought the remaining risk was coverage: write enough tests and the routed system would hold. That was half right.
What the room saw
By March we had the routed runtime, live validation and prompt tests. Then came the four-prompt demo from the top of this post.
A correct-looking answer and a useful answer aren’t the same thing, and the demo pulled three different failures out of that gap. An answer could hold the right numbers and bury them. Routing could reach the right analytics tool and still pick the wrong level of the project tree. A response could be on topic and still carry content the audience didn’t need.
Unit tests couldn’t see any of this, because each unit did its job. The demo was the first time question choice, routing, data, hierarchy and presentation all ran together, in front of people. Runtime validation proved the agent could answer. The demo asked whether the answer deserved to be on screen.
That’s the uncomfortable part of building on a language model. Every piece can be correct and the whole can still be unhelpful, because helpfulness only shows up when someone reads the full answer to a question they actually care about.
I wrote the failures down as product gaps instead of shrugging them off as demo roughness. Length and irrelevant content went on the product list. The phases miss went on the routing and project-analysis list. The next cycle had specific problems to fix because the demo had shown them at the level a user sees.
Those first three months kept asking me to change hats. I was the engineer when the runtime needed a check, the manager when a check had to become a gate, and the product manager when a demo showed that the answer itself was wrong for the room.
Don’t just fix the four questions
The obvious move after a rough demo is to fix the four prompts that went wrong. You tune a prompt, the four answers look better, and nobody can tell you what happened to all the questions that weren’t in the room. The next demo looks great. The product is exactly as fragile.
We needed the demo to stop being a memory. Less than two weeks later the team moved golden scenarios into versioned YAML and put an evaluation harness into CI, starting with a bank of project KPI cases. I helped build the harness, fixtures, tests and workflow, and I made passing it a gate for merging.
The gate was the point. An eval suite that lives in a doc someone might remember to run tends to get run before demos and skipped the rest of the time. In CI, a prompt or tool change has to show its work before it lands.
Golden cases didn’t make the model deterministic. They made our expectations stick around. A scenario could be reviewed, versioned, rerun and compared after every change, so “it worked in the last demo” stopped being something one person remembered and became something the whole team could check.
Where it left us
In January I’d have described the platform in runtime terms: one entrypoint, shared infrastructure, routed specialists, central state. By March it also meant a way to prove the runtime was alive, that its pieces hadn’t regressed, and that the questions we cared about still got the answers we’d agreed on.
The runtime survived the demo. What changed was the standard it had to meet. The prototype had shown a route from a question to an answer across more than one domain. The platform made that route visible, testable, and open to being contradicted by what people actually saw on screen.
We hadn’t fixed everything the demo found. What changed is that we couldn’t forget it anymore. The failures lived in versioned scenarios instead of in my head.
Next came the choices we’d made for speed. The first to go was the shortcut that let a model decide what a filter meant.