You said
defense counsel moved to dismiss under rule twelve b six and the court ruled sue a sponte that the claim is barred by res judicata
Defense counsel moved to dismiss under Rule 12(b)(6), and the court ruled sua sponte that the claim is barred by res judicata.