Control and Test Pairing
Run a control request alongside every test request under identical conditions, so the difference between them is the evidence and normal behavior is never in dispute
Use when: the proof claims a response or behavior differs from what normal rules should produce
Avoid when: the observation is self-evidently abnormal with no baseline interpretation needed
Procedure
- Define the control: identical request with the one variable under test returned to its normal value.
- Send control and test in the same session, environment and time window to limit drift.
- Capture both responses in full: status, headers and body, at the same fidelity.
- Diff the captures and mark which differences are attributable to the single changed variable.
- Attach both captures and the diff to the evidence so the claim can be audited without rerunning.
- Repeat the pair if any condition changed between runs, since a stale pair proves nothing new.
Signals
- You are calling a response abnormal without ever capturing the normal case.
- Control and test were captured in different sessions or roles, which confounds the comparison.
- Several fields differ between the pair and you have not separated signal from noise.
- The pair was taken minutes apart on a system that mutates, making the diff unreliable.
Patterns
1. Pair line
control=own-id status=200 body=own-rows test=other-id status=200 body=other-rows diff=rows-only
2. Condition note
same-session=yes same-role=yes same-window=90s drift=none attribution=single-variable
3. Noise label
diff=[rows,timestamp] signal=rows noise=timestamp explanation=timestamp-varies-by-design
Pitfalls
- Skipping the control because the test response felt obviously wrong to you.
- Capturing the pair under different conditions, so the diff reflects the conditions instead of the variable.
- Presenting an unlabeled diff, forcing the reviewer to guess which difference matters.
- Reusing an old control after conditions changed, which invalidates the pairing silently.
Done when
- Control and test exist under identical conditions differing in exactly one variable.
- Both captures and their labeled diff are attached as evidence.
- Noise differences are identified so a reviewer can dismiss them immediately.