Repository navigation
Conversation
… checkpoints and pages; a resident's bytes are a pool-owned handle (host-pool slice 3) From fable/host-pool (900617b, 3cf8a4e, ff1708c, 79b1929), final form. The engine's host memory as ONE pool like a game engine's texture streamer: bytes are reserved before a resident is copied (its whole peak); the reservation names the lowest-valued unpinned residents to evict, and an evicted resident stays charged until its owner physically frees it; value is one unit across kinds (seconds of prefill saved per byte kept, UNMEASURED explicit, never guessed); pinned residents (restore or save in flight) are never evicted; the budget is the core's grant keyed by engine instance and a rising generation; outcomes are std::expected with typed reasons. host_bytes: a resident's bytes as an RAII handle the pool owns, shared by reference. No call sites yet: wiring replaces the prompt cache's own limit and disk-tier guesses. Receipt (M5, Apple clang 21): test-server-host-pool ok (7 scenarios, 20,000 mixed steps) and test-server-host-bytes ok, from the cmake build and standalone at -std=c++23 -Wall -Wextra -Werror under -fsanitize=address,undefined: 0 reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
Slice 3 of the unmerged
fable/host-poolwork, stacked on #135. This replaces the prompt cache's guess-and-refuse memory model with one streaming pool (CONTINUUM-ENGINE 4.7.6; Joel, 2026-11-16: "dynamic stream based allocation", not "stops and failures").What it adds (headers and tests only, no call sites yet)
server_host_pool: prompt-cache entries, checkpoints and RAM pages are kinds of resident in one pool with one byte budget, like a game engine's texture streamer.std::expected, whereawaiting_releasemeans "free these, then reserve again".host_bytes: a resident's bytes as an RAII handle the pool owns, shared by reference.Measured (M5, Apple clang 21, 2026-11-16)
test-server-host-pool: ok (7 scenarios, 20,000 mixed steps).test-server-host-bytes: ok.-std=c++23 -Wall -Wextra -Werrorunder ASan and UBSan: 0 reports.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo