pub fn record_tool_output_replace(
plugin_id: impl Into<String>,
hook: impl Into<String>,
tool_name: Option<String>,
observed_len: usize,
replacement_len: usize,
) -> Result<(), String>Expand description
Record that an extension replaced a tool’s output. Best-effort and metadata-only — auditing must never break or alter the tool flow, so callers typically ignore the result.