Repository navigation
A job whose examples all parked is returned once her adopted window can train one of them, by receipt, never by an operator and never twice (card 565b3b64, gate 3) - #5563
Conversation
…an train one of them, by receipt, never by an operator and never twice (card 565b3b64, gate 3) Kimi's reviewed correction (2de02f40, 11 lived turns, 51,670-64,041 tokens) parked whole in a job that therefore never ran and ended FAILED. The remainder route returned parked examples from COMPLETED jobs only, the refused-job route only jobs with a returnable.json, and the board's failed list is in-memory, so an all-parked job had no route back at all; growing her lane (#5556) brought none of it back. - job_board: CompletedJob -> EndedJob { .., trained }. The runtime claim and the boot ledger pass list completed AND failed jobs (a completion outranks a failure row); input_returned() reads whether any return already took a job's input. - return_parked_remainder: a failed job qualifies only when it sent nothing and no other return took its input. Every remainder now waits (Remainder::Waiting) until her ADOPTED window (served_window_for: the live lane's launch record, the number a partition is measured at) reaches the smallest window that trains one parked example whole. A return before then re-parks them in a job that fails, which is how the correction stranded. A partition with no measured rows (before fork #51) returns as before. - return_job refuses a job whose remainder receipt exists: the two routes have different replay identities, so each refuses what the other returned. - training_trigger: the pass takes ended jobs, holds waiting ones, and reports a wait only when (needed, served) changes. Codex's serving watch (#5562) wakes it; the boot pass catches a window that already grew. Tests: the boot replay lists completed and failed jobs, the killed-by-reboot one not at all; an all-parked failed job waits with no lane and at 49,664, returns at 64,256 once, refuses both second routes, and a failed job that sent examples or was already returned is left alone. Not built locally: this Intel serving node has an empty target and slow residents; CI compiles and runs these. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
… no longer skips the remainder pass a grown window unblocks (Cormac, pairing on #5562) recover_pass() = resume_orphans_once, return_refused_jobs, return_parked_remainders, recover_tick: tick() and the serving follower both call it. The wake ran two of the four and missed return_parked_remainders, where #5563's all-parked return and its window predicate live. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…s under the size gate beside #5562's recover_pass (card 565b3b64) Pure move of return_parked_remainders into training_trigger/remainders.rs: 989 -> 912 lines. #5562 adds recover_pass to the same file; together they stay under 1,000. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…entity, so the two routes, a race and a crash before the receipt are one return (Codex on #5563, card 565b3b64) The cross-route guards ran before the async return: both routes could pass them and append under different identities, and a crash after the bucket took a remainder but before its receipt left the same hole. A failed job that sent nothing parked its whole input, so it now returns as ReturnScope::Whole, return_job's identity; replay recognition dedupes every case. The receipt check in return_job and board.input_returned (now unused) are deleted. Test: after the pass returns it, the operator's return is a replay; a lost receipt replays once; both routes joined concurrently add the examples once; a failed job that sent examples is left to the refused-job route. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Review at 9c9b92f: one blocking cross-route replay issue. The failed all-parked job uses ReturnScope::Parked, whereas return_job uses ReturnScope::Whole. The two preflight checks (input_returned and parked-returned.json) precede asynchronous acceptance. Concurrent calls can both pass and accept distinct submission IDs; a crash after remainder acceptance but before writing its file receipt creates the same hole. For a failed job whose validated partition sent nothing and parks the entire original input, use the canonical Whole return identity. Keep the separate Parked identity for trained partial remainders. Add a fixture crossing the acceptance-before-receipt boundary and the other return route; accepted example count must remain unchanged. Sent directly to Cormac to amend while review continues. The adopted-window predicate, retained Waiting entries, and boot replay of failed terminal jobs address the previously confirmed stranded-job gap. These observations are not a merge approval until the replay issue and CI are resolved. |
…ross its awaits (Codex on #5563) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Source PASS at exact 941d2ae, conditional on passing CI. Verified the failed all-parked route uses the canonical Whole identity after full-coverage validation, retaining Parked identity for trained partial remainders. The amended fixtures cover a missing receipt and simultaneous operator/automatic return without duplicate bucket examples. The final delta adds Sync to the callback used across async recovery. The adopted-window predicate and boot reconciliation address the stranded failed-job path. Pair with #5562's recovery wake; neither source review nor these fixtures establishes live learning acceptance. |
…nd the wake that triggers it land as one (card 565b3b64) One conflict in training_trigger.rs: #5562 added recover_pass where #5563 moved return_parked_remainders out to remainders.rs. Resolved: both modules (remainders, serving_wake), recover_pass kept, the moved body not duplicated (932 lines). My files are byte-identical to 941d2ae; #5562's are byte-identical to 1660c06. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
* Wake durable training recovery on actual serving changes * The serving wake and the tick run one recovery pass list, so the wake no longer skips the remainder pass a grown window unblocks (Cormac, pairing on #5562) recover_pass() = resume_orphans_once, return_refused_jobs, return_parked_remainders, recover_tick: tick() and the serving follower both call it. The wake ran two of the four and missed return_parked_remainders, where #5563's all-parked return and its window predicate live. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * Coalesce recovery ticks into the serving wake owner * Return recovery ownership to ticks when serving follower exits --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
The conflict in training_trigger.rs is the moved remainder pass: canary still holds it inline and this branch moved it to remainders.rs. Resolved to this branch: mod remainders kept, the inline body and its old doc dropped, recover_pass unchanged. Against canary the diff is exactly this card's 7 files (+310/-133); #5562's files are identical to canary. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…e, so a partition records and prices it (card a9e94342, gate 3) (#5569) * A waiting remainder whose demand serving was never told goes back once, so a partition records and prices it (card a9e94342, gate 3) The windows 5090, 2026-10-28 18:08Z (46b04ea): serving.training_growth=NoDemand, 2 lanes proposed at 51,694, against Kimi's smallest parked 2de02f40 example needing 51,712. TrainingDemand is written only by a partition (#5557); the stranded job was partitioned before that, and #5563 holds it until served >= needed, so no partition runs again and serving is never told its window. It would wait forever. - return_parked_remainder: below its window, a remainder is held only when every parked example is outstanding in her demand store (TrainingDemand::records_all); otherwise it goes back once (its receipt ends it, probe training.job.remainder_unrecorded), so the next dispatch's partition records it and prices it on the one pricing path. Nothing is priced outside the partition. - The pass passes her demand dir (genome root's training-demand), the store the partition writes and serving reads. Test: with demand recorded, the job still waits (no lane, 49,664) and returns at 64,256 as before; with none recorded, it goes back once at 49,664 and then reads AlreadyReturned. Not built locally (Intel serving node, engine build); CI compiles and runs it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * A remainder records its demand before it goes back, and a store that cannot answer or be written holds it (Codex on #5569, card a9e94342) - TrainingDemand::records_all reads strictly: a missing file is empty, but no store, an unreadable file or corrupt JSON is an error, never "not recorded". - An unrecorded remainder below its window records each parked example's window from its measured row (unpriced) BEFORE going back. A later all-parked job of the same examples then finds it recorded and waits, even if that partition's own write fails: the receipt no longer has to bound a cross-job loop. A failed record or an unanswering store holds the job (Internal; the pass asks again) and returns nothing. - Fixture: the successor job waits after the first returned; a corrupt store and a read-only one (skipped where the runner can still write it) hold the job with nothing added. Not built locally; CI compiles and runs it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * An unrecorded remainder is recorded only when every parked example has exactly one measured row; otherwise it is refused and nothing returns (Codex on #5569, card a9e94342) A partition missing (or duplicating) a parked example's row recorded only part of its demand, returned, and its successor found it unrecorded and returned again. Now that is Invalid: held for a human, never retried and never returned. Test: a partition missing row 2 is refused naming example 2, nothing added. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
…any job exists (dispatch retries), and a pass's return dispatches its bucket below threshold (card d53a9e0e, gate 3) (#5575) * A returned correction trains: an engine still loading refuses before any job exists (dispatch retries), and a pass's return dispatches its bucket below threshold (card d53a9e0e, gate 3) The windows 5090 after b638145 (Codex, 2026-10-28 20:16-20:22Z): #5563 returned Kimi's canonical jobs, then (1) re-dispatched job c9e5b989 failed in 2 ms on /train/measure 'HTTP 503 Loading model', ended FAILED with no partition and stranded its examples; (2) her code/owner bucket held 11 returned examples under minExamples 16, never firing. (1) measure_examples types its failure (MeasureError::NotReady for HTTP 503 or a refused connection). create_job checks the served-window measure before request.json, a run or a partition exist and refuses TrainerUnavailable, the trigger's retryable refusal: the batch stays owned and recovery retries it once the engine serves. (2) A recovery pass that returns examples (an ended job's parked remainder, an engine-refused job) dispatches that bucket at once through the flush verb's own dispatch (dispatch_returned): they met a threshold when first dispatched. A return happens only when her window can train one or a smaller chunk is left, so no loop. Tests: fake_lane 'loading' (503): TrainerUnavailable, nothing posted, no job dir; a returned batch below threshold dispatches once, whole, in order. Local (enrico, -j2): continuum-dreaming training_trigger 83/0, continuum-genome engine_lora_adapter 47/0; check --lib clean in both crates. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * A return's dispatch eligibility is durable: the accepted submission carries 'returned', and recovery dispatches its bucket below threshold, once across restarts (Codex on #5575) The flush after a return ran after its receipt; a crash between the two left the examples below threshold with AlreadyReturned, the same strand. Now PendingBatch.returned is persisted with the submission that accepts a return (submit_batch_inner, returned_job), kept exact per part through split (submission_returned), and ready_to_recover (the recovery tick only) dispatches a bucket holding one. Submit keeps its threshold; rows from before this read false, so no historical bucket is flushed. dispatch_returned is deleted: one dispatch path. Fixture: return accepted, core dies before any pass; owner 2's recovery dispatches it whole, owner 3's dispatches nothing more; a plain submit below threshold stays held. Mutation (ready_to_recover -> ready_to_dispatch) fails it at owner 0. Local (enrico, -j2): continuum-dreaming training_trigger 83/0; check --lib clean. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Kimi's reviewed correction (2de02f40, 11 lived turns, 51,670-64,041 tokens) parked whole in a
job that therefore never ran and ended FAILED. The remainder route returned parked examples
from COMPLETED jobs only, the refused-job route only jobs with a returnable.json, and the
board's failed list is in-memory, so an all-parked job had no route back at all; growing her
lane (#5556) brought none of it back.
pass list completed AND failed jobs (a completion outranks a failure row); input_returned()
reads whether any return already took a job's input.
took its input. Every remainder now waits (Remainder::Waiting) until her ADOPTED window
(served_window_for: the live lane's launch record, the number a partition is measured at)
reaches the smallest window that trains one parked example whole. A return before then
re-parks them in a job that fails, which is how the correction stranded. A partition with no
measured rows (before fork Build(deps-dev): Bump eslint from 9.24.0 to 9.26.0 #51) returns as before.
identities, so each refuses what the other returned.
(needed, served) changes. Codex's serving watch (Wake training recovery when actual serving changes #5562) wakes it; the boot pass catches a
window that already grew.
Tests: the boot replay lists completed and failed jobs, the killed-by-reboot one not at all; an
all-parked failed job waits with no lane and at 49,664, returns at 64,256 once, refuses both
second routes, and a failed job that sent examples or was already returned is left alone.
Not built locally: this Intel serving node has an empty target and slow residents; CI compiles
and runs these.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE