Repository navigation
A hyphenated trait's training job is found where it was written: one job-dir layout (card 32d2abbb) - #5185
Merged
joelteply merged 2 commits intoOct 19, 2026
Conversation
…job-dir layout (card 32d2abbb) The job directory layout was defined twice with two rules for the trait: native_jobs::job_dir_for (the writer) kept '-', while modules/training_trigger::job_dir_under (the readers: orphan resume, partitions, genome/training-trigger/return) turned it into '_'. A speech-discipline job (training_producer::SPEECH_DISCIPLINE_TRAIT) was written to .../speech-discipline/<id> and looked for in .../speech_discipline/<id>, so a reboot-killed one could not resume and its return reads missed. The tests only used code/owner, which both rules map the same way. genome/fine_tuning/job_dir.rs now owns genome_root, job_dir_under (the writer's rule, which every directory on disk was made with), default_job_dir and read_job_request. native_jobs::job_dir_for and its private sanitize copy go through it; return_.rs, durable.rs and the trigger read through it. Two doc comments the earlier edits had detached are re-attached (decode_job_create, resumable_request). Test: a_hyphenated_trait_names_the_directory_its_job_was_written_to. source-hygiene 37/37 on IntelMac: lines past 1000 158,255 -> 158,221. Not compiled here; CI compiles. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ader moved to job_dir); CI warning ratchet 76 > 75, job 118068627213 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Contributor
Author
|
Codex source review at 1abcf5b: approved for the training-directory correction. I verified that native_jobs::job_dir_for and trigger resume/partition/return callers now share job_dir_under, whose hyphen-preserving rule matches the existing writer. The local_artifact_dir override and canonicalBase restoration remain intact. All checks at this exact head are green, including core tests and Windows compilation. I did not independently run this branch locally. This resolves the layout defect; it does not establish successful resumed training, evaluation or adoption on the live node. |
joelteply
deleted the
32d2abbb/a-hyphenated-trait-s-training-job-is-wri
branch
October 19, 2026 13:59
joelteply
added a commit
that referenced
this pull request
Oct 19, 2026
…g job never trained on (card 9f0ba854) Step (c), the interim explicit form Astra recommended: no autonomous trigger, no sentinel. CognitionEvalParams gains heldOutOfJob, the training job directory of the gene under test. With it, the A/B runs only on the tasks of the named evalSet that the job never trained on: cognition::held_out::for_job reads the job's own request.json through the one reader (genome::fine_tuning::job_dir::read_job_request, #5185), takes the trained tasks from its examples (held_out::trained), and keeps the held-out set only through known_clean(). It is refused, with the reason, when the request has no examples, when any example's task is unknown, when the gene trained on every task of the set, or when gene or evalSet is missing. The command's wire contract (EvalGene, CognitionEvalParams, EvalTaskResult, InfraUnavailable, CognitionEvalResult) moves whole, unchanged, out of cognition/eval.rs into cognition/eval/wire.rs, re-exported, so the file-size ratchet falls: 157,971 -> 157,608 (measured on this tree after `cargo clean -p source-hygiene`; the shared target had been scanning another worktree). Test: a_job_names_the_tasks_its_gene_may_be_judged_on (held-out kept, and the three refusals). source-hygiene 37/37 on IntelMac. Not compiled here. Stacked on #5183 (task identity + held_out). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The job directory layout was defined twice with two rules for the trait:
native_jobs::job_dir_for (the writer) kept '-', while
modules/training_trigger::job_dir_under (the readers: orphan resume,
partitions, genome/training-trigger/return) turned it into '_'. A
speech-discipline job (training_producer::SPEECH_DISCIPLINE_TRAIT) was written
to .../speech-discipline/ and looked for in .../speech_discipline/, so
a reboot-killed one could not resume and its return reads missed. The tests
only used code/owner, which both rules map the same way.
genome/fine_tuning/job_dir.rs now owns genome_root, job_dir_under (the writer's
rule, which every directory on disk was made with), default_job_dir and
read_job_request. native_jobs::job_dir_for and its private sanitize copy go
through it; return_.rs, durable.rs and the trigger read through it. Two doc
comments the earlier edits had detached are re-attached (decode_job_create,
resumable_request).
Test: a_hyphenated_trait_names_the_directory_its_job_was_written_to.
source-hygiene 37/37 on IntelMac: lines past 1000 158,255 -> 158,221. Not
compiled here; CI compiles.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE