Archived
pin_hot() set the pin threshold to the share at the cut minus 1.0, which assumes integer gaps between shares. A profile's per-layer shares are fractions in [0, 1] (xs_profile_load divides by the layer's total), so the threshold went negative and every resident expert counted as pinned at any --expert-pin-top, leaving the heat engine no slab slots (decode -4..9% on Qwen3.8-Flash-Next IQR-V4 against the same run without pinning). The threshold is now the share just below the hot set (-1 when the hot set is every expert, so everything pins). A test with fractional shares pins the hottest quarter and fails without the change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>