The Champion Risen Royal Guards that guard the final entrance to the Eye of Zhaitan are hostile upon spawning and kill you within three seconds.
Only after you died and respawn, the dialogue where Trahearne talks about being invited triggers and they turn friendly.
.
.
.
Edit: P.S. Also, Trahearne is bugged at the end of the mission. His animation seems to run in an endless loop (him raising his left arm to the sky, then crouching, like he was trying to stab his sword into the ground). It looks extremely funny, especially since he is making noises of great exertion.
Those things have always been hostile. They turn friendly either after you get close enough to the door or bring one of them down low enough in health. Never had a need to try to figure out the trigger.