Skip to content

metal: green on stable 1.99.1 and after the qwen3moe reader change - #837

Merged
midagedev merged 1 commit into
mainfrom
mac-fixmain
Oct 26, 2026
Merged

midagedev merged 1 commit into
mainfrom
mac-fixmain

Conversation

@midagedev

Copy link
Copy Markdown
Owner

On a Mac, bloomery-metal on main fails clippy -D warnings and one lib test.

Evidence (an M1 Pro): main is red (clippy rc 101, 4 errors; lib 42 passed; 1 failed). This branch: clippy rc 0 for both feature sets, lib 43 passed, just lab-metal PASS (155 mutants, each red on its clause). just affected selects 0 box gates.

AI use: written and checked with Claude Code.

🤖 Generated with Claude Code

clippy's needless_range_loop now fires on four gate loops; they iterate
the indexed slice instead. check.rs's readers-order test pins plan_ffn's
order, which lists the routed stacks before the shared parts since the
reader learned Qwen3-30B-A3B's plan.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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 four loop rewrites keep the checks and their order, and the test now pins the order plan_ffn reads.

Checked

  • Duplicates: 0 new items (only loop rewrites and a test edit). dryer: 0 pairs.
  • Complexity: crapper flagged no function.
  • Silent failure: 4 loops followed. pass.rs:570: ik_out has exactly n entries by construction (line 532), so no layer is skipped. oracle_delta.rs:341: xs has 4 entries and CONV_TAPS is 4, so taps 1 to 3 run as before. The gemm and route loops: oracle::reference (oracle.rs:349) rejects weight bytes that do not match rows before both loops, so .take(n) does not skip rows today. Float order is unchanged in all four.
  • Tests: the changed test pins the three-tensor order. Mutant: plan_ffn reads the shared parts before the routed stacks, or up/down swap. The assert_eq! on the ordered list turns red. The expected list matches plan_ffn (read.rs:390-403: stacks gate, up, down, then shared gate, up, down).
  • Gates: no band, tolerance or gate removed or moved. No PIN needed.
  • Escape catalog: no pattern matched (no shell files changed).

Notes

  • The PR body carries M1 Pro results for the bloomery-metal crate. It has no nvidia-smi line, so it is not CUDA gate evidence. No CUDA code changes.

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant