Archived
The gate that admits a preempted request back subtracted the raw attention prefix hit from every paged group's need. Admission does not adopt that deep: under checkpoints the linear layers replay from the last checkpoint whatever the attention matched, so the adopted prefix is clamped to the linear hit, exact mode floors it to its chunk grid, and one token always stays outside for the logits. Every block of that difference was a block the recompute would really need and the gate pretended was free: the request is admitted against a loan it cannot repay, the next ensure preempts it again -- the exact loop the gate's own comment describes. The gate now runs the plain count first, which passes without touching the cache at all when the pools plainly hold the recompute, and consults the hash-chain lookup -- request-length CPU, under mu_, per waiting slot per round -- only when the credit decides, crediting the clamped, floored, capped depth admission actually adopts. Under-crediting delays a re-admission by a round; over-crediting, which is what this was, loops.