Splice the base64 kept-set ids out of the raw response bytes before
json.loads (same fast path as routed_experts) and surface the
{ids, counts} payload on the generate() result dict for sampling-mask
replay training.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>