Datadog researchers have released Ephyra, an open-source agentic property-based testing library that uses coding agents to write and improve test input generators. Run against 26 well-tested open source systems, it turned up 535 unique, previously unknown bugs. Maintainers have confirmed 373 and already fixed 313.
The finds include a 24-year-old memory-safety bug in OCaml, a 21-year-old exponential parsing bug in PostgreSQL and a 13-year-old database corruption bug in SQLite.
How property-based testing works
Engineers write properties, which are rules code must always satisfy. For a sort function, the output must be ordered and keep every element, duplicates included. A generator then produces random inputs to try to break the rule. When a failure appears, the framework shrinks the input to a small example that still triggers the bug.
Building a good generator takes time and expertise. That’s the step Ephyra hands to coding agents, which write and refine generators using feedback from test runs.

Where Ephyra’s agents come in
Agentic property-based testing keeps humans in charge of what correct behavior means while agents handle the grind of producing varied inputs. People still define the properties. They range from simple ones, such as never causing a memory violation, to specialized ones like Ternary Logic Partitioning. TLP exploits SQL’s three-valued logic, where a predicate is true, false or NULL, and has been used by researchers to find hundreds of database bugs. The team applied it to SQLite, Turso, PostgreSQL, DataFusion and DuckDB.
For SQLite, the agent first generated valid database files. Engineers then steered the test setup toward new properties or new parts of the codebase. Each feature added to the generator widens its vocabulary and can expose bugs in that feature or in how it interacts with others. As the generator climbs code coverage, an engineer can stay out of the loop while the agent picks regions to cover, triages and deduplicates bugs.

Bugs the team reported
- SQLite: three DELETE statements made it report its own database as malformed. The bug was nearly 13 years old and was the first one found with Ephyra.
- OCaml: a non-exhaustive match jumped through a wild pointer instead of raising Match_failure. It dated back 24 years.
- Lean 4: 5 and 5.0 were treated as different patterns in a floating-point match. Lean fixed it the day after the report.
- PostgreSQL: a 670-byte query needed almost 100 GB of memory to parse, because rewriting BETWEEN copies an expression and doubles work at each nesting level. At 26 levels it couldn’t be cancelled.
- QED: the query-equivalence prover judged 0.1 and 0.100000001 equal because it read decimals as 32-bit floats.
- LiteLLM: enabling streaming made an agent skip a tool call.
- DuckDB: a query with LIMIT 1 returned three rows, a bug only 15 days old.
Bugs across all projects ranged from one day to 24 years old. Each was validated with a minimal reproducer before being reported upstream. Targets also included DataFusion, FoundationDB and formally verified systems.

Why the results matter
The projects tested are among the most heavily examined code in open source. Finding hundreds of bugs there suggests that the weakest point in testing is often input generation rather than the properties themselves. The researchers also point to a wider problem: coding agents now produce code faster than review or traditional tests can check it.
Trying it yourself
Ephyra lives at datadog-labs/ephyra and includes the library, case studies, a command-line tool and a Datadog integration. It’s written in Rust but can test software in languages such as C++ and Python. Datadog notes it’s experimental and not a supported product. A starter prompt in the startup guide lets you hand the job to a coding agent. A research paper will appear at the Future of Property-Based Testing workshop at POPL 27 in January.
What the researchers plan next
The team says its results show autonomous generator optimization works as a testing strategy, but don’t yet validate Ephyra’s design. Next steps are controlled experiments measuring reliability, cost and the kinds of bugs found, a standalone Ephyra Agent whose reports can be trusted without extra maintainer burden, and agents that tune the whole testing loop, for example swarm testing or the power scheduler, instead of generators alone. So far the researchers validated and submitted every bug report themselves. Agentic property-based testing will need that step automated before small projects can use it without extra work.
Source: Datadog