Skip to content

A learner pages out when her pass ends, and a memory shortfall ends the pass instead of waiting - #5925

Merged
joelteply merged 1 commit into
canaryfrom
07fd25e2/the-learner-takes-each-step-s-arena-agai
Nov 11, 2026
Merged

joelteply merged 1 commit into
canaryfrom
07fd25e2/the-learner-takes-each-step-s-arena-agai

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel 2026-11-11: "No such thing as permanent in our dynamic system. Why would you grab what you
aren't actively using." A pass now ends by settling: publish what she learned since her newest
generation, then unload her shadow (its optimizer with it), release her leases, and release the
engine's learning workspace with its last learner. Her next pass seats her from the durable
generation and restores it. Progress a checkpoint did not confirm keeps her seated, so it is
published, never learned again.

A memory shortfall (seat or cover) now ends the pass holding nothing with a typed probe
(training.in_place.memory_short); the 30 s tick or a serving change runs the next pass. The
memory wait, its engine-replacement select and their test are deleted.

Live-engine fixture (qwen2.5-0.5b, CPU fork 316ad8b92 line): after the first pass nothing is
seated, custody holds nothing and the engine holds none of her residencies; a third arrival in the
same life restores the generation and commits exactly one more step.

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

…he pass instead of waiting

Joel 2026-11-11: "No such thing as permanent in our dynamic system. Why would you grab what you
aren't actively using." A pass now ends by settling: publish what she learned since her newest
generation, then unload her shadow (its optimizer with it), release her leases, and release the
engine's learning workspace with its last learner. Her next pass seats her from the durable
generation and restores it. Progress a checkpoint did not confirm keeps her seated, so it is
published, never learned again.

A memory shortfall (seat or cover) now ends the pass holding nothing with a typed probe
(training.in_place.memory_short); the 30 s tick or a serving change runs the next pass. The
memory wait, its engine-replacement select and their test are deleted.

Live-engine fixture (qwen2.5-0.5b, CPU fork 316ad8b92 line): after the first pass nothing is
seated, custody holds nothing and the engine holds none of her residencies; a third arrival in the
same life restores the generation and commits exactly one more step.

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

Fable review of #5925 at 68eb0fa (card 07fd25e2), source read of the whole diff (not run here: the M5 is serving). PASSED.
Verified at their lines: await_memory, Waited, while_engine_serves and the board subscription are deleted, and every memory shortfall (seat, cover, step) ends the pass holding nothing with training.in_place.memory_short; settle() replaces publish(): checkpoint, then kept_seated only while seated.progress is non-empty (unconfirmed progress is published next pass, never relearned), else stop() unloads her shadow (freeing its optimizer) and releases her leases, and the engine workspace releases with its last learner (workspace_unconfirmed keeps it held and retries on a later settle); settle runs every pass (the stepped_any guard is gone; an unseated key returns false). The live-engine test asserts the contract: nothing seated after the pass, custody (0,0), residencies back to the baseline, and the next pass restores and commits exactly one more step.
Non-blocking: (1) each pass now pays unload + reseat + restore; probe that cost (ms per pass vs the pass's learn ms) so Phase 2 (de1a9e5a) is decided by a receipt; (2) the live test waits for seated_on() == 0 in a 100 ms sleep loop; waiting on the seating change itself would be the real primitive.

@joelteply
joelteply merged commit 8135556 into canary Nov 11, 2026
13 checks passed
@joelteply
joelteply deleted the 07fd25e2/the-learner-takes-each-step-s-arena-agai branch November 11, 2026 07:21
joelteply added a commit that referenced this pull request Nov 14, 2026
… (timer audit H3, H4, H14, H17, H18) (#5991)

H3 lanes: parked non-directed callers wait on `released` alone. It now fires after
every change that can admit (budget permit back, ticket given up or granted, budget
grant aging an ambient caller, held-work wait ending, grown pool), and the release's
wake fires after its permits return (it ran in the permit's Drop body, before the
fields dropped: the missed wake the three 1 s arms hid). Arms deleted.
H4 lane_send: a 503/refused POST mid-relaunch resends on the serving daemon's next
live publish after the POST, bounded by DEFAULT_SERVING_WAIT; linear backoff and its
two constants deleted.
H14 training_admission: await_training_change and SERVING_BUSY_RETRY deleted (no
production caller since #5925); TrainingWait::Serving carries the typed GateRefusal.
H17 embed lease: the retry waits on the LeaseBoard change that makes room, bounded
by the authority's own tick, instead of a fixed 2 s sleep.
H18 lane memory headroom: re-judged on each MemoryPressureMonitor publish
(subscribe_published) instead of a 5 s poll.


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