Lesson 10.3: Evidence-based completion and verification
Learn how a harness decides work is really done: a state ledger, completion judged by evidence, independent adversarial verification and bounded recovery.
By the end of this lesson you will be able to keep a task ledger that records progress outside the model, make completion depend on evidence that code can check and not on the agent's say-so, design a verifier that tries to find faults and stays independent of the worker, count what a verifier catches, misses and wrongly flags, and bound recovery so that failures end in a defined place. You will work out that on 1,000 tasks of which 12 per cent are wrong, a verifier that catches 70 per cent of wrong work and wrongly flags 5 per cent of correct work leaves 36 wrong results where 120 would have passed and raises 44 false alarms, cutting the cost from ₹96,000 to ₹37,980, and that two verifiers who miss 30 per cent each still let 19.5 per cent of errors through if their mistakes are half correlated, against 9 per cent if independent. You should have read Lessons 7.1, 8.3, 9.1 and 10.1. No code is needed. The mathematics is percentages and products.
Lesson 10.2 controlled what the agent can do. This lesson is about the other end of a task: how the system knows that the work is finished and correct. It is the part of harness engineering that most separates agents that merely look done from agents that are done.
The problem: agents say they are finished
Language models are fluent, and fluency carries over to reports on their own work. An agent will write "I have reconciled the statement and all items match" in the same confident tone whether it has or not. It may have matched 300 of 415 items and run out of steps. It may have written a file that does not exist. It may have run tests that did not run. Three habits make this worse.
Early declaration. A model tends to conclude as soon as it has produced something that looks like an answer.
Optimism about its own work. A model that reviews its own output tends to find it acceptable.
Silent shortfalls. When a tool fails or a step is skipped, the final report may not mention it.
If the system takes the agent's report as the truth, then the quality of the system is the quality of the agent's honesty about itself. A harness should not depend on that.
Durable state: the task ledger
The first part of the answer is a record that the harness keeps, outside the model. Lesson 8.3 described durable state for long runs. Here it takes the form of a task ledger: a structured record of the task, written by the harness from what actually happens.
A ledger holds:
The task contract, from Lesson 10.1, with its definition of done and required evidence.
The plan and its items, each with a status: not started, in progress, done with evidence, failed or blocked.
Actions taken, from the gateway's log, with results, so the record of what was done is the record of what was executed, not the agent's account of it.
Evidence collected, attached to the item it supports.
Decisions and open questions, as in the hand-off record of Lesson 5.3.
Counters, such as steps, retries and cost against the budget.
The verification results, when they exist.
The key property is that the harness writes the facts and the model proposes the interpretation. When the agent calls a tool, the gateway records the call and its outcome. When the agent says "item 12 is done", the harness does not simply mark it so. It asks for the evidence.
The ledger serves several purposes. It lets a run resume after interruption. It gives the verifier something to check. It gives a human reviewer a clear picture. And it keeps the model honest, since the model's context is rebuilt from the ledger and not from its own earlier statements, so a false claim in step 5 does not become a "fact" in step 20 unless evidence backs it.
Evidence-based completion
Evidence-based completion is the rule that a task, or a step within it, counts as complete only when the evidence required by the contract is present and passes checks. The agent's statement that it is finished is a request for the check, not the result of it.
What counts as evidence
Evidence is something that can be checked without trusting the agent. The strongest kinds are produced by systems, not by the model.
Kind of evidence · Example · How it is checkedState of the world · The refund exists in the payments table · The harness queries the system
A test result · The unit tests passed, with the output · The harness runs the tests itself, or reads the runner's log
A produced artefact · The file exists, has the required sections and the totals match · A script opens it and checks
A count or total that reconciles · 412 matched plus 3 unmatched equals 415 lines · A script checks the arithmetic against the source
A reference to the source · Each claim cites the passage it came from · Code confirms the passage was retrieved and supports the claim
A tool's own confirmation · An order system returns a confirmation ID · The harness checks the ID exists
Weak evidence is the agent's own description: "I checked the totals." Treat that as a claim to be verified, not as proof.
The completion check
At the point the agent says it is done, the harness runs the completion check:
1. Is every item in the plan done with evidence? Missing evidence means not done.
2. Does the evidence satisfy the definition of done in the contract? Run the checks: counts, totals, schema, tests.
3. Are there unresolved errors or open questions? If so, the task is not complete, or must be reported as partial.
4. Is the budget respected and were the limits kept?
If any check fails, the harness does not accept the completion. It sends the agent back with a specific message: "Items 14 and 15 have no evidence. The totals differ by ₹1,200." The agent continues, within the bounds of recovery described below.
Honest partial completion
Not every task can finish. Often the right result is "done, except for these three items, because of this". The harness should allow and encourage this, with a status of partial that lists what is complete, what is not and why. An agent that is rewarded only for "done" is pushed to claim completion. A harness that treats an accurate partial report as a good outcome removes that pressure. Compare "all items matched" with "412 of 415 matched, 3 listed with reasons": the second is more useful, and is verifiable.
Adversarial verification
Evidence checks catch what code can check. For much work, such as the quality of a summary, the soundness of a plan or the correctness of a reply, code cannot decide. A second model can help, but only if it is set up correctly. The idea of adversarial verification is to use an independent verifier whose job is to find what is wrong, not to confirm that it is right.
Why a friendly check is not enough
If you ask a model "is this answer correct?", it tends to say yes, especially if the answer is its own or was produced by a similar model. It reads the answer, finds it plausible and agrees. This sycophancy makes a friendly check weak.
An adversarial verifier changes the task. Its prompt says: "Your job is to find errors, gaps, unsupported claims and violations of the contract. Assume there are some. List each with the evidence for it. If you find none after a serious attempt, say so." A model asked to attack finds more than a model asked to approve.
Keeping the verifier independent
A verifier is only as good as its independence from the worker. Five steps preserve it.
Give it the contract, the output and the evidence, but not the worker's reasoning. If it reads the chain of thought that led to the answer, it tends to be persuaded by it.
Use a different prompt, and where possible a different model. Two copies of the same model with the same prompt tend to make the same mistakes.
Give it tools to check independently. A verifier that can re-run the query, open the file and recompute the total does better than one that can only read.
Give it a structured job. Ask it to go through the contract's definition of done item by item, and to produce a list of findings, each with a severity and evidence.
Keep it out of the repair work. The verifier reports. The worker, or a separate step, fixes. A verifier that also fixes tends to drift into rewriting.
Counting what a verifier does
A verifier makes two kinds of mistake, as any check does, as Lesson 7.2 explained. It can miss wrong work and let it through, and it can raise a false alarm on correct work, which costs rework.
Take 1,000 tasks, of which 12 per cent, 120, have a real problem. A verifier catches 70 per cent of wrong work and wrongly flags 5 per cent of correct work.
Wrong work caught: 120 × 0.70 = 84. Wrong work that gets through: 36.
Correct tasks: 880. Wrongly flagged: 880 × 0.05 = 44.
Work sent back for rework: 84 + 44 = 128.
Compare the costs, with these assumptions: a wrong result that gets through costs ₹800 to put right later, rework costs ₹60, and running the verifier costs ₹1.50 a task.
No verifier. All 120 wrong results get through: 120 × ₹800 = ₹96,000.
With the verifier. Verifier cost 1,000 × ₹1.50 = ₹1,500. Wrong results that get through: 36 × ₹800 = ₹28,800. Rework: 128 × ₹60 = ₹7,680. Total ₹37,980.
The verifier cuts the cost by more than half, even though it misses 30 per cent and raises 44 false alarms. The key is that a missed error costs much more than a false alarm: ₹800 against ₹60. If the cost of an error were only ₹100, the verifier would not pay: 120 × ₹100 = ₹12,000 against ₹1,500 + 36 × ₹100 + 128 × ₹60 = ₹12,780. As always, the numbers decide.
Predict first: 1,000 tasks, 12 per cent wrong. A verifier catches 70 per cent of the wrong ones and wrongly flags 5 per cent of the right ones. How many wrong results still get through, and how many false alarms are there? Work it out before reading on.
Thirty-six wrong results get through, and there are 44 false alarms.
The independence problem, in numbers
Using two verifiers sounds safer, and it is, but less so than people expect, because their mistakes are often related. Suppose one verifier misses 30 per cent of the errors. If a second, truly independent verifier also misses 30 per cent, then both miss the same error 0.3 × 0.3 = 9 per cent of the time. But if the two are copies of the same model with the same prompt, the errors they miss tend to be the same ones. If their misses are completely correlated, both miss 30 per cent: the second adds nothing. In between, with a correlation of 0.5, the chance both miss is about 0.3 × (0.3 + 0.5 × 0.7) = 0.3 × 0.65 = 19.5 per cent.
So the benefit of a second verifier depends on how different it is. A different model, a different prompt, different tools and a different focus, for example one checking facts and the other checking the contract, bring the misses closer to independent. Two identical verifiers bring almost nothing.
Where a verifier fits
Verification costs a model call or more, so place it where it earns its cost.
Before irreversible actions. Verify the plan or the content before the email goes out or the payment is released.
On high-value or high-risk tasks, scaled to the tier in Lesson 8.4.
On the final result, and on critical intermediate results, not on every trivial step.
When code checks are not enough. Use code checks wherever possible, since they are exact and cheap, and a verifier for the rest.
Calibrate the verifier before trusting it, as you would a model grader in Lesson 7.1. Build a set of outputs with known errors, some planted, and measure its catch rate and false-alarm rate. Re-measure when the models or prompts change.
Bounded recovery
What happens when a check fails? The agent tries again, and may fail again. Without limits, this is the loop of Lesson 7.4. Bounded recovery gives failure a defined, finite path.
A typical escalation ladder:
1. Retry with the failure message, once or twice. Tell the agent exactly what failed. A retry with the same inputs and no new information often fails the same way.
2. Change the approach. After a failed retry, give the agent a different instruction, or a different tool, or break the step in two.
3. Use a stronger model or a different worker for the failing step, as Lesson 8.1 described.
4. Narrow the task. Complete what can be completed and report the rest as partial.
5. Hand back to a person, with the ledger, the evidence and the failed attempts.
6. Stop, safely. Leave the system in a known state, with partial changes either completed or undone, and say what state it is in.
Each rung has a limit, such as two retries, and the total has a budget. The ladder ends in a person or a safe stop, never in an endless loop. Record every rung used in the ledger, since the pattern of recoveries is a signal of weak spots, as Lesson 10.4 uses.
Design the safe state with care. A task that fails halfway through, having made 40 of 100 changes, leaves a mess. Where possible, make tasks atomic, so all or nothing, or record enough to undo the changes made. The change receipts of Lesson 10.4 serve this.
Three worked examples
Example 1: a completion check that caught a shortfall
A reconciliation agent reported "all items matched". The harness's completion check recomputed the counts from the ledger: 415 statement lines, 389 marked matched, 3 marked unmatched, 23 with no status. The agent had run out of steps. The harness rejected the completion, returned "23 lines have no status" and the agent continued under a fresh step budget. The final result was 412 matched and 3 unmatched with reasons. Before the check, such runs had been accepted and found out only at month end.
Example 2: an adversarial verifier on a customer reply
A support agent drafted a refund reply. A verifier with a different prompt and model got the customer's message, the policy excerpt, the order record and the draft, but not the agent's reasoning, and the instruction "find any statement that is unsupported, any promise outside policy and any missing required item". It found that the draft promised a replacement in two days, when the policy said five to seven. The draft was sent back and corrected. Across 300 test drafts with 36 planted faults, the verifier found 27 and wrongly flagged 9 of the 264 clean drafts, a catch rate of 75 per cent and a false-alarm rate of 3.4 per cent.
Example 3: two verifiers, same blind spot
A team added a second verifier to a contract review pipeline to catch missed risks. Both used the same model with near-identical prompts. Tested on 40 contracts with known planted problems, the first missed 11 and the second missed 10, and the two missed 9 of the same problems between them. A second verifier that used a different model and focused only on indemnity and termination clauses brought the shared misses to 3. The team kept the different one and dropped the copy.
A checklist for completion and verification
1. Keep a task ledger, written by the harness from the gateway's log, with plan items, evidence, decisions and counters.
2. Define evidence for each item in the contract: state of the world, tests, artefacts, reconciling totals, source references and tool confirmations.
3. Run a completion check when the agent says it is done. Reject completion without evidence, and send back a specific message.
4. Allow and reward honest partial completion.
5. Use code checks first. Add an adversarial verifier for what code cannot judge.
6. Make the verifier independent: different prompt and model, its own tools, contract and output but not reasoning, a structured job, and no repair work.
7. Calibrate the verifier on known errors. Measure catch rate and false alarms, and compare cost with the cost of an error.
8. Use a second verifier only if it differs. Measure the correlation.
9. Define an escalation ladder with limits, ending in a person or a safe stop. Prefer atomic tasks.
Common mistakes
Trusting the agent's report of its own work. Check the evidence.
The state only in the model's context. A false claim hardens into a fact.
Weak evidence. "I checked it" is a claim.
A friendly verifier. Asked to approve, a model approves. Ask it to find faults.
A verifier that sees the worker's reasoning. It is persuaded by it.
Two identical verifiers. Their blind spots match.
No calibration. You do not know what the verifier catches.
Rewarding only "done". The agent is pushed to claim completion.
Endless retries. Bound them, and end in a person or a safe stop.
Failing halfway with no safe state. Make tasks atomic or undoable.
Key takeaways
Agents report on their own work fluently and not always truthfully, so a harness should not trust the report.
Keep a task ledger, written by the harness, with plan items, actions from the gateway log, evidence, decisions and counters.
Completion is judged by evidence that code can check: world state, tests, artefacts, reconciling totals, source references and tool confirmations. A completion check rejects work that lacks it, and honest partial completion is a good outcome.
An adversarial verifier is independent of the worker, asked to find faults and given tools to check. It misses some and flags some correct work. With 12 per cent wrong work, a 70 per cent catch rate and a 5 per cent false-alarm rate, 36 wrong results still pass and 44 false alarms arise, yet the cost falls from ₹96,000 to ₹37,980.
A second verifier helps only if it differs. Two verifiers missing 30 per cent each let 9 per cent through if independent, 19.5 per cent if half correlated and 30 per cent if identical.
Bound recovery with an escalation ladder that ends in a person or a safe stop.
Check yourself
1. Why should completion depend on evidence and not on the agent's statement?
Agents report on their work confidently whether or not it is complete. Evidence that code can check does not depend on the agent's honesty.
2. Name four kinds of evidence a harness can check.
Any four of: state of the world, a test result, a produced artefact, reconciling counts or totals, source references and a tool's own confirmation.
3. 500 tasks, 10 per cent wrong. A verifier catches 80 per cent and wrongly flags 4 per cent of correct tasks. How many wrong results pass, and how many false alarms are there?
Wrong: 50, caught 40, passing 10. Correct: 450, flagged 18.
4. Why give the verifier the output and the evidence but not the worker's reasoning?
The reasoning can persuade the verifier that the answer is right. Without it, the verifier forms its own view.
5. Two verifiers each miss 20 per cent of errors, and their misses are independent. What share of errors escape both?
0.2 × 0.2 = 0.04, or 4 per cent.
6. What is the last rung of the recovery ladder?
Hand back to a person or stop safely, leaving the system in a known state, never an endless loop.
Try this
Set aside seventy-five minutes.
1. Take an agent task. Design its ledger: the fields, who writes each and what evidence each plan item needs.
2. Write the completion check as a list of conditions that code can test, using the task contract's definition of done.
3. Write the message the harness sends back when the check fails, for three different failures.
4. Write the adversarial verifier's prompt, saying what it sees, what it must look for and the format of its findings.
5. Use the verifier simulator with your estimate of the error rate and the cost of an error. Is a verifier worth running?
6. Use the second-verifier simulator to see how much a second one helps at different correlations. Say how you would make it different.
7. Write the recovery ladder for the task, with limits at each rung and the safe state at the end.
A good result is a completion and verification design: the ledger, the evidence rules, the completion check, the verifier and its calibration plan, and the recovery ladder. Lesson 10.4 closes the module by recording what happened and using it to improve the harness itself.
Tags: Agentic AI Verification Evidence Durable state Harness engineering