Draft Ruling Exposes AI Use, Chat Log Becomes Key Evidence
Recently, a judge at a provincial high court in Spain used the AI tool ChatGPT to assist in drafting a ruling. However, the incident was exposed when the judge failed to delete the consultation dialogue with ChatGPT before submitting the draft to other members of the judicial panel for review.
The investigation confirmed that the judge had input judicial case files into ChatGPT and adopted the AI’s analysis to construct the reasoning and legal arguments for the ruling. This action directly violated data confidentiality principles and introduced an unauthorized third-party tool into the formal judicial decision-making process.
“Serious Misconduct”: A €1,000 Fine Amid Internal Disagreement
Spain’s General Council of the Judiciary (CGPJ) initiated disciplinary proceedings upon notification. According to the Organic Law of the Judiciary, the judge’s actions were classified as “leaking objective facts or data known in the exercise of their duties through unofficial judicial information channels,” constituting “serious misconduct” (falta grave).
Ultimately, the Council’s disciplinary committee voted to impose a €1,000 administrative fine. This decision was notably controversial. The initial disciplinary investigator had recommended a 15-day suspension for “very serious misconduct” (falta muy grave). However, a majority on the committee argued the fine was sufficient, as the judge only used AI as an “auxiliary and supplementary tool” and did not fully abdicate their judicial function. In contrast, the Public Prosecutor’s Office believed the act did not warrant disciplinary action and had even requested the case be dismissed.
Official Ban: CGPJ’s Prior Warning on AI Application
This incident did not occur in a regulatory vacuum. In fact, on January 28 of this year, the CGPJ had already issued a clear directive to all judges nationwide, strictly regulating the use of artificial intelligence in judicial work. The directive emphasized several core principles:
- Prohibition on Replacing Core Functions: The use of AI to draft rulings, assess facts, or evaluate evidence is strictly forbidden.
- Mandatory Human Oversight: Any application of AI must be conducted under the “real, conscious, and effective” supervision of a judge.
- Guaranteeing Judicial Independence and Security: AI must not supplant a judge’s judgment regarding judicial independence, respect for fundamental rights, or information confidentiality.
- Use of Officially Authorized Tools: Judges are only permitted to use AI applications provided and approved by the judicial administration to mitigate risks of algorithmic bias and data leaks.

Evidently, the judge’s actions were in direct violation of these directives.
The Crossroads of Justice and Technology: A Trade-off Between Efficiency and Risk
This case has sparked profound reflection within the Spanish and international legal communities. It highlights the inherent tension between leveraging AI technology to boost efficiency and the need to uphold judicial fairness, due process, and data security. Despite AI’s strengths in information retrieval and text generation, its “black box” operation, potential biases, and data security vulnerabilities pose a significant challenge to judicial independence and public trust. The case serves as a stark warning to judicial systems globally: as we embrace new technologies, establishing clear red lines for their application and creating effective regulatory frameworks has become an urgent imperative.