From 60c1e5dd447961a19fd63ec02fd44150781bcec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E5=9B=BD=E5=BA=86?= Date: Sun, 6 Sep 2026 15:19:07 +0000 Subject: [PATCH 01/12] feat(trajectory): extend residual findings with tokens and occurrences Residual findings now carry the plaintext token and every occurrence (file, line number, line text, offsets) in memory, so the upcoming review flow can adjudicate by value and render highlighted context. redaction.json keeps its exact serialized shape - neither the token nor the raw lines land on disk. Provider tool-call ids (call_ prefix) join the residual-scan exemptions alongside tracing ids. Co-authored-by: Claude (claude-fable-5) --- raven/trajectory/redact.py | 39 +++++++++++++++++++++----- tests/test_trajectory_redact.py | 49 +++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 7 deletions(-) diff --git a/raven/trajectory/redact.py b/raven/trajectory/redact.py index e10cb2ad..01fda89d 100644 --- a/raven/trajectory/redact.py +++ b/raven/trajectory/redact.py @@ -132,6 +132,11 @@ # (---