Companion film
Rules that act
Cross an operating threshold and see the model escalate review work automatically.
19 secGrid 0.61.0
Open film page →Canonical Grid model
Rulebook coverage: WHEN reactions, EVERY/AT schedules, and ONCE seeding.
What this model gives you
25 min to study · Source reviewed 2026-08-24
Continue with guided practiceExpected checkpoint
After first evaluation, before a reactive rule or recurring schedule fires. The dated G1:G2 one-shot remains blank only before its declared moment.
Three derived statuses always follow their authored source values.
Predicate and range actions commit atomically and remain after the trigger clears.
SKIP MISSED, BACKFILL, and ONCE make recurrence and restart behavior explicit.
MODEL "Rulebook Operations"
DESCRIPTION "Rulebook coverage: WHEN reactions, EVERY/AT schedules, and ONCE seeding."
VERSION "1.1.0"
AUTHOR "Grid Team"
TAGS "canonical", "ts", "rules", "schedules"
# Inputs
A1 = 0
A2 = 0
A3 = FALSE
A4 = 0pct
A5 = "clear"
# Derived status
B1 = A3 THEN "frozen" ELSE A2 > 0 THEN "incident" ELSE "normal"
B2 = A4 > 5pct THEN "gap-open" ELSE "steady"
B3 = A1 > 100 THEN "heavy-flow" ELSE "steady-flow"
# Capture the model's first successful evaluation and retain it across reloads.
H1 = NOW() ONCE
# Reactive rules
WHEN A1 > 100 AND A3 = FALSE THEN
C1 = "risk-review"
C2 = NOW()
END
WHEN A2 > 0 OR A5 = "degraded" THEN
C3 = "ops-paged"
C4 = NOW()
END
WHEN A4 > 5pct THEN
D1:D3 = ROW_INDEX
END
EVERY duration"PT15M" SKIP MISSED THEN
E1 = E1 + 1
E2 = NOW()
END
EVERY cron"0 * * * *" BACKFILL THEN
F1 = F1 + 1
F2 = "hourly-reconciliation"
END
AT dt"2026-12-31T23:59:00Z" BACKFILL THEN
G1 = TRUE
G2 = "year-end-close"
END
END MODEL