pub fn compact_messages(
messages: Vec<Value>,
fresh_tail_tokens: usize,
protect_min_messages: usize,
focus_topic: Option<&str>,
) -> CompactResultExpand description
Compact a message array. fresh_tail_tokens and protect_min_messages
bound the verbatim tail; the split always lands on an atomic-block boundary.