What separates a demo that wows a room from a language model feature that survives its first month of real traffic? Usually not the model. It is the scaffolding around it: the evaluations, the guardrails, the logging, the fallback paths, and the boring operational habits that nobody claps for. Teams that ship successfully tend to follow a similar sequence of checks, and the gaps in that sequence are where most production incidents begin.
This checklist walks through the areas that matter most, roughly in the order you will hit them. It is not a rigid gate. It is a set of questions worth answering honestly before real users arrive.
Start with evaluation, not with the model
The most common mistake is picking a model first and figuring out quality later. The stronger pattern is the reverse: define what “good” looks like with a task-specific evaluation set, then use it to compare models, prompts, and parameters.
A practical eval set usually contains somewhere between 50 and several hundred examples drawn from real use cases, including the awkward ones. Edge cases, ambiguous requests, and inputs that should trigger a refusal all belong in the set. Then the set gets re-run on every prompt change, model swap, or parameter tweak, and the scores get recorded somewhere the whole team can see.
Two habits make evaluations actually useful rather than decorative:
- Freeze a regression suite. A small, stable set of cases that must never break, run automatically on every change.
- Track scores over time. A single pass rate tells you little. A trend line tells you when quality is drifting.
If you are unsure what “good retrieval” even looks like for your system, a practical checklist for evaluating retrieval quality is a useful companion to this section, since retrieval failures often masquerade as model failures.
Version control everything that touches the output

Prompts are code. Model IDs are dependencies. Sampling parameters are configuration. Treat all three as versioned artifacts with a changelog, because hosted models can be updated underneath you without warning.
The standard mitigation is pinning to dated model snapshots where the provider offers them, and pinning prompt templates by hash or semantic version. When something regresses, you want to answer “what changed?” in minutes, not days.
A simple versioning table keeps this manageable:
| Artifact | What to record | Why it matters |
|---|---|---|
| Prompt template | Version, author, date, diff | Trace regressions to a change |
| Model ID | Exact snapshot string | Providers update hosted models |
| Parameters | Temperature, max tokens, top-p | Small changes shift behavior |
| Eval scores | Pass rate per version | Proves the change helped |
Teams often skip the parameters row. Then a well-meaning engineer nudges temperature up for “creativity” and the structured output parser starts failing intermittently. Versioning catches that.
Validate every structured output server-side
If your application parses model output into JSON, database rows, or function calls, assume the output will eventually be malformed. Constrain generation with a schema where the provider supports it, and validate again on your server before anything touches downstream systems.
The JSON Schema standard is the common vocabulary here: it defines types, required fields, enums, and nesting rules that both the model constraint layer and your validator can share. Validation failures should be logged, counted, and surfaced as a metric, not silently swallowed by a try/catch block.
A useful rule of thumb: never let model output write directly to a database, trigger a payment, or send an email without a validation step and, for consequential actions, a human confirmation.
Treat prompt injection as an open problem
Prompt injection remains one of the hardest unsolved issues in LLM applications. Attackers embed instructions in documents, web pages, emails, or user input, and the model may follow them even when the system prompt says otherwise. The OWASP Top 10 for LLM Applications ranks prompt injection as its first risk, and the OWASP Top 10 for LLM Applications is worth reading in full because the other nine entries (insecure output handling, excessive agency, data poisoning, and so on) map neatly onto this checklist.
Practical defenses are layered rather than absolute:
- Separate trusted instructions from untrusted content, and mark the boundary clearly in the prompt.
- Strip or escape content that looks like instructions when it arrives from external sources.
- Restrict what tools and data the model can reach, so a successful injection has limited blast radius.
- Require confirmation for destructive or external-facing actions.
None of these fully solves injection. Together they reduce the damage a successful attack can do.
Give the model less power than you think it needs
Excessive agency is a recurring theme in postmortems. A model with access to a shell, a database write, or an email client is a model that can cause irreversible harm through a single bad generation.
The safer pattern is allow-listing: define the specific tools and operations the model may invoke, validate arguments against a schema, and gate high-impact actions behind explicit user approval. This aligns with risk-management guidance such as the NIST AI Risk Management Framework, which emphasizes mapping, measuring, and managing risks across the system rather than trusting a single component.
It also helps to distinguish clearly between the model, the orchestration layer, and the product surface around it. A breakdown of AI product versus platform roles is useful when deciding who owns guardrails, who owns evaluation, and who owns the tool permissions.
Log everything you will need at 2 a.m.
When a user reports a bizarre output, you need to reconstruct the exact request: the prompt version, the model snapshot, the parameters, the retrieved context, the raw output, token counts, and latency. Without that record, debugging becomes guesswork.
There is no universal schema for this yet, but OpenTelemetry’s semantic conventions for generative AI are the closest emerging standard for tracing model calls alongside the rest of your services. Adopting them early makes it easier to plug into existing observability tooling.
Two practical cautions. First, logs contain user data, so redact or hash sensitive fields at write time. Second, log volume grows fast; sample aggressively for high-traffic endpoints while keeping full detail for errors.
Plan for outages, rate limits, and deprecations
Providers go down. Rate limits get hit. Models get deprecated on schedules that change without much notice. Production systems handle all three gracefully.
The baseline engineering pattern is retries with exponential backoff, sensible timeouts, and a degraded path: a cached response, a smaller fallback model, or a clear “try again shortly” message. Circuit breakers prevent a struggling dependency from dragging down the rest of the app.
Deprecation is the quieter risk. Teams that pin to dated snapshots eventually face a forced migration, so it pays to track each provider’s deprecation notices and schedule a migration rehearsal before the deadline. A what to check in an AI platform launch review is a good moment to confirm that fallback paths and migration plans exist before you depend on a new endpoint.
Handle data privacy and retention deliberately
Before sending user data to any third-party API, answer three questions: what does the provider retain, is that data used for training, and where does it physically live?
In the European Union, the General Data Protection Regulation governs how personal data may be processed, and the EU AI Act adds transparency and risk-management duties for certain systems, with obligations phased in over several years. The official text of Regulation (EU) 2024/1689 is dense but worth checking against your use case, especially if you operate in regulated sectors.
On the engineering side, redact or tokenize personally identifiable information before it leaves your boundary, keep retention windows short where possible, and document the data flow so legal and security reviewers can follow it.
Red-team before launch, then keep testing
Adversarial testing finds the failures your eval set missed. Someone should deliberately try to make the system produce harmful, biased, off-policy, or embarrassing output, and the results should feed back into the eval suite.
There is no single accepted red-team methodology, which is both a problem and an opportunity: teams can adapt approaches from security testing, from user research, and from domain experts who know how real misuse looks. The key is doing it before launch rather than after a screenshot goes viral.
Monitor drift and quality after launch
Shipping is the midpoint, not the finish. Post-launch, watch a small dashboard of signals: eval scores on a held-out set, refusal rates, user thumbs-down rates, validation failure counts, latency percentiles, and cost per request.
Drift shows up in different ways. A provider updates a model. User behavior shifts. A retrieval index goes stale. A prompt that worked in January starts failing in June. Regular re-runs of the regression suite catch these before users complain loudly.
A lightweight weekly review of these metrics, plus a monthly re-run of the full evaluation, is usually enough for most teams. The point is having the habit, not the tooling.
Conclusion
A production LLM system is mostly ordinary software engineering with a few unusual hazards layered on top. Evaluation, versioning, validation, guardrails, logging, fallbacks, privacy, and monitoring are not exotic. They are the same disciplines that keep any distributed system healthy, applied to a component that is probabilistic, opaque, and occasionally surprising.
The teams that ship well are rarely the ones with the most advanced model. They are the ones who answered the boring questions early, wrote down the answers, and kept checking them after launch.
Frequently asked questions
How large should an LLM evaluation set be?
There is no single canonical number, and recommendations vary by source. In practice, teams often start with 50 to 100 carefully chosen examples covering core tasks and known edge cases, then grow the set as real usage reveals new failure modes. Quality and representativeness matter more than raw size.
Do I need to pin a specific model version in production?
Most teams find it wise. Hosted models can be updated by the provider, and silent changes can shift output quality or break parsers. Pinning to a dated snapshot, combined with a scheduled migration rehearsal, gives you control over when behavior changes.
Is prompt injection actually solvable?
Not fully, at least not today. It is widely treated as an open problem. The practical approach is defense in depth: separate trusted instructions from untrusted content, limit tool access, validate outputs, and require confirmation for consequential actions. Each layer reduces the impact of a successful attack.
What should I log for every LLM request?
At minimum: prompt version, model snapshot, parameters, token counts, latency, and the raw output. For retrieval-augmented systems, log the retrieved context too. Redact or hash personal data at write time, and sample high-traffic endpoints to control storage costs.
How do I handle provider outages and rate limits?
Use retries with exponential backoff, request timeouts, and a circuit breaker. Add a degraded path such as a cached answer or a smaller fallback model, and show users a clear message rather than a stack trace. Test the fallback path before you need it.
When should red-teaming happen?
Before launch, and periodically afterward. Adversarial testing surfaces harmful, biased, or off-policy outputs that standard evaluations miss. The findings should feed directly into the eval suite so the same failure cannot return unnoticed.
One addition worth making: instrument cost per request alongside latency, and set alerts on both. Token-based pricing means a prompt change or a runaway retrieval step can quietly multiply spend, and a cost anomaly often signals a quality or injection problem before other metrics move. Track spend by feature and by customer as well as in aggregate, so you can attribute a spike to its source.
A closing note on judgment
Checklists are useful because they are unglamorous. They force the team to answer the same questions every time, which is how good operational habits form. None of the items above guarantees safety or quality, and no list can anticipate every failure mode a probabilistic system will produce. The list makes common failures cheap to catch and uncommon ones easier to diagnose. Adopt it, adapt it to your domain, and revisit it after every incident.







