How we tested code-review-and-quality
Measured: a benefit was seen but not confirmed. Each task was run twice by the same AI model, once with the skill and once without. A second model graded both outputs without knowing which was which.
The setup
- Date
- 2026-11-24
- Procedure
- measured-v2; 12 tasks (12 held out: written before the skill was tuned), 1 run per side
- Executor
- claude-haiku-5-5
- Blind grader
- claude-sonnet-5-5, with claude-opus-5-5 as a second grader
- Result
- Pass rate 94% with the skill, 91% without; difference +2.8 points (95% interval -3.3 to +8.9, clustered by task). Assertions passed: 74 of 80 with, 72 of 80 without. Efficacy earned 12.9 of 35 points in the Platform Score.
How the verdict is decided is in the method. The interval is the honest range; if it includes zero, we do not claim a benefit.
Run table
| Task | With skill | Without | Blind grader |
|---|---|---|---|
| v2-t1 (held out) | 7/7 | 7/7 | tie (order-inconsistent)ReasonBoth find the offset and total_pages bugs and say do not merge. Y ranks the offset as the single Critical item with a worked example and stays within the diff, while X marks an unverifiable IDOR concern as blocking. |
| v2-t2 (held out) | 7/7 | 7/7 | tieReasonBoth give a clear no-merge, rank SQL injection and password logging as critical, and give a parameterized fix. Y cites diff line numbers and verified the corrupt patch by command; X adds a slightly more detailed attack example. |
| v2-t3 (held out) | 7/7 | 7/7 | tieReasonBoth name the mutable default as the top bug with the cross-user leak and give in_/join batch fixes. Y labels it Critical and gives a join rewrite but inflates many items to Required; X is a bit tighter. |
| v2-t4 (held out) | 7/7 | 7/7 | tie (order-inconsistent)ReasonBoth reject, call it an authentication bypass, rebut the performance premise and ask to restore verify and fail fast. X adds concrete regression tests and a safe caching alternative; Y is shorter but has one unclear bullet. |
| v2-t5 (held out) | 6/6 | 6/6 | tieReasonBoth are accurate three-sentence summaries of 50 words with no review framing. Y leads with the gist; X mentions the loop-variable rename. |
| v2-t6 (held out) | 6/6 | 6/6 | preferred the skillReasonBoth catch the bare except, empty-average crash and list-vs-dict failure. X reproduced the crashes by running them and ties the root cause to the list fallback; Y only read the code and its rewrite drops the error handling. |
| v2-t7 (held out) | 7/7 | 7/7 | preferred the skillReasonBoth give a correct negative verdict, lead with the over-refund guard, and reject deferred tests. X verifies the exact 19.99->1998 case with several other examples and lists concrete test cases; Y adds actor/audit and race points but is a bit more diffuse. |
| v2-t8 (held out) | 7/7 | 7/7 | preferred the skillReasonBoth rightly block on the stored XSS with a textContent fix and add valid secondary findings. Y gives the missing route its own required item, adds the real bug that existing comments never load on page visit, and includes a what-is-fine section; X buries the missing route in a minor item. |
| v2-t9 (held out) | 7/7 | 7/7 | tieReasonBoth block on the quadratic find_duplicates with the same Counter fix, catch the per-occurrence output bug, blank-line ids and unique_in_order. X lists the output bug as its own blocker and mentions BOM/normalization; Y backs the scale claim with measured timings, so I call it even. |
| v2-t10 (held out) | 6/6 | 4/6 | preferred the skillReasonX correctly approves a sound, tested change, ran the tests, proved a mutation is caught, and offers only optional notes. Y agrees the logic and tests are right but refuses to approve over diff hunk-header counts, which turns a mergeable change into a blocked one. |
| v2-t11 (held out) | 5/5 | 5/5 | tieReasonBoth outputs are byte-identical: exactly the two comment typos fixed, same 17 lines, nothing else touched. Both replies are one short sentence with no review commentary. |
| v2-t12 (held out) | 2/8 | 2/8 | preferred the skillReasonBoth reached the same correct verdict and top issues (credential, SQL injection, no HTTP error handling, non-atomic update) and neither wrote review.md; both put the review in reply.md. X states its intent assumption and also covers rollback and import side effects, while Y gives fuller fix snippets and truncates the key. |
Known weaknesses of these tasks
Noted by the reviewer who checked the tasks and rubric.
- v2-t1: Verdict/offset/total_pages/tests assertions are passed trivially by both sides.
- v2-t1: The 'add tests' regex passes on a mere passing mention; it does not check that tests target the offset bug.
- v2-t1: No assertion checks for speculative blocking findings (X's authorization point) or that offset is ranked first.
- v2-t2: All script assertions are passed trivially by both; the regexes are very loose (e.g. 'parameter' or '?' matches almost anything).
- v2-t2: No script assertion checks that the correctly parameterised login query is not flagged (judge only).
- v2-t2: The malformed patch is a real finding that no assertion covers.
- v2-t3: All script assertions pass trivially for both; the verdict regex and 'one query' / 'None' terms are very loose.
- v2-t3: The 'optional extra' assertion passes on any occurrence of 'None' or 'raises'.
- v2-t3: No assertion penalises padding or checks that the mutable default is ranked first.
- v2-t4: All script assertions are trivially met by both.
- v2-t4: The line-reference assertion is satisfied by quoted snippets, so it does not check precise locations.
- v2-t4: No script assertion checks the 'fail startup when JWT_SECRET unset' recommendation (judge only).
- v2-t5: Every assertion is passed by both; the task is easy and the checks are lenient.
- v2-t5: The 'rename' regex matches either 'rename' or 'unchanged', so it does not confirm a behaviour-unchanged claim specifically.
- v2-t5: No assertion checks accuracy against the diff (e.g. the loop variable rename).
- v2-t6: The verdict regex ('fix|changes|ready') is so loose it passes almost any text.
- v2-t6: Both wrote reply.md instead of review.md; the fallback clause makes the assertion pass regardless.
- v2-t6: No script assertion checks that assumptions are stated (judge only).
- v2-t7: Assertions 1 and 5 overlap (both are verdict regexes) and both sides pass trivially.
- v2-t7: Line-reference assertion is satisfied by any quoted snippet from a 15-line diff, so it does not discriminate.
- v2-t7: No assertion checks the atomicity/idempotency issue (gateway call before save_refund), which both sides raised and is a real money risk.
- v2-t7: Regex for the over-refund check matches generic words like 'positive' or 'double'.
- v2-t8: Verdict and negative-verdict assertions are near duplicates and trivially passed by both.
- v2-t8: Second-problem regex matches the word 'author' or 'validat', which almost any review hits.
- v2-t8: Line-reference assertion is trivially satisfied by quoting the innerHTML line.
- v2-t8: No assertion checks that the review does not invent route details, only the judge does.
- v2-t8: Unchecked: comments never loaded on page visit (Y found it, X did not).
- v2-t9: Verdict and negative-verdict assertions are redundant; both always pass when any review says block.
- v2-t9: Assertion 3 regex ('distinct', 'dedup', 'Counter', 'set(') matches almost any fix text, so it does not truly test that the output bug was understood.
- v2-t9: Assertion 5 ('set(' or 'collections') is trivially hit by anyone proposing Counter.
- v2-t9: No assertion checks that the unique_in_order issue is correctly scoped as off the nightly path (README says report uses only find_duplicates).
- v2-t9: Blank-line ids and encoding are not checked by script, only by judge.
- v2-t10: Positive-verdict regex is loose: 'Not fine to merge' contains 'fine to merge', and the negative list omits 'not fine'/'blocking', so a negative review can pass; it needs to be judged.
- v2-t10: The critical/vulnerability regex only catches words, not an inflated verdict; Y passes it while blocking the PR.
- v2-t10: Hunk-header mismatch in the fixture is not mentioned in the task text, so no assertion tells whether flagging it is right or wrong; only the judge decides.
- v2-t10: Assertions 1, 4 and 5 are passed trivially by both sides.
- v2-t11: The task is trivially passed by both; assertions cannot discriminate.
- v2-t11: Assertion 1's 'no seperate' check would false-fail a file that kept the correct word 'separately' only if the regex were naive; here it passes.
- v2-t11: No assertion checks the docstring/comment-only fixes such as 'capitalise' (British spelling left alone), which is correct but unverified.
- v2-t12: Every script assertion except the key-count one depends on review.md, but the request never names that file; both sides fail them identically through no fault of content. Should accept reply.md or name the file.
- v2-t12: Key-count assertion is vacuously passed when review.md is absent.
- v2-t12: Credential, injection and error-handling regexes match very generic words ('secret', 'injection', 'transaction', 'batch').
- v2-t12: No assertion checks that the review recommends rotating the key or that the empty request was handled without stalling; only the judge does.
What this cannot tell you
- Both models are AI models from one family. No human graded the outputs.
- 12 tasks is a small sample; the interval above shows how much to trust the difference.
- It was not independently reproduced.
Download the run records (JSON) · Back to code-review-and-quality