Expand description
Temporal pattern detection for live sessions.
A TemporalRegistry holds named TemporalPatterns that combine a
PatternDetector (the condition) with an async action (the response).
Detectors track time-based and count-based conditions such as sustained
state, event rates, consecutive turns, and consecutive tool failures.
The registry is evaluated by the control-lane processor on each event and
optionally on a periodic timer (when TemporalRegistry::needs_timer
returns true).
Structs§
- Consecutive
Failure Detector - Fires when a named tool has failed
thresholdconsecutive times. - Rate
Detector - Fires when at least
countmatching events occur withinwindow. - Sustained
Detector - Fires when a state-based condition remains true for at least
duration. - Temporal
Pattern - A named temporal pattern: detector + action + cooldown.
- Temporal
Registry - Registry of temporal patterns evaluated on events and/or timer ticks.
- Turn
Count Detector - Fires when a state-based condition is true for
requiredconsecutive evaluations (typically one evaluation per turn).
Traits§
- Pattern
Detector - A detector that evaluates whether a temporal pattern has been triggered.