Records a trainer result on its run row.
Static
Writes status, completion time, compute seconds and cost, code version and notes. Does not save: the caller saves the run (and checks Save()'s result) in the same flow that registers the artifacts.
Save()
TrainerLineageRefusedError when a completed result's CodeVersion has lineage gaps (the run is marked Failed first, with its compute recorded)
CodeVersion
Records a trainer result on its run row.