concept
Examples
Three runnable study scripts, simple → complex. Studies consume definition events you already Collected — they never call ctx.emit.
Lifecycle is always onEvent (per matching event) then onFinish (aggregate and publish).
Simple → complex
# | Example | Teaches |
|---|---|---|
1 |
| |
2 |
| |
3 | Barrier scan, rates, session buckets |
Point each study’s flows.declare.slug at a definition you have Collected (examples below assume the definition examples slugs).
