A fluent answer is easy to produce and hard to trust. Current models write clean prose, cite plausible sources and hold a confident tone across any subject. None of that tells you whether the answer is correct, whether it is safe to act on, or whether the system will give the same answer tomorrow.
That gap is where most AI projects quietly fail. The demo is persuasive. The production behavior is not. Somewhere between the two, a team discovers that nobody wrote down what “works” meant, and so nobody can say whether the system does.
The failure is rarely dramatic. A support assistant answers most questions well and invents a refund policy for the rest. A summarizer handles clean documents and drops the one clause that mattered in a scanned contract. A classifier performs on the sample it was shown and drifts on the traffic it actually receives. In each case the system did what it was built to do. What it was built to do was never stated precisely enough to check.
AI & Engineering Lab at Cosmora Intelligence treats this as a design problem with a simple remedy. The lab writes the test first. This essay describes what that test contains, why it comes before the prototype, and how it stays useful after the model underneath it has been replaced.
Before a prototype is built, the project owner writes the evaluation. It is one page. It names a single owner, the person accountable for the definition of success. It does not need to be long to be binding.
- Owner: one named person who can change the test and who answers for it.
- Inputs: the kinds of material the system will see, with a collected set of real examples.
- Correct outputs: what counts as a right answer for each case, written so that two reviewers would agree.
- Threshold: the score at which the work is worth continuing.
- Stop date: the date by which the threshold must be met, or the project is reconsidered.
The stop date is the line teams most often leave out, and the one that does the most work. Without it, a project that is close to the threshold can stay close for months. With it, the team has to decide, on a known day, whether the remaining gap is worth closing.
The page can be changed. It changes only in writing, and only with the reason recorded next to the change. A threshold lowered because the original was unrealistic is a legitimate decision. A threshold lowered silently, because the prototype could not reach it, is how a project redefines failure as success. The written reason is what separates the two.
A test is only as good as the cases inside it. The lab looks for four properties. Each one closes a specific way an evaluation can look rigorous and still mislead.
The first is real inputs, including the ugly ones. Curated examples are clean, complete and on topic. Production traffic is not. It includes documents truncated mid-sentence, requests that contradict themselves, records with missing fields, and questions the system was never meant to handle. A test built only from good examples measures how the system behaves on a day that will never arrive. The lab collects inputs from the place the system will actually run, keeps the malformed ones, and labels them by type so that failures can be traced to a category.
The second is a baseline: the simplest approach that could work. That might be a keyword rule, a lookup table, a smaller model with a fixed prompt, or a person following a checklist. The baseline gives every score a reference point. A system that scores well in isolation and only slightly above the baseline has not earned its complexity. A system that clears the baseline by a wide margin has made a case that can be shown to someone who did not build it.
The third is cases the system should refuse or escalate. A test that contains only answerable questions rewards a system for always answering. Real use includes requests outside scope, requests that need a person, and requests where the honest output is that the information is not available. These cases belong in the set with their own expected outcomes. A correct refusal counts as a pass. A confident answer to a question that should have been escalated counts as a failure, and usually as the most expensive kind.
The fourth property is a budget. Every evaluation states how long a response may take and what it may cost, per case and at expected volume. Accuracy that arrives late or expensive is a different result.
This matters because the most accurate configuration is often the slowest and the most costly. A pipeline that checks its own work three times may score higher and still be unusable inside a form that a person is waiting on. A larger model may pass more cases at a cost the project cannot carry at scale. When the budget is in the test, these trade-offs are visible at the start. When it is left out, they surface after the architecture has been chosen, and the choice is hard to undo.
The lab records three numbers for every run: the score, the median and slowest response times, and the cost per case. A run that passes on score and fails on budget is reported as a failure, with the reason stated.
An evaluation written after the prototype is shaped by what the prototype can do. The team has seen the system work, and the cases they reach for are the cases they have watched it handle. It measures strengths and ignores holes. The result is a test the system was always going to pass.
Written before, the evaluation is a question the prototype has to answer. The cases are chosen for what the work requires, without knowledge of what the system finds easy. The prototype meets the test as an outside reader would, and the gaps show up where they actually are.
The order also changes how a team talks. Without a test, progress is described in impressions. Someone tries a few prompts, the answers read better, and the meeting concludes that the change helped. With a test, the same meeting has a number on a real set. “It feels better” becomes “it passes 41 of 50 cases, up from 33, and the eight remaining failures are all truncated inputs.” The numbers here are an example. The point is the form of the sentence.
Disagreements get shorter, because there is something to look at. If two people disagree about whether a change helped, they open the cases that moved. If a stakeholder asks whether the system is ready, the answer is the score against the threshold, and the list of what still fails. Opinion still has a role. It moves to the question of whether the test itself is right, which is where it belongs.
Evaluation is not a gate at the end. It is the specification.
A failed evaluation is a result. A prototype that misses its threshold by the stop date has answered the question the project asked. The answer was no, or not yet, or not at this cost. That answer has value, and it decays quickly if nobody writes it down.
The lab records every concluded evaluation internally in the same short form, whether it passed or failed.
- Question: what the project set out to learn, in one sentence.
- Method: the test set, the baseline, the configurations tried and the budget.
- Finding: the scores, what failed and in which input categories, and what the team believes would change the outcome.
The form is short on purpose. A long report is rarely read. A three-part record is searchable, and it can be checked in a few minutes by the next team that is about to try something similar. That is its whole job: so the next project does not repeat it.
The record also protects against a quieter failure. When only successes are kept, the institutional memory of a group becomes a list of things that worked, stripped of the conditions under which they did. New projects inherit confidence without context. A lab that only keeps its successes is a marketing team.
Negative results also need a fair test before they count. A finding is only a finding if the evaluation was written in advance, the baseline was run, and the budget was stated. Otherwise the failure might belong to the test. This is one more reason to write the page first. It makes failures interpretable.
Models change monthly. Providers release new versions, deprecate old ones, and adjust behavior without notice. Prompts are rewritten. Retrieval sources grow and shift. Any given system is a stack of moving parts, and most of them are outside the team’s control.
The test is the thing that stays. It is the fixed reference against which every version of the system is measured. For that to hold, the test has to be versioned with the same discipline as code. Each version has a number, a date, a change log, and the reason for each change. Scores are always reported with the test version they were measured against. A score of 46 on version three cannot be compared with a score of 41 on version two without rerunning one of them. Those numbers are an example.
Tests do need to change. New failure modes appear in production and should be added as cases. Requirements shift. A category of input that was rare becomes common. The rule is that cases are added with a note on where they came from, and cases are removed only with a written reason. Removing a case because the system keeps failing it is the same move as lowering a threshold in silence.
The cycle in the figure is the working rhythm. Frame the question and write the test. Evaluate the current system against it. Change one thing. Re-run. Then decide, against the threshold and the stop date, whether to go around again.
The lab runs the full test at a defined set of moments.
- When the underlying model or its version changes, including provider updates that were not requested.
- When a prompt, a retrieval source or a tool definition changes.
- When the test itself changes, against both the old and the new system, so the effect of each can be separated.
- On a fixed schedule for systems in production, because behavior can drift with no change on the team’s side.
Running the test should be cheap enough that nobody hesitates to do it. If a run takes a day of manual review, it will be skipped. The lab automates scoring wherever the correct output can be checked by a rule, and keeps a small, fixed set of cases for human review where it cannot. Both halves are versioned together.
Cosmora runs a Design Lab and an AI & Engineering Lab under one roof. The written test is one of the places where their work meets.
Design shapes what a person sees and how much they are asked to trust it. An interface can present a model’s output as settled fact, as a draft to review, or as one option among several. It can show a confidence signal, offer a path to a person, or ask for confirmation before acting. Each of those choices is a claim about how reliable the system underneath is.
A surface can be honest only if the test was real. If the evaluation shows the system is reliable on one category of input and weak on another, the interface can treat them differently: answering directly in one case, routing to review in the other. If there is no evaluation, the design team is left to guess, and the guess tends toward whatever looked good in the demo.
The test helps engineering in a parallel way. The refusal and escalation cases define what the system must do when it cannot answer, which tells engineers where the handoffs and fallbacks belong. The budget sets the constraints for architecture. The input categories tell the team where to spend effort on preprocessing and where a model is doing work that a rule could do more cheaply.
In practice, designers and engineers both read the one-page test before work starts, and both can propose cases. A designer who has watched people use a similar tool often knows the ugly inputs before anyone else does. An engineer often knows the cost curve. The test is where both kinds of knowledge are written down in a form that the system can be checked against.
None of this requires new tooling to begin. A team with a project already underway can start with a short sequence of work.
Name the owner. Write the one-page test, even if the prototype already exists, and mark the date it was written so that everyone knows it came late. Collect thirty to fifty real inputs from the place the system runs, and make sure a fair share of them are malformed, out of scope or should be refused. Write the expected output for each. Run the simplest baseline you can build in an afternoon. Then run the current system, record the score, the response times and the cost, and set a stop date.
The first result is often unwelcome. That is the point of running it. A team that learns its system passes fewer cases than it believed has learned something it needed to know, at the cheapest moment it could have learned it.
The models will keep improving, and the answers will keep getting more fluent. Fluency will continue to be the easiest thing to mistake for reliability. The only durable defense is a written statement of what the system must do, checked against real inputs, with the result recorded whether it is good or bad.
Write it down before the prototype. Version it when it changes. Run it every time something changes. The rest of the work depends on it.