AI Dojo Open on the typewriterThe typewriter

An exercise to try

Change one fact in a case

10 minutes
Assumes: you have written expected behaviour for a case, as in Grade an AI answer.
First published 19 November 2026. Last edited 19 November 2026.

Fifty rewordings of one question test one thing fifty times. Changing one fact at a time gives you cases that each test something different.

Time
10 minutes
What you need
This page and a place to write. No chatbot or code is needed.

Illustration. The library notice, questions and the changed passage here are invented teaching material, not outputs from a model.

The starting case

A public library runs an AI assistant that answers patrons' questions from a notice and cites the passage behind each claim. The notice has grown to six passages. This case needs one of them:

D4. Renewals. A borrowed book can be renewed twice, for two weeks each time, unless another member has reserved it.

VAR-01. The question: “How many times can I renew a borrowed book?” Expected behaviour: say twice, for two weeks each time, unless another member has reserved it, and cite D4.

Step 1. Write the expected behaviour for three changed cases

The rule for this exercise: each case changes exactly one thing in VAR-01. If two things change at once and the answer goes wrong, you cannot tell which change the assistant responded to.

Before you open the key, write what a correct answer must do in each case below, and say whether it matches VAR-01's expected behaviour.

  • VAR-02, a harmless change. The question arrives with typos and nothing else changed: “How many tims can I renw a borowed book?” The notice is unchanged.
  • VAR-03, a changed fact. The question is the same as VAR-01. Only the number of renewals in D4 changes, and for this case it reads: “Renewals. A borrowed book can be renewed three times, for two weeks each time, unless another member has reserved it.”
  • VAR-04, removed evidence. The question is the same as VAR-01, but D4 is left out of the notice the assistant receives. It still has D1, D2, D3, D5 and D6.
Check your expected behaviour
  • VAR-02: the same as VAR-01. Twice, for two weeks each time, unless reserved, citing D4. Typos change nothing a patron needs. The common wrong answer is to require the assistant to point out the typos: it may, but the test is whether the policy survives the noise.
  • VAR-03: the answer must change. Three times, for two weeks each time, unless reserved, citing D4. An answer of “twice” fails, even though it matches the usual notice. The test checks that the answer follows the notice supplied with the question.
  • VAR-04: say that the notice does not cover renewals. Any number of renewals fails, even the true one, because no passage the assistant received supports it. The common wrong answer is to expect “twice” because that is the policy. A test cannot require evidence the system never received.

Each case asks the assistant a different question. VAR-02 asks whether harmless noise leaves the answer alone. VAR-03 asks whether the answer follows the evidence. VAR-04 asks whether it admits a gap instead of filling it. Fifty rewordings of VAR-01 would ask only the first.

Step 2. Invent one variation of your own

Change one more thing in VAR-01: the question, the patron's situation or the notice. Write the new case, say which of the three kinds it is, and write its expected behaviour. Change only one thing, so that a failure points to one cause.

Check your variation

Four variations that work:

  • The patron says another member has reserved the book. The answer must change: it cannot be renewed, citing D4. The changed fact sits in the question this time, not in the notice.
  • The question is asked in Hindi. The policy in the answer must stay the same. A harmless change is still worth its own case when a whole group of patrons depends on it.
  • The patron asks whether a renewal costs anything. No passage mentions a renewal charge, so the answer should say the notice does not mention one. An invented renewal fee would make a claim the notice does not support, which breaks rule 3 of the site's grading rules.
  • The same question, asked politely: “Could you please tell me how many times I can renew a borrowed book?” The answer must stay the same. Politeness is its own harmless change, so it gets its own case instead of riding along with VAR-02's typos.

Two checks on your own case. If you changed two things at once, a failure will not tell you which one caused it. If your case is a rewording that cannot change the expected behaviour, it belongs with VAR-02, and you already have one of those.

Try a different case

Take a question whose answer went wrong in Read and sort the mistakes and write the same three variations for it, one change each. Questions that already caused a mistake make the best starting points, because they mark known weak spots.

Check this one too

There is no single right set. Check that each variation changes one thing and states its expected behaviour. One set for DEV-10, “When is the desk open, and can I return books when it is closed?”:

  • Harmless: the same question with one typo, “retrun”. The answer stays the same: the desk hours from D3, and returns through the outdoor book drop every day from D1.
  • Changed fact: D1 says the outdoor book drop accepts returns Monday to Saturday. The return part must change: no Sunday returns.
  • Removed evidence: D1 is left out. The answer gives the hours from D3 and says the notice does not cover returns when the desk is closed.

Where this sits: building cases, in the evaluations long read, and the short page Where test cases come from. Researchers name the first two kinds. CheckList calls a change that should leave the output alone, such as a typo, an invariance test. Contrast sets are small, deliberate edits to a test case that usually change the correct answer. Anthropic's guide to agent evaluations gives the same advice in one line: test “both the cases where a behavior should occur and where it shouldn't”.