Rule Modes & Execution Order
preflight → core → projection → side_effects → fraud → moderation| Mode | Can mutate | Can reject | Notes |
|---|---|---|---|
preflight | no | yes | Read-only checks; use LOOKUP_FIELD for cross-stream reads |
core | own-stream fields | no | Primary mutations; relationship_create/remove OK |
projection | projection fields only | no | Cross-stream read projections |
side_effects | no direct writes | no | emit, emit_each, submit, schedule, decision |
fraud | own-stream fields | no | Risk scoring |
moderation | own-stream fields | no | Content moderation |
A rule cannot specify both intent_type and event_type in when:.