Leliana figures it out first, quite possibly even before Josephine does—and definitely before Cassandra does, but then, Cassandra can be very selectively dense. Certainly she figures it out well before either of them says anything to the other.
Thanks to Paraka for hosting!! and to madamebadger for blanket permission!!