e.g. a Save button enabled on {"field": "plantForm.valid"}
{"derive": "<id>"}
a top-level derive entry's current value
no value yet (or an unknown id) behaves like a control with no value
{"derive": "form.<formId>.<cell>"}
the same form cell as field
Test presence with exists: "nothing selected" is "operator": "exists", "value": false and "something selected" is "operator": "exists", "value": true; eq and ne against null never match (the NULL rule).
Stale
{"when": "<id>", "stale": true} holds only while that control's binding is stale:
it had data, then nothing arrived within its staleAfter. Use it to show a card
("Sensor offline") only when the feed has gone quiet; "stale": false is the
opposite. A control that has never received data is not stale (it shows the "No data
yet" skeleton instead), and a control with no staleAfter threshold is never stale.
It takes no operator or value, and combines with all/any/not like any leaf.
"visible": { "when": "cpu", "stale": true }
Operators
eq, ne, gt, gte, lt, lte, in, exists — the app-wide Match grammar
(also used by alert rules and support-guide conditions). neq is an alias of ne,
is/isNot of eq/ne. Omitting operator means eq.
No coercion: 3 never equals "3"; gt/lt order numbers numerically and strings
by Unicode order, never mixed types.
in takes an array ("value": ["a", "b"]); exists takes a bool. Arrays and null
need the ref form — a when leaf's value must be a bool, number or string.
A control with no value yet satisfies only exists: false — every other operator,
ne included, is false, so the control stays hidden.
An unknown operator is refused on the wire and reset to eq (with a repair note)
when loading from disk; it never silently compares.
Rules
A node carries exactly one of all, any, not, ref, when; all/any need at
least one condition. Anything else, or nesting past 16 levels, is refused.
Fail-closed: if any leaf uses an operator the app can't read, the
whole condition is false — visible hides, enabled disables. A not can never
switch something on for an older app.