mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-03 22:12:01 +09:00
AttentionCoordinator.computeCacheKey() hashed only the first eight elements of query/key/value (and ignored mask). Two values with an identical prefix but different tails collided, so a later useCache request returned an output computed from the wrong value; delegated results also collided across masks (#4597 hive-mind/performance scan).\n\nHash every Float32 element plus length via FNV-1a for all three tensors, and include the mask in the key. The existing mechanism prefix and cache-hit behavior are unchanged.\n\nThree regression tests: same-prefix/different-tail values no longer share a cached output; an identical request still hits; delegated results with only a different mask no longer collide. Baseline fails the collision cases; candidate passes 3/3. Full integration suite 78/78 and tsc clean.