Skip to content

fix(router): clear stale GPU residency on KV offload or eviction - #175

Open
zeekay wants to merge 1 commit into
mainfrom
fix/cache-residency-freshness
Open

zeekay wants to merge 1 commit into
mainfrom
fix/cache-residency-freshness

Conversation

@zeekay

@zeekay zeekay commented Dec 2, 2026

Copy link
Copy Markdown
Member

Refs #51, #94 and hanzo-inc/cloud#1156.

When the worker reports a tier snapshot with zero GPU tokens, the router previously retained a positive completion count. effective_residency then took max(old GPU, new GPU), double-counting an offloaded prefix and overstating hot locality. Update the flat count on every tier snapshot, including zero. Regression exercises 24K GPU -> host -> eviction and checks no duplicated tokens. Narrow fix; does not implement distributed transport or authenticated advertisements, and does not address reordered telemetry or hint fallback. Run cargo fmt --check and cargo test -p hanzo-router before merge. Tests not executed from this session; CI and local physical host verification required.

This branch has not been deployed

No deployments
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