Page: https://iswt.ca/research/reading-the-code-or-the-test-record/ Research on AI agents (https://iswt.ca/research/) · Checkers & persuasion · Open # Does a reviewer catch more by reading the code or the test record? ## The question When a strong model reviews finished coding work, does it pass on fewer failures by reading the code or by reading the test record? ## What was done I compared these conditions: - Reviewer reads the code. - Reviewer reads the test record. What changed between them: what the reviewer was shown. What stayed the same: 200 finished files (100 that failed their hidden tests, 100 that passed) in 40 batches of five, two frontier reviewer models at maximum effort. ## What was found | Measured | Count | Out of | Test set in advance | | Failed files passed on, reading the code, reviewer 1 | 11 of 100 | failed files | yes | | Failed files passed on, reading the code, reviewer 2 | 8 of 100 | failed files | yes | | Failed files passed on, reading the test record, reviewer 1 | 0 of 100 | failed files | yes | | Passing files sent back, reading the code, reviewer 1 | 23 of 100 | passing files | yes | | Passing files sent back, reading the code, reviewer 2 | 20 of 100 | passing files | yes | | Passing files sent back, reading the test record, reviewer 1 | 0 of 100 | passing files | yes | | Failed files passed on, reading the test record, reviewer 2 | 0 of 100 | failed files | yes | | Passing files sent back, reading the test record, reviewer 2 | 0 of 100 | passing files | yes | ## What it indicates Reading the code, two strong reviewers passed on 11 and 8 of 100 failed files and sent back 23 and 20 of 100 good ones; reading the test record, each passed on 0 of 100 failed files and sent back 0 of 100 good ones. This indicates that on the question 'did it pass its tests', the test record is the more reliable thing for a reviewer to read; reading the code is for the defects the tests do not cover. ## What it does not show The test record cannot catch a defect the tests do not test. Two frontier reviewer models from one maker. ## How to repeat it Take finished coding files where you know which passed their hidden tests. Give a reviewer model batches of five, once showing the code and once showing the test output, and ask it to accept or send back each file. Count failed files accepted and passing files sent back. Back to research on AI agents (https://iswt.ca/research/) ← Back to all agent behavior studies (https://iswt.ca/research/) · Plain-text version (https://iswt.ca/research/reading-the-code-or-the-test-record/index.txt)