I think Jaime will be spared and will take up a quest at Stoneheart's/BwB's request. Brienne, I think, having received Ned's old sword from Jaime must be important and I think she will use that to prove to Stoneheart that he isn't the man she thinks he is.