Skip to content

effect-prop: property testing for Effect, the fuzz plans on it, and what it found - #155

Merged
Makisuo merged 13 commits into
mainfrom
t3/improve-testing-ephyra
Nov 25, 2026
Merged

Makisuo merged 13 commits into
mainfrom
t3/improve-testing-ephyra

fix(effect-prop): findings of the Maple review of 2f298e3

161e54a
Select commit
Loading
Failed to load commit list.
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-prop records each generator decision, so replay, shrinking and mutation need no per-type code
  • splitTerminalClauses reads the two tokens before a keyword: splits after ALL and 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

Fixed since the last review

  • ✅ F2 · the span-marking claim rests on source.spans.every(...), which is true for an empty spans array
  • ✅ F3 · relativePath strips only file:// from a URL, so on Windows every path keeps its leading slash and is never made relative
  • ✅ F4 · relativePath leaves a Windows or space-containing file URL absolute
  • ✅ F5 · Spans summary reports every edge as covered, total equals covered
  • ✅ 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 splitTerminalClauses on 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 likeCase or glob path, where = '' would differ
  • relativePath strips the drive-letter slash and decodes %20; Gen.test.ts:214 pins both platforms

161e54a · Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.