So it's illegal.
to be confronted with the witnesses against him; Witnesses in this passage supposedly applies to evidence, not just people witnesses. Therefore it should violate that part.
Witnesses are the people that are the source of evidence. Testimony is one form of evidence, but physical evidence still comes from people.
parallel construction as concept probably there could be some debate over
the specific implementation where neither defense, prosecution or judge is made aware of the actual facts of the case and the enforcement officials actually lie in sworn testimony? not sure why this would even have to go to the supreme court its plain simple and unambiguous perjury.