Trust and governance
Quality control: a test suite for answers
Scenarios, checks and scheduled runs that turn a prompt or model change into a score instead of a surprise.
Changing a prompt or a model is a change to the product. Quality turns that change into a score you can compare, instead of a surprise a customer finds first.
A scenario
A scenario is a small regression test. It has one or more steps, each a prompt. It has the expected answer used by the comparison checks, and one or more checks that decide whether the answer passed. Run now executes the steps in order and records every check. The nightly schedule does the same for every enabled scenario in every organisation.
An organisation whose budget has hit its stop limit is skipped with a paused line rather than run into a refusal.
The checks
Exact compares the text, ignoring case and surrounding space. Contains and contains not look for a value. Similar checks how much of the expected answer is covered. Format validates JSON or a regular expression. Max latency sets a time budget. Judge asks a grading model for {"pass": true}.
A required check that fails makes the run failed. An optional check that fails makes it a warning but still scores it. The score is the share of checks that passed, so a run can be a warning at eighty percent.
What a run records
Per step: the prompt, the expected and actual answer, the latency, the tokens, the cost and every check with its message. A provider failure is stored as an error on that step and fails the run, so a broken key looks like a failed test rather than a passing one.
A run that ends failed fires quality.run.failed with the scenario, the score and the check that did not hold. A trigger can start a task from that event, so a regression can open a review instead of waiting for someone to notice.
Where it stops
A judge is a model call, not a truth. It is useful for tone and coverage, and it should not be the only check on a fact. Scenarios do not generate themselves: someone has to write the questions that matter. And quality checks cost money, which is why they sit inside the same budget as every other call.
Related: assistants, budgets, triggers.
Want to see this on your own documents?
Contact us