It seems that context.triggers.notes inside Phrase Script functions always contains the last note that triggered the phrase on the same line instead of each instance getting the exact note that triggered it (which is what you get if the triggers aren’t on the same line).
Yes, something’s not quite right here. Renoise passes the events correctly, but they all end up in the same context instance. Will require a fix in pattrns.