mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 03:57:09 +00:00
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:
1 parent
07c292913c
commit
419a2d564e
2 files changed
+54
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user