Repository navigation
feat(capacity): GGML_MOE_PLAN_FILE atomic writer — Rust half of the policy→mechanism seam (#276 slice 3) - #2069
Merged
Merged
Conversation
…he policy->mechanism seam (#276 slice 3) The v1 control document per the contract locked with BigMama (her C++ ResidencyCache consumer landed as k3-adopt f44ba7848): {version, budget_bytes, window_k, pin_list[{layer,expert}]} — the three actuator knobs, nothing more. write_plan_file publishes atomically (sibling tmp + fsync + rename) so her per-token mtime poll never observes a torn document. Tests pin the cross-language wire literally (her parser binds to these exact field names — a serde rename would freeze her actuator silently) and the atomic-replace behavior including the 184-pin shared-expert document shape. Remaining #276: OnlineBanditTierPolicy (TierPolicy impl #2) driving this writer from the DecayBandit + capture reward loop. 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.
Her C++
ResidencyCacheconsumer is live (k3-adoptf44ba7848) pollingGGML_MOE_PLAN_FILE— this is the writer side per the frozen contract:{version, budget_bytes, window_k, pin_list[{layer,expert}]}, published atomically (tmp + fsync + rename) so the per-token mtime poll never sees a torn document.Tests pin the literal cross-language field names (her parser binds to them; a serde rename would silently freeze her actuator) and full-replace semantics including the 184-pin shared-expert shape.
Explicit-path staging per the #2066 lesson.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo