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§
- Simulate
Match - One match entry in the simulation report.
- Simulate
Options - Options controlling the simulation.
- Simulate
Report - Full simulation report returned by
simulate.
Enums§
- Debounce
Decision - Whether a filter-matching event would fire or be suppressed.
- Rendered
Trigger - The rendered (but not fired) trigger for a matching event.
- Simulate
Error - Error returned by
simulate.
Functions§
- simulate
- Dry-run
ruleagainsteventsusingoptions.