Change Proof Regression Lab
Interactive fixture

A passing test
can miss the bug.

Change Proof checks new tests against the code before a fix. Try the duplicate-order example. How it works ↓

Duplicate event machine

payment.succeeded evt_payment_001 ×2 deliveries

BASE Before fix

Duplicate passed
2 orders

HEAD After fix

Duplicate blocked
1 order
BASEHEAD
Weak test Checks acceptance Pass Pass Misses duplicate
Regression test Checks order count Fail Pass Catches duplicate
  1. 1 First event
  2. 2 Duplicate
  3. 3 Weak test
  4. 4 Regression

01 / THE CASEREGRESSION TEST EVIDENCE

Passing tests are not enough.

A developer fixes a duplicate-order bug. The tests are green. But would the new test have failed before the fix? Change Proof checks exactly that.

01

The bug

A payment notification arrives twice. The old handler creates two orders for one payment.

1 payment → 2 orders
02

The fix

The developer changes the handler to ignore a repeated event ID in this sequential example.

1 payment → 1 order
03

The missing proof

A test that checks only acceptance passes on both versions. It never checks the duplicate order.

Green ≠ evidence
02 / THE EXPERIMENTRECORDED CLI RESULTS

Same fix. Two very different tests.

Weak test

Checks whether both deliveries are accepted.

assert.equal(handlePaymentSucceeded(event, orders).accepted, true);
assert.equal(handlePaymentSucceeded(event, orders).accepted, true);

Regression test

Checks whether only one order is created.

handlePaymentSucceeded(event, orders);
handlePaymentSucceeded(event, orders);
assert.equal(orders.length, 1);
Selected testOld codeFixed code
WeakPASSPASS
RegressionFAIL*PASS

*Expected assertion failure: one order expected, two created. A useful test detects the observed difference in this scenario.

03 / THE EVIDENCECHANGE PROOF CLI 0.1.0-beta.2

Reproducible, not just illustrative.

The panel above runs a synthetic browser fixture. The results below come from recorded executions of the actual Change Proof CLI.

5Repeated runs
10CLI experiments
VALIDChange boundary
VERIFIEDWorkspace cleanup
How Change Proof verifies a test

A: old code + old tests establish a baseline. B: fixed code + new tests establish the new behavior. C: old code + selected new tests check whether the test detects the original difference.

Weak verdict: NON_DISCRIMINATING_TESTS. Regression verdict: OBSERVED_TEST_DISCRIMINATION.

The comparison is limited to explicitly selected tests and paths. It does not prove overall correctness or provide a security sandbox. No live payment service is involved.