How Cache Clock learns: start, resume and every model call

How Cache Clock learns: start, resume and every model call A workflow diagram generated by Archify. 01 / Start & resume 02 / Cache clock 03 / Every model call Session start · or resume · Start & resume Session start or resume Seed from log · usage_record lines · Start & resume Seed from log usage_record lines Compaction in log? · success !== false · Start & resume Compaction in log? success !== false Compaction (live) · compaction_complete · Cache clock Compaction (live) compaction_complete Per-model clock · last call per model · Cache clock Per-model clock last call per model snapshot(now) · warm | cold | unknown · Cache clock snapshot(now) warm | cold | unknown assistant.usage · one per model call · Every model call assistant.usage one per model call Main agent call? · conversation-agent · Every model call Main agent call? conversation-agent Ignored · sub-agent, background · Every model call Ignored sub-agent, background read unknown unknown yes: ingest no ingest replay Legend Agent logic Policy Tool action Context / trace External system