Expand description
Deterministic trigger detection for post-mortem analysis.
Checks session statistics against thresholds to decide whether a post-mortem analysis should run. No LLM calls — pure deterministic logic.
Structs§
- Post
Mortem Trigger - Result of trigger evaluation.
- Session
Summary - Input data for trigger evaluation. Mirrors fields available from
PrevDigest/SessionStatswithout coupling to those types. - Trigger
Config - Configuration for trigger thresholds. Overridable via environment variables.
Enums§
- Trigger
Reason - Reason why a post-mortem was triggered.
Functions§
- evaluate_
triggers - Evaluate whether a session warrants post-mortem analysis.
- evaluate_
triggers_ with_ config - Evaluate with explicit config (useful for testing).