Skip to content

A hyphenated trait's training job is found where it was written: one job-dir layout (card 32d2abbb) - #5185

Merged
joelteply merged 2 commits into
canaryfrom
32d2abbb/a-hyphenated-trait-s-training-job-is-wri
Oct 19, 2026
Merged

joelteply merged 2 commits into
canaryfrom
32d2abbb/a-hyphenated-trait-s-training-job-is-wri

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

…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
@joelteply

Copy link
Copy Markdown
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
joelteply merged commit d9a02bb into canary Oct 19, 2026
9 checks passed
@joelteply
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
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