pub fn parse_session_file(
path: &Path,
is_agent: bool,
) -> Result<(Vec<ValidatedTurn>, DataQuality)>Expand description
Parse a session JSONL file into validated turns and quality metrics.
Each line is validated through a pipeline: JSON parse → type filter → synthetic filter → model/usage/timestamp checks → deduplication.