feat(02-02): capture, scrub, and strictly diff stateful flows

Resolve named placeholders from a private variable store, mask
dates and ids after shape checks, and keep comparing independent steps.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-09-17 12:32:49 +02:00
parent bb6a5a91c9
commit aa165fe3d0
13 changed files with 1390 additions and 203 deletions

View File

@@ -74,6 +74,8 @@ type RecordConfig struct {
Target string
Client *http.Client
MaxBody int64
Store *Store
Rules Rules
}
// ReplayConfig injects the HTTP target, client and body bound for replay.
@@ -81,6 +83,7 @@ type ReplayConfig struct {
Target string
Client *http.Client
MaxBody int64
Store *Store
}
// Result is the outcome of replaying a flow.
@@ -91,9 +94,10 @@ type Result struct {
// StepResult is the outcome of one replayed step.
type StepResult struct {
ID string
OK bool
Diffs []Diff
ID string
OK bool
Skipped bool
Diffs []Diff
}
// Diff is one structural JSON or raw-byte mismatch.