Four questions that come before adopting AI in the public sector

AI
machine learning
public sector
evaluation
A public agency can buy an AI system that passed every test and still be unable to say, months later, how well it performs, who answers for its errors, why it decided what it decided, or whether it could be replaced. Four questions to answer before signing, each with concrete requirements a public manager can write into the contract.
Author

Pedro Carvalho Brom

Published

April 30, 2026

Six months after an AI pilot was approved, a citizen contests a decision the system made. The model did well in acceptance testing, the contract was signed, and the system moved from the test environment into production in a public agency. Someone now has to answer four things at once: how well the system is performing today, who is responsible for that decision, why the system decided what it did, and whether the agency could switch it off and replace it tomorrow. If those answers do not exist on that day, nobody will produce them on demand.

This essay grew out of a public discussion on AI and information security in public organizations, in April 2026. It develops four questions that, in my reading, have to be answered before adoption rather than after, and each one comes with concrete requirements a public manager can put in the terms of reference or in the deployment plan. This post expands a LinkedIn Article of 30 April 2026: Quatro perguntas que precedem a adoção de IA no setor público.

1. How do you audit a model that changes?

Machine learning models are not static artifacts. The distribution of the data shifts, the upstream pipeline is updated, and the way the system is used drifts away from the conditions it was trained under. The phenomenon has a name, drift, and a literature on how to detect it and adapt to it (GAMA et al., 2014).

A one-off validation in acceptance testing does not hold forever. Hypothetically, a classifier with 97% accuracy in May can be at 84% in October without anyone noticing, because the metric that would show it exists only if continuous telemetry computes it. Without that infrastructure, the agency cannot state at any given moment how the system in use is actually performing. Automated decisions become an operational black box, and the institutional risk becomes untraceable.

The requirement is to demand five things in the terms of reference or in the deployment plan. The system keeps inference logs with a timestamp and the context of each decision. Versioning ties together the model, the training data and the pipeline. Production metrics are monitored against a baseline established during acceptance. The plan declares windows for periodic reassessment. Automatic discontinuation triggers fire when the metric degrades beyond a threshold. With these in place, the question stops being “does this model work?” and becomes “what is the monitoring plan once it goes into production?”

2. Who answers when the AI is wrong?

When an AI system issues a wrong administrative decision that affects a citizen, the institutional temptation is to spread the responsibility across the vendor, the tool and the operator. Before the citizen, the Brazilian Constitution closes that door. Public-law entities, and private entities that provide public services, answer for the damage their agents, acting as such, cause to third parties, with a right of recourse against the person responsible in cases of intent or fault (BRASIL, 1988, art. 37, § 6º). The citizen deals with the public body, not with the tool, and in my reading a contract with a vendor does not move that liability anywhere. Inside the agency, the manager who decided to adopt the system is ultimately responsible for its governance. The vendor answers within the scope of the contract, and the model is only the artifact.

So the second set of requirements has to exist before deployment and be replicated as clauses in the procurement contract. The agency holds full documentation of how the system was evaluated before adoption. A traceable data trail and auditable logs are kept for a declared retention period. The affected citizen has an accessible contestation mechanism, with a response deadline. Documented criteria say when the system is retired, if it degrades below a defined threshold. Without these clauses, the manager buys a system whose institutional risk they cannot contain, and the question stops being “which vendor should we choose?” and becomes “what is the accountability plan over the system’s life cycle?”

3. Is 99% accuracy enough for a critical public decision?

Suppose a model reaches 99% accuracy in predicting which high-school student will drop out, which taxpayer is most likely to default, or which patient in a public health queue is at greatest risk. Should it be adopted for a critical public decision?

High accuracy can hide several things. It can hide systematic bias against under-represented subgroups. It can hide measurement error in the target variable, when the model has learned to predict the wrong label very well. It can hide leakage between training and test data, or a favourable sampling window that will not hold in production. The arithmetic of a rare outcome makes the point concrete. If one case in a hundred is positive, a model that always answers “no” is right 99% of the time and never finds a single case. Accuracy counts correct answers, not whether the right people were found.

Subtler still, high accuracy without an operational explanation does not allow contestation. Brazilian law asks for reasons in two places. Federal administrative acts that deny, limit or affect rights or interests must state their factual and legal grounds, and that statement must be explicit, clear and congruent (BRASIL, 1999, art. 50, I and § 1º). When a decision rests solely on automated processing of personal data and affects the citizen’s interests, the data protection law gives the right to request its review and obliges the controller to provide clear and adequate information on the criteria and procedures used, subject to commercial and industrial secrecy (BRASIL, 2018, art. 20, caput and § 1º). In my reading, a system that can only answer “because that is what the model decided” meets neither requirement, and the agency is left unable to justify its own act.

The requirement here is an explainability policy graded by the impact of the decision. Each use of AI is classified by impact level, informational, operational or critical. Each level gets a minimum explainability, so that a critical use requires an explanation for each individual decision, through methods such as SHAP (LUNDBERG; LEE, 2017), LIME (RIBEIRO; SINGH; GUESTRIN, 2016) or counterfactuals. The vendor delivers a model card (MITCHELL et al., 2019), the short document that reports what the model is for, how it was evaluated and where it falls short, completed with the explanation method the system supports. Active human oversight stays in place in the high-impact categories, with a review deadline. The question stops being “what is the model’s accuracy?” and becomes “what minimum level of explanation does this decision require, and does the system meet it?” What a high confidence score licenses, and why a threshold chosen by point estimate breaks its own promise, is measured in another post on this blog.

4. Where does digital sovereignty actually sit?

Digital sovereignty is often reduced to a question of location, whether the data center is on national soil. Location helps, but it does not settle the matter. Sovereignty is control, not geography, and effective control has three dimensions.

The first is control over the data, which means knowing where it resides, who has access, under which jurisdiction it is processed and for how long it is retained. A local data center is one layer of this control, and integrating foreign AI APIs can cancel that layer if the inference call sends the data abroad. The second is control over the model, being able to audit how it was built, which data trained it and under which assumptions. Open models with available weights and declared provenance allow this control, while proprietary models accessible only through an API often do not. The third is the capacity to replace the system without redesigning the whole pipeline. Regulatory change, performance degradation or a vendor discontinuing the product can force a replacement, and replacing requires decoupled interfaces, portable data and reproducible pipelines.

The requirements follow from those three dimensions. Map every destination of the data while the project is still on paper, including upstream and downstream APIs. Require a contract clause for model portability or a local alternative interface. Test the migration pipeline between vendors before acceptance, as a proof of replaceability. Keep at least one qualified alternative model, tested periodically. The question stops being “does this system run in Brazil?” and becomes “how much control do I have over the data, the model and the capacity to replace it?”

What the four have in common

The four questions share one trait. They come before adoption, before signing the contract, before approving the pilot, before moving the system from acceptance into production. Answering them afterwards is damage mitigation. Answering them beforehand is the technical function of governance.

Deciding which AI project deserves to be built in the first place is an earlier problem still, and a methodology developed for the Brazilian federal government addresses it with an elimination filter and AHP Express.

If your agency signed an AI contract this year, how many of these four questions does that contract already answer, and who would be the first to find out if it does not?


References.

BRASIL. [Constituição (1988)]. Constituição da República Federativa do Brasil de 1988. Brasília, DF: Presidência da República, 1988. Available at: https://www.planalto.gov.br/ccivil_03/constituicao/constituicao.htm. Accessed on: 18 Nov. 2026.

BRASIL. Lei nº 9.784, de 29 de janeiro de 1999. Regula o processo administrativo no âmbito da Administração Pública Federal. Brasília, DF: Presidência da República, 1999. Available at: https://www.planalto.gov.br/ccivil_03/leis/l9784.htm. Accessed on: 18 Nov. 2026.

BRASIL. Lei nº 13.709, de 14 de agosto de 2018. Lei Geral de Proteção de Dados Pessoais (LGPD). Brasília, DF: Presidência da República, 2018. Available at: https://www.planalto.gov.br/ccivil_03/_ato2015-2018/2018/lei/l13709.htm. Accessed on: 18 Nov. 2026.

GAMA, J.; ŽLIOBAITĖ, I.; BIFET, A.; PECHENIZKIY, M.; BOUCHACHIA, A. A survey on concept drift adaptation. ACM Computing Surveys, v. 46, n. 4, p. 1-37, 2014. DOI: 10.1145/2523813.

LUNDBERG, S. M.; LEE, S.-I. A unified approach to interpreting model predictions. In: ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS, 30., 2017, Long Beach. Proceedings. arXiv:1705.07874.

MITCHELL, M. et al. Model cards for model reporting. In: CONFERENCE ON FAIRNESS, ACCOUNTABILITY, AND TRANSPARENCY, 2019, Atlanta. Proceedings. New York: ACM, 2019. p. 220-229. DOI: 10.1145/3287560.3287596.

RIBEIRO, M. T.; SINGH, S.; GUESTRIN, C. “Why should I trust you?”: explaining the predictions of any classifier. In: ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY AND DATA MINING, 22., 2016, San Francisco. Proceedings. New York: ACM, 2016. p. 1135-1144. DOI: 10.1145/2939672.2939778.

The original Article, in Portuguese, is on LinkedIn: Quatro perguntas que precedem a adoção de IA no setor público. I write about this kind of work, scientific method, statistics, and AI applied with rigor, on LinkedIn: linkedin.com/in/pcbrom.