feat(verifier): track extractor value transitions

Cache each extractor's prior and current JSON-encoded value during
PushSnapshot; expose ChangedExtractors to surface per-step diffs the
runner can emit into the trace. The first observation flushes every
non-null extractor as a change so the inspect UI shows initial state
breadcrumbs alongside later transitions.
This commit is contained in:
pj committed 2026-05-30 21:57:59 +05:30
1 parent 07c292913c
commit 419a2d564e
2 files changed
+54

No files matched your search

+8
View File
@@ -45,3 +45,11 @@ type Exception struct {
StackTrace string
UnixMillis int64
}
// ExtractorChange records a single extractor's value transition across one
// step. Used to surface "what changed at this step" breadcrumbs at violation
// markers in the inspect UI.
type ExtractorChange struct {
Prev []byte
Curr []byte
}