One of the developers posted a long time ago that the game has no concept of a second-in-command. However, it appears any post-battle traits go to whoever is commanding the stack after the battle.