My troops defected to a team partner upon another team member's surrender!
My troops defended a team-partner's city. When the city's owner surrendered, the city changed ownership to a third team member. Some of my own units also converted to the new owner of the city.
My stack of units in the top-left of the city remained under my control. Troops in the top-right, belonging to the original city owner, changed allegiance to the new owner as it should be (with units having more than one turn of production time being removed). The lower-left was unoccupied. The lower-right was occupied by another stack of my troops. This stack belongs to the new owner now (luckily, troops with more than 1 turn production time were preserved).