fn architect_trim_preview_history(items: &mut Vec<Value>)
Retains the newest history entries with one linear compaction.