| name | replay-test |
| description | Run replay fidelity tests — verify that stored artifacts can reconstruct the original HTTP exchange, DOM state, and resource graph. Use after modifying artifact, storage, or replay crates. |
| version | 0.1.0 |
| user-invocable | true |
| allowed-tools | Bash(cargo *) Read Grep Glob |
| argument-hint | [test-filter] |
Replay Fidelity Testing
Verify Law 5: stored artifacts must be sufficient to reconstruct what happened.
Test Matrix
HTTP Exchange Replay
DOM Snapshot Replay (browser mode)
Resource Graph Replay
Temporal Consistency
Procedure
- Run
cargo test with filter $ARGUMENTS (or replay if not specified).
- For each test, verify the round-trip: capture -> serialize -> store -> retrieve -> deserialize -> compare.
- Report any fidelity gaps.
Output
Replay Fidelity Report
======================
Tests run: {n}
Passed: {n}
Failed: {n}
Failures:
- test_replay_gzip_response: body hash mismatch (expected abc..., got def...)
- test_replay_resource_graph: missing sub-resource for font.woff2
Verdict: {PASS / FAIL}