Skip to content

docs(architecture): write the missing EXPERT-PAGING-CONTROL-LAW.md the policy crate cites - #2084

Merged
joelteply merged 1 commit into
canaryfrom
docs/expert-paging-control-law
Aug 1, 2026
Merged

joelteply merged 1 commit into
canaryfrom
docs/expert-paging-control-law

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

expert-pager-policy/src/lib.rs has cited docs/architecture/EXPERT-PAGING-CONTROL-LAW.md since the #276 extraction, but the file never existed — flagged by the beta-gate audit as the undocumented control law behind the serving campaign's headline number.

Written entirely from the shipped design (nothing aspirational):

  • The plant: streaming MoE on consumer hardware, WASTE baseline 0.32–0.36 tok/s, and the two measured facts that bound the design (static pins crater 62%→34%; no fixed decay wins both phases).
  • The seam: mechanism (C++ ResidencyCache, per-token mtime poll) vs policy (Rust BanditPlanController), meeting only at the plan file.
  • Observation: 12-byte trace wire, token segmentation rule, prefill-boundary warm start with the measured tail-beats-stability datum (47% at 1/3 size; union 65–66%; stability 1.4%).
  • The scoring law: EMA + decay ladder + online bandit, with her pinned reproduction numbers (49.8% vs 47.8%, +5 pts offline) and the ML-ratchet integrity rule.
  • Actuation: atomic plan-file wire, the optional tier split (byte-identical v1 degenerate), pins-as-bias semantics, identity discipline (no hashed uids on the wire).
  • The lever stack: top-8 = 0.53 tok/s = 1.65× WASTE measured; Fix CLI module compatibility and implement basic functionality #23 compute lever; imatrix-gated precision; prefetch overlap; ~3× stack projection on the validated instrument.
  • Falsifiability: ledger rows via benchmark/record; the capture glass box + serving console.

Docs-only change; fixes the dangling rustdoc reference (audit item 36).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…e policy crate cites

expert-pager-policy/src/lib.rs has pointed at this doc since the #276
extraction and it never existed — flagged by the beta-gate audit as the
undocumented control law behind the campaign's headline number. Written
from the shipped design, nothing aspirational: the mechanism/policy seam
(her C++ ResidencyCache vs our BanditPlanController), the 12-byte trace
wire + token segmentation + prefill-boundary warm start (recency beats
stability: tail 47% at 1/3 size, union 65-66%), the EMA/decay-bandit
scoring law with her pinned numbers (49.8 vs 47.8, +5pts offline), the
atomic plan-file wire with the optional tier split (byte-identical v1
degenerate), identity discipline (no hashed uids on the wire), the
measured lever stack (top-8 = 0.53 tok/s = 1.65x WASTE; #23 compute
lever next; precision imatrix-gated; prefetch overlap), and the
falsifiability rules (ledger rows via benchmark/record, capture glass
box).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 4a34913 into canary Aug 1, 2026
2 checks passed
@joelteply
joelteply deleted the docs/expert-paging-control-law branch August 1, 2026 12:02
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