You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG][Medium]- Predictor cache conflates empty and absent instructions #100
The global predictor instance cache hashes instruction bytes without the Option discriminant. None and Some("") therefore produce the same instruction contribution to the key. In a shared process, a caller that primes the same signature type and predictor name with an empty instruction can cause a later no override request to reuse that predictor, changing the later prompt instruction.
Hash the presence of an instruction separately from its content, or compare the complete requested predictor state on cache hits.
Add a regression case for None versus Some("") under the same signature and predictor name.
Acceptance criteria
Absent and explicitly empty instructions resolve to distinct cached predictors.
Other equivalent predictor requests still share cache entries.
Related issues
#71 is about the LM response cache key at the request boundary. This ticket concerns the separate global predictor instance cache and a specific absent versus empty instruction collision.
Activity
fix: distinguish absent and empty predictor instructions (krypticmous…