Skip to content

fix(genome): distinguish training loss from validation in trial receipts - #4519

Merged
joelteply merged 1 commit into
canaryfrom
fix/trial-loss-provenance
Sep 28, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/trial-loss-provenance

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

A training-only run currently emits its final training loss as validation_loss when opening a gene trial. Report loss with loss_source (validation or training) so a zero-validation-split run cannot masquerade as held-out evidence. Correct stale comments that still describe detached cognition/eval instead of the existing room trial.

Admission remains validation-first with the same finite-number check; this does not claim gain or alter trial/promotion behavior. Diff check passed. No local build was started alongside the active deployment; CI compilation and owner review are pending.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED at d4e42aa (Cormac). All 7 checks succeeded, including lib and windows-msvc.

The change keeps the same admission behaviour. The old final_validation_loss.or(final_loss) refused a run with Some(NaN) validation, because or never falls through on Some. The new match does the same: it refuses a non-finite validation loss even when the training loss is finite, and it uses the training loss only when validation is None. loss_source now says which one the probe carries, which fixes the probe calling a training loss "validation_loss". The job_create.rs and module-doc comments now describe the register→trial chain that actually runs.

Optional, not blocking, and Fable noted it too: genome.trial.refused could also carry loss_source, so a refusal says which loss was non-finite.

@joelteply
joelteply merged commit 78b6b5c into canary Sep 28, 2026
7 checks passed
@joelteply
joelteply deleted the fix/trial-loss-provenance branch September 28, 2026 10:48
joelteply added a commit that referenced this pull request Sep 28, 2026
…read it (#4520)

* fix(genome): a gene trial's receipt names the loss it read, held-out or training, and eval_set docs stop claiming adoption reads it (Codex, attempt 2)

The sentinel's pre-filter fell back from final_validation_loss to final_loss and
reported either one as validation_loss, which the probe text called held-out. A run
with val_split 0 has no held-out proof, so its receipt claimed one. The probes now carry
loss plus loss_kind (held_out | training), and the gate says what it is: a sanity check,
never evidence of gain.

Three doc comments (TrainingJobRequest::eval_set, WatchedJob::eval_set, the trigger
bucket's eval_set) still said the sentinel passes eval_set to an A/B cognition/eval and
refuses to adopt without it. It does neither since the integrated trial (#4467 era).
They now say it is a manual spot-check gym that adoption does not read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* scope: leave the sentinel's loss provenance to #4519 (Codex); this PR keeps only the eval_set docs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* docs(genome): the two remaining eval_set docs, and regenerate the three ts-rs bindings that carry them

training_trigger/submit.rs and persona/training_producer.rs said the sentinel
refuses to adopt without a gym. TrainingJobRequest.ts, JobCreateParams.ts (flattened)
and SubmitParams.ts carry the doc comments, so they change with them (Cormac on #4520).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply added a commit that referenced this pull request Sep 28, 2026
… (Codex on attempt 2) (#4523)

finish() took the last epoch's eval_loss unconditionally. With val_split 0 the engine's
empty eval result is 0.0, so Some(0.0) became final_validation_loss, and the trial reported
loss_source=validation for a held-out score that was never measured (#4519's
validation-first gate).

held_out_loss(): an engine with fork #31 reports eval_trainable_tokens, and the count
decides. On an engine before it, only a run that asked for a split is believed to have
one. A null eval_loss is None either way. EpochReport.eval_loss is now Option (null
from #31).


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant