Skip to main content

scrub_paths_recursive

Function scrub_paths_recursive 

Source
fn scrub_paths_recursive(v: &mut Value)
Expand description

Recursively walk a JSON value and rewrite every absolute home path segment to <redacted-home>. Defence-in-depth on top of the structural redaction (which strips text / tool_use_input / tool_result_content); catches any path leak that survives in less-common fields.