Coding Agents as Test-Suite Auditors: Finding What Official Suites Miss While Approaching What They Catch

๐Ÿ“… 2026-08-03
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
Official online judging systems often misclassify logically flawed code as correct due to insufficient test suite coverage. This work presents the first systematic approach leveraging large language modelโ€“driven coding agents to automatically generate adversarial test cases that expose such testing blind spots and, in the absence of official test suites, construct effective alternatives. The study introduces a verification mechanism independent of official judges, forming a chain of evidence through multi-solution consistency checks, brute-force validation, and input legitimacy verification to ensure reliable defect detection. Evaluated on AtCoder, the method uncovered 589 misjudged submissions, with a collaborative ensemble of five agents identifying at least 906 cases. On Codeforces problems lacking official test suites, the generated test sets significantly outperformed existing baselines.
๐Ÿ“ Abstract
Online-judge verdicts and the datasets and benchmarks built on them are treated as ground truth for evaluating and training large language models for code. Yet prior audits have sounded a warning: official suites accept buggy submissions. These audits, however, stop at the warning and offer no practical remedy. Our remedy has two parts: an off-the-shelf coding agent, serving as a test-suite auditor, both builds adversarial test suites to expose what official suites miss and supplies these suites where no official suite exists; a certification chain determines whether each agent-flagged submission is genuinely buggy without relying on the official judge: multiple independently written accepted solutions agree on the expected output for every test, brute-force solutions settle disagreements, and a per-problem validator certifies each failing input legal. One such agent identifies 589 verified accepted-but-buggy submissions among AtCoder's 20,375 audited accepted submissions; extending the same certification to all five agents yields a union floor of 906 such submissions. Five agents, scored separately, each stay within 1.7pp of official-suite coverage on logic bugs those suites catch. On post-cutoff Codeforces problems with no available official suites, the same test-building method leads all five reproduced baselines at every tested input budget. Where an official suite exists, the agent audits suite adequacy instead of assuming it; where none exists, agent suites catch the most buggy submissions among methods we reproduced and tested.
Problem

Research questions and friction points this paper is trying to address.

test-suite auditing
buggy submissions
online judge
code evaluation
ground truth
Innovation

Methods, ideas, or system contributions that make the work stand out.

coding agents
test-suite auditing
adversarial test generation
certification chain
bug detection
๐Ÿ”Ž Similar Papers