Sub topic 18
Mapping your controls to the Act and finding gaps
This chapter assumes you have read the earlier chapters on audit events, hash-chained logs, approval workflows, registry promotion gates, and the high-risk requirements of the EU AI Act (Regulation (EU) 2024/1689). It is engineering guidance, not legal advice.
Why map controls to obligations
By now you have built several controls: an audit log, approval gates, a release record, and monitoring. The Act does not ask whether you have these controls. It asks whether you can show that each obligation is met. A control map links the two. Each row says which obligation a control supports, where its evidence lives, and who owns it. Rows with no control, or with a control but no evidence, are your gaps.
Do this before an audit, not during one. A map also shows controls that serve no obligation. Those are candidates for simplification.
Start from the obligations
For a high-risk system, the core technical obligations sit in Articles 9 to 15. Provider duties for quality management, documentation retention, logs, and monitoring are in Articles 16 to 19, 43, 72, and 73. Deployer duties are in Article 26.
| Obligation | Article | Typical engineering control | Typical evidence |
|---|---|---|---|
| Risk management system | 9 | Risk register reviewed at each release | Register versions linked to release records |
| Data and data governance | 10 | Dataset snapshots, data validation checks | Snapshot IDs, validation reports |
| Technical documentation | 11 (Annex IV) | Release record generated by CI | `release_record` files per version |
| Record-keeping (automatic logging) | 12 | Hash-chained audit and inference logs | Log exports, `verify()` results |
| Transparency to deployers | 13 | Instructions for use shipped with each version | Versioned instructions document |
| Human oversight | 14 | Review step in the product, override and stop functions | Oversight design notes, override logs |
| Accuracy, robustness, cybersecurity | 15 | Evaluation suite, adversarial tests, access control | Evaluation reports, test results |
| Quality management system | 17 | Documented change control, approval workflow | Approval records, procedures |
| Log and document retention | 18, 19 | Retention policy on log storage | Retention configuration |
| Post-market monitoring | 72 | Drift and performance monitors, feedback intake | Monitoring reports |
| Serious incident reporting | 73 | Incident runbook with reporting deadlines | Incident records |
How the earlier controls line up
The registry and audit controls cover several rows at once.
- Promotion gates and approvals support Article 17, because they show a controlled change process, and Article 14, because they put a named human decision in the release path.
- The hash-chained audit log supports Article 12 for lifecycle events and shows integrity. Article 12 is mainly about automatic logging of events while the system operates, so you also need runtime logs. The audit log of releases does not replace inference-time logs.
- The release record supports Article 11 and Annex IV. It holds lineage, purpose, and evaluation references. It is a starting point, not the whole documentation set.
Make the map machine-checkable
A spreadsheet drifts out of date. Keep the map as data in the repository and check it in CI. The script below takes a list of obligations and the evidence each control produces. It reports obligations with no control, and obligations whose evidence file is missing.
from pathlib import Path
OBLIGATIONS = {
"Art. 9": "Risk management",
"Art. 10": "Data governance",
"Art. 11": "Technical documentation",
"Art. 12": "Record-keeping",
"Art. 14": "Human oversight",
"Art. 15": "Accuracy, robustness, cybersecurity",
"Art. 72": "Post-market monitoring",
}
CONTROLS = [
{"name": "release_record", "covers": ["Art. 10", "Art. 11"],
"evidence": "evidence/release_record.yaml"},
{"name": "audit_log", "covers": ["Art. 12"],
"evidence": "evidence/audit_log_verified.txt"},
{"name": "promotion_gate", "covers": ["Art. 14"],
"evidence": "evidence/approvals.json"},
]
def find_gaps(obligations, controls, root="."):
covered = {}
for control in controls:
exists = (Path(root) / control["evidence"]).exists()
for article in control["covers"]:
covered.setdefault(article, []).append((control["name"], exists))
gaps = []
for article, title in obligations.items():
entries = covered.get(article)
if not entries:
gaps.append((article, title, "no control mapped"))
elif not any(exists for _, exists in entries):
gaps.append((article, title, "evidence file missing"))
return gaps
if __name__ == "__main__":
for article, title, reason in find_gaps(OBLIGATIONS, CONTROLS):
print(f"{article} ({title}): {reason}")With this data, the script reports Articles 9, 15, and 72 as having no control. If the evidence files are not present on disk, it reports a missing-evidence gap for the others. A CI job can fail the build on any gap for a high-risk system.
Common gap patterns
Teams that follow this tutorial's controls tend to find the same gaps.
- Release logs mistaken for operational logs. The hash-chained audit log records who promoted a model. Article 12 expects the system to log events during use, so reviewers can trace situations that may present a risk and support monitoring. Add inference-level logging with a model version, input reference, and timestamp.
- Retention not enforced. Providers keep automatically generated logs for a period appropriate to the purpose, and at least six months (Article 19). Deployers have a similar minimum for logs under their control (Article 26). Check that storage lifecycle rules do not delete logs earlier.
- Approvals without oversight design. A release approval is not human oversight of the running system. Article 14 is about the people who use the system being able to understand, monitor, and override its output. Show how the interface supports this.
- Evaluation without robustness and security evidence. Accuracy metrics alone do not cover Article 15. Add tests for perturbed inputs and for attack surfaces such as the serving endpoint and the model artifact store.
- Documentation that stops at release. Annex IV documentation must stay current. If the release record is generated once and never updated after a retrain, it goes stale.
- Role confusion. If you fine-tune or substantially modify someone else's system, you may become the provider. The map should state which role you hold for each system, since this changes which rows apply.
Scoring and prioritizing gaps
Not every gap carries equal risk. Rank each one using three questions:
- Is the obligation mandatory for your role and risk tier?
- Does the control exist but lack evidence, or is the control missing?
- How long would it take to produce evidence if a regulator asked?
A control that exists without evidence is usually cheap to fix: export, store, and schedule it. A missing control, such as no runtime logging, needs engineering work and goes first. Record each gap with an owner and a date, and keep those records under the same approval workflow as releases.
Keep the map alive
- Store the map in the same repository as the pipeline code and review changes to it in pull requests.
- Run the gap check on every release candidate and attach its output to the release record.
- Re-run the mapping when the intended purpose, the model architecture, or your role changes.
- Add the map's version to audit events, so you can later show which mapping applied at release time.
Exercise
Your team has a hash-chained audit log of promotions and approvals, and a release record per model version. A reviewer asks you which Act obligations this covers for a high-risk credit scoring model, and what is still missing. Name two obligations that are supported and two gaps you would expect.
Show answer
Supported: Article 17 (quality management, through controlled approvals and promotion gates) and Article 11 (technical documentation, through the release record, as a start on Annex IV). Article 12 is partly supported by the audit log. Expected gaps: runtime inference logging for Article 12, and evidence for Article 15 robustness and cybersecurity. Other valid gaps are the oversight design for Article 14, a retention rule for Article 19, and post-market monitoring under Article 72.