fix(chat): redact encoded local path separators #5978
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.48) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 537 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.376
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #5978"
general
weight: 0.35
BigDataDZ
Goal And Delivered Outcome
%63encodings on exact main0e5acf. Main advanced tofac40bb; its intervening commits did not changeloopx/chat.pyor the focused path tests. On this PR head, the stream and final answer redact all three forms as[local-path].Author Declaration
Acceptance Criteria
| Criterion | Result | Coverage |
| --- | --- | --- |
| Encoded separators, root bytes, and normalized aliases cannot bypass protected-root matching | Implemented |
redact_local_paths;tests/test_chat_path_redaction.py|| Long encoded protected roots remain buffered through arbitrary stream splits | Implemented | Direct stream and synthetic ACP
answer.deltatests || Private descendants are hidden while safe project files keep relative names | Implemented | Path-redaction and response-parsing tests |
Changes
Validation
7be3bbbc0a91078b50fdbf4609e45a22a13c4d4b, based on current mainfac40bbc43ff17d0c0d573af69204cb73b36e842.0e5acf, the character-stream probe leaked the three encoded forms. The newer main commits did not modify the affected Chat source or focused test paths. On this head, stream and ACP outputs are redacted.tests/test_chat_path_redaction.py,tests/test_chat_response_parsing.py,tests/test_chat_dsh_adapter.py, andtests/test_chat_session_active_turn.py— 126 passed.git diff --check origin/main...HEADpassed.Signed-off-bytrailer.UI / RFC Impact
Type of Change
LoopX Area
Boundary Checklist
Signed-off-bytrailer.