You could be in trouble with the AA code share for PER-SYD. Unless you are connecting to an AA flight into or out of Australia I believe this might violate cabotage rules, meaning you could be denied boarding in PER. I’d call them to verify this is actually legal. (If not cabotage, because it’s QF metal, there’s some other rule which prevents it. Same reason you can’t use QF codeshares on AA aircraft for domestic USA flights, unless connecting to or from an international Qantas flight.)