module Riffer::Agent::Session::Repair

Riffer::Agent::Session::Repair holds the pure transformations that keep the tool_usetool_result invariant on a message array. No state, no instance — module-level functions only. Each entry point is gated by Riffer.config.experimental_history_healing: when the flag is off the function returns its input unchanged.

Two seams: