Skip to main content

Module simulate

Module simulate 

Source
Expand description

Dry-run a TowerRule against historical events from scryer.

simulate compiles the rule’s predicate, runs each event through the compiled filter, applies debounce and rate gating with a simulated clock, and renders what each trigger WOULD produce — without firing it.

The simulated clock advances by SimulateOptions::event_spacing_ms per event. This makes debounce and rate window behaviour deterministic in the absence of real event timestamps.

Architecture: .yah/docs/architecture/A052-yah-tower.md §Open questions §Audit + replay

Structs§

SimulateMatch
One match entry in the simulation report.
SimulateOptions
Options controlling the simulation.
SimulateReport
Full simulation report returned by simulate.

Enums§

DebounceDecision
Whether a filter-matching event would fire or be suppressed.
RenderedTrigger
The rendered (but not fired) trigger for a matching event.
SimulateError
Error returned by simulate.

Functions§

simulate
Dry-run rule against events using options.