Imagine an invoice that lists two items at $40 and $50, then prints $100 as the total. What should an extractor return? If the job is to transcribe the invoice, the printed total is $100. The calculated sum is $90. The app can flag the difference for a person to review. Silently changing the total to $90 would make the numbers add up and the transcription wrong.
Write down decisions like that before handing the job to your coding agent. Five examples are usually enough to start an argument about what “correct” means. You can settle that argument before paying for more runs or building a review screen.
1. Choose inputs that could change your mind
Include an ordinary case, a messy input, a difficult case, a case where information is missing, and a case that could look convincing while being wrong. Use actual customer-shaped inputs rather than five variations of your best demo.
For an invoice feature, a plausible wrong answer might have a clean layout but an invented amount. For a podcast clip, the subtitles might be accurate while the cut loses the speaker's meaning.
2. Write the review question before running anything
Ask a question the owner can answer: “Are the amounts supported by the invoice?” or “Would I post this clip exactly as it is?” Add the specific reasons an output should fail.
Give the coding agent this prompt:
Before building screens, help me test the AI feature on these five inputs. For each input, record the expected behavior, the review question and the reasons a result should fail. Include an unanswerable case. Show me the plan and estimated experiment cost. Wait for my budget approval before making paid model calls. 3. Run the smallest useful comparison
After approving a budget, ask for the outputs and costs together. Don't let the agent replace your judgment with its own confident summary.
Run the approved plan within the approved total budget. Show every result for me to review, with its AI-call cost and any redos. Do not mark an output accepted until I have judged it. Separate observed results from your explanation of why they happened. 4. Describe the failure in the result
“The total includes a line that isn't in the invoice” is easier to work with than “make it better.” A useful note names what happened and why it makes the output unusable.
Group my review notes into concrete failure types. Propose the smallest change that addresses the most important one. Explain which examples could get worse. Ask before exceeding the remaining budget. 5. Rerun earlier wins as well as failures
A fix that improves the difficult input can damage an ordinary one. Compare the saved examples again and show the owner what changed.
Rerun the saved examples after the approved change, including earlier passes. Show the old and new results side by side with the costs. Flag regressions and leave acceptance to me. If the evidence is weak, say what additional examples we need before building the interface. This is a starting loop. Expand the examples as you discover failures, and keep a separate set for checking whether changes generalize. Five handpicked passes don't establish a production success rate.
For the invoice above, a useful review row would contain the printed total ($100), the calculated sum ($90), and a flag for review. Try a second invoice where a $10 tax line explains the difference. That pair tests whether the extractor can preserve the source and whether your reconciliation rule knows when to flag it.
Drafted with help from Codex.
