Skip to main content

Module trigger

Module trigger 

Source
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§

PostMortemTrigger
Result of trigger evaluation.
SessionSummary
Input data for trigger evaluation. Mirrors fields available from PrevDigest / SessionStats without coupling to those types.
TriggerConfig
Configuration for trigger thresholds. Overridable via environment variables.

Enums§

TriggerReason
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).