[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111851":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":13,"forks30d":13,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":13,"starSnapshotCount":13,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},111851,"ephyra","datadog-labs\u002Fephyra","datadog-labs","A property-based testing library for the LLM era","",null,"Rust",69,0,51,1,10,17,5,48.7,"MIT License",false,"main",true,[25],"rust","2026-11-19 01:06:53","2026-11-23 07:50:49","# ephyra\n\nEphyra is a new property-based testing library we are developing\nat Datadog Systems Research, designed from scratch for agentic property-based testing.\n\nBriefly, Ephyra brings autoresearch style hill-climbing optimizations together\nwith property-based testing; given a set of properties Ephyra first writes\na simple valid test case generator, measures the code coverage, optimizes\nthe generator to reach new regions of the code.\n\nThis process is similar to coverage-guided fuzzing (CGF) that favors inputs that\nincrease the coverage of the testing space. However whereas CGF is deductive, mutating\npromising inputs; Ephyra is inductive, it rewrites the generator with the hypothesis of\ndiscovering promising inputs.\n\nWe have run Ephyra through popular targets for testing research, finding 70+ bugs in SQLite,\n20 bugs in PostgreSQL, 25 bugs in Lean, several bugs in heavily fuzzing-guided developed systems\nsuch as FoundationDB and TigerBeetle. We present many more systems and bugs in the chart below.\n\nThe [Ephyra library](crates\u002Fephyra\u002FREADME.md) and [Ephyra command line](crates\u002Fephyra-cli\u002FREADME.md)\nhave their own respective documentation, mostly written in an information dense style targeting\ncoding agents. Almost all of the code in this repository is experimental and subject to change,\nplease let us know any issues you experience while using it.\n\n**Testing a project with an agent?** Give your coding agent this prompt; it\nstarts from [STARTUP.md](STARTUP.md):\n\n```text\nLet's test \u003Cmy library> with ephyra\n(https:\u002F\u002Fgithub.com\u002Fdatadog-labs\u002Fephyra). Read its README and\nSTARTUP.md first, then autonomously start writing and optimizing\nEphyra tests until we find any bugs; validate, triage, and notify me.\n```\n\n## Using\n\n```toml\n[dev-dependencies]\nephyra = \"0.0.1\"\n```\n\nWrite a property as a test:\n\n```rust\nuse ephyra::prelude::*;\n\n#[ephyra::test]\nfn sorting_keeps_every_element(mut v: Vec\u003Ci32>) -> bool {\n    let mut expected = v.clone();\n    expected.sort();\n    v.sort();\n    v == expected\n}\n```\n\n`cargo test` runs it. A failure prints the shrunk counterexample and an\n`EPHYRA_REPLAY=\u003Cseed>:\u003Citeration>` line that reruns exactly that case, and is\nremembered in `.ephyra\u002Fregressions\u002F` so the next run tries it first. Settings\nsuch as the number of tests (`EPHYRA_TESTS`), the seed (`EPHYRA_SEED`) or a\ntime budget (`EPHYRA_BUDGET_MS`) can be changed from the environment without\ntouching the code.\n\nThe `ephyra` command runs suites into one artifact directory, checks the\ngenerators it finds in the source, and serves a local page for exploring the\nresults:\n\n```bash\ncargo install ephyra-cli\nephyra guide          # how to write generators\nephyra test           # run the suite; artifacts in .ephyra\u002F\n```\n\nTo see a failure report and the targeted search from a checkout:\n\n```bash\ncargo run -p ephyra --example bst -- --bug\ncargo run -p ephyra --example sort_performance\n```\n\nNext: [the library's README](crates\u002Fephyra\u002FREADME.md) for generators,\nshrinkers and mutators, [API.md](API.md) for every generator, combinator and\nsetting, the [changelog](crates\u002Fephyra\u002FCHANGELOG.md) for what changed in each release, and\n[CONTRIBUTING.md](CONTRIBUTING.md) to work on ephyra itself.\n\n## Naming\n\nEphyra, the ancient Greek city now known as Corinth, is the home of Sisyphus, a man forever cursed to\ncarry a boulder up a hill, only to keep going in a metaphorical Möbius strip, never approaching the end.\nThe name of the library is an homage to the most Sisyphean task in modern software development, testing;\nparticularly random testing where we roll not one, but millions of rocks through a variety of software,\nand Ephyra is the home of all such efforts.\n\n## Case studies\n\n![Bugs the case studies found and reported, one row per project: each dot is a bug, placed at how long it had been in the code when it was found, over a bar for the project's history.](case-studies\u002Fbug-ages.svg)\n\nEach dot is a bug found with ephyra and reported upstream, placed at how long\nit had been in the project's code when it was found; the bar behind each row is\nthe project's history since its first commit.\n\n[`case-studies\u002F`](case-studies) holds projects that test real systems with\nephyra, one directory per target system: a crate per component, and `bugs\u002F`\nwith what they found (the reports as filed upstream, repros and fixes, and a\n`README.md` index with each bug's status). The crates are not workspace\nmembers: each one builds on its own, against the library here through\n`path = \"..\u002F..\u002F..\u002Fcrates\u002Fephyra\"`, and has a README with what it tests, how to\nrun it and what it found.\n\n| Target | Components | What they test |\n|---|---|---|\n| [`sqlite`](case-studies\u002Fsqlite) | [`generator`](case-studies\u002Fsqlite\u002Fgenerator), [`coverage`](case-studies\u002Fsqlite\u002Fcoverage), [`diversity`](case-studies\u002Fsqlite\u002Fdiversity) | SQLite: a typed SQL generator, a model and metamorphic oracles (TLP, NoREC, ...), and a coverage-guided runner over SQLite's C source |\n| [`turso`](case-studies\u002Fturso) | [`explore`](case-studies\u002Fturso\u002Fexplore), [`differential`](case-studies\u002Fturso\u002Fdifferential), [`apidiff`](case-studies\u002Fturso\u002Fapidiff) | Turso against SQLite (differential), on the SQLite generator's inputs, and through the statement APIs (prepared statements stepped in turn, transactions, virtual tables, ATTACH, MVCC) |\n| [`postgresql`](case-studies\u002Fpostgresql) | [`generator`](case-studies\u002Fpostgresql\u002Fgenerator), [`coverage`](case-studies\u002Fpostgresql\u002Fcoverage) | PostgreSQL: a generator, a model and oracles, and a coverage-guided runner |\n| [`sqleq`](case-studies\u002Fsqleq) | [`checker`](case-studies\u002Fsqleq\u002Fchecker) | [sqleq](https:\u002F\u002Fgithub.com\u002Fdatadog-labs\u002Fsqleq), on equivalent PostgreSQL queries from an e-graph over `postgresql\u002Fgenerator`'s seeds |\n| [`ada`](case-studies\u002Fada) | [`generator`](case-studies\u002Fada\u002Fgenerator), [`coverage`](case-studies\u002Fada\u002Fcoverage), [`asan`](case-studies\u002Fada\u002Fasan) | [ada](https:\u002F\u002Fgithub.com\u002Fada-url\u002Fada), the WHATWG URL parser |\n| [`cedar`](case-studies\u002Fcedar) | [`generator`](case-studies\u002Fcedar\u002Fgenerator) | [Cedar](https:\u002F\u002Fgithub.com\u002Fcedar-policy\u002Fcedar) policies and entities |\n| [`egg`](case-studies\u002Fegg) | [`demo`](case-studies\u002Fegg\u002Fdemo) | equivalent SQL queries sampled from an e-graph, checked on SQLite |\n| [`sqlparser`](case-studies\u002Fsqlparser) | | [sqlparser-rs](https:\u002F\u002Fgithub.com\u002Fapache\u002Fdatafusion-sqlparser-rs): bugs from round-trip and statement-separation properties an agent wrote from STARTUP.md alone (harness to follow) |\n| [`coreutils`](case-studies\u002Fcoreutils), [`duckdb`](case-studies\u002Fduckdb), [`datafusion`](case-studies\u002Fdatafusion), [`brush`](case-studies\u002Fbrush), [`gix`](case-studies\u002Fgix), [`binaryen`](case-studies\u002Fbinaryen), [`ocaml`](case-studies\u002Focaml), [`oxcaml`](case-studies\u002Foxcaml), [`rustc`](case-studies\u002Frustc), [`litellm`](case-studies\u002Flitellm) | `harness` | targets of ephyra's autonomous agent: the harness it wrote for each (uutils coreutils, DuckDB, DataFusion, brush, gitoxide, Binaryen, OCaml, OxCaml, rustc, LiteLLM) and the bugs it found |\n| [`lean4`](case-studies\u002Flean4), [`torchspec`](case-studies\u002Ftorchspec), [`fastmcp`](case-studies\u002Ffastmcp), [`dogwood`](case-studies\u002Fdogwood), [`envoy`](case-studies\u002Fenvoy), [`foundationdb`](case-studies\u002Ffoundationdb), [`bun`](case-studies\u002Fbun), [`tigerbeetle`](case-studies\u002Ftigerbeetle) | `bugs` | the bugs ephyra's autonomous agent found and we reported publicly in Lean 4, TorchSpec, FastMCP, Dogwood, Envoy, FoundationDB, Bun and TigerBeetle (harnesses to follow) |\n\nSome case studies build against code that is not in this repository:\n`case-studies\u002Fsqlite\u002Fvendor\u002Ffetch.sh` creates the `libsqlite3-sys` crates with\nSQLite trunk that the SQLite and Turso ones patch in, and `turso\u002Fdifferential`,\n`turso\u002Fapidiff` and `cedar\u002Fgenerator` need a checkout of Turso or Cedar at the repository root\n(their READMEs give the revision).\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n","Ephyra 是一个面向大语言模型（LLM）时代的基于属性的测试（Property-Based Testing, PBT）库，专为智能测试代理（agentic testing）设计。其核心特点是融合覆盖引导式生成优化与归纳式测试生成：自动构建初始测试生成器，通过代码覆盖率反馈动态重写和优化生成逻辑，而非传统模糊测试中的输入变异。支持 Rust 生态，提供声明式测试宏、种子可复现性、失败用例自动归档与重放、以及命令行工具用于结果可视化与生成器调试。适用于对高可靠性系统（如数据库、定理证明器、分布式存储）开展自动化、深度探索式验证的场景。",2,"2026-11-24 04:41:58","CREATED_QUERY"]