Non-blank id, unique across the whole tree.
Ids of the nodes this one plays against, such as the opponent's beat in a duel. Each must name another node.
Id of the node this one makes concrete, or null for the single intent root. Feedback on a beat walks this chain upward, so a correction can target the beat, a scene, an act or the intent.
Id of the node this one follows on the timeline, such as the previous beat, or null when nothing precedes it. It must name another node.
Fields every screenplay tree node shares: its id, the refinement edge to its parent, and the two cross edges.
validateScriptTreerequires non-blank unique ids, exactly one root, which must be the intent, parents that resolve without a cycle and whose kind the child's kind may refine, and temporal and interaction edges that resolve to another node. Only the refinement edge has consumers: the screenplay, the caption sidecar andscriptAncestorswalk it. The temporal and interaction edges are checked for resolution and read by nothing else.