HOW AI TESTS SOFTWARE / JASON ARBON

Part 3: AI contextual testing

Same course, a reading layout. Presentation animations are omitted. Examples, prompts, diagrams and teaching notes stay together. Interactive exercises open separately.

Open matching presentation section →

All course materials. This HTML reading edition omits presentation animations; use the presentation view for animations.

Offline reading edition. All 47 sections and course media are included in this file. Interactive exercises and external links need an internet connection.

109 / 247

PART 3
AI CONTEXTUAL TESTING

Use the code.
Understand the risks.

White-box insight, dependencies, and business context inform what to test.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

110 / 247

LECTURE 3.01

Use code as testing context

IN THIS LECTURE

Use TestBucks source and product rules to choose and challenge boundary cases.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

111 / 247

The code becomes testing context.

Give the AI coding agent access to the source—even read-only.

checkout.tspayment-client.tsdependencies.lockorders → payments → pickupREAD-ONLY SOURCE
→

Boundary cases

Limits, branches, validation, and off-by-one assumptions.

Implementation risks

Network timeouts, missing retries, or retries that duplicate orders.

Dependency risks

Libraries, versions, external services, and failure assumptions.

Cross-component risks

Microservices disagreeing about state, contracts, or partial failures.

AI can survey and connect large amounts of code quickly—beyond what a tester can manually review in the same time. Access is not complete understanding: verify its findings against requirements and execution.

Open this section in the presentation →

112 / 247

Just put it in the project folder.

Start a new chat. Select Project TestBucks. Ask your question.

Project TestBucks

▤src/checkout.tsSOURCE CODE
▤specs/ordering.mdSPECIFICATION
▤business-plan.mdBUSINESS GOALS
▤test-plan.mdTEST STRATEGY
▤results/latest.jsonTEST RESULTS
▤incidents/payment-retries.mdKNOWN HISTORY
→HARNESS
NEW CHAT Project TestBucks ▾
What should we test before shipping the new checkout?
Finding relevant project context…
checkout.tsordering.mdlatest.json
EXAMPLE AGENT RESPONSE

Start with payment retries.

  • Code retries a failed payment.
  • The spec requires one charge per order.
  • The latest results omit timeout recovery.
Next test: successful charge, lost response, then retry.

The harness discovers, searches, and retrieves relevant files as the agent works.
No need to paste every document into every prompt.

Illustrative workspace · Use approved files; keep secrets out.Indexing varies by tool. Relevant context is not guaranteed—ask for file citations.
Open this section in the presentation →

113 / 247

The code is a clue. The user is the reason.

1 / READ THE IMPLEMENTATION

Last-name field

const name = raw.trim();
if (name.length > 20) reject();
if (!/^[A-Za-z]+$/.test(name)) reject();

The code tells us what happens today.

→
2 / CHECK THE BOUNDARY

TestBucks profile

abcdefghijklmnopqrst

20 letters: accepted

abcdefghijklmnopqrstu

21 letters: rejected

→
3 / CHALLENGE THE RULE

Whose name fails?

O’Example
Éxample

Real name formats rejected

A passing code-derived test can still miss a product problem.

Generate tests from the implementation, then question whether its rules serve the user.

TestBucks worked exampleIllustrative evidence, not a live AI run
Open this section in the presentation →

114 / 247

PAUSE AND PRACTICE

Challenge the implementation: form boundaries

Exercise home
Review your result
Loading prompt + form code…Open full form ↗

The code sets a limit.

<input maxlength="20" required>

function validateLastName(raw) {
  const name = raw.trim();
  if (!name)
    return 'Enter your last name.';
  if (name.length > 20)
    return 'Use 20 characters or fewer.';
  if (!/^[A-Za-z]+$/.test(name))
    return 'Use letters A–Z only.';
  return null;
}

Is it the right limit?
Ask for boundary tests—and challenge names this rule excludes.

Try 19 / 20 / 21 letters, spaces, accents, apostrophes, and hyphens.
Try the last-name boundary form

Copy includes the complete form implementation. Presets bypass typing maxlength. Synthetic inputs only; nothing is saved.

Open this section in the presentation →

115 / 247

LECTURE 3.02

Prioritize the risks

IN THIS LECTURE

Turn source-code observations into a short, evidence-backed testing priority list.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

116 / 247

Prioritize risks—not list length.

Connect code, requirements, and business stakes.

AI coding agentCopyOpen in ChatGPT▶ PlayAnalyze TestBucks risks using the source, specifications, test results, and business goals. Rank by impact and likelihood. Explain the evidence, missing coverage, and next test for each. Mark assumptions and uncertainty.
PERSON · INITIAL QUICK PASS

The obvious starting risks

Checkout fails.

Wrong price charged.

A starting list—not a limit on human expertise.
→ADD CONTEXT
AI-ASSISTED · STACK-RANKED CANDIDATES
CodeTest resultsSpecsBusiness goals
  1. 01
    Privacy leak responseNo spec, code, or tests found
  2. 02
    Duplicate payment on retryPayment client lacks idempotency
  3. 03
    LLM unavailable / error flowsNo fallback spec, code, or tests found
  4. 04
    Holiday traffic overloadPromotion goal; no peak-load evidence
  5. 05
    Order / payment state mismatchCross-service partial-failure gap
  6. 06
    Mobile checkout failuresLight coverage; flaky results
  7. 07
    Dependency outageExternal service; retry assumptions
  8. 08
    Discount boundary errorsPassing basics; limits untested

Rank by impact and evidence. Investigate the biggest gap first.

Open this section in the presentation →

117 / 247

PAUSE AND PRACTICE

Find risks in the source code

Exercise home
Review your result
Loading prompt + source…ⅡPAUSE & PRACTICEFull worksheet↗
TESTBUCKS CHECKOUT · ABBREVIATED EXCERPT
const { quantity, unitPrice } = request.body;
const total = quantity * unitPrice;

try {
  payment = await paymentClient.charge({
    amount: total
  });
} catch (error) {
  payment = await paymentClient.charge({
    amount: total  // Retry any failure
  });
}

const order = await orders.insert(...);
await email.send(...);
return { status: 200, orderId: order.id };
Dependency ranges express: "*" · axios: "latest"

Which risks matter most?

01 / Validation

Who controls the price?
Can quantity be negative or fractional?

02 / Retry safety

What if payment succeeds—but its response is lost?

03 / Dependencies

What if email fails after the order is saved? Which versions will run?

Your own code is even better.

Use approved source and product rules. Start read-only; exclude secrets.

Ask for ranked risks, exact code evidence, and the next best tests—not invented runtime results. Copy includes the full sample and requirements.

Open this section in the presentation →

118 / 247

LECTURE 3.03

Prove a focused property

IN THIS LECTURE

Use the refund example to distinguish a checked proof, a counterexample, and an unresolved question.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

119 / 247

Prove the important pieces.

AI + HUMAN REVIEWChoose a rule.TestBucks refunds require authentication and ownership.
→
AI PROPOSESFormalize it.State the property, domain, and assumptions.
→
LEAN CHECKSCheck the proof.A formal argument—not an AI confidence score.
AI does the investigation.
The proof checker checks the argument.
Code + requirements · Selective proof alongside testingPART 3 · SELECTIVE PROOF
Open this section in the presentation →

120 / 247

One wrong operator. Someone else’s refund.

TESTBUCKS · REFUND POLICY

Order #204 · Owner: Priya

Requester: Alex · Signed in

allow = authenticated or owner
BUG: Alex can authorize Priya’s refund.

Required: authenticated and owner.

Try every Boolean combination.

Signed inOwner“or”“and”
NoNoDenyDeny
NoYesALLOWDeny
YesNoALLOWDeny
YesYesAllowAllow
Counterexample → regression test → repair → recheck
Illustrative policy · Actual Boolean inputs only · Does not prove callers, APIs, or payment behaviorPART 3 · SELECTIVE PROOF
Open this section in the presentation →

121 / 247

No proof is not proof of a bug.

01 / PROVED

Keep the scope.

Exact property.
Explicit assumptions.
Independently checked evidence.

02 / COUNTEREXAMPLE

Replay the violation.

Verify against the implementation.
Keep a regression test.
Repair and recheck.

03 / UNRESOLVED

Keep the gap visible.

Timeout? Unsupported feature?
Incomplete formalization?
Not automatically a defect.

Define the property. Check the argument. Keep the assumptions.

CARBON /proof is an early bounded Boolean-verification path, with optional Lean model checking. Automated AI proof search is not enabled yet. A model proof is not a proof of production-code equivalence.

Proof scope and assumptions matter · Lean: lean-lang.org/faq/PART 3 · SELECTIVE PROOF
Open this section in the presentation →

122 / 247

LECTURE 3.04

Review the AI’s findings

IN THIS LECTURE

Compare human and AI findings, sample the results, and feed useful corrections back.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

123 / 247

AI changes the role of the tester.

AI does most of the execution and first-pass analysis.
Testing experts review, challenge, and communicate.

AI DOES THE WORK

Explore → test → collect evidence

Draft bugs, results, and a quality synopsis.

EXPERT REVIEWS

Check the output—not just the prose

Sample evidence. Challenge conclusions. Find omissions.

TEAM UNDERSTANDS

Communicate the quality picture

Explain risk, uncertainty, and the next decision.

Double-check the summary against the underlying results.
A polished synopsis is not proof that the product is ready.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

124 / 247

I’ve measured it: people and AI.

People testing directly—and people directing AI to test.
Compare what each finds, not just how much activity each performs.

92%

AI found
79% AI-only + 13% shared

8%

Expert-only contribution

Denominator: the combined findings in this working model—not all possible bugs.
8%13%79%AI onlyExpert onlyShared

Jason’s firsthand comparisons inform this discussion. The diagram reproduces the article’s campaign working model (79 / 13 / 8); it is not a reconciled result from the ten-minute workshop or a universal miss rate.

Source: “The 8% That AI Misses” · local articleConfirm experiment-level counts before presenting as a benchmark.
Open this section in the presentation →

125 / 247

Sample. Review. Improve the next run.

BUGS

Total hidden at 200% text

Email exposed in request URL

“Missing delivery option”

REVIEWER COMMENT

Pickup-only is intentional. This is a false alarm.

TEST RESULTS

Cart quantity matches intent · PASS

Retry does not duplicate order · PASS

Checkout completed · PASS

REVIEWER COMMENT

A click is not completion. Show the saved order.

Reviewed labels + reasons → improve the next run.

Illustrative human review · two approvals and one correction in each listRetain the evidence, reviewed label, and reason.
Open this section in the presentation →

126 / 247

LECTURE 3.05

Generate and review tests at scale

IN THIS LECTURE

Generate synthetic data and meaningful variants, expand affordable coverage, and review large result sets with AI and statistical sampling.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

127 / 247

AI can generate the test data, too.

Start with the rules. Generate values and expected outcomes together.

Example fixture: quantity is a whole number from 1–10; required pickup name is 1–40 characters.
Everyday dataBoundary dataInvalid data
QuantityPickup nameExpected outcome
1AlexAccept
2ZoëAccept
3李明Accept

Make it synthetic.

Invent names, orders, and accounts.

Make it varied.

Include scripts, boundaries, and missing values.

Make it reusable.

Save the values, seed, and expected results.

PART 3 · GENERATE AND REVIEW AT SCALETestBucks · Worked teaching examples
Open this section in the presentation →

128 / 247

Combine inputs. Mutate assumptions.

AI can expand one good test into a family of meaningful checks.

PERMUTATIONS / COMBINATIONS

3 sizes × 3 milks ×
2 temperatures × 4 quantities

72 candidate combinations

1/72 — Small · Dairy · Hot · Quantity 1

Show another combination
MUTATIONS

Change one thing.

Input: quantity 1 → 0.
Expected: reject the order.

Sequence: edit → pay becomes pay → edit.
Expected: no silent paid-order change.

Code: quantity ≤ 10 becomes quantity < 10.
The quantity-10 test should catch it.

Remove impossible combinations. Keep useful interactions and strong checks.

Input and sequence mutations vary tests. Code mutation testing asks whether tests detect an injected defect.

Open this section in the presentation →

129 / 247

“Won’t we have too many tests?”

That instinct comes from a world where every test was expensive.

Create→Execute→Maintain→Analyze

AI can do much of that work.

100tests
→
1,000tests
→
10,000tests

Why not buy orders of magnitude more coverage?

At 100× lower cost per completed case, the same budget buys 100× as many cases. Spend it on distinct risks, states, and data.

Open models and cheaper inference expand the opportunity. Measure compute, environments, retries, and review—not just tokens.

PART 3 · GENERATE AND REVIEW AT SCALETestBucks · Worked teaching examples
Open this section in the presentation →

130 / 247

“Who will read 10,000 results?”

You won’t read every result. You need a review system that scales.

AI ORGANIZES

Cluster and summarize.

Group duplicate failures. Link every claim to evidence. Surface uncertainty.

PEOPLE PRIORITIZE

Review consequential cases.

Investigate severe failures, novel behavior, and judge disagreements.

STATISTICS CHECKS

Audit a random sample.

Sample passes too. Measure agreement and uncertainty across risk slices.

20 reviewed results · 100 reviewed results · 400 reviewed results
96/100 agree · 96%95% Wilson interval: 90.2%–98.4%

Agreement is a signal. Investigate disagreement—and shared mistakes.

Manufacturing, polling, and clinical research also learn from samples. A confidence interval measures sampling uncertainty, not “the app is safe.”

Open this section in the presentation →

131 / 247

Who tests the AI doing the testing?

THE COMPANION COURSE

Testing
AI

Jason Arbon

Learn to evaluate AI-based systems.

Go deeper in Testing AI.

  • Design representative samples.
  • Read confidence intervals and variation.
  • Measure judge agreement and disagreement.
  • Calibrate rubrics against human review.
  • Turn evidence into a release decision.

Use AI to test more.
Learn how to trust the evidence.

PART 3 · GENERATE AND REVIEW AT SCALETestBucks · Worked teaching examples
Open this section in the presentation →

132 / 247

LECTURE 3.06

Balance cost, speed, and scale

IN THIS LECTURE

Choose where AI testing saves effort and where additional runs earn their cost.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

133 / 247

AI token usage and speed.

Costs fall.
Work gets faster.

Cost / task↓Work / secondTodayOver time →

Falling inference costs can make more testing affordable.

Smaller models.
Shorter waits.

GENERAL MODEL
● ● ●
● ● ●
● ● ●
✓
TASK-SIZED MODEL
● ●
● ●
✓

Use the smallest model that meets your quality bar. Measure it on your tests.

Open-weight models.
Run locally.

LOCAL AI · TESTBUCKS✓ Review code✓ Generate tests✓ Keep data local

No per-token API bill for local inference. Hardware, energy, and setup still cost.

Illustrative trends and timing—not a benchmark. Compare cost, latency, and correctness for your task.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

134 / 247

Your laptop can run the model.

1 / INSTALL

Ollama

Download for your machine.

Get Ollama →
→
2 / DOWNLOAD + RUN

Pick a local model

ollama run gemma3:4b
ollama run deepseek-r1:8b

Google Gemma 3 · DeepSeek R1 8B
Examples—not a hardware guarantee.

→
3 / TRY A SMALL TASK

TestBucks triage

“Classify this bug: checkout charged twice after a retry. Explain the risk.”

Downloaded local models can run offline.

Small tasks: try open models. Hard reasoning: start with frontier models.

Local models can work well for classification, extraction, and drafts—measure them on your examples. For risk analysis or re-architecture, my default is a frontier model. No per-token API fee locally; hardware and energy still cost. Download first; avoid cloud models/tools for offline use. Open weights ≠ identical licenses: Gemma has its own terms.

Open this section in the presentation →

135 / 247

Local does not mean neutral.

SAME TESTBUCKS TASK

Review our regional menu.

Compare names, language, country labels, and recommendations for customers in different regions.

English中文Other languages
Culture + languageWhose preferences become the default?
Politics + refusalsWhat is omitted, reframed, or refused?
Training + alignmentWhat did the model learn to favor?

Every model has biases. Test the exact model you deploy.

Studies of some DeepSeek models found Chinese-state-aligned framing and refusals on politically sensitive topics. That is evidence about tested models—not a rule about every Chinese model. Western models also show political and cultural biases. Compare matched prompts across languages; record versions, omissions, refusals, and customer impact.

Open this section in the presentation →

136 / 247

Teach a model your triage patterns.

Reviewed bug history→JSONL examples→Fine-tune + evaluate→Serve locally
JSONL = ONE JSON OBJECT PER LINE · SYNTHETIC TRAINING PAIRS
{"prompt":"TestBucks charged twice after retry.","completion":"High priority: duplicate charge."}
{"prompt":"TestBucks menu heading is misaligned.","completion":"Low priority: cosmetic alignment."}

This is a prompt/completion format. Match the trainer’s schema and chat template.

AI coding agentCopy for desktop agent▶ PlayInstall Ollama from its official site. Inspect my hardware and propose a compatible, fine-tunable open-weight model and training tool. Turn my authorized bug-triage history into reviewed JSONL examples; remove secrets and personal data. Split by incident into train, validation, and holdout test sets. Estimate resources and ask before paid compute. Fine-tune with a supported tool such as TRL/PEFT, compare against the base model on holdout cases, and check severe mistakes and bias. If it improves, export a supported format and serve it locally with Ollama. Do not upload private data or expose a public endpoint.

Ollama serves models; training happens separately. Plenty of data helps only if labels are good. Keep evaluation cases out of training.

Open this section in the presentation →

137 / 247

Tokens versus People.

Same completed task. Compare the dollars.Replay cost comparison

PeopleHuman effort
$100
TokensAI inference
$1–$10
$0$25$50$75$100

COST PER COMPLETED TASK · USD

$90–$99difference per task in this example.
Reinvest in more test coverage.

Illustrative dollar amounts—not a price quote or measured benchmark. Assume equivalent scope and quality. Add setup, tools, review, retries, and corrections when comparing total cost.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

138 / 247

AI testing: speed, availability, scale.

10–100×

Faster in Jason’s measured testing tasks.

Independent tasks and parallel workers can compress the same testing work.

HUMAN BASELINE · ILLUSTRATIVE40 hours of serial work
MonTueWedThuFri
One task at a time…
AI SCENARIO · SAME SCOPE / QUALITY24 minutes–4 hours at 100×–10×
Menu✓Search✓Cart✓Price✓Login✓Retry✓Menu✓Search✓Cart✓Price✓Login✓Retry✓Menu✓Search✓Cart✓Price✓Login✓Retry✓Menu✓Search✓Cart✓Price✓Login✓Retry✓
24 concurrent tasks · rapid completion cycles

Available 24/7. No waiting for a person. Run testing work in parallel with cloud workers.

Illustrative animation · Not a real-time benchmarkSame quality bar · More tasks in parallel
Open this section in the presentation →

139 / 247

LECTURE 3.07

Personas and skeptical review

IN THIS LECTURE

Turn a persona’s concerns into testable questions, then challenge the answers.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

140 / 247

Turn persona feedback into tests.

AI coding agent
AI coding agentCopy for desktop agent▶ PlayReview TestBucks checkout as a first-time buyer, a keyboard user, and an older customer carrying a small dog. Rate clarity, ease of use, and trust out of five. Explain friction and suggest checks. Label simulated feedback and distinguish observations from assumptions. TestBucks is a fictional, Starbucks-like coffee shop. Sample site: https://howaitestssoftware.com/testbucks/. Use your browser-capable desktop agent.
AI-SIMULATED PERSPECTIVE

First-time buyer

Understand the total before paying.

“Where are my promotion and delivery fee?”
Clarity★★★★★
Ease of use★★★★★
Trust★★★★★

Investigate → Check the price breakdown before payment.

AI-SIMULATED PERSPECTIVE

Keyboard user

Complete checkout without a mouse.

“Can I see focus—and return from the address dialog?”
Clarity★★★★★
Ease of use★★★★★
Trust★★★★★

Investigate → Verify keyboard navigation and focus return.

AI-SIMULATED PERSPECTIVE

Older dog owner

Plan pickup while carrying a small dog.

“Can I bring my dog inside before I order?”
Clarity★★★★★
Ease of use★★★★★
Trust★★★★★

Investigate → Check pet-policy information and pickup options.

Illustrative hypotheses—not customer research. Turn each concern into an observed test.

Adapted from the STARWEST persona demonstrationUse real evidence and real people to validate the findings.
Open this section in the presentation →

141 / 247

AI skepticism.

Testers question things—especially something doing work we used to do.

Who ever tested the human?

“Almost no testers I know have tested themselves versus AI. I have.”— Jason Arbon
YOU10:00
Same task.
Same time.
AI10:00
You only · Both · AI only
Compare valid findings—not just counts.
testers.ai/workshop/ ↗
Challenge both testers with the same evidence standard.testers.ai/workshop/
Open this section in the presentation →

142 / 247

LECTURE 3.08

Different paths. Stable outcomes.

IN THIS LECTURE

Separate useful variation in execution from an incorrect TestBucks outcome.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

143 / 247

Non-determinism: people vary, too.

Same TestBucks checkout. Different paths, words, and judgments.

TESTBUCKS · OBSERVED RESULT Payment timed out. The order status is unknown.
TESTER A
“I’ll retry and check for a duplicate charge.”
Recovery path
TESTER B
“I’ll check order history before trying again.”
State verification
REVIEW TOGETHER
“What does the payment record actually show?”
Shared evidence

We manage human variation with shared expectations, evidence, and review—not identical wording.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

144 / 247

Different paths. The same purchase intent.

“Add one medium vanilla latte with oat milk. Verify the cart. Do not pay.”

RUN A

Browse the menu

Menu → Vanilla latte → Customize

TestBucks latte

Medium · vanilla · oat · quantity 1

≡
RUN B

Search for a latte

Search → Vanilla latte → Customize

The same TestBucks latte

Medium · vanilla · oat · quantity 1

≠
RUN C

A different outcome

Menu → Latte → Add to cart

Large latte · dairy milk · quantity 2

Fails the intent

Flexible execution does not mean flexible requirements.

TestBucks worked exampleIllustrative evidence, not a live AI run
Open this section in the presentation →

145 / 247

Non-determinism: AI-specific variation.

Repeat the request. The model may choose a different response or route.

SAME PROMPT “Check whether TestBucks offers pickup.”
RUN 1
“Yes, pickup is available.”
Direct answer
RUN 2
“You can collect your order in store.”
Different wording · same meaning
RUN 3
“Delivery only.”
Contradiction · investigate

Sampling can vary outputs. Changed prompts, context, model versions, tools, or environments can also change results.

Illustrative responses · Not measured runsRecord the configuration and evidence for each run.
Open this section in the presentation →

146 / 247

Variation is useful. Wrong is still wrong.

Accept different routes and wording. Challenge different facts.

USEFUL VARIATION
Menu → Latte → Cart
Search → Latte → Cart
✓ Same intended outcome
UNSTABLE VERDICTS
Same evidence → PASS
Same evidence → FAIL
Investigate the disagreement.
Repeat → Compare evidence → Resolve uncertainty

Models learn human-created patterns; sampling is not simply an attempt to copy human inconsistency. Neither human nor AI variation excuses missed failures.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

147 / 247

You can make the AI pretty close to deterministic if you want to.

TestBucks: “Try a hot vanilla …”

latte
55.0%
cappuccino
25.0%
mocha
15.0%
espresso
5.0%
Next token: latteIllustrative draw 1
Pause parameter tour

All four words can be selected.

Toy probabilities, not a real model. These settings change variation, not truth.

Lower randomness ≠ guaranteed correctness or reproducibility.
Open this section in the presentation →

148 / 247

LECTURE 3.09

Judge meaning with evidence

IN THIS LECTURE

Use rubrics, independent judgments, and calibration to assess variable results.

HOW AI TESTS SOFTWARE AI CONTEXTUAL TESTING

Open this section in the presentation →

149 / 247

Check meaning—not identical wording.

AI coding agentCopyOpen in ChatGPT▶ PlayEvaluate these four TestBucks answers against the supplied pickup rule. Return a verdict for each, quote the evidence, and explain whether different wording changes the meaning. Do not browse or run the app.
“Yes.”✓ Same meaning
“Yes, you can collect it in store.”✓ Same meaning
“Absolutely—pickup is available.”✓ Same meaning
“No, delivery only.”✕ Contradiction
EXACT-STRING ASSERTIONanswer === "Yes."

Rejects two valid paraphrases.

AI + EXPLICIT RUBRIC

Check the meaning.

Accept the first three.
Reject the fourth.

Calibrate semantic judges. Keep exact checks where precision matters.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

150 / 247

AI can be the judge.

AI coding agentCopyOpen in ChatGPT▶ PlayEvaluate this TestBucks cart evidence against the supplied order requirement. Return PASS, FAIL, or INSUFFICIENT EVIDENCE, citing the exact mismatch. Do not browse or invent missing facts.
RUBRIC + EVIDENCE

One latte, $4.50.

Cart shows two lattes, $9.00.

→
LLM JUDGE

FAIL

Quantity contradicts the expected outcome.

>80% agreement

In the MT-Bench / Chatbot Arena study, GPT-4 matched human preferences at roughly the human–human agreement level.

LLMs are imperfect. Agreement is not truth, and these results are not a guarantee for software pass/fail decisions. Measure your judge on your tasks.

Open this section in the presentation →

151 / 247

Compare independent judgments.

AI coding agentCopyOpen in ChatGPT▶ PlayAudit these three judge votes against the same TestBucks requirement and evidence. Which votes are supported? Report the majority, then your evidence-based verdict and the missing information. Do not simulate independent model calls.
JUDGE AModel family A · configuration 1

PASS

Expected total is shown.

JUDGE BModel family B · configuration 2

PASS

Quantity and total match.

JUDGE CModel family C · configuration 3

UNCERTAIN

Evidence omits the selected size.

2 / 3 PASSMajority recommendation—not proof.
Investigate the missing evidence.

Different models can share biases. Three votes are not necessarily independent evidence.

Open this section in the presentation →

152 / 247

Measure the judges. Then improve them.

AI coding agentCopyOpen in ChatGPT▶ PlayCompare these four AI verdicts with the reviewed labels. Count false positives, false negatives, and exact agreement. Challenge any unsupported label. Rewrite the rubric to prevent these mistakes, then propose separate holdout cases. Do not claim the new rubric is validated.
Case / observed cartAI saysReviewed label
A · Medium · qty 2 · $9.00PASSFAIL
B · Medium · qty 1 · $4.50FAILPASS
C · Medium · qty 1 · $4.50PASSPASS
D · Size missing · qty 1 · $4.50PASSINSUFFICIENT EVIDENCE

Rule: one medium vanilla latte · quantity 1 · $4.50. All four carts identify Vanilla latte. Verify size, quantity, and total.

Copy includes all four cases, the rule, and metric definitions. Improve on these; validate on fresh holdout cases.

Open this section in the presentation →

153 / 247

Judge against evidence—not authority.

Who has the evidence for this decision?

AI coding agentCopyOpen in ChatGPT▶ PlayResolve this TestBucks disagreement using the product rule and evidence—not the reviewer’s identity. Should the issue be accepted, rejected, or left unresolved? Explain what would change your decision.
AN ASSIGNED PERSON

Context. Experience. Blind spots.

People bring local knowledge and accountability.

A BROADLY TRAINED MODEL

Many sources. Many perspectives.

Models bring broad patterns—not guaranteed truth.

Requirements + user needs + observed evidence.

People and models have blind spots. Neither is automatically right.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →

154 / 247

Testing a medical device?
Who understands what?

Do you automatically know more about medicine than an AI with broad medical knowledge—just because you’re the tester?

THE TESTER’S ADVANTAGE

This device. This setting.

Intended use · requirements · hardware behavior · actual users · local failure history

THE MODEL’S ADVANTAGE

Breadth at your fingertips.

Medical concepts · published knowledge · possible failure modes · alternative explanations

AI has measurably outperformed human experts
on some evaluated knowledge and reasoning tasks.

Example: a randomized study found GPT-4 alone outperformed participating physicians on diagnostic-reasoning cases. That is not proof of medical-device testing competence.

Bring the domain knowledge and product evidence together.
Validate the judge. Don’t assume either side is the authority.

Open this section in the presentation →

155 / 247

PART 3 / RECAP

What you’ve learned: Contextual testing.

01

Read the implementation

Use source code and dependencies to identify likely risks.

02

Challenge the rules

Test boundaries and prove focused properties against explicit requirements.

03

Explore user perspectives

Use personas to expose different needs and friction.

04

Judge meaning

Vary inputs and recognize equivalent, correct outputs.

05

Challenge the judges

Investigate disagreement and false positives with evidence.

06

Prioritize the next test

Combine business impact, uncertainty, and missing coverage.

More context helps AI ask better questions—not just generate more tests.

Ask → Test Brief → HarnessUse ← → to present · Lessons to jump · Mobile scrolls vertically
Open this section in the presentation →