Companion film
From blank to living model
Turn a plain-text model into a live grid, then change one input and watch every dependent value—and the judgment—recompute.
28 secGrid 0.61.0
Open film page →Canonical Grid model
Small portable model that demonstrates the canonical authoring profile.
What this model gives you
15 min to study · Source reviewed 2026-08-24
Continue with guided practiceExpected checkpoint
After loading the canonical source with its authored starting values.
Currency and percentage tags make the model readable without changing ordinary arithmetic.
The DO expression keeps margin and deduction local while exposing one durable result.
A blank override reveals the calculated tax; status and semantic color update from the same dependency cone.
MODEL "Canonical Foundations"
DESCRIPTION "Small portable model that demonstrates the canonical authoring profile."
VERSION "1.0.0"
AUTHOR "Grid Team"
TAGS "canonical", "portable", "foundational"
# Inputs
A1 IS currency = 125000
A2 IS currency = 86000
A3 IS percentage = 21pct
A4 IS percentage = 5pct
A5 = BLANK
# Core derivations
B1 IS currency = A1 - A2
B2 IS currency = A1 * (1 - A4)
B3 IS currency = DO
margin = B1
deduction = 2500
MAX(margin - deduction, 0)
END
B4 IS currency = B3 * A3
B5 IS currency = A5 DEFAULT B4
# Readable branching
C1 = B1 > 50000 THEN "strong" ELSE "watch"
C2 = MATCH(C1, "strong" -> :green, "watch" -> :amber, _ -> :red)
C3 = `status={C1} tax_due={B5}`
END MODEL