Problem
A negative or NaN tolerance inverts verdict logic: negative flags even improvements as regressed, NaN disables regression detection entirely.
Where
src/compare.ts (compareRuns, tolerance option) fed raw from src/cli/index.ts.
Acceptance
Add a failing test first asserting compareRuns with tolerance: -0.5 throws or clamps. Then fix.
Problem
A negative or NaN tolerance inverts verdict logic: negative flags even improvements as regressed, NaN disables regression detection entirely.
Where
src/compare.ts(compareRuns, tolerance option) fed raw fromsrc/cli/index.ts.Acceptance
Add a failing test first asserting
compareRunswithtolerance: -0.5throws or clamps. Then fix.