← Research
Field Notes4 Aug 2026

Prompt to Production: Shipping AI Features Without Breaking Things

A prompt that works in a playground is not a shipped feature. Here's the internal pipeline we use to take AI from a working prompt to something safe to run in production.

Dylan Marchingo7 minProduction EngineeringMLOpsPrompt EngineeringAI Pipelines

A prompt that works when you try it a few times in a playground feels like a finished feature. It isn't. The gap between "this prompt gave me a good answer" and "this is safe to run thousands of times a day in front of real users" is wide, and most of the discipline of applied AI lives inside it. This is a field note on the pipeline we use to cross that gap — how a working prompt becomes a production feature without becoming a liability.

Treat prompts as code, because they are

The first shift is to stop treating prompts as text you paste and start treating them as code you version. A prompt is logic — it determines what the system does — and unversioned logic that lives in someone's playground history is a system you cannot reason about, reproduce, or safely change.

That means prompts live in the codebase, under version control, reviewed like any other change. When a prompt changes, you can see exactly what changed, who changed it, and why. When something breaks, you can trace it to the change that caused it and roll it back. This sounds obvious stated plainly, and it is routinely skipped, because prompts feel like content rather than code. They are code. The systems that stay debuggable are the ones that were honest about that from the start.

Evaluate before you ship, automatically

The second piece is refusing to ship a prompt change on the strength of having tried it once. A change that improves one answer can quietly degrade ten others, and you will not know unless you check systematically. So every meaningful prompt change runs against an evaluation set — a fixed collection of representative inputs with known good outputs — before it ships, the same way code runs against a test suite.

This turns prompt engineering from guesswork into something measurable. You make a change, you run the evals, and you see whether quality went up or down across the board rather than on the one example you happened to look at. Without this, you are optimising blind — improving the case in front of you while unknowingly breaking others — and the degradation only surfaces later, in production, reported by a user. The eval set is the difference between changing a prompt with confidence and changing it with fingers crossed.

Roll out in stages, watch what happens

The third piece is resisting the all-at-once deploy. Even with good evals, production surfaces behaviour your test set didn't capture, because real users are more varied and more adversarial than any fixed collection of examples. So a new or changed AI feature rolls out gradually — to a slice of traffic first, watched closely, before it reaches everyone.

Staged rollout means that when something behaves unexpectedly, it affects a small fraction of users and you catch it early, rather than discovering it at full scale. It is the same logic as any careful software deploy, and it matters more for AI, not less, because the failure modes are subtler — not a crash, but a slow drift in answer quality that a staged rollout gives you the chance to notice before it is everywhere.

You cannot manage what you cannot see

The fourth piece is observability. A probabilistic system running in production needs to be watched in ways deterministic software does not, because it fails quietly. Ordinary code that breaks throws an error; an AI feature that degrades just gets a little worse, with no alarm. If you are not capturing what the system is actually producing and monitoring it, you will not know quality has slipped until a user tells you, which is the most expensive possible way to find out.

So the pipeline includes capturing real inputs and outputs, tracking the signals that indicate quality, and making the whole thing visible. That observability then feeds back to the start of the loop: the real inputs you capture become new cases for the evaluation set, so the system gets better at catching the failures it has actually seen.

The pipeline is the product discipline

None of these four pieces — versioned prompts, automated evaluation, staged rollout, observability — is exotic. They are the ordinary disciplines of shipping software, applied honestly to AI. The reason they matter to name is that AI's demo-friendliness makes them easy to skip. A prompt that works once is so convincing that the temptation to ship it straight to production is strong, and giving in to that temptation is how you end up with a feature that looked great on day one and quietly broke by day thirty.

The pipeline is what turns a clever prompt into a system you can trust, change, and stand behind. It is slower than pasting a prompt and calling it done. It is also the whole difference between an AI feature that survives contact with real users and one that doesn't.