============================================================ nat.io // BLOG POST ============================================================ TITLE: Write the Checks in Code. Let the Model Explain. DATE: November 24, 2026 AUTHOR: Nat Currier TAGS: AI, Software Architecture, Testing ------------------------------------------------------------ A fictional audit report says a product page has no shipping information. The page shown in the audit contains a delivery estimate for one destination and no evidence for two others. The report sounds decisive. I’d have trouble acting on it because I can’t tell whether to add information, check another destination, or fix the audit itself. Working on audit evidence and reporting made me pay attention to the questions we can answer before a model sees the evidence. Did collection succeed? Did we see the same page through two URLs? Which rule was applied? How many checks had enough evidence to run? The design I would use makes those answers inspectable and gives the model a smaller job. The finding below is fictional, and the comparison is a design for evaluating the change. > **Thesis:** Give each audit step to the tool that can make its decision from explicit evidence. > **Why now:** A fluent report can hide a collection error or a change in the denominator. > **Who should care:** Teams deciding whether to trust an audit enough to act on its findings. > **Bottom line:** Make the checks reproducible and give the model evidence it can explain. [ Make the finding survive a second look ] ------------------------------------------------------------ Say the fixture includes a shop page and three permitted delivery destinations. The audit has a deliberately narrow rule. It looks for a delivery estimate in a defined set of page states for each destination. It stores the snapshot, what it checked, and whether collection completed. If the page times out in one state, that becomes a collection failure. If a destination requires a postal code the fixture didn’t supply, that becomes insufficient input. Neither counts as an assessed missing estimate. Now suppose three advertised product URLs lead to the same page in the same destination context. I’d collapse repeated observations for the same evaluation unit, keeping aliases in the record so the count can be reproduced. I’d preserve separate observations when market, language, or selected variant can change the result. Deduplicating by URL alone can erase a real difference. Deduplicating by whatever grouping the report happens to describe leaves the score hard to audit. Once the evidence is collected, I’d make the deterministic rule emit a structured outcome before asking for prose. On this fixture it might say: estimate present for destination A, no estimate appeared in the assessed states for B, and insufficient input for C. The customer-facing sentence can then say which state the team should check first. It can also say how to reproduce what the audit saw. | Stage | Owner | Output | Failure I would test | |---|---|---|---| | Collect page and state | Collector | Captured evidence with destination, variant, and collection status | A timeout appears as a content defect | | Deduplicate | Code | One observation per defined evaluation unit, with aliases preserved | The same issue inflates the denominator or distinct markets are merged | | Run exact checks | Code | Rule ID, evidence, and pass, fail, or unevaluable status | A skipped check becomes a pass or a fail | | Calculate results | Code | Counts by status and denominator with coverage shown | The score looks better because fewer checks ran | | Interpret and write | Model, within the supplied evidence | Explanation, scope, and suggested verification step | One visible defect becomes a claim about the whole site | | Resolve consequential exceptions | Human reviewer | Accepted, narrowed, deferred, or rejected finding with reason | An ambiguous result becomes a commitment without review | *This table is a proposed division of work. The fictional finding demonstrates how an observation can reach a report with its scope intact. It establishes no measured cost or quality change.* [ Compare decisions on the same evidence ] ------------------------------------------------------------ For the first comparison I’d freeze the collected evidence and run both pipelines against it. That isolates the effect of changing how a finding is evaluated and written. I’d assemble an adjudicated set with confirmed issues, clean examples, duplicated observations, ambiguous cases, and deliberate collection failures. The reviewer needs the evidence and the acceptance rules. I’d hide which system produced the finding where practical. Then I’d compare missed findings, false positives, and severity changes by rule and market. I would also compare assessed coverage. Suppose the redesign removes five bad findings because it now marks timeouts unevaluable. That may be the right classification. I still want to see how many additional pages now need a retry or review. The score and its coverage belong next to each other. Latency and cost deserve separate columns, preferably measured across comparable workloads. Include retries, model usage, and manual review time if they are in scope. I’d set the quality bar first. The redesign earns a pilot when it preserves agreed critical findings, controls false positives, and leaves a reviewable trail for exceptions. A lower model bill can help decide between candidates that meet that bar. If the collector also changes, I’d run a second comparison end to end. That matters because a perfectly reproducible rule will faithfully report on a bad snapshot. A changed finding should be traceable to different input, a changed rule, or a different interpretation. Without that trace, it’s hard to tell which part of the redesign to keep. [ What transfers ] ------------------------------------------------------------ For an engineering lead, the point of this split is to make sign-off possible. For an engineer, the first move is to take one disputed finding and trace it back to the captured evidence. If two competent reviewers can’t reconstruct the denominator, fix that before tuning the prose. Try the table on a single audit rule and replay its evidence through both designs. If you’re deciding where judgment belongs in a larger workflow, see [How to Build Boring, Reliable AI Agents in Gnarly Real-World Domains](https://nat.io/blog/boring-reliable-ai-agents-gnarly-real-world-domains).