Module temporal

Module temporal 

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

ConsecutiveFailureDetector
Fires when a named tool has failed threshold consecutive times.
RateDetector
Fires when at least count matching events occur within window.
SustainedDetector
Fires when a state-based condition remains true for at least duration.
TemporalPattern
A named temporal pattern: detector + action + cooldown.
TemporalRegistry
Registry of temporal patterns evaluated on events and/or timer ticks.
TurnCountDetector
Fires when a state-based condition is true for required consecutive evaluations (typically one evaluation per turn).

Traits§

PatternDetector
A detector that evaluates whether a temporal pattern has been triggered.