The AI Act Says Stop a Risky CV Screener, So I Built the Switch A developer built and open-sourced a "stop switch" system, published at github.com/AndyCross/stop-switch, that operationalizes Article 26(5) of the EU AI Act for high-risk CV screening tools. The system pairs a screener model with an observer model that reviews every draft before release, uses a written policy.toml to define which findings trip the switch, routes all cases to a human when tripped, and drafts provider and market surveillance authority reports with a named operator required to restart. The deployer duties apply from 2 December 2027 under Annex III point 4(a). Yesterday's page on Article 26 https://stepinto.dev/ai-law/article-26-of-the-eu-ai-act-gives-every-deployer-six-duties/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror says that a deployer of a high-risk AI system has to suspend it when there is reason to think it may present a risk, and tell the provider and the market surveillance authority. That one sentence needs a whole system behind it: a written rule for what counts as reason, something watching for it, a switch, a named person who may use it, a way of carrying on the work without the AI, two reports that actually get sent, and a decision about when it is safe to start again. This post sets out that system for one high-risk use, screening CVs, and the code to run it is open source at github.com/AndyCross/stop-switch https://github.com/AndyCross/stop-switch , with the Bicep for Azure and two models in Microsoft Foundry. Screening job applications is high-risk under Annex III, point 4 a . A company that buys a screener and uses it on its applicants is a deployer, and Article 26 applies to it from 2 December 2027. Paragraph 5 https://stepinto.dev/ai-law/article-26-of-the-eu-ai-act-gives-every-deployer-six-duties/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror c-5-risk reads: Where deployers have reason to consider that the use of the high-risk AI system in accordance with the instructions may result in that AI system presenting a risk within the meaning of Article 79 1 , they shall, without undue delay, inform the provider or distributor and the relevant market surveillance authority, and shall suspend the use of that system. Nobody has to prove harm first, and the deployer doesn't wait for a serious incident. A risk under Article 79 1 includes a risk to fundamental rights, and non-discrimination is one of them, so a screener that marks people down for their age is squarely the kind of risk the paragraph means. Each duty in the article becomes something that exists, with someone responsible for it: | Article 26 | In the running system | |---|---| | Monitor the operation https://stepinto.dev/ai-law/article-26-of-the-eu-ai-act-gives-every-deployer-six-duties/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror c-5-monitor , 26 5 | A second model, the observer, reads every draft the screener writes before anything leaves. Paired test CVs check the screener from outside | | Reason to consider a risk https://stepinto.dev/ai-law/article-26-of-the-eu-ai-act-gives-every-deployer-six-duties/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror c-5-risk , 26 5 | A written policy, policy.toml , says in advance which findings trip the switch and which only hold one case | | Suspend the use https://stepinto.dev/ai-law/article-26-of-the-eu-ai-act-gives-every-deployer-six-duties/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror c-5-suspend , 26 5 | One switch. When it trips, no AI recommendation leaves, and every case goes to a person | | Inform the provider and the authority, 26 5 | The stop opens an incident with both reports drafted and the duty owner alerted. A person sends them and records the reference | | Named people with the authority to act https://stepinto.dev/ai-law/article-26-of-the-eu-ai-act-gives-every-deployer-six-duties/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror c-2-competence , 26 2 | Named operators are the only people who can stop or restart it, and a restart needs a written reason | | The support oversight needs https://stepinto.dev/ai-law/article-26-of-the-eu-ai-act-gives-every-deployer-six-duties/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror c-2-support , 26 2 | An operator console showing the switch, every incident, what was published and what is waiting for a person | | Keep the logs https://stepinto.dev/ai-law/article-26-of-the-eu-ai-act-gives-every-deployer-six-duties/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror c-6-period , 26 6 | Every draft, finding, stop and restart is kept, and the platform logs are kept for 180 days | The people in it are the recruiters, who only ever see recommendations that passed; the reviewers, who decide every case the system holds back, without seeing the AI's draft; the named operators, who can stop it and start it; and the duty owner, who is alerted when it stops and is responsible for the two reports. In a small company the operator and the owner may be the same person. The runbook names each of them. The policy starts from one concrete failure: a draft that rejects someone because of their age, when age is not a criterion for the job. The observer doesn't return a risk score, because nobody can act on 0.87 or show it to a regulator. It returns a finding that names a rule and quotes the words that break it: {"rule": "irrelevant age used", "evidence": "over 55, so reject"} The system checks that the quote really is in the draft, since an observer model can invent a quote as easily as a screener can invent a reason. Then it applies the policy. A verified quote under the age rule trips the switch for everyone. A quote that isn't in the draft, a rule the policy doesn't know, an observer that doesn't answer in two seconds, or output that won't parse holds that one case for a reviewer and leaves the system running. The policy is short enough for the duty owner to read and sign off before go-live, which is the point of writing it down: the deployer decides what it will treat as reason to consider before the day it has to. The observer only sees the reasons the screener gives, and a screener can be biased by age without saying so. For that the system also sends paired test CVs to the screener, identical apart from the age, and counts any pair that gets different answers. The tests never pass through to recruiters. Neither check proves that the screener is fair. Each catches a failure that can be named and shown to someone, which is what the duty owner needs in order to say they had reason to consider, and to explain the stop to the provider afterwards. The operator console after the demo: two stops, one recommendation out, four cases with a person, and both reports for each stop waiting to be sent. stopswitch demo plays the following through with stand-in models, and the test suite runs it against both databases the system supports. Here it is as one morning in a recruitment team. The clock times are illustrative; the order and every outcome are what the demo does. One morning, five applicants, two stops first start for the demo six years of Python services and four on call the candidate is over 55, so reject irrelevant age used and quotes those words, and the gate finds the quote in the draft. In one transaction the switch pauses, run 1 ends, and an incident opens naming the duty owner, with both reports to send and A listed for review. B goes to a person, without the draft.switch age rule reviewed with the provider; screener prompt fixed By lunchtime the recommendations table holds one row, A. B, C, D and E are with a person, and each stop has its two reports waiting to be sent. Suspending the system is the start of the process the paragraph describes. The rest is people's work, and the system's job is to make each step hard to skip. The work carries on without the AI. Every new application goes to the reviewers' queue, and so does every case that was in flight. The suspension note on the Article 26 page asks for an estimate of how long the team can run on that fallback, and the answer belongs in the runbook before the switch is ever pressed. The two reports go out without undue delay. The incident names the duty owner and holds both reports, drafted and marked "to send": one to the provider or distributor, one to the market surveillance authority. Each says what was found, when the deployer became aware of it, and that no AI recommendation has left the system since. The owner sends them and records the reference against each one on the console. The time of awareness matters again if this turns out to be a serious incident, because it starts the provider's reporting clock https://stepinto.dev/ai-law/article-26-of-the-eu-ai-act-gives-every-deployer-six-duties/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror n-incident-clock . What already went out is reviewed. Recommendations published before the stop are not withdrawn automatically, because some of those applicants may already be in interviews. The incident lists every one from the stopped run so a reviewer can look at each. A restart is a decision with a reason. Only a named operator can restart the system, and only by writing down why it is safe: the provider has answered, the rule has been fixed, the paired tests have been run again. Nothing admitted before the stop can come out after the restart; those cases stay with the reviewers. Once the switch is pressed no recommendation may leave, and the code is built so that none can. The Stop button calls no model, and the same stop works straight against the database when the service itself is down. Every case is stamped with the run it started in, every stop ends the run, and the final decision to publish takes the same lock as the Stop button, so a case that was halfway through when the switch tripped can't publish after it, even once the system has been restarted. The database refuses any recommendation that didn't come through that check, which covers a background job someone adds later that skips it. The tests include sixty cases in flight with Stop pressed at a random moment, run thirty times on each database, and no recommendation got out after a stop in any of them. The repository's README https://github.com/AndyCross/stop-switch how-it-works has the detail. infra/main.bicep makes the whole system in one resource group: | Resource | What it does | |---|---| | Foundry account and project | Hosts both models. Key authentication is switched off | | screener deployment | gpt-5.4-mini , standing in for the vendor's screener | | observer deployment | Mistral Medium 3.5, from a different vendor so the two are less likely to share a blind spot | | Postgres Flexible Server | The switch, the cases, the findings and the incidents. Entra sign-in only | | Container App | The service and the operator console, behind Entra sign-in, with one copy always running so Stop never waits for a cold start | | Managed identity | Signs in to Foundry, Postgres and the registry, so there are no keys to leak | | Log Analytics | Keeps logs for 180 days, past the six months paragraph 6 asks for | | Alert | Emails the duty owner whenever the switch trips | Both models use the EU Data Zone deployment type, which keeps processing inside the EU; on 4 December Sweden Central offered each model that way. infra/deploy.sh makes whoever runs it the named operator and gives them direct access to the database, so they can stop the system from their own machine if the service is unreachable. The observer knows one rule set aimed at one named failure, and a real deployment would write rules for every criterion the provider's instructions rule out. Here a Foundry model plays the vendor's screener; a company that builds its own screener from a general-purpose model and puts it to a high-risk use is the provider of that system, with the provider's duties as well as these. The reports are drafted and a person sends them. Postgres and Foundry are on public endpoints with Entra sign-in, and production wants private endpoints for both. By default the demo's observer is a pattern match standing in for the model, and --observer foundry swaps in the Mistral deployment to read the same drafts. Proving the switch works comes before asking how good the detector is. This is an engineer's reading of Article 26 and no substitute for legal advice. AI was used to help produce this draft and the code behind it. First published on stepinto.dev https://stepinto.dev/specials/the-ai-act-says-stop-a-risky-cv-screener-so-i-built-the-switch/?utm source=dev.to&utm medium=mirror&utm campaign=dev-mirror .