30 Oct 202613 min read

Rule checks and AI judgement: what code checks on a drawing and what the model checks

How a drawing review agent sorts its checklist: facts go to code, judgement checks to an AI model. What each side needs, how findings are recorded and tested.

Rule checks and AI judgement: what code checks on a drawing and what the model checks

A drawing review agent splits its checklist in two. Code checks facts with one right answer, such as a title block against the document register. An AI model reviews what needs a senior checker's eye, such as a missing tolerance, and a second pass checks each finding. Deciding which side each check sits on is the main design choice.

Our AI technical drawing review guide follows a drawing from arrival to the engineer's sign-off. This post goes deeper into the checklist: how each check is sorted, what each side needs, how findings are recorded and how each side is tested.

Why split a drawing checklist between code and a model?

Code gives the same answer every time and costs almost nothing to run. A model's answers vary. Thinking Machines Lab found that hosted LLM APIs "are still not deterministic in practice", even at temperature 0 (the setting meant to make output repeatable), because server batch sizes change the calculation. In its test of one open model with one prompt, 1,000 runs gave 80 unique completions.

Each model call also costs money. Anthropic's guidance on building effective agents notes that agentic systems often accept more latency and cost in return for better results, a trade-off that shapes how we decide where AI earns its place. OpenAI's practical guide to building agents reserves agents for nuanced judgement, unwieldy rulesets and unstructured inputs, and says "Otherwise, a deterministic solution may suffice." Sending a fact check to a model adds cost and uncertainty for no gain.

Sending a judgement check to code fails in the other direction. No simple rule covers most contradictions between notes and a specification, so a model reads them. A model can read a sheet against a checklist and flag candidate faults, and published tests show it misses some. The same trade-off between fixed rules and judgement decides which decisions AI should make anywhere in a business.

The split also makes the agent easier to trust. When a rule check fails, the report can show the two values that disagree. When a judgement check raises a finding, the engineer knows to weigh it.

How do you decide which side a check belongs on?

A useful test when sorting a check is to ask whether two experienced checkers would always give the same answer. If they would, and the inputs are structured, it belongs in code. If they might disagree, it belongs with the model, and the pilot should measure how often your checkers accept what it finds, following the method for running an AI pilot.

Agreement between checkers can be measured. Two checkers mark the same sample of past drawings and their answers are compared. Raw percent agreement flatters the result, because some agreement happens by chance. McHugh's review of interrater reliability notes that "In 1960, Jacob Cohen critiqued use of percent agreement due to its inability to account for chance agreement", and Cohen's kappa corrects for it. McHugh treats a kappa below 0.60 as inadequate agreement in health research. For drawing checks, agree the threshold with your checkers.

A check your checkers cannot agree on also makes poor test material. Anthropic's guidance on defining success criteria warns against "Ambiguous test cases where even humans would find it hard to reach an assessment consensus".

Human checking schemes already hold both kinds of check side by side. Minnesota DOT's 2012 quality management process asks the checker to "check for omissions and accuracy of arithmetic". The same checker must "check the entire drawing for design intent, technical adequacy, and conformance to any applicable standards and format". In the UK, CG 300 (version 0.2.1, February 2025) assigns a checking category from listed criteria. Many are numeric, such as "span of less than 5 m", and some call for judgement, such as "unconventional, novel or esoteric design aspects". The technical approval authority (TAA) "may require a higher or lower category where deemed appropriate".

Sorting a drawing checklist is one case of a wider choice, and the four questions we ask before AI goes into a step apply to any process.

What do rule checks need from your data?

Rule checks need structured inputs: a register, a BOM file and read access to the item master. Where one of those is missing or unreliable, the check cannot run, and the diagnostic phase of a project should say so before anything is built. Code compares values it can read, so each value needs a structured source or a reliable extraction step.

On projects run to ISO 19650, the document register already holds structured fields. UK BIM Framework Guidance Part C reproduces the National Annex status codes: S0 for work in progress, S1 to S4 for shared, A and B for published, and CR for as constructed. Its revision pattern is a letter, two digits, a point and two digits, as in P01.01, and the "Letter prefix can only be P or C."

The same guidance says status and revision are metadata that "should not be part of the unique ID". Code can therefore compare three things: the container ID, the register record and the printed title block. A firm could also write a rule that flags a drawing at S3 (review and comment) issued for construction. The guidance says such a container "should not be used for contractual purposes such as procuring materials, agreeing contract costs or constructing the works".

Conventions vary by project. The CDBB National Annex guidance builds the container ID from hyphen-joined fields, as in 123456-ORG-A1-ZZ-MO-A-0001, and says the convention "should be confirmed for each project within the project's information standards". A naming check reads your project's own field list. The annex was also revised after Part C was written, so treat the codes above as a starting point and confirm them against your project's information standard.

A scanned drawing is an image with no text for code to read. Adobe's description of OCR in Acrobat says it creates "a PDF with an image layer of the original scan with hidden text over it". A recognition error in that hidden text can become an error in the comparison. A field that cannot be read is reported as not read, never passed.

What can a model judge on a drawing, and how reliably?

The AI model reads each sheet against the checklist for that product and review stage. Research on these judgement tasks shows wide variation.

  • MechVQA defines two judging tasks close to drawing checks. Anomaly Detection asks a model to "Detect missing, conflicting, or implausible dimensions, annotations, view relations, or table entries", and Consistency Judgment covers drafting standards and design constraints.
  • DesignQA, tested on 2024 models, found that compliance checks against a long rulebook depend on set-up, and that retrieving the relevant rules from the full document was unreliable. In one failure the model "only compares one row of each chart (heights)" and missed a weight violation.
  • On long text documents, not drawings, the FIND benchmark found the best model recovered 64% of deliberately inserted inconsistencies.

DesignQA's result supports writing each judgement check as a short, discrete rule, instead of handing the model a whole specification. Checking equipment against approved datasheets extends the notes-against-specification check, and the same evidence applies. None of these studies tests a live drawing review, so the pilot measures what the agent finds and misses on your own drawings.

Does a second pass remove false alarms?

A second pass checks each finding against the drawing, which can catch findings the sheet does not support. Published work on other tasks suggests such checks reduce errors but do not remove them. Chain-of-Verification research found that drafting an answer and then answering independent verification questions "decreases hallucinations across a variety of tasks", though those tasks were lists and long-form text. Anthropic's guidance on reducing hallucinations suggests making the model back each claim with a quote and withdraw any claim it cannot back.

A model checking a model is not neutral either. In a study of models as judges, Zheng and colleagues reported "position, verbosity, and self-enhancement biases". The model will still miss things, so the engineer reviews every drawing.

How is a finding recorded so code can validate it?

Each drawing type and review stage gets its own checklist, which your senior checkers write with us from your standards and client specifications. Each check gets an identifier, a category and a severity, so a finding in the report can name the rule it broke, for example a notes rule or a views rule.

Some paper schemes record less. In Minnesota DOT's procedure, "Information found to be correct will be highlighted in yellow", and errors are lined through and corrected in red, with no severity grade. Software inspection goes further. NASA-STD-8739.9, a software formal inspection standard approved in 2013, requires defects to be classified by severity and by type. Its severity classes are Major, Minor and Clerical, the last covering "editorial errors, such as spelling, punctuation, and grammar".

The NASA standard says "Headings on the checklists used for the inspection can be used to derive the defect taxonomy." It also warns that clerical defects take "significant time, far out of proportion to their impact". A severity on every check stops minor drawing findings burying serious ones.

The identifier, category and severity also let code validate each finding the model returns. OpenAI introduced Structured Outputs on 06 Aug 2024 so that "model outputs now reliably adhere to developer-supplied JSON Schemas". Anthropic's API release notes record structured outputs leaving beta on the Claude API on 29 Jan 2026. A schema fixes the shape of a finding: rule ID, severity and sheet reference. Code still checks the content, confirming that the rule ID is on the checklist and the sheet reference exists in the drawing's sheet list.

How do you test each side?

The two halves are tested differently. Rule checks can be tested like any other software, with known inputs and expected results. Judgement checks are tested against a set of past drawings with known faults, measuring the share of faults found and the share of findings your checkers accept. That set grows with every rejected finding and every missed fault.

Ham Vocke's guide to the practical test pyramid advises "Push your tests as far down the test pyramid as you can." On a drawing checklist, a check that can be proved by a code test never needs a model run to prove it.

Judgement checks need repeated runs and a human baseline. OpenAI's evaluation guidance says "Generative AI is variable" and warns against "not calibrating your automated metrics against human evals". The fair comparison is how often two of your checkers agree with each other. Google's machine learning course notes that "The more often you use the same test set, the more likely the model closely fits the test set". A slice of past drawings is therefore kept back from tuning.

Acceptance works as an operating measure once the agent is live. In Software Engineering at Google, an issue from a static analysis tool is an "effective false positive" if developers "did not take some positive action after seeing the issue". Google's tools add a "Not useful" button that feeds back to fix or remove checks. A judgement check your checkers keep rejecting is a candidate for rewriting or removal. Both halves draw on the general method for testing an AI agent against known cases.

Frequently asked questions

Can AI check a drawing against a checklist?

An AI model can flag candidate faults on judgement checks, such as missing tolerances or contradictory notes, and published benchmarks show models miss a fair share. Facts with one right answer, such as BOM quantities or part numbers, are checked more reliably by code.

Why not send the whole drawing to an AI model?

Code is cheaper and gives the same answer every time on facts. Keeping the model for judgement checks keeps costs down and makes each finding easier to weigh.

Who decides which checks go to code?

Your senior checkers agree the split with us while the checklist is drawn up. A check that experienced checkers would always answer the same way, with structured inputs, goes to code.

Can a rule check read a scanned drawing?

Only after OCR adds a hidden text layer, and that text can contain recognition errors, so the comparison is only as good as the OCR.

Why does each check carry a severity?

Severity lets the engineer see serious findings first, so clerical ones do not bury them.

Do you still need senior checkers?

Yes. They write the checklist, and the engineer reviews every drawing. Formal schemes keep that human chain: CG 300 requires any disagreement between designer and checker that they cannot resolve to be notified to the approving authority.

To talk about building drawing checks with Claude for your own review stages, our team can start with a short call. Request a Quote to arrange it.

Written by

John Kelleher

John is the founder and the Chief Executive at SpotDev.