Repository navigation
feat(pager): expert-pager-policy leaf crate + moe-pager-driver — RUN-2 unblocked on windows-msvc (#276) - #2071
Merged
Conversation
…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
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.
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 — everycapacity::*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) + streamingTokenSegmenter(her exact reappearance boundary + matrix dedup) +TkeyTableloader (tested against her real JSON shape incl. the FNV self-check key).bin/moe-pager-driver— the RUN-2 loop: tailGGML_MOE_TRACE_FILE, segment, feedBanditPlanController, 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