Module protocol
Expand description
The env-var handshake between the harness and the per-trial child.
The subprocess executor spawns the oniro-trial
child once per trial (per replicate) and steers it entirely through
the environment. The executor itself sets the trial identity and the
per-replicate seed (atune::exec::ENV_SEED, the common-random-numbers
seed under a paired SeedProtocol);
the harness sets the oniro-specific variables below through
Subprocess::env; and the sampled parameter
values arrive as ATUNE_PARAM_<dotted.key> because the harness turns on
Subprocess::export_params.
Keeping these names in one module means the harness (which sets them) and the child (which reads them) can never drift apart.
Constants§
- ENV_
BASE_ CONFIG - Path to the base
RunConfigTOML the trial config is layered on top of. - ENV_
DEADLINE_ MS - Wall-clock budget, in milliseconds, for one child invocation. The child converts this to one monotonic absolute deadline at startup, shared by training and metric collection; the outer executor uses the same value for its process-tree timeout.
- ENV_
EVAL_ EPISODES - The number of greedy episodes
oniro_cli evalaverages (eval mode only). - ENV_
OBJECTIVE - The objective source:
eval(greedy re-evaluation, the default) ormeta(the training run’s final metric). SeeObjectiveSource. - ENV_
ONIRO_ CLI - Path to the
oniro_clibinary (or a contract-compatible stand-in). - ENV_
RUN_ ROOT - Directory under which each trial’s oniro run directory is created.