Repository navigation
effect-prop: property testing for Effect, the fuzz plans on it, and what it found - #155
Merged
Merged
Maple Review Bot / Maple / review
succeeded
Nov 25, 2026 in 8m 9s
Confidence 10/10 · No issues found
🟢 Confidence 10/10 · safe to merge. No defect found; the only heuristic left is expectsOperandAfter, which I reran on 14 statements, and the five earlier findings are fixed and pinned.
no findings · tests covered · risk medium
Adds effect-prop, a property-testing library whose recorded generator decisions make replay, shrinking and mutation type-agnostic, ports the fuzz suites and plan generators onto it, and fixes the statement splitter and ClickHouse literal-vs-expression LIKE. Safe to merge.
effect-proprecords each generator decision, so replay, shrinking and mutation need no per-type codesplitTerminalClausesreads the two tokens before a keyword: splits afterALLand the wildcard- ClickHouse writes a literal matched against an expression as
materialize('…'), an empty one as= '' - The fuzz properties now run on native effect-prop generators, coverage-guided in soaks only
Before merge
- Env var · Set
PROP_RUNSin every environment, or confirm its default ·effect-prop/src/Prop.ts:192 - Env var · Set
PROP_SCALEin every environment, or confirm its default ·effect-prop/src/Prop.ts:193 - Env var · Set
PROP_BUDGET_MSin every environment, or confirm its default ·effect-prop/src/Prop.ts:194 - Env var · Set
PROP_SEEDin every environment, or confirm its default ·effect-prop/src/Prop.ts:195 - Env var · Set
PROP_FAILURESin every environment, or confirm its default ·effect-prop/src/Prop.ts:196 - Env var · Set
PROP_REPLAYin every environment, or confirm its default ·effect-prop/src/Prop.ts:197 - Env var · Set
PROP_VERBOSEin every environment, or confirm its default ·effect-prop/src/vitest.ts:33
Fixed since the last review
- ✅
F2 · the span-marking claim rests onsource.spans.every(...), which istruefor an emptyspansarray - ✅
F3 ·relativePathstrips onlyfile://from a URL, so on Windows every path keeps its leading slash and is never made relative - ✅
F4 ·relativePathleaves a Windows or space-containing file URL absolute - ✅
F5 ·Spanssummary reports every edge as covered,totalequalscovered - ✅
F6 · Span-marking assertion holds when no span is recorded at all
Production impact
Telemetry this change adds and removes (8)
- ➕ span name
effect-prop.shrink·effect-prop/src/Prop.ts:489 - ➕ attribute
prop.signature·effect-prop/src/Prop.ts:489 - ➕ attribute
prop.runs·effect-prop/src/Prop.ts:532 - ➕ attribute
prop.discards·effect-prop/src/Prop.ts:532 - ➕ attribute
prop.failures·effect-prop/src/Prop.ts:532 - ➕ attribute
prop.seed·effect-prop/src/Prop.ts:532 - ➕ span name
effect-prop.check·effect-prop/src/Prop.ts:534 - ➕ attribute
prop.name·effect-prop/src/Prop.ts:534
What was checked
- Ran
splitTerminalClauseson 14 statements:GROUP BY ALL FORMAT,t.* SETTINGS,a * format JSON, comments and doubled quotes all split as claimed - The empty-literal branch is ClickHouse-guarded and returns before any
likeCaseor glob path, where= ''would differ relativePathstrips the drive-letter slash and decodes%20;Gen.test.ts:214pins both platforms
161e54a · Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.
Loading