Poor responses to boredom and boundary testing seem pretty normal to me for very bright kids. I've begun thinking it can be a key part to some kids' giftedness to have a fine instinct on how they need to learn and to try and protect themselves from methods that are counter-productive or detrimental.

If you can acknowledge that as a basis, you may be able to have conversations with your daughter on effective reactions to certain states of mind and situations.

My DS is persuaded by value decisions he can make.

So, things like:
"If you miss some instructions and get something wrong, the teacher won't know if you don't understand it or just missed the instructions. They'll treat it as you don't know."

or discussions about respect as two way street