Repository navigation
A proven pool says "none" instead of 0, and its contract's backend is the typed ServingBackend (Fable's notes on #5846, card 6a56be19) - #5848
Merged
joelteply merged 1 commit intoNov 8, 2026
Conversation
… the typed ServingBackend (Fable's notes on #5846, card 6a56be19) - proven_pool::proven and Proven::of return Option<u64>; Seated.proven is Option<u64> (None when the budget is steady or nothing is proven); launch_pool floors with the proof only when there is one (map_or(fit_pool, ..)), and pool_growth::recovering reads None as no recovery. - PoolContract.backend is kv_cache_plan::ServingBackend, which now derives serde with the same lowercase names its label() gives, so a saved record's bytes are unchanged (FORMAT stays 1). cache_type and engine stay text: their owners (KvCachePlan, the slot stamp) hold them as text, and typing those owners is a change of its own. Tests: a different backend inherits nothing; recovering(_, None) is no recovery (mutation-proved: reading None as u64::MAX fails it). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
deleted the
6a56be19/proven-pool-typed-contract-fields-and-no
branch
November 8, 2026 06:04
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.
How this serves the minds: the relaunch floor from #5846 can no longer mistake "nothing proven" for a 0-token proof, and a pool proven on one backend never floors a launch on another. Path step 1 (Fast), goal 9. Card 6a56be19 (Fable's non-blocking notes on #5846).
The change
proven_pool::provenandProven::ofreturnOption<u64>.Seated.proven: Option<u64>isNonewhen the budget is steady or nothing is proven.launch_poolfloors with the proof only when one exists:seated.proven.map_or(fit_pool, |p| fit_pool.max(p)).pool_growth::recoveringreadsNoneas no recovery.Seated.provendoc no longer says "in this core run": it is kept across restarts since A model's proven pool survives a core restart and holds only under the engine and KV plan it ran on (card 8a983e31, slice 1) #5846.PoolContract.backendiskv_cache_plan::ServingBackend, which now derives serde withrename_all = "lowercase". Those are exactly the nameslabel()gives, so saved records keep their bytes andFORMATstays 1.cache_typeandenginestay text, because their owners hold them as text:KvCachePlan.cache_typetakes arbitrary operator overrides, and the slot stamp is a file's text. Typing those owners is its own change.Measured
Source and tests only; nothing deployed. Worktree 6a56be19 on canary 5e2ba8a, IntelMac, 2026-11-08.
cargo test -p continuum-engine --features metal --lib -- proven_pool kv_cache_plan: 13 passed. The new case is that a different backend inherits nothing.cargo test -p continuum-serving --features metal --lib -- pool_growth one_launch dyno serving_daemon --skip reconcileplus the two host-specific budget skips: 121 passed. Those two budget tests fail identically at base on this host, as shown on A model's proven pool survives a core restart and holds only under the engine and KV plan it ran on (card 8a983e31, slice 1) #5846.Noneasu64::MAXinrecoveringfailspool_growth's test.cargo run -p source-hygiene --bin ratchets -- origin/canary: exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE