Files
hermes-agent/agent/prompt_cache_lifecycle
kshitijk4poor ed9b42ff42 fix(prompt-cache): zero-priced cache writes buy no markers; learned rules survive one noisy chat
Follow-ups found reviewing #156455, #156250 and #157377 after they merged.

- catalog_cache_markers counted "0.0000000000" (2 live Nous models), 0 and 0.0 as a priced
  cache write, so those routes were sent markers. Only a positive finite rate counts now.
- The learned-route store kept the last 8 miss samples, so one chat missing 8 more times
  pushed out the second chat's sample and a two-session rule vanished with no new evidence.
  The trim now drops the oldest sample of a session that has another.
- An unmarked keep-alive decision parsed prompt_cache_routes.json three times; warming_rule
  reads it once (marker_preference too).
- The sandbox cwd fallback stripped the recovered path, so a directory ending in a space
  was recorded without it and the next command fell back again.
- Skill docs said to "read the newest hits" of search_files, which returns the first 50;
  they now say to page with offset. The ast-grep pitfall row's escaped pipe is explained.
2026-11-21 15:42:00 -08:00
..
…