Skip to content

Rules

Rules constrain or drive configuration on a node. They live on the Design Model node page, below Attributes, Scopes, and Compatibility Matrices. You author them in a bottom-sheet rule builder, not on a separate route.

Node page sections stacked as Attributes, Scopes, Compatibility Matrices, then RulesNode page sections stacked as Attributes, Scopes, Compatibility Matrices, then Rules
On a selected Model node, Rules sit under Compatibility Matrices.
Rule anatomy with optional WHEN predicates and a Require THEN with live previewRule anatomy with optional WHEN predicates and a Require THEN with live preview
Optional WHEN gate, then a Require or Set THEN, with a natural-language Preview.
  1. Open a model → Model → select a node in the tree.
  2. Scroll to the Rules section.
  3. Start a rule in any of these ways:
    • Create rule
    • Click or drag a rule-eligible attribute from Attributes or Scopes into the builder
    • Edit (pencil) on an existing rule row
Three ways to open the rule builder: Create rule, drag an attribute, or EditThree ways to open the rule builder: Create rule, drag an attribute, or Edit
Create rule, drag or click an attribute, or edit an existing row — all open the same bottom sheet.

If you dismiss the sheet while creating, a Resume rule peek can reopen the local draft for that model.

Collapsed Resume rule peek bar with a draft rule nameCollapsed Resume rule peek bar with a draft rule name
Create drafts persist per model so you can resume after navigating away.
UI label What it does
Require Optional WHEN + THEN comparison. If the comparison fails at runtime, the configuration is rejected and the failure message is shown.
Set Optional WHEN + THEN assignment. Writes a target attribute from an expression. Runs before variant selection.

On create you can switch Require ↔ Set. On edit, the type is locked.

Predicates gate whether the THEN runs.

  • Mode: matches or doesn’t match
  • Each row: optional NOT, attribute, comparator, value
  • Joins between rows: AND, OR, XOR (XOR means exactly one row is true in preview language)

Comparators: =, ≠. Numeric attributes also allow >, ≥, <, ≤. Enumeration and boolean sides use equality only. Values come from the attribute’s domain (pickers) or numeric text.

WHEN panel with matches mode, multiple condition rows, NOT, and AND OR XOR joinsWHEN panel with matches mode, multiple condition rows, NOT, and AND OR XOR joins
Build a gate from one or more rows; joins and NOT control how they combine.

Three drop zones: Left, comparator, Right. Click a zone (or drag into it) to focus it — the header shows Adding here.

Dragging an attribute from the Attributes table into the focused THEN Left zoneDragging an attribute from the Attributes table into the focused THEN Left zone
Focus Left, Right, or WHEN, then drag or click attributes into that zone.

Require

  • Compare Left vs Right with =, ≠, ≥, >, <, ≤ (equality only when a side is enum/boolean)
  • Arithmetic on numeric sides: + − × ÷ ( ) and helpers such as round(
  • Optional Failure message (a default is stored if you leave it blank)
  • Role hint: Filters variants when a category attribute appears on either side; otherwise Config check
THEN Require panel with comparison, failure message, and Config check hintTHEN Require panel with comparison, failure message, and Config check hint
Require compares Left to Right and surfaces a failure message when it fails.

Set

  • Target attribute on the Left; Solve for when more than one left attribute is present (labels look like attr on {node})
  • Right side: expression or a domain value for enum/boolean
  • Building a simple enum = literal assignment on create can auto-switch from Require to Set
THEN Set panel with target attribute, Solve for, and assignment expressionTHEN Set panel with target attribute, Solve for, and assignment expression
Set writes a value before variant selection.

A Preview bar restates the rule in natural language while you edit.

Source Usable in rules?
Node attributes (and inherited category attributes) Yes, except free-text string domains
Scope attributes on the node Yes (shown as attribute on {nodeName} when cross-node)
Free-text string attributes No — not draggable; drop shows a toast

Numeric and enum/boolean sides cannot be mixed freely; invalid drops and incomplete WHEN/THEN block save with section errors or toasts.

The node’s Rules table lists rules that apply to that node (they reference attributes that apply there). Typical columns: name, type (Require / Set), condition summary, related Nodes, edit and delete.

Rules table listing Require and Set rules with Create rule actionRules table listing Require and Set rules with Create rule action
Edit and delete from the table; there is no per-rule enable switch or manual order.

Delete asks for confirmation. There is no per-rule enable switch and no manual rule order in the UI.

Rule edits write the open branch draft and follow the same edit lease as the rest of Design. While someone else holds the draft, the builder does not accept writes.

  • Model structure — tree, attributes, and where Rules sit on the page
  • Compatibility matrices — allowed combinations evaluated with the Launcher
  • Domains — value types behind attributes
  • Scopes — scope attributes you can use in WHEN/THEN
  • Launcher — where Require failures and Set results show up at runtime