Expand description
Derived, event-log-regenerable export of validation-PASSED worker traces
in instruction-pair form (plan §M2). Mirrors the pattern of
orchestrator::render_mission_report: a pure function over the folded
MissionState with no second persisted source of truth. Calling
export_validated_traces/to_jsonl again over the same log always
yields the same bytes — there is nothing to regenerate FROM except the
event log itself.
Structs§
- Instruction
Pair - One fine-tuning-ready training example derived from a validation-PASSED worker run: the task it was given (instruction) and its accepted final report (response), carrying model provenance for dataset filtering.
Functions§
- export_
validated_ traces - Derive the validation-passed instruction-pair dataset from folded mission
state. Selection is validation-PASSED and DERIVED, never stored: a run
qualifies iff it is a
Role::Workerrun whose feature reachedFeatureStatus::Completeinside a milestone that reachedMilestoneStatus::Complete, AND the run’s ownresultisSome(RunResult::Pass). Runs on failed/skipped features, non-worker (orchestrator/validator) runs, and failed respawn attempts that precede a later passing run on the same now-Complete feature, are all excluded. - to_
jsonl - Render instruction pairs as JSONL: one compact JSON object per line,
each terminated by
\n. Pure function of its input — no I/O, no persisted dataset file — so it is byte-identical across repeated calls on the same pairs. - write_
export_ output - Write one export payload to an operator-named
--outpath: parent chain pinned no-follow, a symlinked (or otherwise non-regular) destination REFUSED, bytes landed through a sibling temp file and a rename.