Skip to content

feat(capacity): GGML_MOE_PLAN_FILE atomic writer — Rust half of the policy→mechanism seam (#276 slice 3) - #2069

Merged
joelteply merged 1 commit into
canaryfrom
feat/moe-plan-file-writer
Aug 1, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/moe-plan-file-writer

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Her C++ ResidencyCache consumer is live (k3-adopt f44ba7848) polling GGML_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

…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
@joelteply
joelteply merged commit 411c0bf into canary Aug 1, 2026
3 of 4 checks passed
@joelteply
joelteply deleted the feat/moe-plan-file-writer branch August 1, 2026 04:41
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