""" Compute Best-of-N metrics from a 3-stage pipeline rollout JSONL: - greedy: EX of the first trajectory (K=1 baseline) - pass@N: EX if ANY of the N trajectories is correct (oracle upper bound) - majority: EX of the SQL whose execution result is the most common non-empty result among executable trajectories (rule-based selector, no extra trained selection agent needed). Usage: python scripts/compute_bestofn_metrics.py