mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
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.