mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
Adds an opt-in, Darwin-tuned frequencyWeight/evictionScanWindow blend to CacheManager's eviction policy. Default (unset/0) is byte-identical to the existing pure-LRU tail eviction via an early return - zero behavior change for every current caller (AgentDBAdapter, TieredCacheManager, ControllerRegistry's tieredCache). Motivated by HTM-EAR (arXiv:2603.10032, Feb 2026), which shows pure-LRU eviction permanently drops high-access-frequency entries under skewed access even though CachedEntry.accessCount already tracks exactly the signal needed. Evaluation: baseline 718/719 (1 pre-existing environmental failure) -> candidate 722/723, tsc clean both ways, stash-isolated discriminating tests fail on baseline exactly as predicted. Independently reproduced by a fresh-context adversarial critic (verdict: CONFIRMED). Bounded 3-gen x 4-candidate Darwin sweep over a new synthetic skewed-workload benchmark finds an interior optimum (frequencyWeight=0.85) that beats both the baseline and a naive frequencyWeight=1.0 - full lineage persisted. Full receipt in docs/dream-cycle/dream-gist-2026-11-18.md and issue #5033. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH4YtmHBfXwGDoLNB76