Subpoena
How it works
A subpoena is issued within an ongoing proceeding (civil or criminal) and served on the recipient, specifying what is required: appearing to testify (ad testificandum) or producing specific documents/evidence (duces tecum). In US federal law the procedure is governed by FRCP 45 (civil) and FRCrP 17 (criminal). The recipient may challenge it (a motion to quash) — e.g. as unduly burdensome, overbroad, or infringing a privilege (attorney-client privilege, constitutional protections). If the testimony or documents are privileged, they need not be disclosed. Non-compliance without justification may result in a contempt sanction, including a fine or detention. Against AI/digital service providers, a subpoena duces tecum is a typical way to obtain logs, metadata, and account data in eDiscovery.
Problem solved
Fair adjudication requires access to evidence and witnesses who are often outside the parties' control. A subpoena solves this by providing a legally sanctioned mechanism to compel testimony and documents from third parties.