pub fn export_validated_traces(
state: &MissionState,
_events: &[Event],
) -> Vec<InstructionPair>Expand description
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::Worker run whose feature reached
FeatureStatus::Complete inside a milestone that reached
MilestoneStatus::Complete, AND the run’s own result is
Some(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.
events is accepted (unused today) to keep the signature honest about
what the export is a function of — the event log — should a future
revision need raw event data the fold doesn’t retain (e.g. renders event
timestamps); state alone is sufficient for the current instruction-pair
shape since it is itself fold(events).