Files
Strata/app
Niko1221 4d8e917d12 monitor: the Conversation cache card reports strata-inkling's slot cache and disk cache
The card was fed only by the Strata engine's own conversation-cache log lines and
its --conversation-cache-mib budget, so an Inkling engine that parked a chat in
host RAM (--slot-cache-mib) showed "off", 0 parked, 0 restored.

ConvCacheLog now reads strata-inkling's serve lines: parked in host RAM, put back,
dropped (budget full), too big for the budget, and the disk layer (cache on at
start, a conversation written to a file, one read back, also after a restart).
conversation_cache_view is on when INFO slot_cache_mib is above 0 (a load that
cannot park announces 0) or when the disk layer is on, and carries the disk
counters; the dashboard maps them (diskOn, diskFiles, diskMemoryGb, diskWrites,
diskReads). A disk read counts as a restore and a file write as a park (once, not
again for the RAM park that follows it), so the existing "Parked / restored"
line tells the truth with either layer. The parked count no longer shows
"N / -" when the engine has no slot count.

Tests: serve/test_conv_cache_ink_log.py (6), one dashboard mapping test.
2026-12-02 17:04:38 +01:00
..