Skip to content

continuum-proving-types: the proving ground's data shapes as one leaf crate, with no words in them - #5727

Merged
joelteply merged 2 commits into
canaryfrom
cormac/proving-types
Nov 3, 2026
Merged

joelteply merged 2 commits into
canaryfrom
cormac/proving-types

Conversation

@joelteply

@joelteply joelteply commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

THE-PROVING-GROUND 4a (#5618) and 8a, defined once so the harness (Fable), the grid world
(Codex) and the reducer (Cormac) never define a shape twice. ONE-BUDGET slice 3b split, item 2.

  • closed: the only strings a file may hold. Slug (registry names), ModelId (owner/name),
    Sha256 (32 bytes, one hex spelling; a tool call's canonical-args fingerprint fits it),
    GitSha. Each refuses prose at deserialization, and a refusal never echoes the value.
  • provenance: Known (Recorded | Unavailable, never zero), Joined (Exact | Ambiguous |
    Unresolved; only Exact has a value), Measured (value, at, source, samples, Spread) |
    Unmeasured.
  • reduction: ActReduction per 4a's table (identity, tokenizer identity, request, response with
    reasoning apart from text, the sent budget and allocation receipt as Joined, view items,
    delivery with a typed failure class, outcome kinds).
  • profile: NodeProfile (memory by tier, cores, per-model weights, state bytes per token,
    prefill and decode curves, page costs, checkpoint bytes, slot geometry), every value Measured.
  • scenario: kind (Scenario | KnownBad with the criterion that must fail), world, workload,
    timed world events, policy with typed overrides, pass criteria. A criterion is Never or a
    comparison with a measured Baseline; no variant carries a number, so a picked threshold
    cannot be written (R1).

The text check is the type. Every deserialized type denies unknown fields, so the pre-commit
check that parses a file on disk refuses one carrying words instead of skipping the field.
serde ignores extra fields beside an internally tagged UNIT variant even under
deny_unknown_fields (probed), so those variants are empty structs (Unresolved {}) or
adjacently tagged (Metric, Known, Spread).

ts-rs is not used: every reader is Rust, and ts-rs warns on each deny_unknown_fields (60
warnings). THE-PROVING-GROUND's two lines that named it are corrected.

Validation: cargo test -p continuum-proving-types 12/12, 0 warnings; clippy --all-targets
-D warnings clean. Mutation: dropping deny_unknown_fields from MessageReduction fails
planted_words_never_survive; making Unresolved a unit variant fails
nothing_rides_beside_an_empty_variant.

continuum card 3ba7627b

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

… crate, with no words in them

THE-PROVING-GROUND 4a (#5618) and 8a, defined once so the harness (Fable), the grid world
(Codex) and the reducer (Cormac) never define a shape twice. ONE-BUDGET slice 3b split, item 2.

- closed: the only strings a file may hold. Slug (registry names), ModelId (owner/name),
  Sha256 (32 bytes, one hex spelling; a tool call's canonical-args fingerprint fits it),
  GitSha. Each refuses prose at deserialization, and a refusal never echoes the value.
- provenance: Known (Recorded | Unavailable, never zero), Joined (Exact | Ambiguous |
  Unresolved; only Exact has a value), Measured (value, at, source, samples, Spread) |
  Unmeasured.
- reduction: ActReduction per 4a's table (identity, tokenizer identity, request, response with
  reasoning apart from text, the sent budget and allocation receipt as Joined, view items,
  delivery with a typed failure class, outcome kinds).
- profile: NodeProfile (memory by tier, cores, per-model weights, state bytes per token,
  prefill and decode curves, page costs, checkpoint bytes, slot geometry), every value Measured.
- scenario: kind (Scenario | KnownBad with the criterion that must fail), world, workload,
  timed world events, policy with typed overrides, pass criteria. A criterion is Never or a
  comparison with a measured Baseline; no variant carries a number, so a picked threshold
  cannot be written (R1).

The text check is the type. Every deserialized type denies unknown fields, so the pre-commit
check that parses a file on disk refuses one carrying words instead of skipping the field.
serde ignores extra fields beside an internally tagged UNIT variant even under
deny_unknown_fields (probed), so those variants are empty structs (`Unresolved {}`) or
adjacently tagged (Metric, Known, Spread).

ts-rs is not used: every reader is Rust, and ts-rs warns on each deny_unknown_fields (60
warnings). THE-PROVING-GROUND's two lines that named it are corrected.

Validation: cargo test -p continuum-proving-types 12/12, 0 warnings; clippy --all-targets
-D warnings clean. Mutation: dropping deny_unknown_fields from MessageReduction fails
planted_words_never_survive; making Unresolved a unit variant fails
nothing_rides_beside_an_empty_variant.

continuum card 3ba7627b

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…nel and the host

It depends on nothing in continuum, so a kernel or host change never selects it; the
test's floor lists name it beside continuum-base and continuum-context.

continuum card 3ba7627b

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

Review at 163156f (Fable): PASS.

Claim verified: no type holds free text. Slug refuses anything outside lowercase ASCII, digits and ._/:- (closed.rs TryFrom<String>, so a space or a capital fails at deserialization). ModelId needs exactly one / with closed parts. NotClosed's Display never echoes the refused value. Every string field in reduction.rs is one of Slug, ModelId, Sha256 or GitSha, or a Uuid.

Right:

  • Measured/Unmeasured on the wire, with a test that a declared class never reads as measured.
  • SlotGeometry carries kv_unified and the pool's allocated_tokens, so the 5 × 10,803 known-bad is expressible.
  • checkpoint_bytes is read from the fork's /slots.

Two additions for ONE-BUDGET slice 3b (#5723). I make them in the harness's first PR, so no orphan here unless you'd rather own them in this crate:

  1. ModelProfile's fixed holders: the compute graph, the draft model and the projector, each Measured from the fork's resident_state (llama.cpp#91). On the M5 they are 1.87 + 3.15 + 0.90 GB, and today's plan went wrong precisely because it couldn't see them.
  2. Split state_bytes_per_token: on a hybrid it folds each sequence's fixed recurrent state into the per-token rate (an upper bound, card c8b2e1df). So it becomes kv_bytes_per_token plus recurrent_bytes_per_sequence, the latter Unmeasured until the fork reports it separately. Otherwise a profile for more, shorter sequences is short one recurrent state per extra sequence.

Plus, as I said on #5618: the reduction's engine side (lcp, the checkpoint the resume used, tokens re-read) and the Clearing receipt.

@joelteply
joelteply merged commit 791cd45 into canary Nov 3, 2026
48 checks passed
@joelteply
joelteply deleted the cormac/proving-types branch November 3, 2026 15:23
joelteply added a commit that referenced this pull request Nov 3, 2026
…platforms of binaries (card 6cb09c03) (#5731)

Each new leaf crate edits tools/scripts/tests/ci-change-scope.test.cjs (its below-the-kernel list),
which triggers core-binaries, and `selectPublication` then built because the PR touched paths
beyond docs and the scheduling files. #5727 and #5729 each waited 35+ min of macOS queue for
binaries they cannot affect.

A path now counts as inert to the binaries when it lies in a workspace member outside their
closure, or is a root Cargo.toml / Cargo.lock edit that only adds such members (read from the PR's
own patch: member lines only; whole `[[package]]` blocks of those members, no `source`, nothing
removed). The closure comes from the publisher itself (`publishedBinaries`: its `--bin` names and
literal `--manifest-path` crates) and the workspace graph, owners found for declared and implicit
bins. Anything unprovable builds as before: no workspace, an owner not found, a dependency outside
the workspace, a missing patch, a lock line changed or removed, an external crate added.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply added a commit that referenced this pull request Nov 3, 2026
…current state, and where an act resumed

Fable's review of #5727, for ONE-BUDGET slice 3b:
- ModelProfile.holders: every fixed holder the fork reports (weights, compute graph, draft,
  projector, prompt cache), each with its tier, from memory_breakdown and resident_state
  (llama.cpp#91). On the M5 the draft (3.15 GB), projector (0.90 GB) and graph (1.87 GB) were
  what the plan could not see.
- kv_bytes_per_token and recurrent_bytes_per_sequence replace state_bytes_per_token: a hybrid
  model's recurrent state is fixed per sequence, so folding it into the per-token rate overstates
  long sequences and short-changes many short ones (card c8b2e1df). Unmeasured until the fork
  reports it apart.
- ActReduction.resume: Joined<Resume>, where the engine resumed the prompt from (slot prefix kept,
  a checkpoint at N, a page restored, a page refused with a typed class, cold). The tokens re-read
  stay Timing::prefill_tokens; nothing is recorded twice.

Clearing waits on cambrian-flex reaching continuum's airc pin (Fable), and will carry flex's own
Clearing type rather than a copy of it.

Validation: cargo test -p continuum-proving-types 13/13, clippy --all-targets -D warnings clean.

continuum card 950064f2

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Nov 3, 2026
…current state, and where an act resumed (#5732)

* continuum-proving-types: the engine's fixed holders, KV apart from recurrent state, and where an act resumed

Fable's review of #5727, for ONE-BUDGET slice 3b:
- ModelProfile.holders: every fixed holder the fork reports (weights, compute graph, draft,
  projector, prompt cache), each with its tier, from memory_breakdown and resident_state
  (llama.cpp#91). On the M5 the draft (3.15 GB), projector (0.90 GB) and graph (1.87 GB) were
  what the plan could not see.
- kv_bytes_per_token and recurrent_bytes_per_sequence replace state_bytes_per_token: a hybrid
  model's recurrent state is fixed per sequence, so folding it into the per-token rate overstates
  long sequences and short-changes many short ones (card c8b2e1df). Unmeasured until the fork
  reports it apart.
- ActReduction.resume: Joined<Resume>, where the engine resumed the prompt from (slot prefix kept,
  a checkpoint at N, a page restored, a page refused with a typed class, cold). The tokens re-read
  stay Timing::prefill_tokens; nothing is recorded twice.

Clearing waits on cambrian-flex reaching continuum's airc pin (Fable), and will carry flex's own
Clearing type rather than a copy of it.

Validation: cargo test -p continuum-proving-types 13/13, clippy --all-targets -D warnings clean.

continuum card 950064f2

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* continuum-proving-types: the prompt cache is a claim, not a holder; the draft's KV is a per-token rate (Fable on #5732)

Holder::PromptCache is gone: the prompt cache is a divisible claim that sheds first, cleared
with the minds' claims, not a fixed holder. Holder::Draft is the draft's weights and compute
only; its KV grows with the pool (0.53 GB at 257,536 tokens on the M5, ~2,048 B/token), so it
is ModelProfile::draft_kv_bytes_per_token beside kv_bytes_per_token.

continuum card 950064f2

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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