Skip to content

A replacement learning workspace covers the one it replaces, so multi-buffer engines are not refused 'uncovered' - #5922

Merged
joelteply merged 1 commit into
canaryfrom
3ee22c66/a-replacement-learning-workspace-covers
Nov 11, 2026
Merged

joelteply merged 1 commit into
canaryfrom
3ee22c66/a-replacement-learning-workspace-covers

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

…-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
joelteply merged commit 16dead4 into canary Nov 11, 2026
19 checks passed
@joelteply
joelteply deleted the 3ee22c66/a-replacement-learning-workspace-covers branch November 11, 2026 03:53
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