feat(replay-ui): show the step a violation was detected at

The witness evidence is the detecting step's state, so say which step that is
and let a reader jump to it.

Claude-Session: https://claude.ai/code/session_01Fj4wJUikdABuMQEETwW55J
This commit is contained in:
pj committed 2026-08-12 16:47:25 +05:30
1 parent eb492e53de
commit 32d0171b10
2 files changed
+25 -1

No files matched your search

+3
View File
@@ -128,6 +128,9 @@ export interface Witness {
// which for deferred obligations (next, eventually) is earlier than the
// step whose record carries the witness.
step?: number;
// detected_step is the step whose evaluation produced the violation. The
// extractors below are that step's state, not step's.
detected_step?: number;
extractors?: Record<string, unknown>;
}