Agentic Property-Based Testing: Finding Bugs Across the Python Ecosystem
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Property-based testing (PBT) is a lightweight formal method, typically implemented as a randomized testing framework. Users specify the input domain for their test using combinators supplied by the PBT framework, and the expected properties or invariants as a unit-test function. The framework then searches for a counterexample, e.g. by generating inputs and calling the test function. In this work, we demonstrate an LLM-based agent which analyzes Python modules, infers function-specific and cross-function properties from code and documentation, synthesizes and executes PBTs, reflects on outputs of these tests to confirm true bugs, and finally outputs actionable bug reports for the developer. We perform an extensive evaluation of our agent across 100 popular Python packages. Of the bug reports generated by the agent, we found after manual review that 56% were valid bugs and 32% were valid bugs that we would report to maintainers. We then developed a ranking rubric to surface high-priority valid bugs to developers, and found that of the 21 top-scoring bugs, 86% were valid and 81% we would report. The bugs span diverse failure modes from serialization failures to numerical precision errors to flawed cache implementations. We reported 5 bugs, 4 with patches, including to NumPy and cloud computing SDKs, with 3 patches merged successfully. Our results suggest that LLMs with PBT provides a rigorous and scalable method for autonomously testing software. Our code and artifacts are available at: https://github.com/mmaaz-git/agentic-pbt.
Key facts. Cited by 7 papers in the map (data through 13 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 4 of its 18 references that are in the map. First posted on arXiv 10 Oct 2025.
Builds on
4 of 18 references.
References · 4
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,502
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 164
- 2023Can Large Language Models Write Good Property-Based Tests?cited by 30
- 2025Effective LLM Code Refinement via Property-Oriented and Structurally Minimal Feedbackcited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2025PBFuzz: Agentic Directed Fuzzing for PoV Generationcited by 4
- 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applicationscited by 2
- 2026Fuzzing with Agents? Generators Are All You Needcited by 0
- 2026Teaching LLMs Program Semantics via Symbolic Execution Tracescited by 0
- 2026PBT-Bench: Benchmarking AI Agents on Property-Based Testingcited by 0
- 2026Agentic Proof and Property-Based Testing via Property-Templates in Data-Intensive Computingcited by 0
- 2026Towards Risk-free AI Agent Deploymentcited by 0
- 2026Towards Risk-free AI Agent Deployment17 Aug 2026
- 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications9 Aug 2026
- 2026Agentic Proof and Property-Based Testing via Property-Templates in Data-Intensive Computing10 Jul 2026
- 2026PBT-Bench: Benchmarking AI Agents on Property-Based Testing13 May 2026
- 2026Teaching LLMs Program Semantics via Symbolic Execution Traces7 May 2026
- 2026Fuzzing with Agents? Generators Are All You Need1 Apr 2026
- 2025PBFuzz: Agentic Directed Fuzzing for PoV Generation4 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2026FVSpec: Real-World Property-Based Tests as Lean Challenges
- 2026LogicHunter: Testing LLM Agent Frameworks with an Agentic Oracle
- 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositories
- 2024PyBench: Evaluating LLM Agent on various real-world coding tasks
- 2026Are Coding Agents Generating Over-Mocked Tests? An Empirical Study
- 2026Code Broker: A Multi-Agent System for Automated Code Quality Assessment
- 2025TestForge: Feedback-Driven, Agentic Test Suite Generation
- 2026Automated structural testing of LLM-based agents: methods, framework, and case studies