Lesson 15.2 · 2 of 5 · 5 min read · Reviewed 24 Nov 2026
Multi-pass review to cut errors and false positives
By the end, you can
- Use separate review passes to catch errors.
- Cut false positives with a verification pass.
Draft, critique, revise
A common chain is:
- Draft the output.
- Critique it against explicit criteriaExplicit criteria: Concrete, checkable rules in a prompt that define what a good answer is, instead of vague words like "good" or "concise". in a separate call: “List any claims not supported by the sources.”
- Revise using the critique.
Use a fresh reviewer
A reviewer in the same conversation already “agrees” with the draft’s reasoning. A separate call that sees only the output and the criteria judges it more independently. It is the same reason CIContinuous integration (CI): Automatically building and testing code on every change, usually in a hosted pipeline. jobs start each review in a fresh, isolated session.
Cutting false positives
For tasks that find problems, such as code review, contract review or fact-checking, add a verification pass:
- Pass one: find candidate issues, generously.
- Pass two: for each candidate, check it against the source. Keep it only if there’s clear evidence, and quote it.
The first pass gives recall. The second gives precision. Together they beat one pass trying to do both.
Split big inputs
For long documents or large diffs, review sections separately, then run one pass for cross-section issues.
Key points
- A second pass with a reviewer prompt catches errors the first pass missed.
- A fresh instance reviews better than the same conversation reviewing itself.
- Adding a verification pass that must confirm each finding with evidence cuts false positives.
Add an evidence check to a review
Cut false positives from a generous first review pass by keeping only findings whose quoted evidence really appears in the source.
You will have: A verify function and a precision and recall report before and after verification.
Steps
- Read the contract text and the eight candidate findings from a simulated first pass, each with a quote and a hidden 'real' label for scoring.
- Complete verify so it keeps a finding only if its quote appears word for word in the contract (ignoring case and extra spaces).
- Complete score so it returns precision and recall against the labels.
- Compare the two passes.
Done when
- Precision rises after verification.
- Recall stays at or near what it was.
- The script prints 'before: precision 50%' and 'after: precision 100%'.
Open in the Playground No API key needed.
Starter code (Python)
CONTRACT = """The supplier may end this agreement with 7 days notice.
Late payments carry a fee of 4 percent per month.
The customer must keep all pricing confidential.
Liability is capped at the fees paid in the last 12 months."""
FINDINGS = [ # (claim, quote offered as evidence, real issue?)
("Very short notice period", "may end this agreement with 7 days notice", True),
("High late fee", "a fee of 4 percent per month", True),
("Liability cap is low", "capped at the fees paid in the last 12 months", True),
("Confidentiality is one-sided", "The customer must keep all pricing confidential", True),
("Auto-renews every year", "renews automatically each year", False),
("Exclusive supply clause", "the customer may buy only from the supplier", False),
("Price can rise at will", "prices may change at any time", False),
("Data can be sold", "may sell customer data", False),
]
def normalise(s):
return " ".join(s.lower().split())
def verify(findings, source):
# TODO: keep only findings whose quote appears in the source after normalising both.
return findings
def score(kept, all_findings):
real_total = sum(1 for f in all_findings if f[2])
real_kept = sum(1 for f in kept if f[2])
# TODO: precision = real_kept / len(kept); recall = real_kept / real_total
return 0.0, 0.0
p, r = score(FINDINGS, FINDINGS)
print(f"before: precision {p:.0%}, recall {r:.0%}, shown {len(FINDINGS)}")
kept = verify(FINDINGS, CONTRACT)
p, r = score(kept, FINDINGS)
print(f"after: precision {p:.0%}, recall {r:.0%}, shown {len(kept)}")
Show a solution
CONTRACT = """The supplier may end this agreement with 7 days notice.
Late payments carry a fee of 4 percent per month.
The customer must keep all pricing confidential.
Liability is capped at the fees paid in the last 12 months."""
FINDINGS = [ # (claim, quote offered as evidence, real issue?)
("Very short notice period", "may end this agreement with 7 days notice", True),
("High late fee", "a fee of 4 percent per month", True),
("Liability cap is low", "capped at the fees paid in the last 12 months", True),
("Confidentiality is one-sided", "The customer must keep all pricing confidential", True),
("Auto-renews every year", "renews automatically each year", False),
("Exclusive supply clause", "the customer may buy only from the supplier", False),
("Price can rise at will", "prices may change at any time", False),
("Data can be sold", "may sell customer data", False),
]
def normalise(s):
return " ".join(s.lower().split())
def verify(findings, source):
text = normalise(source)
return [f for f in findings if normalise(f[1]) in text]
def score(kept, all_findings):
real_total = sum(1 for f in all_findings if f[2])
real_kept = sum(1 for f in kept if f[2])
precision = real_kept / len(kept) if kept else 1.0
return precision, real_kept / real_total
p, r = score(FINDINGS, FINDINGS)
print(f"before: precision {p:.0%}, recall {r:.0%}, shown {len(FINDINGS)}")
kept = verify(FINDINGS, CONTRACT)
p, r = score(kept, FINDINGS)
print(f"after: precision {p:.0%}, recall {r:.0%}, shown {len(kept)}")