Skip to content

Compose Hypothesis with the seed explorer - #23

Merged
dhruvl merged 2 commits into
mainfrom
hypothesis-recipe
Aug 1, 2026
Merged

Compose Hypothesis with the seed explorer#23
dhruvl merged 2 commits into
mainfrom
hypothesis-recipe

Conversation

@dhruvl

@dhruvl dhruvl commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Hypothesis searches the data and simloop searches the schedule, and until now that composition was a sentence in the README's defense rather than something the suite runs. This makes it a tested recipe: a shared-log workload where Hypothesis generates writers, payloads and write delays, explore() runs each workload under a fixed seed range, and the racy variant shows the two halves of a failure landing where they belong - Hypothesis shrinks the workload to its minimum (two writers, one one-letter payload, a write that merely yields) while the reported seed replays the schedule on its own with an identical trace hash.

docs/cookbook.md carries the worked example, the settings CI needs and why (deadline off because wall-clock deadlines measure the machine under virtual time; derandomized with no example database so the suite is a pure function of the repository), why seeds deliberately stay out of the strategies, and the honest limits. Hypothesis lands in the dev dependency group only - the package itself gains no dependency and no integration layer.

dhruvl added 2 commits August 1, 2026 22:36
Hypothesis picks the workload, explore() runs it under a range of seeds,
and the property is that no seed broke it. The racy variant proves the
division of labor: Hypothesis shrinks the workload to two writers and one
payload while the reported seed replays the schedule on its own, with the
same trace hash. Seeds stay out of the strategies on purpose - a seed has
no size to shrink toward, and two shrinkers aimed at one failure fight.
Hypothesis joins the dev group only; the package gains no dependency.
The first cookbook page: the worked example behind the recipe test, the
settings CI needs (deadline off, derandomized, no example database) and
why, what a failure hands back from each half, what the composition
costs, and its honest limits. README gains the short form and the link.
@dhruvl
dhruvl merged commit 9e661ae into main Aug 1, 2026
4 checks passed
@dhruvl
dhruvl deleted the hypothesis-recipe branch August 1, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant