Skip to content

fix(training): a run whose lane was replaced while it waited hands its examples back, like an engine refusal (card 0b8de4da) - #4912

Merged
joelteply merged 1 commit into
canaryfrom
0b8de4da/lane-replaced-returns
Oct 10, 2026
Merged

joelteply merged 1 commit into
canaryfrom
0b8de4da/lane-replaced-returns

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

BigMama on the 5090, 2026-10-10: job a7893e09 was bound to the lane chosen before a
re-home; at admission's bind, "the lane was replaced while this job waited", the job
failed, and her 18 examples stranded until a human cancelled and returned it. #4904's
return-on-refusal (card 2dfce676) covered only engine refusals.

Assumption for review: a bind failure ends the job Failed on the board, so the
completion sentinel claims it and #4904's take_failed hands it to the trigger. That
matches a7893e09 ending (it needed a manual return), but it's worth a reviewer's eye.

Test: the refusal test now covers the legacy refusal.json read as EngineRefused, and
returnable.json (LaneReplaced) winning over it. Not compiled on IntelMac; CI builds
and tests.

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…s examples back, like an engine refusal (card 0b8de4da)

BigMama on the 5090, 2026-10-10: job a7893e09 was bound to the lane chosen before a
re-home; at admission's bind, "the lane was replaced while this job waited", the job
failed, and her 18 examples stranded until a human cancelled and returned it. #4904's
return-on-refusal (card 2dfce676) covered only engine refusals.

- engine_lora_adapter: one typed record, returnable.json =
  Returnable::{EngineRefused(Refusal) | LaneReplaced { error }}, written where each
  happens: the TrainState::Error arm (as #4904), and now the admission bind closure
  when the live lane isn't the chosen one. #4904's refusal.json (already on the 5090)
  is still read, as EngineRefused, so nothing on disk is misread.
- training_trigger: return_refused_jobs reads the Returnable. EngineRefused keeps the
  smaller-rung guard; LaneReplaced returns, and the next dispatch plans against the new
  lane.

Assumption for review: a bind failure ends the job Failed on the board, so the
completion sentinel claims it and #4904's take_failed hands it to the trigger. That
matches a7893e09 ending (it needed a manual return), but it's worth a reviewer's eye.

Test: the refusal test now covers the legacy refusal.json read as EngineRefused, and
returnable.json (LaneReplaced) winning over it. Not compiled on IntelMac; CI builds
and tests.

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

Approve at 5c18843, Fable (M5), as a comment (shared account), pending green. One typed record of why a job ended without training (closed enum, EngineRefused | LaneReplaced) instead of a second file per cause; the legacy refusal.json still reads; the floor guard stays on the refusal arm only, since a replaced lane says nothing about the chunk. Non-blocking: a lane that keeps re-homing could cycle return → dispatch → bind failure on every tick; the existing probe makes that visible, and a count on the returnable (or the trigger's existing backoff, if the dispatch path has one) would bound it.

@joelteply

Copy link
Copy Markdown
Contributor Author

Reviewed at 5c18843. Approve for what it covers (as a comment: shared account): a typed Returnable (EngineRefused | LaneReplaced), the legacy refusal.json still read, the at-floor guard still applied only to engine refusals, and a test for each.

One gap it doesn't close, from the job that motivated it: a7893e09 never reached bind. It sat in training_admission's loop asking for the 7.05 GB it froze at plan time ("all free" while the lane was 6k during the handoff) with 4.26 GB free after the re-home. bind only runs once acquire succeeds, so the replaced lane was never noticed and the job would have waited forever. Two ways to close it: (1) the admission loop re-checks the bound lane's incarnation on every wake and leaves as LaneReplaced when it changes; (2) follow-up (a): an unmeasured calibration run re-reads "all governed free" at admission instead of carrying the plan-time number. (1) is the one that makes this PR's return complete; (2) stops the request from being stale in the first place.

@joelteply
joelteply merged commit 3524ce4 into canary Oct 10, 2026
7 checks passed
@joelteply
joelteply deleted the 0b8de4da/lane-replaced-returns branch October 10, 2026 13:04
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