pub fn finalise_session(
session_dir: &Path,
session_id: &str,
skill: &str,
outcome: Outcome,
summary: &str,
) -> Result<()>Expand description
Write the final end event and refresh meta.json with the
outcome + aggregated counts derived from the existing trace.