2026-11-26 15:40 UTC

Datadog open-sources Ephyra, reports 535 bugs found with agent-assisted testing

state: significantheat: mediumuncertainty: mediumrelevance: highsoftware-testing coding-agents open-sourceDatadogAlp Keles

What is this?

Datadog researcher Alp Keles announced Ephyra on November 24, 2026, as an open-source research project for agent-assisted property-based testing. Engineers specify properties that software should satisfy; coding agents use test-run feedback to build and improve input generators that probe those properties. Datadog says its experiments tested 26 open-source systems and found 535 unique, previously unknown bugs. It reports that maintainers have confirmed 373 and fixed 313 so far. Ephyra includes a Rust library, case studies, a CLI and a Datadog integration, and is described as usable for testing software in multiple languages. Datadog stresses that it is experimental, not a supported product. The announcement links a research paper slated for a January 2027 workshop; the search results also show an October 23 arXiv listing, but the supplied evidence does not clarify that chronology.

Why it matters

Ephyra could help make sophisticated property-based testing more accessible and uncover defects in widely used software. Its practical value remains uncertain because reliability, cost and generality have not been independently established.

Current assessment

Datadog announced and made available Ephyra as an open-source experimental project for agent-assisted property-based testing. Engineers define properties; coding agents use test feedback to build and refine generators. Datadog reports experiments across 26 open-source systems found 535 unique previously unknown bugs, 373 confirmed by maintainers and 313 fixed. These are company-reported results, not an independent evaluation; the project is not a supported Datadog product, and reliability, cost and generality remain open questions. The described experiments involved people validating and submitting reports. The linked paper is described as slated for a January 2027 workshop, while search results list an October 23, 2026 arXiv posting; the supplied evidence does not resolve that chronology. No new implementation result or independent replication has arrived in this update.

Measured heat

now 0 pts/hpeak 3 pts/hcomments 0/hpeers p34momentum: steady2 platformsage 74h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-23 13:00⭐ origin echo-reconstructedDatadog presents Ephyra, an open-source agentic property-based testing library, and reports 535 unique previously unknown bugs found across
Alp Keles on blog (echo) · attributed from hn.story.50635204
—
11-24 21:46first on hacker news · published · +32.8hEphyra: A new agentic property-based testing library to find the bugs you missed
alpaylan
—
11-24 21:46amplified on hacker news 👑hn.story.50635204
alpaylan
peak 4 · 0 comments · 79% of case engagement
11-25 15:30amplified on hacker newshn.story.50643333
alpaylan
peak 1 · 0 comments · 21% of case engagement
11-24 22:24our radar first saw it · +33.4hdiscovery anchor: hn.story.50635204—
pace: p32 vs 2088 stories at the 72h mark (now 74h old) — ahead of a100-inference-hillclimb (2.0x), behind agentfx-agent-animation-tool (0.7x)

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnEphyra: A new agentic property-based testing library to find the bugs you missed
Retrieved article excerpt

Open article · Retrieved 2026-11-24T22:25:59.576203+00:00

[AI](https://www.datadoghq.com/blog/ai/)

# Ephyra: A new agentic property-based testing library to find the bugs you missed

[open source](https://www.datadoghq.com/blog/search/?tag=open%20source "open source")[ai](https://www.datadoghq.com/blog/search/?tag=ai "ai")[testing](https://www.datadoghq.com/blog/search/?tag=testing "testing")

Published

 Nov 24, 2026

Read time

9m

Ephyra: A new agentic property-based testing library to find the bugs you missed

Alp Keles

Alp Keles

Research Scientist

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 in SQLite had all survived years of extensive testing. Coding agents helped us find them by writing and improving test case generators with [**Ephyra**](https://github.com/datadog-labs/ephyra), our open source testing library. Across 26 well-tested popular open source systems, our experiments uncovered 535 unique and previously unknown bugs, including 313 that maintainers have already fixed.

Coding agents are increasingly better at writing software. Verifying that the software behaves correctly is still difficult: Code review can miss subtle interactions, and traditional testing methods are overwhelmed with the volume of AI-written code. We have been studying how agents can help write **property-based tests**, an established software testing technique. Engineers define rules the code must conform to, such as sorting a list without changing any elements, and a testing framework generates random inputs that try to break those rules. Traditionally, building effective input generators takes significant time and expertise. Ephyra, the open source framework for agentic property-based testing we built, uses coding agents for this task. Agents write and improve generators using feedback from test executions.

The bugs we found span databases such as DataFusion and FoundationDB; language implementations such as OCaml and Lean; developer tools and infrastructure; AI tooling; and formally verified systems. We validated each bug with a minimal reproducer and reported 535 bugs upstream. Maintainers have confirmed 373 so far, including 313 that are already fixed. Our accompanying [research paper](https://arxiv.org/abs/2611.23282), which will appear in the [Future of Property-Based Testing](https://popl27.sigplan.org/home/fpbt-2027) workshop at [POPL 27](https://popl27.sigplan.org/) in January, describes Ephyra’s design in detail. In this post, we show how the approach works in practice and how readers can try it on their own systems.

Ephyra workflow from an engineer-defined property to agent-optimized testing and reported bugs. 

Engineers define properties, agents optimize generators, and Ephyra runs tests and triages bugs.

       Ephyra workflow from an engineer-defined property to agent-optimized testing and reported bugs. 

Engineers define properties, agents optimize generators, and Ephyra runs tests and triages bugs.

 

Close dialog

## [Property-based testing](https://www.datadoghq.com/blog/ai/agentic-property-based-testing-with-ephyra/#property-based-testing)

Programs have rules. For instance, sorting a list should put its elements in order and preserve every element, including duplicates. Such a rule is called a **property**, a general statement about the system that must hold for any state or input. To test this property, we use a **generator** that produces random lists, and Ephyra checks the rule against each one. If the sorting code returns an unsorted list, or drops a duplicate, Ephyra simplifies the failing list until a small example still exposes the bug, such as two equal values reduced to one. This is **property-based testing**.

Animated testing loop that generates lists, detects a failure, and shrinks it to [7, 7]. 

The generator produces inputs, the property checks them, and the shrinker minimizes a failing input.

       Animated testing loop that generates lists, detects a failure, and shrinks it to [7, 7]. 

The generator produces inputs, the property checks them, and the shrinker minimizes a failing input.

 

Close dialog

## [Property-based testing with Ephyra](https://www.datadoghq.com/blog/ai/agentic-property-based-testing-with-ephyra/#property-based-testing-with-ephyra)

In Ephyra, software engineers define the properties, and coding agents gradually improve the generators. Properties range from simple rules, such as requiring that the system never produces a memory violation, to highly specialized, domain-specific properties such as [Ternary Logic Partitioning](https://www.manuelrigger.at/preprints/TLP.pdf) (TLP). TLP is a property of SQL’s three-valued logic, in which each predicate evaluates to `TRUE`, `FALSE`, or `NULL`. Researchers have previously used TLP to find hundreds of bugs in production database systems. We used it with Ephyra to test SQLite, Turso, PostgreSQL, DataFusion, and DuckDB.

Below, we present an example of a bug we found in SQLite using TLP. In this example, SQLite silently returns an incorrect result for a query that uses `sum(b ORDER BY a)`:

Animated TLP test in which three partitioned queries total 2 while sum(b ORDER BY a) returns 1. 

The partitioned queries total 2, but SQLite returns 1 for the original query.

       Animated TLP test in which three partitioned queries total 2 while sum(b ORDER BY a) returns 1. 

The partitioned queries total 2, but SQLite returns 1 for the original query.

 

Close dialog

Once a property such as TLP is written, it is an abstract rule that applies to every possible database and query. To test it, we use random test-case generators and mutators. With Ephyra, we envision software engineers constraining and shaping these generators while coding agents write and optimize them in a continuous optimization loop such as [BitsEvolve](https://www.datadoghq.com/blog/engineering/self-optimizing-system/).

For SQLite, we started by asking the agent to generate valid database files, then guided changes to the testing harness such as adding new properties to test for or new parts of SQLite to explore. Each new feature added to the generator could expose bugs in that feature or in its interactions with features already being tested. The following animation shows how improving the generator during each round enabled testing to reach more of the SQLite codebase and find bugs in previously unreachable regions.

SQLite source-code treemap filling in over 37 rounds, from 35.9% to 74.1% coverage, with bugs marked as they are found. 

Over 37 rounds, the generator’s coverage of SQLite’s instrumented counters grew from 35.9% to 74.1%, and testing found 26 bugs.

       SQLite source-code treemap filling in over 37 rounds, from 35.9% to 74.1% coverage, with bugs marked as they are found. 

Over 37 rounds, the generator’s coverage of SQLite’s instrumented counters grew from 35.9% to 74.1%, and testing found 26 bugs.

 

Close dialog

The code regions represent a range of SQLite features. Once a feature is added to the generated input space, it becomes part of the generator’s vocabulary. This can reveal bugs both in the feature’s implementation and in its interactions with the features already under test.

As Ephyra evolves its generator to hill-climb code coverage, the software engineer can choose to remain entirely outside the loop. The agent can then autonomously select new regions and features to cover, as well as triage, deduplicate, locate, and perhaps even fix the bugs it finds.

Animated summary of 37 rounds: SQL features grow from 79 to 261, SQLite coverage from 35.9% to 74.1%, and 26 bugs are found, including the sum(b ORDER BY a) bug at round 8. 

Over 37 rounds, the generator grew from 79 to 261 SQL features and from 35.9% to 74.1% coverage, finding 26 bugs.

       Animated summary of 37 rounds: SQL features grow from 79 to 261, SQLite coverage from 35.9% to 74.1%, and 26 bugs are found, including the sum(b ORDER BY a) bug at round 8. 

Over 37 rounds, the generator grew from 79 to 261 SQL features and from 35.9% to 74.1% coverage, finding 26 bugs.

 

Close dialog

## [**Start testing your software using Ephyra**](https://www.datadoghq.com/blog/ai/agentic-property-based-testing-with-ephyra/#start-testing-your-software-using-ephyra)

Ephyra is an open source research project at [datadog-labs/ephyra](https://github.com/datadog-labs/ephyra). It includes the testing library, a variety of case studies, a CLI for running tests and inspecting results, and a Datadog integration. Ephyra is experimental and is not a supported Datadog product offering.

Ephyra is written in Rust, but it can be used to test software in many languages, including C++ and Python. The [startup guide](https://github.com/datadog-labs/ephyra/blob/main/STARTUP.md) explains how to use it with a coding agent.

To try Ephyra, give the following starter prompt to your coding agent:

```
1



Let's test <my library> with ephyra



2



(https://github.com/datadog-labs/ephyra). Read its README and



3



STARTUP.md first, then autonomously start writing and optimizing



4



Ephyra tests until we find any bugs; validate, triage, and notify me.
```

If you encounter problems using Ephyra or would like to collaborate on future research, contact [email protected] or open an issue or pull request in the repository.

## [Some of the bugs we found using Ephyra](https://www.datadoghq.com/blog/ai/agentic-property-based-testing-with-ephyra/#some-of-the-bugs-we-found-using-ephyra)

We have used Ephyra across a wide range of projects and found many kinds of bugs. The complete list is available in the repository and the [paper’s appendix](https://arxiv.org/abs/2611.23282). Next, we highlight a subset of bugs that illustrate the range of features we tested, followed by a graph showing the bugs’ lifetimes across these projects, ranging from one day to 24 years.

### [SQLite](https://www.datadoghq.com/blog/ai/agentic-property-based-testing-with-ephyra/#sqlite)

Three `DELETE` statements caused SQLite to report its own database as malformed. This database-corruption bug had been in SQLite’s code for nearly 13 years when we found it, and it was the first bug we reported using Ephyra.

```
1



PRAGMA page_size=512;



2



CREATE TABLE t(c PRIMARY KEY) WITHOUT ROWID;



3



INSERT INTO t VALUES



4



(hex(zeroblob(35))), (hex(zeroblob(36))), (hex(zeroblob(37))),



5



(hex(zeroblob(38))), (hex(zeroblob(44))), (hex(zeroblob(45))),



6



(hex(zeroblob(46))), (hex(zeroblob(47))), (x''),



7



(zeroblob(94)), (zeroblob(95)), (zeroblob(96));



8



PRAGMA integrity_check;   -- ok



9



DELETE FROM t WHERE c = zeroblob(94);



10



DELETE FROM t WHERE c = hex(zeroblob(44));



11



DELETE FROM t WHERE c = x'';   -- database disk image is malformed
```

Upstream report: [SQLite forum 9d039d4ca7](https://sqlite.org/bugs/forumpost/9d039d4ca7)

### [OCaml](https://www.datadoghq.com/blog/ai/agentic-property-based-testing-with-ephyra/#ocaml)

A non-exhaustive match caused OCaml to jump through a wild pointer. Instead of raising `Match_failure`, the program crashed, revealing a memory-safety issue in plain, safe OCaml code. The bug had been in OCaml for 24 years when we found it.

```
1



let f x y = match x, y with



2



| _, true -> 0



3



| (0 | 2), _ -> 1



4



| 3, true -> 2



5



| -1, _ -> 3



6



let () = print_int (f (Sys.opaque_identity 4) false)



7



(* crashes; expected Match_failure *)
```

Upstream report: [ocaml/ocaml#15185](https://github.com/ocaml/ocaml/issues/15185)

### [Lean 4](https://www.datadoghq.com/blog/ai/agentic-property-based-testing-with-ephyra/#lean-4)

Lean 4 treated `5` and `5.0` as different patterns in a `match` on floating-point values, even though they represented the same value. The bug had been in the code for four months when we found it. In the example below, the input `5.0, 1` fails the first branch because `n` is not `0` and should take the second branch, but Lea
alpaylan40
🟧 echo.blog ⭐Datadog presents Ephyra, an open-source agentic property-based testing library, and reports 535 unique previously unknown bugs found across Alp Keles——
🟧 hnShow HN: Ephyra, a New Library for Agentic Property-Based Testingalpaylan10

Interpretation history

Decision trace