Skip to content

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 into
canaryfrom
6a56be19/proven-pool-typed-contract-fields-and-no
Nov 8, 2026
Merged

joelteply merged 1 commit into
canaryfrom
6a56be19/proven-pool-typed-contract-fields-and-no

Conversation

@joelteply

@joelteply joelteply commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

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

  • No 0 sentinel:
  • Typed backend:
    • PoolContract.backend is kv_cache_plan::ServingBackend, which now derives serde with rename_all = "lowercase". Those are exactly the names label() gives, so saved records keep their bytes and FORMAT stays 1.
    • cache_type and engine stay text, because their owners hold them as text: KvCachePlan.cache_type takes 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.

  • Engine: 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.
  • Serving: cargo test -p continuum-serving --features metal --lib -- pool_growth one_launch dyno serving_daemon --skip reconcile plus 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.
  • Mutation-proved: reading None as u64::MAX in recovering fails pool_growth's test.
  • Ratchets: cargo run -p source-hygiene --bin ratchets -- origin/canary: exit 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

… 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
joelteply merged commit cad75fe into canary Nov 8, 2026
32 checks passed
@joelteply
joelteply deleted the 6a56be19/proven-pool-typed-contract-fields-and-no branch November 8, 2026 06:04
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