Stamp beat-scoped feedback onto the screenplay graph: every violation produced while working beatId gains node, the id of the beat node that claims it, so scriptAncestors can cascade it up the refinement chain.
When the tree is absent or no beat node claims beatId, the result is a shallow copy of the input list with no stamp. Otherwise each violation is copied with node set, replacing any node it already carried. The input list and its violations are never mutated.
Stamp beat-scoped feedback onto the screenplay graph: every violation produced while working
beatIdgainsnode, the id of the beat node that claims it, soscriptAncestorscan cascade it up the refinement chain.When the tree is absent or no beat node claims
beatId, the result is a shallow copy of the input list with no stamp. Otherwise each violation is copied withnodeset, replacing anynodeit already carried. The input list and its violations are never mutated.