What problem does it solve?
Graded evaluation traces and production logs often sit unused after an eval run, even though they contain exactly the labeled examples needed for fine-tuning. This Skill converts those verdicts and rewards into training-ready SFT rows and DPO preference pairs without re-judging or hand-labeling.
Core Features & Use Cases
- SFT Conversion: Keep the top-reward fraction of passing traces, route expert-corrected failures directly into the SFT set, and apply step-level loss masking for partially bad multi-step trajectories.
- Preference Pair Construction: Build DPO pairs from passing-vs-failing trajectories on the same task, selecting the rejected member at μ−2σ of the reward distribution and filtering by judge-score delta.
- Hygiene Enforcement: Scan for secrets and PII, hold out eval golden IDs from training data, dedup against the existing training set, and record run_id/trace_id provenance for the dataset card.
- Use Case: After an eval harness grades 500 production traces with pass/fail verdicts and rewards, convert them into a deduplicated SFT dataset plus DPO pairs, with goldens held out and provenance logged, ready for the fine-tuning pipeline.
Quick Start
Convert the graded traces in runs/latest/results.json into SFT rows and DPO pairs, holding out any task IDs that appear in eval/goldens.jsonl.