Skip to content

docs: a fixture variant's card budget is planned on its own file; a stale one is made again by fixture-requant - #800

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-fixture-v039
Oct 25, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-fixture-v039

Conversation

@juliankang4

@juliankang4 juliankang4 commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

v0.3.9 뒤 fixture variant의 card budget 설명이 코드와 어긋난 docs/contrib/local-check.md의 두 문장을 고치는 문서 PR입니다.

What and why

"When a recorded fixture budget is stale" in docs/contrib/local-check.md says a fixture variant keeps its base fixture's budget and is not re-planned. Since v0.3.9 the code does the opposite. A variant records a budget planned on its own file (fixture variant-budget), and a gate re-plans it the same way it re-plans a base fixture's budget and names a stale one. Anyone who follows the old text would copy the base budget into a variant, or expect to regenerate variants only after the base.

This PR rewrites those two paragraphs for the current behavior. The first says a variant records its own budget and why: requantizing can change the bytes of its experts and which layers can go on a card. The second says that a planner change can leave a variant stale too, and that the gate names the variant and the command that makes it again, just fixture-requant FAMILY TAG, which plans the budget on the new file. The fixture-requant note about moving the old variant directory aside stays. The diff is 6 insertions and 4 deletions in one file, with no code change.

I found the mismatch while following this section after the v0.3.9 planner change, which fills more card layers per role. The recorded budgets of the qwen38, glm5next and solar2 fixtures on a test workstation no longer matched the plan, and the procedure in this section brought them back.

Release notes: internal: the contributor guide now describes how a variant's budget is recorded and refreshed.

Code shape

  • No second copy. Docs only. The two paragraphs say what the section already says once for base fixtures, and name the command rather than repeating its steps.
  • Model code holds only architecture facts. No code changes.
  • Dead code is gone. The sentence about a variant keeping its base budget is replaced, so nothing contradicts the new text.
  • No silent failure. No code changes.
  • Comments state what is true now. The new sentences describe the current behavior only.
  • No relaxed gate. No gate, band or lint changed.
  • cargo fmt and cargo clippy have nothing to check: no Rust file changed.

Duplication found or removed (path:line), or "none": none.

What I ran

Head 7a44ae1c2fe4c45b304d83c686293ee5e43b5e51 on base e0c82e1779a8e754c53f4442800e6c3d61271a48. Because the PR changes only prose, these runs check the procedure the text describes, not the text.

  • Before regenerating, BLOOMERY_BOX_LOCAL=1 just gate-fixture-budget on the workstation fails with test result: FAILED. 0 passed; 1 failed. It names qwen38, glm5next and solar2 as stale and gives the current per-layer expert counts for each.
  • I regenerated those three with the current checkout's fixture fetch into a new directory. Each fetch ended with rc 0, and the gate against the new directory ended with GATE-REFRESH rc=0.
  • I compared the old and new files byte by byte. They differ only inside the recorded budget value: one byte in each qwen38 file, two bytes in the first glm5next shard and three in the first solar2 shard. The other shards are the same.
  • I moved the new fixtures to their original paths, keeping the old ones aside. Then BLOOMERY_BOX_LOCAL=1 just gate-fixture-budget ended with test result: ok. 1 passed; 0 failed.

Not run: clippy, T0 and the check-*.sh scripts, since no Rust file changed.

Hardware (if the change is for a machine)

Not a machine change: no device path is touched. The runs above used a workstation with GPU cards, where the budget gate reads the fixtures.

AI help

AI 코딩 에이전트가 문서를 작성한 후 PR을 올렸습니다. diff 리뷰와 PR 리뷰는 제가 직접 했습니다.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: The revised variant-budget procedure matches the writer, gate reader and regeneration script.

Checked

Duplicates: 0 new code items; no duplicate procedure introduced; no dryer pairs supplied.
Complexity: no changed functions or crapper results.
Silent failure: 0 changed sites; stale variant budgets return errors naming the variant and regeneration command.
Tests: no tests changed; mutation checks do not apply. No tests run for this prose-only change.
Gates: no gate or pin changed.
Escape catalog: no patterns matched.
Behavior: shipped variants use planned budgets; regeneration plans the written variant before validation and refuses an existing output directory.

Notes

dryer and crapper did not run because no Rust file changed.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit bd0c613 into midagedev:main Oct 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant