Returns the child expressions of the given parent, sorted by position.
The parent expression ID, or null for root-level
children.
An array of child expression entities.
Returns the operator expressions a reviewer can accept or reject, in pre-order depth-first tree order.
Excludes "not" operators (NOT is flipped via a render-time flag,
not voted on) and skips formula nodes (they are traversed but never
emitted). Returns [] for empty premises and premises with no
operators.
Order is stable across calls on the same PremiseEngine instance;
callers typically rely on index for step-queue construction.
An array of decidable operator expression entities.
Returns an expression by ID, or undefined if not found in this
premise.
The expression ID to look up.
The expression entity, or undefined.
Returns the root expression, or undefined if the premise is empty.
The root expression entity, or undefined.
Returns the ID of the root expression, or undefined if the premise
is empty.
The root expression ID, or undefined.
Single-premise expression tree reads.