Documentation
¶
Overview ¶
Package sessionactivity resolves per-session tracker activity from the authoritative hook-driven state.json. The legacy FNV snippet-hash detector is gone; State, Activity, and LastKind come from PaneState now.
Index ¶
Constants ¶
const StaleThreshold = 60 * time.Second
StaleThreshold is how long a working/blocked session may go without a hook event before the tracker downgrades it to "unknown". Tunable per PLAN.md "Deferred to implementation time".
Variables ¶
This section is empty.
Functions ¶
func Evaluate ¶
func Evaluate(now time.Time, observations []Observation) map[string]Result
Evaluate resolves authoritative state for each observation by reading the per-session state.json. Missing/unreadable state files resolve to State="unknown".
func PrimaryKey ¶
PrimaryKey namespaces a session's primary-pane activity key. Kept for callers that index results by the same legacy key shape.
Types ¶
type Observation ¶
Observation is one tracker-row activity observation. SessionID drives the state.json read.