The Supreme Court’s ruling on the BOSCO algorithm has become a turning point for algorithmic transparency in Spain and, predictably, in Europe. For the first time, the high court explicitly recognizes that access to the source code of automated systems that decide on social rights is part of the constitutional right of access to information.[1][2][3]
What is BOSCO and why it matters
BOSCO is the computer application used by electricity retailers to check whether applicants for the social bonus meet the legal requirements to be considered vulnerable consumers. In practice, this software decides who receives and who is left out of aid designed to combat energy poverty.[2][4][5][1]
The Civio Citizen Foundation has been demanding access to the BOSCO source code since 2018 in order to audit whether the rules implemented correspond to the regulations and if there are errors or biases that unduly exclude people entitled to the bonus. With the partial information obtained (specifications and tests), the organization has already detected flaws that left out eligible applicants, which made the case a symbol of the risks of opaque automation in social policies.[6][7][1]
The Supreme Court’s ruling: transparency as a constitutional right
The Contentious-Administrative Chamber of the Supreme Court has sentenced the General State Administration to provide Civio with access to BOSCO’s source code, with guarantees such as controlled environments, confidentiality duties and without including personal data. The ruling overturns previous court rulings that had upheld the government’s refusal based on the software’s intellectual property and alleged security risks.[8][3][1][2]
The court establishes doctrine by affirming that neither national security nor intellectual property can operate as automatic shields to keep secret public algorithms that impact people’s rights. Access to how these programs work is now defined as an inherent requirement of the social and democratic rule of law, essential to control arbitrariness and possible biases in automated decision-making.[9][1][8]
Seven years of legal battle
Civio’s offensive began with a simple request for access to information in 2018 to the Ministry for Ecological Transition, which was rejected due to administrative silence. The Transparency Council partially recognized the right of access to technical documentation and test results, but denied the source code, citing the protection of intellectual property.[7][1][6][9]
After these first setbacks, the courts of first instance and the National Court ruled in favour of the Administration, insisting that the opacity of the code was necessary to protect the security and integrity of the system. The Supreme Court now breaks with that line, upholds Civio’s appeal and makes the BOSCO case the first major Spanish precedent in terms of transparency of public algorithms.[10][1][7]
Implications for public algorithms and AI
The ruling is not limited to the electricity social bonus: it sends a message to all administrations that deploy automated decision-making systems in areas such as social benefits, personnel selection, tax collection or justice. The Supreme Court stresses that the «explainability» of algorithms is a growing public demand and an effective guarantee against arbitrariness or discrimination in totally or partially automated decisions.[11][12][1][9]
Experts in technology law and AI governance have highlighted that the ruling anticipates in practice some of the requirements of the future European AI Regulation, which strengthens transparency and accountability in high-risk systems used by the public sector. Spain is thus at the centre of the European debate on how to reconcile the protection of innovation with the democratic scrutiny of the algorithms that manage rights.[12][13][10]
A roadmap for «digital democracy»
The BOSCO case already works as a roadmap for civic organizations that seek to audit automated decision-making systems and demand that the codes that execute public rules are not black boxes. The ruling also highlights the need to move towards independent authorities to supervise the design and operation of these systems, something that the Court itself recognizes as a shortcoming of the current framework.[14][1][9]
In political terms, the ruling forces public authorities to assume that transparency in the digital age goes beyond publishing documents: it includes opening the «brain» of the algorithms that filter access to fundamental rights. What began as a dispute over energy aid management software thus becomes an obligatory reference for understanding how democratic accountability is built in the face of state automation.[15][3][1][11]
Sources:
- https://civio.es/novedades/2025/09/18/civio-pulls-back-the-curtain-on-public-algorithms-spains-supreme-court-orders-the-government-to-release-boscos-source-code/
- https://www.poderjudicial.es/cgpj/es/Poder-Judicial/Noticias-Judiciales/El-Tribunal-Supremo-condena-a-la-Administracion-a-facilitar-a-una-Fundacion-Ciudadana-el-codigo-fuente-de-la-aplicacion-informatica-que-acredita-a-los-beneficiarios-del-bono-social-electrico
- https://www.iberley.es/revista/sentencia-bosco-transparencia-algoritmica-espana-1448
- https://algorithmwatch.org/en/spain-legal-fight-over-an-algorithms-code/
- https://www.javiervazquezmatilla.com/la-obligacion-de-la-transparencia-algoritmica-en-los-sistemas-de-ia-contratados-sentencia-historica-del-tribunal-supremo-derecho-de-acceso-al-codigo-fuente-de-bosco/
- https://civio.es/novedades/2025/02/05/transparency-of-public-sector-algorithms-at-stake-civio-files-bosco-appeal-with-the-supreme-court/
- https://tech-litigation.com/case/spain-national-court-of-justice-30th-april-2024-bosco-case/
- https://www.rocajunyent.com/en/node/1810
- https://civio.es/transparency-automated-decisions/
- https://rebootdemocracy.ai/blog/the-judicial-protection-of-algorithmic-transparency
- https://civio.es/en/transparency/
- https://facephi.com/en/bosco-case-and-the-impact-of-the-ai-act/
- https://www.linkedin.com/posts/georg-philip-krog_global-compliance-ontology-gco-activity-7375162922903351296-HJvv
- https://civio.es/tag/algorithms/
- https://betteregulation.lumsa.it/repost-rednmr-energy-social-bonus-and-bosco-program-about-algorithms-bugs-and-source-code-regarding
- https://civio.es/novedades/2025/11/17/this-is-the-landmark-ruling-that-sets-a-new-standard-for-algorithmic-transparency-in-spain/
- https://www.linkedin.com/posts/bethnoveck_civio-abre-camino-en-la-transparencia-algorítmica-activity-7374470006010482688-8-kQ
- https://www.hayderecho.com/2025/09/24/la-transparencia-ante-los-retos-y-peligros-tecnologicos/
- https://consejodetransparencia.es/en/comunicacion/noticias/hemeroteca/2025/202509232
- https://www.linkedin.com/posts/josuaneguiluz_bosco-case-spanish-supreme-court-ruling-activity-7374473020825829376-JTSa