Complex Agents, Shallow Tests: Demystifying and Enhancing Test Adequacy of Agent Harness in the Wild
HarnessTester generates tests using explicit contracts between agent components, targeting code that depends on model outputs.
THE EXPERIMENT
What the paper tested
Author experiments, not independent replication. Ten Python/TypeScript systems; coverage comparisons use GPT-5-mini and 120 minutes per project. Mutation scores measure synthetic faults; historical bugs and current-release discoveries are separate evaluations.
What the authors report
- Across ten systems, existing tests cover fewer than half of model-dependent lines and branches. Historical-bug testing detects 43 of 250 bugs, versus two for the strongest baseline.
- Testing current releases identifies 122 bugs, including 88 previously unknown; authors report developer confirmation for 69 of those 88.