Datadog Labs open-sourced Ephyra, a library where coding agents write and refine property-based test generators while a classic property test loop executes and shrinks failures. In a November 24, 2026 engineering post, Datadog says experiments across 26 well-tested open source systems surfaced 535 unique previously unknown bugs, with 373 maintainer confirmations and 313 fixes already landed.
The work matters because AI-generated code volume is outpacing human-authored fuzz harnesses. Ephyra keeps properties human-defined and pushes generator maintenance onto agents.
TL;DR
| Piece | What Datadog reports |
|---|---|
| Repo | github.com/datadog-labs/ephyra |
| Loop | Human properties, agent-optimized generators, shrinker minimizes failures |
| Scale | 26 systems, 535 unique bugs, 313 fixed |
| Showcase SQL property | TLP on SQLite, PostgreSQL, DuckDB, DataFusion, Turso |
| Paper | Future of Property-Based Testing workshop, POPL 27 (January) |
| Product status | Experimental, not supported Datadog SKU |
Property-based testing recap
Properties are rules code must satisfy for all inputs, such as sorting preserves multiset or SQL three-valued logic partitions agree with monolithic queries. A generator proposes random inputs; on failure a shrinker simplifies the counterexample.
Classic QuickCheck-style workflows bottleneck on crafting generators that reach deep code paths. Datadog's claim is that agents hill-climb generators using execution feedback, similar to coverage-guided fuzzing but with LLM-authored structure.
How Ephyra runs agents on generators
Ephyra agentic property testing workflow diagram
Image: Datadog
Datadog describes a loop where engineers specify properties, agents draft generators, Ephyra runs tests, failures feed back, and agents mutate generators across rounds. On SQLite, Datadog says 37 rounds grew instrumented counter coverage from 35.9% to 74.1%, expanding from 79 to 261 SQL features and finding 26 bugs in that thread alone.
The post argues engineers can remain out of the loop, letting agents pick coverage targets, triage, and deduplicate, though Datadog researchers still validated upstream reports in their experiments.
Starter prompt Datadog recommends
Datadog prints a copy-paste agent prompt:
Let's test <my library> with ephyra (https://github.com/datadog-labs/ephyra).
Read its README and STARTUP.md first, then autonomously start writing and
optimizing Ephyra tests until we find any bugs; validate, triage, and notify me.
That is the fastest builder takeaway: fork the repo, swap your library name, and bound token and compute budgets before unattended runs.
Highlighted bugs and why they matter
Chart of bug ages Ephyra found across 26 open source systems
Image: Datadog
Datadog's examples emphasize age and severity, not vanity counts:
SQLite TLP inconsistency. A query using sum(b ORDER BY a) returned 1 while partitioned queries totaled 2, per Datadog's SQL walkthrough. That style of semantic drift is easy for unit tests to miss if nobody writes three-valued logic partitions.
OCaml Match_failure. A 24-year non-exhaustive match could crash safe OCaml instead of raising Match_failure, showing property tests can beat decades of manual review when generators finally reach the branch.
PostgreSQL nested BETWEEN. A 670-byte query could demand ~100 GB memory to parse because rewriting nested BETWEEN doubled work each level; Datadog cites 21 years of presence and timeout behavior that blocks cancellation at depth 26.
Lean 4 float patterns. Matching 5 versus 5.0 diverged incorrectly; maintainers fixed within a day of report, illustrating young compilers still benefit.
LiteLLM streaming. Identical server payloads with stream=True skipped a tool call, a regression class agent harnesses catch well when properties assert tool invariants.
Datadog publishes the full appendix list in the repo and paper; this post does not duplicate hundreds of IDs.
Coverage hill-climbing animation
The blog's SQLite coverage story is the conceptual core: as agents add SQL features to generators, they uncover interaction bugs, not only isolated feature bugs. That mirrors how combinatorial explosion breaks manual fuzz plans.
For database startups, the lesson is to budget agent time on generator evolution, not one-shot prompt fuzz.
Comparison with Anthropic logic-bug agents
Our Anthropic logic-bug research post shows plain Claude Code review beating LLM-guided fuzzing on historical logic flaws. Ephyra is not contradictory: it keeps explicit properties and uses agents on generators, while Anthropic tested ad hoc review without TLP-style oracles.
Teams can run both: Ephyra properties for invariants you can name, agentic review for implicit intent bugs.
Datadog integration and CLI
Ephyra ships a CLI for running tests and inspecting results plus a Datadog integration for teams already on that observability stack. Because it is experimental, treat telemetry hooks as research aids, not production gates, until your legal and support teams sign off.
Roadmap Datadog names
The post lists three research directions: clean-room evaluations of agentic testing reliability and cost, packaging Ephyra Agent as a more standalone autonomous tool, and optimizing Ephyra itself inside the classical property loop.
Readers watching POPL 27 should expect methodology detail beyond blog anecdotes.
Systems in the 26-project sweep
Datadog names categories beyond SQL engines:
- Databases and query layers such as DataFusion, FoundationDB, DuckDB, and Turso
- Language runtimes including OCaml and Lean
- Developer infrastructure and AI tooling such as LiteLLM
- Formally oriented tools like QED SQL prover
The appendix in the repository is the authoritative list. This post highlights representative bugs with age tags to show both stale and fresh codebases benefit.
PostgreSQL parser exhaustion detail
The nested BETWEEN rewrite bug is a lesson in macro expansion: optimizers may duplicate subtrees exponentially even when SQL text looks small. Agent-authored generators can discover depth thresholds humans avoid writing by hand because shrinkers reduce 670 bytes to a minimal failing stack.
If you maintain a SQL dialect, add depth limits in parsers and property tests that nest language features aggressively.
OCaml and soundness expectations
Safe OCaml should raise Match_failure, not crash. A 24-year miss shows soundness bugs hide behind rare pattern combinations. Pair Ephyra with manual review before claiming formal safety.
LiteLLM streaming invariant
The stream=True tool-call skip is a regression class every OpenAI-compatible proxy should property-test: identical server payloads with different stream flags must yield identical tool decisions.
Datadog observability angle
Because Ephyra integrates with Datadog, teams already exporting test flakes and CI spikes can correlate agent loops with cost dashboards. Set budget alerts before unattended generator optimization.
POPL workshop expectations
The Future of Property-Based Testing workshop at POPL 27 should publish reproducibility criteria. Until then, treat 535 as Datadog-reported, invite independent replication, and file issues on GitHub when you disagree with triage.
Risks and responsible use
- False positives still need human triage before upstream firestorms.
- Autonomous loops can burn tokens and CI minutes without caps.
- Maintainer fatigue if every agent run files duplicate issues.
- Security properties on crypto code need coordination with disclosure norms discussed in NSA CISA PQC guidance.
What to do this week
- Clone datadog-labs/ephyra and run the STARTUP.md flow on a non-production fork of your service.
- Write one property you already trust (sorting, parsing round-trip, API idempotency).
- Compare agent generator iterations against your existing fuzz budget.
- Read Datadog contact alp.keles@datadoghq.com guidance if you collaborate on research.
- Pair testing work with green CI for agent warnings so agents do not silence failures.
Developers adopting agentic CI can link AI builder workshops for team norms on autonomous test bots.
Related explainx.ai coverage
- Property Finder biased eval labels
- FrontierCS Berkeley agent benchmark
- NL2Repo agent library benchmark
- Skill Distill session to open-weight skill
- Microsoft Freehand agent harness essay
DuckDB LIMIT bug as API contract test
The DuckDB example where LIMIT 1 returned three rows is exactly the sort of semantic bug integration tests miss when they assert happy paths only. Properties can state row count invariants across version upgrades, catching regressions between 1.5.6 and 2.0.0 named in Datadog's post.
QED float rounding lesson
QED treating decimal constants as 32-bit floats shows prover tools need TLP-style splitting too: if your equivalence engine rounds unlike the database, you prove false equivalences. Agents can author split queries faster than humans when schemas grow wide.
Maintainer notification ethics
Datadog notes researchers personally validated reports before upstream submission. If you automate PR spam, you burn maintainer trust. Cap issues per day and dedupe with Ephyra CLI exports.
When not to run Ephyra unattended
Skip full autonomy on production databases, customer tenants, or crypto modules under embargo. Use fixtures and forked repos first.
Closing the loop with CI agents
Teams already running green CI checks for agent-swallowed errors can treat Ephyra rounds like nightly fuzz: pin generator versions in git, attach shrunk artifacts to tickets, and require human sign-off before upstream disclosure. The pattern matches how Anthropic logic-bug hunts fed maintainer patches, but with machine-generated input spaces instead of ad hoc review prompts alone. Schedule weekly human review of shrunk artifacts even when agents find zero bugs, so you still exercise the generator on refactors and dependency upgrades. Track tokens per confirmed bug so finance can compare Ephyra to manual QA spend.
Bottom line
Ephyra is a practical pattern: keep human properties, let agents own generator evolution, and measure bugs found per round. Datadog's 535-bug headline is only as strong as your replication on your codebase, but the SQLite TLP and OCaml examples show why property-based testing plus agents deserves a slot beside agentic code review.
