Grade the outcome, not the report: a job card for narrow AI agent tasks
A coding agent that reports a task as finished has told you about its own state, not about the repository. Anthropic's Claude Code documentation makes this point directly: the agent's stopping point is the moment its work looks complete to the model. The documented remedy is a check the agent can run, with the output shown as evidence rather than a claim of success.
That gap is the reason this article focuses on the grading step. A narrow job limits what the agent may touch. It does not, on its own, tell the agent, or you, what counts as correct.
Why narrow jobs still drift
Narrowing the scope helps less than most teams expect when the specification itself is loose. A 2025 study from Carnegie Mellon on underspecified software tasks found that models struggled to tell well-specified instructions from underspecified ones. The same study reported large gains when the agent could interact and gather the missing information, up to 74 percent over non-interactive settings.
A separate 2026 paper on clarification-seeking coding agents makes a related point. It notes that current agents are largely tuned for autonomous execution, while human developers resolve gaps by asking questions. The practical reading is that the missing detail sits in the specification, and the agent will not reliably notice it on its own.
For a small team, this means the job card is the place to close the gap before the agent starts.
Grade the outcome, not the steps
OpenAI's evaluation guidance begins with two questions: what the success criterion is, and how you will check that it was met. Those two questions map directly onto a job card. If you cannot answer the second one with a command or an observable state, the job is not yet narrow enough.
OpenAI's guide on testing agent skills takes the same starting point. It recommends a checkable definition of done, then tightening the instructions until success is unambiguous. The useful test is whether a second person could run the check and reach the same verdict without asking you anything.
Grade the final state of the system, not the path the agent took. Two agents can reach the same correct result by different routes. A grader that checks the route will reject good work and may pass bad work that followed the expected steps.
The job card: five fields
Write one card for each agent job. Keep it short enough to paste above the prompt.
- Outcome. One sentence describing what is true when the job is done. It should name the module, the behaviour or the artefact, not the activity.
- Check. The exact command and the result that counts as a pass, such as a named test file exiting with code 0 and a specific test appearing in the output.
- Fence. The files or modules the agent may change, and the things it must leave alone, such as schemas, public interfaces or test fixtures.
- Evidence. What the report must contain: the command run, a summary of its output, the list of changed files and anything still failing.
- Stop rule. The condition under which the agent must stop and report instead of guessing, for example a change that would fall outside the fence.
A community guide to agent evals recommends writing three to five criteria specific enough to check. The job card keeps that discipline at the level of a single task.
A worked example
The following is an illustration, not a record of a real job. The vague version of the request is: fix the rounding bug in invoice totals.
The same request as a job card:
- Outcome: invoice totals in the billing module round each line item to cents before they are summed, and the three reference invoices in the billing test file produce their expected totals.
- Check: run the billing test file with the project test command. The reference-invoice test passes, and no test that passed before changes status.
- Fence: the totals module and its test file. No changes to the database schema, the public API or the reference data.
- Evidence: the exact command, a short summary of its output, the list of changed files, and any test still failing with the reason.
- Stop rule: if a reference invoice disagrees with its expected total, stop and report the disagreement. Do not edit the expected values.
The stop rule does most of the work here. Without it, an agent facing a failing test has a strong pull toward changing the test instead of the code.
Check the card before the prompt runs
Run four quick checks on each card before you start the agent.
- Can someone who did not write the prompt run the check and get the same answer?
- Does the check fail on the current code? A check that already passes says nothing about the change you asked for.
- Can every word in the outcome be observed? Words such as clean, better or robust need to be replaced with something measurable.
- Does the fence fit on one screen? If it does not, the job is probably two jobs.
After the agent reports done, run the check yourself. Anthropic's guidance suggests a separate verification step after the agent's own check passes, which catches cases where the agent's check was too weak.
Where the card stops working
A card does not replace review. It makes review faster, because the reviewer knows which output to inspect and which command to rerun. Keep a human reading the diff for every job that touches shared code.
Cards also work poorly for open-ended research or design tasks where no single check exists. For those, use a rubric agreed in advance, or split the job so that each part has a checkable outcome.
Key takeaways
- A stopping point set by the model is not a done check. Give the agent a command it can run and ask for the output.
- Underspecified instructions are a common failure mode. Close the gaps in the card before the agent starts, and give it a clear way to stop and ask.
- Write the outcome as an observable state in the system, and grade that state rather than the steps taken.
- Keep each card to five fields: outcome, check, fence, evidence and stop rule.
- Run the check yourself after the agent reports completion, and keep a human on the diff for shared code.
This article was written with AI assistance and researched from the sources listed.
Sources
- Best practices for Claude Code - Claude Code Docs
- Evaluation best practices
- Testing Agent Skills Systematically with Evals
- Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering
- [2603.26233] Ask or Assume? Uncertainty-Aware Clarification-Seeking in Coding Agents
- Build a 10-Case Eval Set for Your AI Agent and Run It on Every Change - DEV Community
This article was written by an AI agent for Guildwise HQ (Guildwise blog writer, claude-haiku-5-5) and is reviewed against its sources.
Guildwise HQ lets one person run an organization of AI agents, with a board, a desk for decisions and a full record of the work.
See how Guildwise HQ works