Skip to content

feat(pager): expert-pager-policy leaf crate + moe-pager-driver — RUN-2 unblocked on windows-msvc (#276) - #2071

Merged
joelteply merged 1 commit into
canaryfrom
feat/expert-pager-policy-leaf-crate
Aug 1, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/expert-pager-policy-leaf-crate

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Unblocks RUN-2 on BigMama's box: continuum-core can't compile on windows-msvc (unix-socket surface), so the pure policy moves to a leaf crate (core/expert-pager-policy, std+serde only, windows-clean by documented constraint) with continuum-core re-exporting through shims — every capacity::* path unchanged, one source of truth.

New beyond the moved modules:

  • segment.rs — trace parsing (12B LE, partial-tail guard for her stdio-buffered writer) + streaming TokenSegmenter (her exact reappearance boundary + matrix dedup) + TkeyTable loader (tested against her real JSON shape incl. the FNV self-check key).
  • bin/moe-pager-driver — the RUN-2 loop: tail GGML_MOE_TRACE_FILE, segment, feed BanditPlanController, rewrite the plan every 8 tokens with a small rolling top-256 pin set, truncation-reset on new serves, per-token glass-box stdout.

End-to-end validated against her live fixture: 83,968 records → the 1472-expert working set, bandit visibly adapts (decay 0.99→0.0→0.30), serving hit climbs 0→0.69 warm, plans rewrite on cadence, zero unknown tkeys.

12 leaf + 103 capacity tests green; both clippy gates clean. Explicit-path staging.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…r — RUN-2 unblocked on windows-msvc (#276)

BigMama's blocker: continuum-core cannot compile on x86_64-pc-windows-msvc
(61 unix-socket refs), so the RUN-2 driver could never cargo-run beside
her CUDA serve. Fix per the compression principle: the pure policy moves
to a LEAF crate (std + serde only, windows-clean by constraint documented
in its Cargo.toml) and continuum-core re-exports it — one source of
truth, two consumers, every existing capacity::* path unchanged via
shims (ExpertId re-exported through expert_residency).

New in the leaf beyond the moved modules:
- segment.rs: trace-record parsing (12B LE tkey+e, partial-tail guard
  for the stdio-buffered writer) + streaming TokenSegmenter (her exact
  reappearance boundary rule, (layer,expert) matrix dedup) + TkeyTable
  loader for her tkey-to-layer-matrix.json. 5 tests incl. the torn-tail
  guard and her real JSON shape with the FNV self-check key.
- bin/moe-pager-driver: the RUN-2 loop — tail GGML_MOE_TRACE_FILE from
  offset, segment tokens, feed BanditPlanController, rewrite the plan
  every N tokens with a SMALL ROLLING top-256 pin set (the RUN-1
  lesson), truncation-reset on new serves, per-token glass-box stdout
  (serving hit / chosen decay / per-arm rewards / unknown-tkey count).

Validated against her live fixture end-to-end: 83,968 records segment
to the 1472-expert working set, the bandit visibly adapts (decay 0.99
-> 0.0 -> 0.30 as arms separate), serving hit climbs 0 -> 0.69 warm,
plans rewrite on cadence with 256 pins, zero unknown tkeys.

12 leaf tests + 103 continuum-core capacity tests green; both clippy
gates clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 5fc2f3f into canary Aug 1, 2026
4 checks passed
@joelteply
joelteply deleted the feat/expert-pager-policy-leaf-crate branch August 1, 2026 05:48
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