How the engine resolves a layout
Four signals in. One layout out. Always the same answer.
The engine evaluates three signals in sequence: the parent's modality, the number of children, and the children's modality. Those three inputs resolve to a single template path. The decision is deterministic, consistent, and instantaneous. The same content will always produce the same layout.