Skip to main content

Module value_metrics

Module value_metrics 

Source
Expand description

Whether second-brain is worth running: how often sessions recall, how often recall finds something, what agents do with what it found, and what the store costs in disk, memory and sync lag. Kept in memory over a rolling window, so a restart starts every window empty and each check waits for enough events before it judges.

Structs§

PeerSync
RecallEvent
RecallReport
RecalledReport
ResidentSize
StoreSize
ValueFacts
ValueProblems
What refresh concluded: problems that degrade the daemon, with the per-peer ones apart so a check that already says no sync succeeded at all can leave them out.
ValueReport

Enums§

PeerOutcome
RecallVerdict

Constants§

WINDOW

Functions§

session_of
The session a transcript or caller belongs to: a subagent’s <session>/<agent> key counts as its parent session.