# 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

- Skill: `wsh7ash/control-and-test-pairing` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/control-and-test-pairing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/control-and-test-pairing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/control-and-test-pairing

---


# 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

1. Define the control: identical request with the one variable under test returned to its normal value.
2. Send control and test in the same session, environment and time window to limit drift.
3. Capture both responses in full: status, headers and body, at the same fidelity.
4. Diff the captures and mark which differences are attributable to the single changed variable.
5. Attach both captures and the diff to the evidence so the claim can be audited without rerunning.
6. 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**

```text
control=own-id status=200 body=own-rows test=other-id status=200 body=other-rows diff=rows-only
```

**2. Condition note**

```text
same-session=yes same-role=yes same-window=90s drift=none attribution=single-variable
```

**3. Noise label**

```text
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.

## References

- [OWASP - testing guidance for controlled comparison](https://owasp.org/www-project-web-security-testing-guide/)
- [CWE - weakness catalog](https://cwe.mitre.org/)

