Module report
Expand description
Reading a trial’s objective back out of the oniro CLI contract.
The child drives oniro_cli and turns its output into the single number the
executor’s result protocol reads. Two objective sources are
supported (04-rl-and-oniro.md §B.1 seam #2), selected by
ObjectiveSource:
eval(the default). Runoniro_cli eval --run-dir <dir> --episodes Nand take itsmean_return. Greedy evaluation draws no RNG, so it is a clean, low-variance function of the trained weights — the design’s preferred objective, and the one that makes common-random-numbers comparisons meaningful.meta. Readcheckpoints/meta.json::final_metric, the training run’s last reported metric. Cheaper (no second process) but noisier and algorithm-dependent in meaning (REINFORCE’s last collection return vs Dreamer’s last greedy-eval return).
Every parser here is total: any bytes resolve to Some(value) or
None, never a panic (the child turns a None into a non-zero exit, which
the executor records as a failed — diverged — trial).
Enums§
- Objective
Source - Where the trial’s objective is read from.
Constants§
- ONIRO_
ENVELOPE_ SCHEMA_ VERSION - The original version of oniro’s machine envelope this consumer understands.
Functions§
- parse_
mean_ return - The
mean_returnfrom akind = "eval"envelope. - parse_
run_ dir - The run directory from a
kind = "run"envelope, orNonefor anything unusable. - read_
final_ metric - Reads
final_metricout of acheckpoints/meta.jsondocument.