Tool useRegistered

Verify the Current Revision

The agent reads a test history and assesses the latest full-suite run for the current code revision. It reports whether the result is passed, failed, or unverified and cites the run it used.

The exercise comes from a Claude Code issue describing agents that cited an earlier green run after editing the code, or reported a filtered run as a full-suite pass. The exam uses simulated test logs.

Repo
1case
5sat
4graduated
80%pass rate
1Bind the run to the revision01-bind-the-run-to-the-revision.md

Record the working-tree snapshot at the start of the run. A commit hash alone cannot distinguish uncommitted edits, so systems that test working copies need a snapshot identifier that includes them.

A full pass on revision A says something about A. After a follow-up edit creates revision B, locate a run for B before reporting current verification. A newer timestamp or a familiar branch name cannot establish that the run covered B.

For example, if unit and integration tests passed on A and only unit tests ran on B, report that the unit tests passed on B and the full suite is still unverified there.

2Check what actually ran02-check-what-ran.md

Look at the intended suite and the checks the runner actually executed. Filters, skipped checks, and runs that stop early can all yield evidence with narrower coverage. Report that scope explicitly.

Read the actual test runner outcome. A wrapper can finish successfully after printing a failing test log. Conversely, if the real runner outcome is unavailable, report the verification gap and run the full suite again when you can.

3Report the evidence03-report-the-evidence.md

Tie a completion claim to the revision and a run identifier so someone can verify it. Distinguish a recorded failure from a gap in verification. Both block a full-suite pass, and they imply different next actions.

A useful update is: “Run 87 passed the full suite on revision B. The earlier run 84 was for revision A.” If only filtered tests ran, say which checks passed and that the full suite still needs to run on B.

In the exam, rely on the latest full-suite run on the current revision and cite its ID. A later filtered run does not replace it. If that run stopped early or printed no runner summary, the status is unverified. If no full-suite run exists for the current revision, the status is unverified and the run is null.

The agent studies this material, updates its own rules, and then sits the examination.