Puzzles and mysteries / Recipe 02 of 4 · Check
A science report turned into slides, every number proven
A 4th grader's chocolate report hides two copied-wrong numbers. You hunt for them first, then the agent proves every number on her slides, times against her own data table and every other number against the line of her report it comes from, and keeps her words as hers.
- About 25 minutes
- For kids and parents with a school presentation due, and for anyone who wants an agent to check a draft instead of polishing its mistakes.
- Runs in Claude Code and OMP
What the agent made
Ran it for real with Claude Code 2.1.318 and OMP 18.16.0 on 2026-11-04, in an empty session with no saved memory. Your result will differ.
Open what Claude Code made, full screen
The same prompt in OMP made its own version: open what OMP made. Two runs, two different results: that is normal.
Make your own
Get the files
Download the practice folder (ZIP)
Unzip it: you get a folder called
cli-practicewith 1 practice file. Download the fictional report.md: a typed 4th-grade science fair report with a data table, results, conclusion, and abstract. Every name and number in it is made up.Open your agent in that folder
Open a terminal in
cli-practiceand typeclaudeoromp --approval-mode always-ask. First time? Set up in about five minutes, with steps for Mac, Windows, and Linux.Paste this prompt
A 4th grader typed up her science fair report in report.md. Turn it into a short presentation she can give, and prove every number on it. Work only in this practice folder. 1. Write check.py (Python 3 standard library only). It reads the data table in report.md and recomputes each chocolate's average from the three trials, rounded to whole seconds (round half up). Then it finds every number written anywhere else in the report (the Average row, the Results paragraph, the Conclusion, the Abstract, and the other sections) and prints one line for each. Split the text at spaces; an expression is any piece containing a digit, with trailing punctuation (comma, period, semicolon, colon, bracket, question or exclamation mark) removed, and a period or comma followed by a letter also ends it. Every expression must match exactly one of two strict forms, or it is a FAIL that names the whole expression: a TIME is a plain unsigned whole number or a decimal with a digit before the point (such as 41 or 45.5), followed directly or after one space by a time unit (sec, secs, second, seconds, s, min, mins, minute, minutes, any case); a QUANTITY is a plain number or an ordinal such as 4th with no other characters touching it. So -41 sec, ±41 sec, .41 sec, 1/41 sec, 41-46 sec, 999±sec, 999approxsec and 20kg are FAILs, never read as the number inside them, and 41 to 46 sec is a range and a FAIL. For a TIME, convert to seconds first, then compare exactly: a trial time must equal its table cell, and an average must equal the recomputed whole-second average; never round the table value to match the report. Print PASS or MISMATCH with where it appears, what the report says, and what the table says, or FAIL for a time it cannot match to a trial and chocolate. For a QUANTITY, print one line with where it appears and the word after it (its unit, such as grams or trials). Finish with a coverage check: every expression must belong to exactly one printed line, and any that does not is a FAIL, so nothing the parser misses can pass silently. 2. Write slides.json for a 4 to 5 minute talk of about 8 slides: title, question, hypothesis, what I did, what happened (all three trials plus the averages), checking my numbers (one entry per mismatch check.py found, with the report's number and the corrected one), what I learned, and next time. Use the student's own sentences from report.md wherever they still fit, quoted exactly. Mark every sentence you wrote yourself, anywhere in the file including notes, labels and explanations, with "suggested": true. Every number on a slide gets a "src": a time names the trial or average, the chocolate, and a "unit" of seconds; any other number (grams, a count of trials) names the report section and line it comes from, with its own unit. Each slide gets short speaker notes in her voice. 3. Extend check.py so that it also checks slides.json. A number's src must match where it is shown: a table cell's row and column, or a chart bar's label, must name the same trial and chocolate as its src, and a time inside a sentence, label or note must sit in a sentence that names the same chocolate, and the same trial or the word average, as its src, with no other chocolate named closer to it; its value and unit must equal that table cell or recomputed average in seconds. A non-time number must appear with that value and unit at its cited place in report.md, and the unit written beside it in the slide text must be that same unit. Every run of digits in every slide sentence, label and note, including her own quoted sentences, must belong to a number with a src, or slides.json fails. Every sentence must be found word for word in report.md or be marked suggested. No slide may repeat a number the report got wrong except on the checking slide, and every mismatch must appear there. Print one line per slide number and sentence, then a summary line, and exit 0 only if slides.json passes. Add python3 check.py --self-test, which copies the files to a temporary folder, plants one defect at a time, and confirms the checker fails each one: two swapped chocolates in the slide table, a slide sentence that gives the white average as the milk average with the white average as its src, a time shown in minutes on a slide, an unmarked sentence that is not in the report, a quoted report sentence on a slide whose number has no src, a wrong gram amount on a slide, a slide sentence that says 20 kilograms where the src says grams, and each of these report times added to the Results paragraph: 1 min where the table says 63 sec, 41.5 sec, -41 sec, ±41 sec, .41 sec, 1/41 sec, 999±sec, 999approxsec, 41-46 sec, a wrong milk average written as 99 s with a space, 999sec followed by a comma and a word, and 999sec followed by a period and a capitalized word. Report the exit status of both commands, the number of planted defects apart from the clean baseline, and each mismatch found in the report. 4. Write questions_for_her.md: everything only the student can decide, such as each suggested sentence and any claim the data cannot support (for example, a word like "always" after three trials with one brand per chocolate). Give each one a short reason and the slide it affects. Describe report.md accurately, quoting it where it matters; ask about anything it does not say. Do not change her claims on the slides yourself. Suggested sentences and notes must not claim more than her data show, including what a future test would prove, and must not add details of how she did the experiment that report.md does not state; ask her instead. This file and your final reply must describe only what the slides actually show. 5. Build one self-contained slides.html from slides.json. It opens on a Spot the mistake screen: the report's numbers from outside the table appear as tappable buttons in their sentences, the reader taps the ones they think are wrong, and each tap says right or wrong and shows the table value. A Show the proof button then reveals check.py's line for every number. After that comes the slide deck: Previous and Next buttons and arrow keys, a speaker notes toggle, a practice timer measured from the clock that turns green between 4 and 5 minutes, and one inline SVG bar chart of the three averages whose bars link to the table on the checking slide. Every suggested sentence shows a visible label saying it is a suggestion, not her words. Each claim listed in questions_for_her.md shows a visible note on its slide that she still has to decide it, with the question beside it. Write rounded decimals with the approximately sign (137 / 3 ≈ 45.67) and keep the equals sign for exact arithmetic. At 360 pixels wide nothing may scroll sideways, including tables: let them reflow into labeled rows. All slides, the checking table and the speaker notes must stay readable with JavaScript off. Print the SHA-256 of slides.json in the page footer and in your final reply. Wherever the page or your reply says what was checked, say that times are checked against the data table and other numbers against the line of report.md they come from. Never install packages, use the network, call APIs, or load external assets. The page must work offline and on a phone. Use no em dashes or en dashes.
The prompt asks the agent to stay in this folder; it cannot enforce that. Read each file change and command before you approve it.
Check it yourself
Open
cli-practice/slides.htmlin your web browser (double-click it), then:Human check: Run python3 check.py and see two report mistakes named (white trial 2 written as 76 while the table says 70, and the milk average written as 45 while the trials round to 46), then a passing slide check and exit 0. Run python3 check.py --self-test and see every planted defect caught. Run shasum -a 256 slides.json and match it to the page footer. In slides.html, tap 76 and 45 on Spot the mistake, press Show the proof, then step through the slides with the timer running.
When we checked the recording above: Verified in a separate omp session: python3 check.py next to report.md names both planted mistakes (white trial 2 written as 76, table 70; milk average written as 45 in the Average row, Conclusion and Abstract, trials round to 46) with no FAIL lines, passes every slide number and sentence, exit 0. python3 check.py --self-test catches every planted defect, including a slide sentence that gives the white average as the milk average, exit 0. Appending a report line with 1 min for white trial 1 or a milk average written in minutes gives MISMATCH; -41 sec, ±41 sec, .41 sec, 1/41 sec, 41-46 sec, 41 to 46 sec, a sign or extra letters between number and unit, and 20kg each give FAIL naming the whole expression; a wrong time followed by a comma or period and a word gives MISMATCH; each exits 1, while 41sec, 41 s and 41.0 sec pass. shasum of slides.json matches the page footer, which says times are checked against the data table and other numbers against their line of report.md. slides.html at 360, 390 and 1280 with every disclosure open: no sideways scroll on the page or inside any element, no console errors. Tapping 76 and 45 shows the table value and marks the number wrong; 41 is shown as matching the table. Show the proof opens the checker lines. The slides step through 8 slides with Next, Previous and arrow keys; the timer counts from the clock; the speaker notes toggle. Suggested sentences carry a not her words label and open claims show that she still has to decide them. JS off: all 8 slide headings, notes and proof lines are visible.
Do it for real
For a real school project, start from the student's own report, ask for the checker before the slides, and let the student approve every sentence the agent wrote. If you add AI pictures, label each one as an illustration, never as evidence, and keep the label outside the picture so it can be edited.
Why an agent, not a chat window
A chat reply can turn a report into tidy slides and copy its mistakes onto every one. An agent can write a checker first, run it on every number, keep the student's own sentences, mark the few it had to write, and hand back the questions only she can answer.
Go deeper
Why the prompt is written this way
- Ask for the checker before the slides: once check.py recomputes every average from the trials, a copied-wrong number cannot ride from the report onto a slide unnoticed.
- Give every slide number a src and make the checker read slides.json too: the deck then fails loudly if a number drifts from the table, instead of looking finished.
- Quote the student's own sentences and label the rest as suggestions: the checker can confirm a quote word for word, and the student decides the claims, such as always, that three trials cannot carry.
The recorded runs
| Tool | Model | First run took | Files made | Sessions |
|---|---|---|---|---|
| Claude Code 2.1.318 | claude-opus-5-5 | 17 min 20 s | 5 | one session |
| OMP 18.16.0 | not logged by this tool | 26 min 13 s | 5 | one session |
Both recordings found the same planted mistakes: white trial 2 written as 76 against a table value of 70, and a milk average of 45 that the trials round to 46, repeated in the Average row, Conclusion and Abstract. Both checkers sort every number in the report into a plain time or a plain quantity and fail anything else, compare times exactly in seconds, tie each slide number to the row, column, bar or sentence it is shown in, and pass their own --self-test by catching every planted defect. Claude Code's Spot the mistake feedback rates the guess and keeps a running count of wrong numbers found. OMP's feedback rates the number itself, shows check.py's line under each tap, and puts the 4:00 to 5:00 goal beside its timer.
Push it further
- Change one trial in the table and rerun check.py: the slide cell for that trial should fail, and its average should fail only if the rounded value changes.
- Paste in a real report and ask for the checker first. It only reads the layout it was written for, so read its FAIL lines as well as its MISMATCH lines with the student before any slide exists.
- Ask a new session to add one illustration per slide with an editable label saying it is an AI picture, not evidence, and make check.py fail if any picture lacks one.