My First Two Production Systems Had Right Answers. This One Has Opinions.

Every system I’ve built in production has had some kind of truth to check against. For invoice extraction, the total is a number printed on the page, and either the model read it correctly or it didn’t. For CBot, a claim is either supported by a retrieved document or it isn’t. The AI scorecards system I’m working on now has neither. A scorecard produces a judgment, an assessment of some material against a set of criteria, where a reasonable person could look at the same material and disagree. That changes the engineering problem completely, and it’s the most interesting thing I’ve worked on.

Why one prompt isn’t enough

The obvious approach is a single call: here is the material, here is the rubric, return a score for each criterion. It fails for reasons that by now feel familiar. A single call blends several different jobs, reading the material, assessing each criterion, weighing them and formatting the output, so when quality slips you can’t tell which job broke. It’s the same mistake I made with my first all-in-one extraction prompt, wearing a new costume. Worse, criteria aren’t independent of evidence. A good assessment first locates the specific passage relevant to each criterion and only then judges it. Ask for both at once and you get a score with a vague justification stapled on afterwards. I can see this in the traces: the model settles on a number and then writes a reason for it. And a judgment without evidence can’t be audited. If someone challenges a score three months from now, “the model thought so” isn’t an answer anyone should accept.

So the system breaks the work apart, much like the invoice pipeline. The material is parsed and normalised in code. The rubric is decomposed into criteria that can each be checked on their own. Criteria that a simple rule can settle are routed to code. For the rest, one model call locates the relevant evidence and a separate, narrowly scoped call judges that criterion against that evidence. Scores are aggregated in code, and anything low-confidence or self-contradictory goes to a human reviewer.

Two of those steps carry most of the weight. Decomposing the rubric is where quality is mostly decided, and it’s a specification problem rather than an AI problem. A criterion like “the response demonstrates good understanding” invites vibes. Splitting it into whether the response identifies the core issue, addresses each sub-question, supports its claims with cited material and recommends a concrete next step produces something a model, or a person, can actually assess. The other rule is that the model never does the aggregation. A weighted average is arithmetic, the model is worse at it than Python, and letting it do the sum throws away the audit trail. I didn’t plan for this pipeline to mirror the invoice one, but it does, with the model handling language and code handling everything else. I take the symmetry as a sign the design is right.

Every score has to show its working

The single most important decision is that every score must cite what it’s based on. Each criterion returns a structured verdict, met, not met or uncertain, along with a confidence level and at least one piece of evidence: a reference to where in the material it looked and the exact text it relied on. The schema rejects any verdict without evidence. That one constraint pays off three ways. Forcing the model to point at evidence makes it more careful, a small version of the chain-of-verification effect. When a score is wrong, the evidence reveals why, and the cause is usually a criterion that was defined loosely enough to be misread, which is fixable. And when someone disagrees with a score, you can show them exactly what it rested on. That’s the difference between a system people trust and a black box they quietly work around.

The boundary between code and model follows one rule I’d now defend anywhere. If two careful people holding the rubric would always agree on a criterion, it should be code: whether a reference number is present, whether something was submitted within five business days, whether all the required sections exist. If they might reasonably differ, as with whether an issue was adequately addressed or whether the reasoning is coherent, it needs a model, and the model needs calibration.

Designing against bias on purpose

Automated scoring has well-documented failure modes, and it’s far better to design against them deliberately than to discover them in production. Models tend to score longer material more generously regardless of quality, which is insidious because length correlates weakly with real quality and so looks defensible. When two items are compared, presentation order sways the result, so we evaluate in both orders and treat any disagreement as uncertain. On ten-point scales, scores cluster and drift with tiny changes in phrasing, which is why each criterion gets a coarse yes-or-no verdict and the fine-grained total comes from many coarse judgments added up in code. Formatting, vocabulary and writing style can move scores independently of substance, and that’s the one I’d audit hardest, because surface style often correlates with things that should never affect an assessment. Underneath all of these sits the quiet truth of the whole project: most of what looks like model failure is really specification failure.

The ceiling is set by people

Here’s what makes this harder than anything before it. For extraction and for retrieval, I had external verifiers lying around, documents and arithmetic, and the entire argument of my survey is that external verifiers are what make correction loops work. For judgment, no such verifier exists. The only ground truth is careful human assessment, which means the evaluation set isn’t something you build after the system. It’s what tells you whether you have a system at all.

It also forces a measurement I’d never needed before: how often humans agree with each other. If two trained assessors agree on a criterion eighty-five percent of the time, a model that agrees with them eighty-five percent of the time is performing at the human ceiling, and pushing for ninety-five is chasing noise. If the assessors only agree sixty percent of the time, the problem isn’t the model at all. The criterion is badly defined, and you fix the rubric rather than the prompt. That’s inter-annotator agreement, standard practice in research and almost absent from industry AI work, and it may be the most useful thing I’ve carried from writing surveys into this job. Right now the system produces plausible scores, which is a demo. Making it produce scores we can defend, to a user who disagrees or to someone asking in six months why this score and not that one, is the work I’m in the middle of.

Leave a Reply