Repository navigation
A replacement learning workspace covers the one it replaces, so multi-buffer engines are not refused 'uncovered' - #5922
Merged
joelteply merged 1 commit intoNov 11, 2026
Conversation
…-buffer engines are not refused 'uncovered'
The engine's training workspace is engine-wide and its custody passes from one reference to the
next: claim_plan refuses ('uncovered') a replacement that does not cover every row the previous
reference was registered with. genome/learner/memory.rs replaced the workspace with the new
example's rows alone. That works on a single-buffer CPU engine, where a replacement only happens
when the new need is larger, but on an engine with GPU and host rows a longer example can need
more on one buffer and less, or nothing, on another, and her learn is refused.
Found on the fork fixture (fork #107, CPU, -np 2): A registered a 7,026,688-byte workspace, the
reloaded B's short reply needed 2,573,344, and B's replacement was refused every time until the
fixture covered the previous registration.
widened(held, required): the old rows plus the new need, each buffer at the larger. Used when the
held workspace does not cover the example; the first workspace is still the example's own rows.
Test: a_replacement_workspace_covers_the_one_it_replaces_and_the_new_need (GPU more, host less, a
buffer only the old one held). Mutation: widening from nothing fails 'the replacement covers every
old row'. continuum-genome --features metal, IntelMac. Touched-file ratchets pass.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
deleted the
3ee22c66/a-replacement-learning-workspace-covers
branch
November 11, 2026 03:53
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 engine's training workspace is engine-wide and its custody passes from one reference to the
next: claim_plan refuses ('uncovered') a replacement that does not cover every row the previous
reference was registered with. genome/learner/memory.rs replaced the workspace with the new
example's rows alone. That works on a single-buffer CPU engine, where a replacement only happens
when the new need is larger, but on an engine with GPU and host rows a longer example can need
more on one buffer and less, or nothing, on another, and her learn is refused.
Found on the fork fixture (fork #107, CPU, -np 2): A registered a 7,026,688-byte workspace, the
reloaded B's short reply needed 2,573,344, and B's replacement was refused every time until the
fixture covered the previous registration.
widened(held, required): the old rows plus the new need, each buffer at the larger. Used when the
held workspace does not cover the example; the first workspace is still the example's own rows.
Test: a_replacement_workspace_covers_the_one_it_replaces_and_the_new_need (GPU more, host less, a
buffer only the old one held). Mutation: widening from nothing fails 'the replacement covers every
old row'. continuum-genome --features metal, IntelMac. Touched-file ratchets pass.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE