[Test] Regression test for hybrid-Mamba eagle cache-peek in Mooncake connector (#43559) (#48361)

Signed-off-by: Rishi Puri <riship@nvidia.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Rishi Puri
2026-07-27 19:03:58 +00:00
committed by GitHub
co-authored by Claude Opus 4.8
parent ed13deb376
commit fd10e8946d
2 changed files with 39 additions and 0 deletions
@@ -338,6 +338,9 @@ class MooncakeStoreCoordinator:
drop_eagle_block = idx in eagle_indices and idx not in eagle_verified
_max_length = curr_hit_length
# No eagle peek margin for a recurrent (Mamba) group: its finder
# never drops a block, so a widened bound would match past the
# attention-verified hit and resume from speculative state (#43559).
if drop_eagle_block and not isinstance(spec, MambaSpec):
eagle_margin = (
self.hash_block_size