Auto-scales and phrases: which comes first?

So: you have the auto-scale feature, right (not sure if that’s the right word for it) where you can select a scale, G major or whatever, and it will limit the range of notes that can be selected to the ones in that scale.

What I’m wondering: if you create a phrase, how does that interact with the auto-scaling?

Does it ignore it, or do the notes generated by the phrase get filtered by the auto-scaling in the same way as any other note would?

Will auto-scaling filter out notes _before_the phrase is triggered, so the phrase can only be triggered in certain keys?

No, it doesnt ignore it. Everything inside the phrase is invisibly transposed.
And yes, phrases can be triggered only by keys in the scale (because of transposition).