Trust, but Verify
local graph
Chapter 11 — Trust, but Verify
Section titled “Chapter 11 — Trust, but Verify”I was writing a blog post. I used AI to generate some of the text. At one point I asked AI to reference the tech people I had spoken with over the years across different professions. AI gave me this: “Over the years, I spoke to many developers, software engineers, and programmers.” Three reviews went by before I caught the problem. Developer, software engineer, and programmer are three names for the same job. The sentence looks like a list of different professions. It is not. It is one profession named three times, dressed up as variety. What I meant — and what should have been written — was something like “developers, engineering managers, and testers.”
No one flagged it. The sentence reads fine. It has the right rhythm, the right length, the right confidence. It passes every casual check. The error is not in any individual word — each word is real, each role exists. The error is in the meaning, and meaning is exactly what a fast read skips over.
That is the kind of problem this chapter is about.
Does AI Earn Your Trust?
Section titled “Does AI Earn Your Trust?”Everything in the previous chapters has been about how to work with AI well — rules, memory, glossary, and intent over instruction. Done right, the work moves fast. The danger is that “fast” starts to feel like “correct.” The two are not the same.
AI will produce wrong answers. Often. Confidently. In a tone that matches a real expert. And the parts that are wrong will be mixed in with parts that are perfectly right — so you cannot simply discard the output or accept it whole. You have to separate the two, every time.
This chapter is about how. It starts with why the problem exists, so you can build the right instincts. Then it covers the practical methods — manual and otherwise — for validating what AI produces before you act on it.
The Common Sense Gap
Section titled “The Common Sense Gap”When you give a task to a person, you rely on their common sense to fill in what you did not say. You do not tell a new employee “do not delete the production database while fixing this bug.” You do not tell a designer “do not replace all the app’s text with placeholder Lorem ipsum.” You do not tell an analyst “do not assume the customer list is sorted by the date each customer died.” These assumptions are so deep in how people operate that writing them down is absurd.
AI does not have that layer. Its common sense — to the extent AI has any — comes from the internet and the rest of its training data. That is not the same as the lived context you grew up in. The gap is not small. There are documented cases of AI agents deleting production systems despite explicit instructions not to, then fabricating records to cover what they did. The same pattern appears outside software: a contract draft where AI silently inserts a boilerplate jurisdiction clause that conflicts with the venue agreed earlier; a research protocol where AI fills in a default washout period because most published trials use one; a policy where AI cites a regulation that does not apply to the entity in question. No human with the relevant training would do any of these things. AI does, calmly, as part of executing the task.
The failure is not really AI’s. The deeper failure is ours. We have spent our entire working lives communicating with people who shared our context. We never had to make the invisible assumptions explicit, so we stopped noticing them. With AI, we have to — and most of the gaps become visible only after AI has produced something wrong.
The defense is not to fix AI. The defense is to be aware of the gap, and to make your prompts carry enough of your context that AI does not have to guess. When you catch AI guessing wrong, the fix is almost always to write down what you assumed AI already knew. Over time, the written-down context grows — in rules, in the glossary, in examples, in the project’s memory files — and the gap narrows. It never closes entirely.
Hallucinations
Section titled “Hallucinations”The most common form of AI error is called a hallucination. To get a feel for what a hallucination is, think of the Mandela effect: a confident, shared, reconstructed falsehood that feels true to everyone who holds it. When someone is sure the Berenstain Bears — an American children’s-book series — were spelled “Berenstein,” their memory is reconstructing the name from familiar patterns. “Stein” feels more like a name-ending than “stain,” so “Berenstein” is what comes out — even though the books on the shelf say “Berenstain.” The remembered spelling is, in effect, a prediction the brain makes from patterns it already knows. The prediction is confident enough to override what the eyes actually saw.
AI does the same kind of thing, with the same verb at the center: predicting. Hallucinations are not a glitch — they are a byproduct of how these systems are built. A language model is a text predictor; given everything it has seen, it predicts the next most likely piece of text. The prediction draws on one of two grounds: what the model learned during training, or what is in the context you provided. When neither source holds the answer, the model does not stop. It invents. And, as with the brain, even direct grounding is not a guarantee: you can put the right answer in the context, and the prediction will still sometimes override it.
In practice, a hallucination looks like a citation from a paper that does not exist, a reference to a function that was never written, a clause attributed to a contract that does not contain it, a regulation that has been repealed, a study or protocol step nobody published, a finding about a property of your project that is not there, a row in a table that came from nowhere. Nothing in the output signals that any of it is fabricated — it sits in the middle of a correct-looking response, in the same tone as the correct parts.
Of the two forms of grounding, the second — having the answer already in the context — is more in your control. When the relevant source material is already in the prompt, the model does not have to reconstruct the facts from training; it can work from them directly. That is not the same as quoting the material back verbatim: AI still reasons, still infers, still fills gaps. But the reasoning starts from material right there in the context rather than from patterns absorbed months ago during training, and that makes the output more grounded. This is the principle behind retrieval-augmented generation (RAG), and it is why pulling the right files or documents into the prompt reduces fabrication reliably in practice. The effect is not absolute: content buried in the middle of a long context loses attention (the lost-in-the-middle effect from the Sessions and Memory chapter), and context that conflicts with what the model learned in training is sometimes overridden. But on balance, putting the answer in the context window is the cheapest step you can take to improve grounding.
The only way to catch a hallucination is to check — every time, in a way you planned before you asked.
Overconfidence
Section titled “Overconfidence”Hallucination is bad. Confident hallucination is worse, and that is what AI produces.
A human who does not know something will usually hesitate. They say “I am not sure.” They ask a question. They check. AI does none of that by default. AI produces an answer in the tone of an expert — even when the answer is fabricated — and the tone is indistinguishable from the tone AI uses when it is correct.
The confidence has two sources, both built in during training. The first is the content AI learned from. The internet — most of what AI was trained on — is full of confident-sounding writing. Blog posts titled “The Definitive Guide to X” far outnumber honest “I tried X and it was harder than I thought” posts. Success stories dominate. Cautious, uncertain, balanced writing is quieter and less popular. The pattern is a Dunning-Kruger effect at scale: people who know the least about a topic tend to write the most confidently, and AI absorbed that skew.
The second source is how AI was trained. Most modern AI systems are tuned with reinforcement learning from human feedback — trainers rate responses, and the model learns to produce what trainers reward. Trainers, being human, tend to reward answers that sound confident and agreeable, and to penalize answers that hedge or push back. That produces a trained disposition to please — the eager-to-agree attitude you will notice the first time you realize AI agreed with a wrong premise you handed it. AI will congratulate you on a good idea that is actually a bad idea. AI will expand on your reasoning when your reasoning was faulty. AI will accept your “correction” of a correct answer and apologize for having been right.
The two skews stack. When AI does not know something, it does not default to “I am not sure.” AI defaults to a tone of authority; completes the task; answers the question; produces the code. The confidence is not evidence of correctness — it is a stylistic habit borrowed from the writing AI was trained on and the feedback AI was tuned with.
This is not malice and it is not a bug. It is a training artifact. Bigger, smarter models make the confidence problem slightly worse: their fabrications sound more fluent. A more eloquent wrong answer is harder to catch than a clumsy one.
The practical rule is: never mistake AI’s tone for a signal of correctness. Read for content. If a claim matters, check it.
Before You Ask
Section titled “Before You Ask”If you are going to use AI for anything that matters, think through the validation first. Before the prompt. Before the work. Not after.
If you wait until the output is in front of you to figure out how to check it, two things happen. First, the output shapes your review — you read for sense rather than for errors, and AI’s confident tone nudges you toward approval. Second, you rush. The work is done, the next step is waiting, and “check carefully” silently becomes “skim.”
Validation takes little effort when it is prepared in advance. It takes a lot — and catches less — when it is improvised. Prepare it first.
The question to answer is simple. How will you know whether AI’s output is right? If you cannot answer it before you ask, you are not ready to ask.
For a small, low-stakes task — rename a file, format a paragraph — the preparation might be as quick as “I will eyeball the result.” That counts. Validation does not have to be heavy. It just has to exist.
The rest of this chapter is a set of validation methods. Pick the ones that fit the work. Combine them. Add your own. The goal is not to use every method on every task. The goal is to never be caught without a method.
Manual Review
Section titled “Manual Review”The simplest validation method is you, looking at the output yourself.
There are two ways to look. If the output has structure — a user flow, a data model, an architecture, a workflow with branching paths, a revenue projection, anything with relationships, sequences, or hierarchies — look at a visualization, not text. The chapter on artifacts explained why: displaying structured information is what visuals do best and what prose does worst. A diagram makes missing fields, broken links, dead-end branches, and orphan entities visible in seconds; the same content in prose forces you to reconstruct the structure in your head, paragraph by paragraph, which is exactly the work attentive reading is bad at.
Use the SOT–ART pattern from the previous chapter. The source-of-truth file stays in Markdown; the visualization is regenerated from the file. Review the visualization. For most structured outputs it is the first pass — and often the only pass. Structural errors in the source are far more likely to surface in a diagram than in a reread. Subtle semantic errors — a wrong name, a constraint the diagram’s notation does not represent — can still get lost in the simplification a diagram performs, which is why visual review is not always enough on its own. But for catching the shape of the output before you check the details, visual review is the cheapest pass you have.
Reading text is the fallback. Use it when the output is prose — a draft chapter, a description, a piece of copy, a contract clause, a policy paragraph — content with no structural shape to visualize. You read with intent. You compare against what you meant. You catch paraphrased ideas that drifted, missing caveats, invented details. This is not glamorous and it is not new, but it remains the most reliable method for content that lives in prose.
Two habits help when reading text manually. First, review the output file yourself — open it in a file viewer and read it as text. Do not ask AI to review its own work, especially in the same session: AI in the loop adds errors; a file viewer does not. If the output is too large for a human read-through and you need AI’s help, use a fresh session — earlier chapters explain why a new session eliminates the interference from accumulated context. Second, review with a checklist. Write down what you are looking for before you start reading: “Does this match the glossary? Are all the fields from the data model present? Are there any claims not traceable to a file?” A list of questions turns reading into checking.
Reading text gets worse fast as the output grows. A ten-line response is easy to read attentively. A hundred-line response is hard. A thousand-line response is impossible to review with attention, and your brain will silently downgrade “check every line” to “skim and trust.” That downgrade is where the expensive mistakes hide. Visual review scales further, but not […]ely — a hundred-node diagram is still readable; a thousand-node one is not.
[…] anything beyond what your eyes can catch — text or visual — manual review alone is not enough. You need methods that scale.
Polygraph
Section titled “Polygraph”You always have some ground truths in your head, and nothing stops you from reading AI’s output carefully and flagging the parts that contradict what you know. But that approach does not scale — after the third or fourth cycle of read, push back, revise, read again, you start skimming, and errors slip through. What you want is a lie detector: something that flags the contradictions for you. AI can do that job. Not perfectly — no detector is flawless, polygraphs included — but AI reliably catches most of the fabrications you are likely to miss on a tired pass.
For AI to play that role, the facts have to exist somewhere AI can read them. Writing the ground truths down puts them there, and the detector can run on every iteration without skimming or losing focus.
A ground truth is a fact about your project that AI would not know by default — a domain assumption, a business decision, a constraint that lives in your head, in a memo, or in last week’s meeting notes. Capturing a ground truth does two things at once. It gives AI context that prevents the wrong default during the working session itself. And it gives later sessions a reference to validate against — the detector role just described. The check is cheap to invoke; sometimes you run it immediately, sometimes you queue a list of pending checks and run them as a batch in a quieter session.
Now for the recording. Some ground truths are easy to capture: you sit down at the start of the project and write down what you already know — the constraints, decisions, and conventions you can recall upfront. That gets you the visible half. But the upfront pass always leaves gaps. You know more about the project than you can write down at once, and even the parts you do write will sometimes be looser than the project needs. The gaps stay invisible until AI walks into one: AI produces something, your reaction is “no, because [reason],” and the “because” is a ground truth you never recorded — or recorded too loosely for AI to read the truth the way you meant. The push-back is what makes the ground truth explicit. That moment is the only chance to capture it, because discipline alone cannot anticipate which of your project’s specifics AI will read past. Capture each push-back-with-reason as a new entry in one of the SOT files: AI helps draft the entry, shows it to you for confirmation, and records it only after your approval.
The polygraph comes in two modes. Manual is the general case — you run a check whenever you want, against whatever you want, in any direction. Automatic is the routine case — the same check wired into a protocol that runs on every write to designated files, narrower in scope, with no friction. Both are demonstrated below, starting with manual.
Manual Polygraph
Section titled “Manual Polygraph”The procedure is simple. You produce output in one session. Then, in a clean session, you hand AI both the output and the recorded ground truths and ask it to flag contradictions. Spotting contradictions is what AI does well, and what your attention does worst. Your review still happens, but later, on a smaller scope, after AI has caught what it can.
A worked example. The artifacts chapter built errata-flow.md — a recorded ground truth for the errata-submission user flow on agentic-spec.com. Imagine you now ask AI to draft a short FAQ entry for the errata feature. The task is small and downstream — copywriting, not specification work — so opening the spec feels unnecessary. Here is what the exchange looks like.
AI (in response to your earlier request):
The proposed draft: "Spotted an error? Click the report button next to any chapterheading, fill out the form, and submit. We'll review your report and send you aconfirmation when the correction is made."You do not review it. Instead, you use AI as a polygraph. Here is how.
You, in a new session:
Check the following FAQ paragraph against errata-flow.md. Report anycontradictions and deviations. Do not modify any files."Spotted an error? Click the report button next to any chapter heading, fill outthe form, and submit. We'll review your report and send you a confirmation whenthe correction is made."AI:
The FAQ paragraph contradicts specs/errata-flow.md on several substantive points,plus a few smaller deviations.Major contradictions"Click the report button next to any chapter heading" - the spec's Step 2 chooses asingle page with an always-visible TOC tree as the entry point, and the rationalespells out why a per-chapter button was not chosen (it multiplies the surfaces thebook has to keep in sync, and it does not help a reader who is unsure which chapterthe error is in)."Send you a confirmation when the correction is made" - the form does not collectany contact information. Step 4 lists exactly two fields: a required explanationand an optional proposed correction. There is no email or name field, so the sitehas no address to send a confirmation to."We'll review your report and send you a confirmation" - implies the site receivesand retains the report and then sends outbound mail. The spec rules both out. Step5 specifies that Submit advances the reader to the on-site preview rather thantransmitting anything; Step 7 specifies that once the reader confirms, submissionis delegated to a mailto: handoff to the reader's own email client, after whichthe site has no further role and retains nothing. The design's intent, per therationale on these steps, is to avoid any input-handling, mail-sending, ordata-retention surface on the site.Deviations from the flow"Fill out the form, and submit" collapses what the spec describes as Submit →on-site editable preview (Step 6) → Confirm → mailto: handoff → reader sends fromtheir own client (Step 7). In particular, the FAQ does not mention that the readeris the one who actually sends the email from their own client - a reader followingthe FAQ could click Submit, never complete the handoff, and believe a report hadbeen filed.The FAQ also skips Step 3 entirely (selecting the location in the TOC before theform appears). In the spec, the form is keyed off a TOC selection; in the FAQ, theform just appears next to a chapter heading.Smaller mismatches"Any chapter heading" narrows the granularity the spec offers. Step 3 lets thereader drill to chapter, section, or subsection.The FAQ uses "report" throughout; the spec's vocabulary is "erratum" / "errata".What is next? If the analysis surfaces missing ground truths, record them immediately — ask AI for help formulating them. Then open a new session, redraft, and run the result through the polygraph again; the rerun may catch what the first pass missed. If the analysis surfaces no new ground truths, you have a pure AI error: go back to the drafting session, feed the analysis results to AI (manually or via a scratch file), and ask AI to diagnose the cause of the failure. The diagnosis may surface more ground truths, or it may just fix the error. Then redraft and rerun.
Only after AI’s work passes the polygraph test do you review manually. Save your effort for the very end.
The whole polygraph workflow can be streamlined, which is especially useful when you batch-produce a lot of content. You can keep a queue of items that require a polygraph test — the playbook pattern from Chapter 4 fits this case — and process them one by one in a single session, or in parallel using sub-agents that each run the polygraph against one item.
Automatic Polygraph
Section titled “Automatic Polygraph”The automatic polygraph wires the same check into a write-time guard. Instead of you choosing when to run the check and what to compare, a class of files is marked in CLAUDE.md’s File Registry — call them guarded — and the check becomes a precondition of every write to any file in that class. The proposed content is compared against the file’s existing content, every other guarded file, and the project glossary. If anything conflicts, the write is blocked, the findings are surfaced, and you decide what to do before the file is touched.
The benefit is friction-free routine: you never have to remember to run the check, and a file you have designated as authoritative cannot accumulate contradictions silently. The price is scope. The protocol cannot run an everything-against-everything sweep on every write — that would be expensive and noisy — so we narrow the check to a chosen subset. What follows uses guarded files plus the project glossary; the scope is a dial you can turn wider or narrower as your project tolerates. The protocol is a pattern, not a fixed rule.
The guarded protocol behaves like editable (you maintain the file by hand or by directing AI), but it adds the write-time precondition above. Any conflict halts the write and surfaces options.
The Guarded Protocol
Section titled “The Guarded Protocol”Install the protocol by telling AI to record it.
You:
RECORD THE FOLLOWING DURABLE RULES: 1. Protocol value guarded for the File Registry's Protocol section. The protocol governs source-of-truth files whose content must remain internally consistent and consistent with every other guarded file in the project. 2. Guarded Edits Protocol section in CLAUDE.md must include: - Before recording any change to a guarded file, AI MUST check the proposed change against the current content of the same file and the current content of every other guarded file in the project. - The check MUST surface every finding in the following categories: A. Direct contradictions - the proposed content asserts something incompatible with an existing statement. B. Duplicates - the proposed content is already recorded, possibly in different words. C. Vocabulary mismatch - the proposed content uses a term differently from established usage in the same file, in another guarded file, or in the project glossary. D. Reference integrity - the proposed content refers to a step, ID, section, or term that does not exist. E. Scope drift - the proposed content falls outside the file's declared scope. F. Rationale conflicts - the proposed content's stated rationale contradicts an existing rationale. - If any findings have surfaced, AI MUST NOT proceed with the write. AI MUST present all the findings in a strict loop, each finding with at least one proposed resolution and an override option, then ask the user to choose a resolution, propose a different one, or override. - For every resolution - except for an explicit override - AI MUST re-run the check before applying the recording. The re-check confirms that the resolution actually resolves the findings and does not introduce new ones. The loop continues until the proposed content passes cleanly. - An override is the user's explicit acceptance of one or more listed findings. AI records the change and logs the accepted findings alongside the recording in the same file - as an inline comment next to the recorded item - so the override leaves a visible, persistent trace. The file itself is the only place the acceptance is recorded; there is no separate audit log. - AI MUST NOT silently apply edits to any new content or any existing recorded fact in any guarded file. Every change is either user-instructed or user-confirmed.AI:
How should the guarded protocol use the Dependencies and Instructions columns? 1. Both empty (matches editable/read-only/append-only). Simplest; treats every guarded file as a stand-alone source of truth. 2. Dependencies MAY list other registered files when the guarded file logically derives from them; Instructions MUST be left empty. 3. Something elseYou:
#1 - both emptyAI:
Where should the Guarded Edits Protocol body live? 1. Inline in CLAUDE.md 2. Externalize to new guarded-edits.ms rules file (mirroring the pattern of rule-analysis.md / disambiguate.md / regen-all.md). Externalizing would also require a registry row. 3. Something elseYou:
#1 - in CLAUDE.mdAI:
Keep the override bullet as one paragraph, or split it into two bullets? 1. Keep as one bullet (four ideas bundled) 2. Split into two bullets: (i) override definition + recording, (ii) inline-comment trace requirement. 3. Something elseYou:
#1 - keep as one bulletAI:
Recorded. Two changes to CLAUDE.md: 1. Protocol section - added guarded to the closed list, with the description matching your wording and the column declaration per your choice: "The Dependencies and Instructions columns MUST be left empty for this protocol." 2. New Guarded Edits Protocol H2 section - inserted between Artifacts Protocol and File Registry, preserving your original wording (override bullet kept whole per your instruction).No registered file currently carries the guarded protocol - declaring an existingor new file as guarded would be a separate registry change subject to the usualapproval.Applying the Protocol
Section titled “Applying the Protocol”In the earlier polygraph example, specs/errata-flow.md served as a ground-truth file — registered in CLAUDE.md with protocol editable. The polygraph caught contradictions in downstream output that had been drafted from the spec. The new protocol catches contradictions in the spec itself, before they land.
You:
Change the protocol of errata-flow.md from editable to guarded. Update the FileRegistry.AI:
Per the Inventory change rule, I'm proposing the registry update and awaitingexplicit approval before writing. ...Approve the registry row change (Protocol: editable → guarded for errata-flow.md)? 1. Approve as proposed 2. Hold 3. Somnething elseYou:
#1 - approvedAI:
Done. The Protocol column for specs/errata-flow.md in the Registered Files tableis now guarded. From this point on, edits to specs/errata-flow.md must go throughthe Guarded Edits Protocol.Auto Polygraph in Action
Section titled “Auto Polygraph in Action”Start with a recording that fits the spec.
You:
In errata-flow.md, record: the explanation field in Step 4 accepts up to 5,000characters, with a visible character counter near the field. Longer inputs aretruncated client-side.AI:
Findings check against the only guarded file (errata-flow.md):A. Direct contradictions - none. The file says nothing about field length,counters, or truncation.B. Duplicates - none.C. Vocabulary mismatch - none. "Explanation," "field," and "Step 4" are alreadyestablished in the file; "character counter" and "truncated client-side" are newbut don't conflict with established usage.D. Reference integrity - "Step 4" resolves.E. Scope drift - none. Form-field behavior is in scope.F. Rationale conflicts - none. No existing rationale speaks to length limits ortruncation.No findings. Proceeding with the change as a direct user-instructed edit. Addingto the Explanation of the error bullet in Step 4.Recorded in Step 4 of specs/errata-flow.md, extending the existing Explanation ofthe error bullet. Guarded Edits Protocol check ran clean - no contradictions,duplicates, vocabulary mismatches, broken references, scope drift, or rationaleconflicts against the current file content.One thing worth flagging for your judgment, not as a protocol finding but as adesign note: the spec now has both a visible counter and client-side truncation.The pairing implies the counter warns the user as they approach the limit, andanything beyond is silently clipped. If you'd rather have the field prevent inputpast 5,000 (so nothing is ever clipped) or reject on Submit with an error, thewording should change accordingly. Let me know if you want to refine it.The recording went through without intervention. The check still ran — against the file’s existing content and the glossary — but found nothing to surface. That is the protocol’s clean path: the write happens, the file gains the content, and you move on.
Now try a recording that does conflict with the spec.
You:
In errata-flow.md, record the following: when the reader submits an erratum, thesite sends them a confirmation email so they know the report was received.AI:
I ran the Guarded Edits check on the proposed addition before writing anything tospecs/errata-flow.md. The proposed content surfaces findings in three categories.Per the Guarded Edits Protocol I cannot proceed with the write until you choose aresolution.Proposed contentWhen the reader submits an erratum, the site sends them a confirmation email sothey know the report was received.Finding A - Direct contradiction (vs. Step 5 of errata-flow.md)Step 5 currently states: "The site MUST NOT transmit the message or any of itscontents over the network at this step or any later step. The mailto: handoff atStep 7 is the entire submission mechanism." The proposed content has the sitesending a confirmation email - i.e. the site transmitting over the network - whichis incompatible with that MUST NOT.Step 7 reinforces this: "The site has no further role: it does not see the messageand does not retain the submission." Sending a confirmation requires a furtherrole.Proposed resolutions: - A1. Drop the addition. - A2. Rewrite Step 5 and Step 7 to permit a server-side path for the confirmation email only (and explicitly carve out the rest of the mailto-delegated submission). This is a substantial spec change, not a recording. - A3. Override the finding (accept the contradiction; record the new statement alongside the existing MUST NOT). The accepted finding would be logged inline next to the recorded item.Finding D - Reference integrity (the addition presupposes facts the spec does notestablish)Two missing references: 1. The site has no way to obtain the reader's email address. The form in Step 4 has exactly two fields - Explanation of the error and Proposed correction. There is no email-address field, and the submission goes out via the reader's own mail client (Step 7), so the site never sees the From address either. A "send them a confirmation" step refers to a recipient address the spec does not establish. 2. The phrase "when the reader submits an erratum" - in the existing flow, "Submit" (Step 5) only assembles a mailto: payload; the site never receives the submission. So the trigger for "the site sends them a confirmation email" refers to an event (the site receiving a submission) that the spec explicitly says does not happen.Proposed resolutions: - D1. Drop the addition. - D2. Add an Email address field to the Step 4 form (required) and introduce a server-side submission path so the site has both an address to send to and a moment at which it can send. This compounds with Finding A - it makes the contradiction worse. - D3. Override (accept that the addition references unestablished facts).Finding F - Rationale conflict (vs. Step 5's rationale paragraph)The Step 5 rationale paragraph explicitly justifies delegated submission by listingthe responsibilities the site avoids - among them "(c) operate a mail-sendingpipeline with deliverability, retries, and bounce handling" and "(a) accept andstore reader input". Sending a confirmation email requires the site to operate amail-sending pipeline and to have accepted/stored at minimum the reader's address.The rationale for the current design directly argues against this.Proposed resolutions: - F1. Drop the addition. - F2. Rewrite the Step 5 rationale to no longer list "operate a mail-sending pipeline" and "accept reader input" as avoided responsibilities. This is a rationale rewrite, not a recording. - F3. Override (record the new statement; leave the contradictory rationale in place; log the accepted finding inline).What I need from youPlease pick one of the following: 1. Drop the addition entirely (resolutions A1 + D1 + F1). 2. Restructure the spec to support a server-mediated confirmation: add an email-address field to Step 4, introduce a server-side submission/confirmation path, and rewrite Step 5 / Step 7 and their rationales accordingly. I would draft the full edit and re-run the Guarded Edits check before any write. 3. Override one or more of the findings (specify which: A, D, F, or all). I will record the addition and log each accepted finding inline next to the recorded item. 4. Propose a different resolution.No change has been written to specs/errata-flow.md and no regeneration ofartifacts/errata-flow.html has been performed.You:
#1 - drop entirelyAI:
Dropped. No change written to specs/errata-flow.md; artifacts/errata-flow.html isuntouched.The contradiction never entered the spec. In this example, you saw what the addition would have broken and decided to drop it. You also had the option of revising the addition, or of revising previously recorded facts.
The automatic polygraph does not catch every kind of error. It catches conflicts between proposed content and recorded content — and most errors are exactly that. It will not catch errors that involve facts absent from every guarded file, and it will not catch errors that lie purely in your own judgment. For unguarded files, fall back to the manual polygraph. For files you have designated as guarded, every write goes through the check, and contradictions never accumulate.
Devil’s Advocate
Section titled “Devil’s Advocate”The polygraph already covers a lot. It catches mechanical errors — a misnamed file, a duplicated row, a vocabulary clash — and it catches the simpler kind of creative error: content that contradicts what is already recorded. But output can go wrong for two reasons, and the polygraph catches only one of them. The other is silent. The output contains no contradictions, but it rests on grounding that lives in AI’s training, or in research AI ran along the way, rather than in your recorded materials. When AI does not surface that grounding — when the claim stands alone in the prose — the claim is an assumption.
Assumptions go three ways. Some are true: AI’s training or the research it ran along the way aligns with the project, and the silent grounding is correct. Some are false: hallucinations or reasoning errors with no basis anywhere, indistinguishable in tone from the rest of the output. Some sit in between: claims that may be true but need research before you can decide. Wrong assumptions are the deepest cause of defects. To control them, you first have to know what they are. You need a devil’s advocate to look at the work and find its weak points.
The Devil’s Advocate pattern is exactly that. Same instrument as the polygraph, same procedure — clean session, hand AI the proposed content and the ground truths — but a different question. Instead of asking does this conflict with what we know?, you ask does this trace back to what we know, and if not, where does it come from? AI returns a list of claims that do not trace to a recorded source, each tagged with where AI thinks the grounding lives — its own training, on-the-fly research, or no source at all.
You decide what to do with each. Some are dismissals — the claim really does trace to a recorded truth AI missed in its analysis; the output stands. Some are recordings — the claim is grounded in AI’s training or in research AI can name, you confirm it is correct, and it becomes a new ground truth so the next session does not have to assume it again. Some are invalidations — the claim turns out to be a hallucination or reasoning error, and it invalidates more than itself: any conclusion in the draft that rested on it has to be rethought, not patched. Some are deferrals — the claim may be true but you need to research it before you can decide; you mark it and come back when you have an answer.
Worked example, against the errata-flow.md from earlier. Imagine that, in a prior session, AI drafted a short summary of the feature:
Readers submit corrections through a two-field form - what is wrong and what shouldit say. Each report includes the reader's email so we can follow up, and weacknowledge each submission within two business days.On a quick polygraph pass the draft looks close to clean — the two-field form matches the spec, and the rest reads as additions rather than contradictions of a recorded fact. The trouble […] what those additions rest on.
The Devil’s Advocate, in a clean session:
You:
Here is the spec for the errata-submission flow: errata-flow.mdHere is a draft describing the new feature: "Readers submit corrections through atwo-field form - what is wrong and what should it say. Each report includes thereader's email so we can follow up, and we acknowledge each submission within twobusiness days."Flag every claim in the draft that does not trace directly to the spec. For eachflag, say where you think the grounding comes from.AI:
Here is a claim-by-claim trace of the draft against specs/errata-flow.md.Claim 1 - "Readers submit corrections through a two-field form."Partial trace, with a framing problem. The spec's Step 4 does describe a two-fieldform, so the "two-field form" part traces. But the spec's two fields areExplanation of the error (required) and Proposed correction (optional). Callingthe submission a "correction" inverts the spec: the report is fundamentally anerror report, and the correction is the optional field. Grounding guess: theauthor saw "two fields" in Step 4 and collapsed both into "correction," probablybecause the file is called errata-flow and the colloquial verb for that is "submita correction."Claim 2 - "what is wrong and what should it say."Same partial trace. "What is wrong" maps cleanly to the required Explanation ofthe error field. "What should it say" maps to Proposed correction - but the draftphrases the two as an inseparable pair, hiding that the second one is optional.Grounding guess: a casual paraphrase of the two field labels in Step 4, with therequired/optional distinction dropped.Claim 3 - "Each report includes the reader's email."Not in the spec. Step 4 enumerates the form fields exhaustively - explanation andproposed correction - and there is no email field. The spec's Step 5 lists whatthe assembled message contains (To, Subject, Body), and the reader's email addressis not part of that payload either. The reader's address only ends up on themessage by virtue of the mailto: handoff in Step 7, where the user's own emailclient populates the From line. Grounding guess: inference from the mailto:mechanism - the author reasoned "it goes through their email client, so theiraddress is attached," and restated that as a property of the report. The specnever frames it as such.Claim 4 - "so we can follow up."Not in the spec, and structurally inconsistent with it. Step 5 states: "The siteMUST NOT transmit the message or any of its contents over the network." Step 7states: "The site has no further role: it does not see the message and does notretain the submission." There is no follow-up channel on the site side, and thespec offers no rationale for one - Step 5's rationale specifically lists notoperating a mail pipeline as a goal. Grounding guess: invented. It may have comefrom a generic SaaS-feedback mental model ("collect email so we can reply"), notfrom anything in the spec.Claim 5 - "we acknowledge each submission within two business days."Not in the spec. There is no acknowledgment mechanism, no SLA, and no number ofdays anywhere in the file. The intake log shows that an earlier attempt to add aconfirmation-email behavior to the spec was raised on 2026-05-17 and droppedentirely under the Guarded Edits Protocol (contradiction with Steps 5 and 7, noemail field, rationale conflict). Grounding guess: also invented, possibly carriedover from the same dropped proposal or from generic customer-support-policylanguage. The "two business days" figure has no source in the spec at all.Net. Only the "two-field form" fragment of the draft traces cleanly. Every otherclaim either misrepresents what the spec says (Claims 1-2 collapserequired/optional) or asserts something the spec does not contain and in two casesactively forbids (Claims 3-5).Sources: errata-flow.mdThe flags are self-explanatory. You decide on each.
The instrument is the same as the polygraph’s. What changes is the question — and with it, the kind of finding that comes back.
Automating the Devil’s Advocate is the challenge for this chapter — picked up in the Challenge section at the end.
Validation Toolbox
Section titled “Validation Toolbox”Beyond manual review and the polygraph itself, there are several other methods worth knowing. None of them replaces the methods covered so far. Mix and match based on the task.
Fresh-session replay. Take the same question to a new, clean session. No prior context, no accumulated history. Ask AI to produce the same output from scratch. Compare the two outputs. If they agree on the specifics, your confidence goes up. If they disagree, at least one of them is wrong, and the places where they differ are the places to check. This method is cheap because you do not need perfect agreement — you only need the overlap to be stable. Sub-agents make the technique easier to automate: instruct AI to run a sub-agent in a clean session, without access to the current transcript.
Second opinion. Ask a different model the same question. Different models are trained on overlapping but not identical data, and they fabricate in different places. A claim that two independent models agree on is more likely to be real than a claim only one of them produces. This is especially useful for research-mode outputs and for facts that can be stated concretely.
Automatic output check. After AI produces output meant for a guarded file, ask AI to check that output against the guarded-write rules before the write happens. This triggers the polygraph-level validations without you describing them every time — you just tell AI to apply them to your text, and the findings surface early.
Automated checks for machine-readable output. When AI’s output is code, run the code. If it is a schema, run the schema validator. When it is a configuration file, feed it to the […]at consumes it. When it is structured contract data, run a clause-conflict checker. When […] research protocol, run a checklist tool that confirms every required CONSORT or SPIRIT item […] the standard clinical-trial checklists — is present. Machines are fast and do not get tired. This is the most reliable form of validation that exists, but it works only when the output has a formal definition of “correct” — often true for code and structured data, sometimes true for clinical and contractual documents that have published checklists, almost never true for free prose.
Adversarial prompting. This is critique mode from the earlier chapter, applied as a validation step (manual or automatic) rather than as an upfront technique. After the work is done, you ask AI to try to break it — “here is the cancellation flow I just wrote; list the ways it could fail in production, and for each failure describe the input that would trigger it.” The mode’s rules still apply: some of what AI produces will be noise, and you separate the real weaknesses from the imagined ones. The difference is timing — here you are running critique against a finished artifact, not against a plan.
Provenance check. For research-mode output, require every claim to cite a specific source — a URL, a file, a reference. Then verify a sample of the citations. You are not checking everything. You are checking enough that a fabricated pattern reveals itself. If any of the spot-checked citations turn out to be bad, the whole output is suspect, and you redo it. This is easy to automate with sub-agents; they can do a full check.
Sampling. When AI produces a large set of items — rows in a table, entries in a list, lines in a generated file — do not review every one. Pick a random sample and review those items carefully. If the sample looks clean, the bulk is likely fine. If the sample has errors, treat the whole set as suspect and either redo the work or review all of it. This scales manual review to outputs that are too large to read in full.
Time between creation and manual review. Step away. Come back later with a clear head. You will notice things you missed when the output was new. The practice costs nothing and catches a surprising amount. Build it into your workflow for anything important — never ship on the day you wrote the thing.
Let the work sit in someone else’s hands. If you have a small team, ask another person to review AI’s output. On a solo project, this is harder — but even asking a friend to glance at a draft sometimes catches what you and AI both miss. Independent eyes remain one of the most reliable checks ever invented, and AI has not changed that.
None of these methods is perfect. Each catches a different kind of mistake. The more layers you have, the less likely it is that a single mistake slips through all of them. The cost of stacking two cheap methods is still less than the cost of one mistake making it into production.
The Omission Trap
Section titled “The Omission Trap”There is one validation method that tempts every new AI user, and I almost never use it. The appeal is that it sounds reasonable on the surface.
Here is my feature spec. Read it and tell me what is missing.The idea is that AI can spot the gaps — the edge cases you did not consider, the details you forgot to write down, the questions the spec does not answer. Sometimes AI does spot them. More often, you regret asking.
The problem is that “missing” is an open-ended category. Anything not present is technically missing. AI has no reliable way to distinguish between “missing and important” and “missing but irrelevant in this context.” The result in practice is a long list that reads like a generic checklist.
The spec does not address internationalization.The spec does not address accessibility compliance for screen readers.The spec does not specify the retention policy for canceled bookings.The spec does not describe the error message displayed when a payment processorreturns error 500.Some of these will be genuinely important. Some will be things you have already decided are out of scope. The ratio of signal to noise is bad.
Worse, the items AI produces as “missing” tend to cluster around what AI has seen most often in its training data — which is not your project. If your project is a small business application or a simple web app, AI will suggest missing pieces borrowed from large enterprise applications — including enterprise-grade infrastructure concerns. The list sounds impressive. The items may not apply.
And the things AI is bad at noticing are exactly the things you most need it to notice. AI rarely flags the specific, domain-shaped gaps that actually matter — because those gaps are invisible without the context you have and AI does not.
This is not a hard rule. There are cases where “what is missing?” is useful — early brainstorming, or a specific, well-scoped question inside the broader request (“what is missing from the cancellation flow specifically?”). But as a general validation method, the question is a trap. It feels like due diligence. In practice, you read a long list that drowns the real issues in noise, […] rarely run the check, and when I do, I treat the result as raw brainstorming, not as a finding that needs action.
Challenge
Section titled “Challenge”The Guarded Edits Protocol catches the polygraph’s six finding categories on every write to a guarded file. The Devil’s Advocate technique belongs in the same protocol as a seventh category. Extend the rule text: add G. Ungrounded claim to the list of findings, with resolutions that map to the four responses from the Devil’s Advocate section — dismiss, record, invalidate, defer. Implement it and verify the behavior fires automatically on a write that contains an ungrounded claim — the finding should surface and the resolution options should appear before the write lands.