All posts

Beyond HTTP 200: evaluating the real quality of AI applications

14 min read
On this page

An LLM request can return 200 OK, a schema-valid JSON body and a fluent summary, and still be factually wrong. It can attribute an action to the wrong person, invent a commitment nobody made, and cite a transcript segment that exists but does not support the claim. Every operational signal I have says the request succeeded. Latency is fine, the worker is healthy, the provider is not erroring, the JSON parses. Nothing in a normal metrics, logs and traces stack can see that the answer is a fabrication.

That gap is the whole reason I invested in AI evaluation infrastructure, and the reason I run a self-hosted Arize Phoenix instance at evals.liamwh.com. This post is about what a model benchmark on my product taught me, why the answer turned out to be mostly about my own application, and where a specialised evaluation platform fits next to the native evaluation harness I already had. The deployment mechanics of the Phoenix instance are in a separate post; here I want the reasoning.

A note on scope before the numbers. Everything quantitative below is a historical checkpoint from a completed synthetic benchmark, not a claim about my live production configuration. Independent semantic judging and real-world qualification were not finished at that checkpoint. I will keep implemented capabilities, measured results and proposed work clearly separated, because the honest version is the useful one.

The question a public benchmark cannot answer

Evidia is a conversational-intelligence product: meeting recording and transcription, structured analysis, summaries, action-item extraction, speaker attribution, decisions and commitments, compliance-sensitive analysis. The backend is Rust over Axum, the frontend SvelteKit, with PostgreSQL, Redis, S3-compatible storage and a Grafana LGTM observability stack underneath. Meeting analysis is not “send a transcript to a model and show the text”. It is structured generation, application-level validation, evidence references, several analysis components, corrective retries and business rules.

I had been running GPT-OSS 120B through a European provider as the principal inference model, and I was not fully satisfied with its quality. I wanted a more capable, cheaper open-weight model while keeping European data processing. The tempting framing is “which model scores highest on a public benchmark”. That is the wrong question. The right one is:

Which model produces the best results when running my actual meeting-analysis workload, counting factual quality, reliability, latency, retries and cost?

Public leaderboards are a useful screening signal. They do not tell you how reliably a model will follow a particular application schema, distinguish a suggestion from a decision, attribute an action to the correct speaker, preserve a financial amount and a deadline, handle contradictory information, produce valid supporting evidence, read Dutch and English conversations, resist prompt injection, and cooperate with application-specific validators. General intelligence and suitability for one production workload are not the same measurement.

Evaluating the real pipeline, not a stand-in prompt

The obvious shortcut is a Python script that approximates your prompts. I refused it. A proxy prompt drifts from production the moment production changes, and it silently excludes the validators, retries and assembly that decide whether a user sees a good analysis.

So I extended the existing Rust evaluation infrastructure. The runner, bounded_analysis_eval, drives Evidia’s real meeting-analysis implementation and provider abstractions. Along the way the provider layer was modernised: rig-core moved from roughly 0.32 to 0.47.1, which let the application use Rig’s newer provider architecture and shed some custom transport code, and the evaluation harness became substantially provider-neutral.

The principle that emerged is worth stating plainly:

The evaluation target is the complete effective AI execution contract.

That contract is the model, the provider, the prompts, the schemas, the sampling settings, the reasoning effort, the context construction, the application logic, the validation and the retry behaviour. Change any one of them and the result can move materially. A harness that measures the contract, not a model name, is the only one that answers the question I actually asked.

The harness records the configuration it ran under: application revision, requested model id, provider, effective reasoning configuration, sampling settings, context and output limits, generation contract, dataset fingerprints, observed provider information, token and reasoning-token usage, latency, corrective retries, mechanical and structured-output failures, validation failures, and cost.

The benchmark’s most useful finding was about my own code

Several failures that looked like model weaknesses shared one root cause, and it was in my application.

The production generation contract had an inconsistency. Evidence arrays were optional in the generated JSON schema, because Serde defaults made them so. The application validator, though, required supporting evidence whenever the corresponding analytical field carried a meaningful value. A model could therefore emit a schema-valid response that the application then rejected. Different models tripped over it differently: some omitted the arrays, some returned empty ones, some put evidence references into narrative prose instead of the structured field, and some exhausted their corrective retries. The application was advertising one contract through its schema and enforcing a stricter one afterwards.

A second case was consent-purpose analysis. When no consent discussion happened, some models returned an unknown consent status with a placeholder purpose like “None”. The application read that non-empty purpose as a factual assertion needing evidence, and failed validation again.

The benchmark introduced an improved generation contract, “Contract v2”: evidence arrays explicitly required, clearer evidence-identifier semantics, clearer semantics for an absent consent purpose, and a contract that matched what the validator enforced. It was tested through a local relay so production behaviour stayed untouched during the experiment; the relay was a mechanism for the study, not a design I intend to keep. The production fix implements the contract improvements directly.

This is the lesson I most want engineers to take from the whole exercise:

When an AI application fails, do not assume the model is not intelligent enough. The application may be handing it an inconsistent, ambiguous or needlessly hard contract.

Switching providers would not have removed those defects. The benchmark was valuable as much for exposing my application as for ranking models.

The held-out comparison, read carefully

The final run evaluated seven frozen configurations across 40 held-out synthetic meetings. Five completed all 40; two more expensive reference configurations stopped early against the spend cap, so they are not directly comparable and I keep them out of the charts. The corpus is 97 authored fictional meetings, 52 Dutch, 34 English and 11 mixed-language, across seven domains, split into screening, development, regression and a 40-case held-out cohort that was not used while choosing the finalists.

Grouped bar chart comparing mechanical success and factual gold-qualification rates across five model configurations over 40 held-out meetings. GLM-5.3 Flash low has the highest mechanical success at 95 percent but the lowest gold qualification at 60 percent; DeepSeek 0731 low has 90 percent mechanical and the highest gold qualification at 80 percent.
Mechanical success and deterministic gold qualification, both over the full 40-meeting cohort. The two measures disagree, and that disagreement is the point.
configurationmechanicalfirst-passgold-qualifiedcritical failures€ / mechanicalmedian latency
GPT-OSS 120B (baseline)34/4028/4027/4060.010576 s
DeepSeek 0731 · low36/4031/4032/4040.007274 s
DeepSeek 0731 · none36/4029/4026/40100.004020 s
GLM-5.3 Flash · low38/4032/4024/40120.004830 s
GLM-5.3 Flash · none33/4030/4025/4080.005834 s

Read the two right-hand quality columns together. GLM-5.3 Flash with low reasoning produced mechanically valid analyses for 38 of 40 meetings, the best mechanical rate in the field. If I had measured only schema validity or “the pipeline completed”, GLM would have won. Against the factual qualification criteria it qualified on only 24 of 40 and recorded 12 critical failures. DeepSeek 0731 with low reasoning was mechanically second (36 of 40) but qualified on 32 of 40 with 4 critical failures. The mechanically more reliable model was factually worse.

That is the trap in one line: mechanical success is not factual quality.

Against the baseline, DeepSeek 0731 low moved mechanical success from 85% to 90%, first-pass success from 70% to 77.5%, and deterministic gold qualification from 67.5% to 80%, at roughly 31% lower cost per mechanically successful analysis and about 39% lower cost per gold-qualified analysis, with median latency essentially unchanged. A paired comparison came out five wins to two losses for DeepSeek over the baseline.

Horizontal bar chart of euro cost per mechanically successful analysis for five configurations. DeepSeek 0731 with reasoning disabled is cheapest at 0.0040; the GPT-OSS 120B baseline is the most expensive at 0.0105.
Cost per mechanically successful analysis. Cheaper is not better on its own; pair it with the qualification rate above.

I want to be precise about what these numbers are not. There was one repetition per held-out case, so the five-to-two pairing is directional evidence, not statistically established superiority. The “gold” column is a deterministic qualification score, not a complete semantic-accuracy measurement. Independent, calibrated LLM judging was built as a framework capability but was not run over the final held-out outputs at this checkpoint; it was blocked by credential availability in the execution environment, and there was a judge-family coverage gap to close first. Real-world qualification was outstanding. The evidence supports a promising model-adoption decision, not a universal claim that one model is best. My intended decision is to adopt DeepSeek 0731 as the general-purpose default after implementing the production generation contract and provider safeguards. Meeting analysis is the capability that was benchmarked; chat, Ask Evi, Studio, knowledge extraction and voice typing cleanup are not independently benchmarked by this experiment.

Reasoning effort is a dial, not a constant

The same model, two reasoning settings, a wide spread. DeepSeek 0731 with reasoning disabled was much faster and cheaper, 20-second median and €0.0040 per mechanical success, but qualified on only 26 of 40 and recorded 10 critical failures. Low reasoning cost 74 seconds and €0.0072, and qualified on 32 of 40 with 4 critical failures.

Three paired bar charts comparing DeepSeek 0731 with low reasoning versus reasoning disabled. Low reasoning is slower at 74s versus 20s median, costs more at 0.0072 versus 0.0040 euro per mechanical success, but qualifies more meetings, 32 versus 26 of 40.
For asynchronous meeting analysis the extra latency and cost buy factual reliability. For interactive voice or light text cleanup the trade-off points the other way.

The architectural implication is that model selection is not one global decision. A system can run one model family and vary reasoning effort, output constraints and sampling per workload. That is a hypothesis to evaluate, not a proven optimum, and it is exactly the kind of controlled experiment a real harness makes cheap.

Three quality dimensions, kept separate

Collapsing quality into one score is how you ship a polished summary that fabricates a customer commitment. I keep three dimensions distinct.

  • Mechanical reliability. Did the pipeline complete, was the output structurally valid, were the required components produced, did corrective retries succeed?
  • Faithful extraction. Were facts preserved, commitments correctly identified, owners assigned correctly, deadlines and amounts preserved, claims supported by valid evidence, withdrawn and superseded decisions handled?
  • Intelligent synthesis. Did the analysis understand what mattered, keep nuance, flag real risks, read as useful, and separate uncertainty from certainty?

A good summary cannot compensate for a fabricated commitment. The dimensions are not interchangeable and a single blended number hides the failures that matter most.

Evaluating the evaluators

An evaluation system is only as trustworthy as its evaluators, and mine needed proving. Deterministic scoring covers action-item precision and recall, ownership, deadlines, amounts, evidence validity, withdrawn commitments, superseded decisions, suggestions wrongly promoted to commitments, unsupported numbers, prompt-injection obedience, compliance classification and language correctness. The framework also supports blinded judging, model-family exclusion, evidence-backed judgments and calibration controls.

Consider a transcript that says “Sarah will send the revised proposal on Tuesday”, and an analysis that says “Thomas will send the revised proposal on Friday”. That output can carry a valid evidence identifier and perfectly formed JSON. A weak evaluator rewards it because the cited segment exists. Structural validity is not truth.

So the next step is to attack my own evaluators: deliberately corrupt known-valid analyses, with the wrong owner, the wrong deadline, the wrong amount, a missing commitment, a fabricated commitment, a valid-looking citation on an unsupported claim, a wrong compliance class, an invented quotation, a fluent-but-wrong summary, and confirm the evaluator catches each one. Correct paraphrases go in too, so the evaluator does not become brittle. LLM judges get calibrated against verified positive and negative controls, and their agreement and disagreement become observable. Using a model to grade a model does not magically produce ground truth. This is directly relevant to Phoenix: it can organise, run and show evaluations, but the quality criteria and the validity of the evaluators stay my engineering responsibility.

Where Phoenix fits, and where it does not

The architecture is deliberately complementary, and I want to be honest about what runs today versus what is proposed.

Architecture diagram of the evaluation stack. Live components: the Evidia application and a native Rust evaluation harness feed OpenTelemetry and OpenInference transport, which reaches a self-hosted Arize Phoenix viewer and a Grafana LGTM stack; MinIO holds canonical private datasets. Proposed components shown dashed: bounded shadow evaluation and continuous regression with metamorphic variants and evaluator calibration.
Solid boxes run today. Dashed boxes are proposed. Phoenix is the lens; the native harness stays authoritative.

The native Rust harness remains authoritative for executing the real pipeline, domain-specific correctness, structured evidence validation, dataset eligibility, budget reservations and reconciliation, exact configuration identification, reproducibility, promotion gates and the private canonical result artefacts. Phoenix provides mature generic capability on top: trace visualisation, experiment exploration, dataset browsing, evaluation inspection, human annotation, prompt experimentation, span-level analysis and model and prompt comparison. The version I run, 20.23.0, ships the trace, dataset, experiment, eval and prompt-management surface, an MCP server, and an OpenAI-compatible OTLP ingest at /v1/traces; my agents reach the same instance I browse through a pinned px CLI.

The principle: keep application-specific execution and quality rules close to the application, and delegate generic visualisation, exploration and annotation to established infrastructure. I do not want to build a custom evaluation dashboard just because I wrote a native runner, and I do not want to replace that runner with a generic platform that cannot reproduce Evidia’s actual application logic. The two serve different jobs. Today Phoenix holds experiment imports and agent artefacts; production traces stay in Tempo, and with 30-day retention Phoenix is the right shelf for evaluation runs and the wrong one for operational history.

The self-hosting motivation is real for a product handling confidential meetings: prompts, transcripts and generated analyses stay on my infrastructure. It is not a complete privacy answer. An evaluation platform can accumulate prompts, retrieved documents, transcripts, tool arguments, judge verdicts and annotations. I favour content-free operational telemetry by default, and capture detailed evaluation artefacts only where authorised and controlled. A self-hosted platform does not make every associated inference self-hosted: external LLM evaluators move data too. And a European inference provider does not by itself establish zero retention, contractual locality, approved subprocessors or suitability for special-category data. Observed inference locations are not enforceable guarantees.

Cost is a first-class constraint

Model evaluation gets expensive fast once you multiply candidate models, reasoning configurations, meetings, analysis components, retries, repetitions and independent judges. I capped the whole benchmark at €10 of inference, and the harness enforces that before dispatch, not in a report afterwards. A reconciling ledger reserves a conservative estimate of a request’s maximum cost before it runs, reconciles the reservation against observed usage and provider-reported billing when it completes, and treats unknown usage conservatively, so concurrent jobs cannot each assume they still have the whole remaining budget. It tracks outstanding reservations and price-bound breaches.

The completed benchmark recorded 872 measurements, €8.0615 of conservatively accounted expenditure and €5.9719 of provider-reported charges, with zero outstanding reservations and zero recorded price-bound breaches, inside the €10 ceiling. The €8.0615 figure is the conservative accounting number; the €5.9719 is recorded provider-reported charges, not a fully reconciled invoice across every provider and probe. The lesson is that useful application-specific evaluation does not need an enormous budget. Engineering time and evaluator quality were the binding constraints, not token spend.

Toward continuous evaluation

The benchmark answered “which model should I choose”. The broader goal is “how do I know whether any AI change made the product better”. The design is three tiers, proposed rather than fully built.

Three stacked bands for the proposed continuous evaluation tiers. Tier 1 deterministic regression runs every commit, offline and free. Tier 2 behavioural evaluation runs on AI changes with bounded live inference. Tier 3 comprehensive qualification runs for model migrations with frozen cohorts, human gold labels, calibrated judges and promotion gates.
Tiers distinguish when and how extensively evaluations run. They are orthogonal to the experimental tracks that separate production contracts, experimental contracts and isolated components.

Tier 1 is deterministic regression: fast, reproducible, offline, no paid external inference, suitable for ordinary CI. Schema correctness, validation, pipeline assembly, failure handling, evidence references, budget enforcement, dataset eligibility, permission boundaries, known application regressions. Scripted providers and recorded fixtures make it deterministic. It proves application behaviour, not model intelligence. Tier 2 is behavioural evaluation: a compact live-inference suite for relevant AI changes, run against a bounded, explicitly authorised budget, covering representative analysis, attribution, grounding, multilingual behaviour, known model failures, adversarial inputs, cost and latency regressions. Tier 3 is comprehensive qualification for major migrations: frozen cohorts, authorised real-world cases, independently annotated references, repeated measurements, calibrated judges, paired statistics, production-equivalent execution and promotion gates.

Two techniques make this scale. Metamorphic testing transforms a verified input in a controlled way and checks the relationship between the original and transformed outputs, which sidesteps the cost of authoring known-correct outputs for every case.

Three-box flow for metamorphic testing. An original transcript states Thomas sends the contract on Friday with a 50,000 euro budget. A controlled transform changes Friday to Monday. The expected relationship: the deadline changes, while owner, budget and the action are preserved.
One verified case yields many controlled variants: negation, commitment versus suggestion, speaker reassignment, date and amount substitution, decision reversal, language switching, injected prompt-injection, meaning-preserving paraphrase.

The check is the relationship, not identical prose. Derived variants are correlated, so they inherit their source case’s partition and grouping and must not leak between development and held-out sets. The other technique is continuous regression collection: a user-reported failure is reviewed, a minimised authorised reproduction is built, the expected behaviour is established, and it becomes a permanent regression case with metamorphic variants. Over time the product accumulates proprietary knowledge about how to evaluate AI in its own domain. Models and providers change; a high-quality domain-specific evaluation corpus compounds. This is continuous evaluation, not automatic retraining: it does not touch model weights, and it does not indiscriminately retain production transcripts.

Controlled prompt and schema experimentation rides the same rails. Change one variable at a time, keep the model, cohort and settings fixed, and you can tell a prompt improvement from a schema improvement. Optimisation comes after evaluator verification, never before, or it just exploits the scorer.

Lessons for production AI

  1. The best model on a generic benchmark is not necessarily the best model for your application.
  2. Evaluate the real pipeline, not a loosely equivalent standalone prompt.
  3. Structured-output contracts create failures that get misattributed to model intelligence.
  4. Mechanical success and factual correctness are fundamentally different.
  5. Reasoning effort is an experimental, potentially workload-specific variable.
  6. Bound inference spend before dispatch, especially with concurrent experiments.
  7. Evaluators need calibration and regression testing of their own.
  8. Synthetic evaluation is useful and not sufficient for real-world performance.
  9. Evaluation datasets need versioning, provenance, privacy protection and careful partitioning.
  10. AI observability, conventional observability and application-level evaluation are complementary, not interchangeable.
  11. Self-hosting improves control and does not guarantee data protection.
  12. The goal is continuous AI quality engineering, not occasional model comparison.

An HTTP 200 with valid JSON is the easy part. The hard, valuable part is knowing the answer is true. That is what the harness, the evaluators and the self-hosted lens are for, and it is a discipline worth building long before you need it.

Interested in working together? Reach out.

Strategy, architecture, and implementation — from workflow to production.

© 2026 Liam Woodleigh. All rights reserved.