Chapter 1 · Risk and Frameworks
Standards, Regulation and Requirements Mapping: What Applies, to Whom, and Why
- Page 4 of 22
- 21 min read
A principle says what matters. A standard says how an organisation can organise its work. A law says what you must or must not do, and an authority can enforce it. A common governance error is treating one as another. This page separates them, maps a feature to a risk-based law without pretending to settle legal questions, and builds a table that links each requirement to evidence and says MISSING when there is none.
You need Python 3.12 and its standard library only. Each page runs in a fresh folder, so the one helper file is created with a # file: block. Type the blocks in order into one session; the text under a block is its real output. This page builds on Principles and Frameworks in Practice: From Values to Testable Controls; the Beginner page Frameworks, Standards and Competing Principles: Ethics, Law and Policy gives the background.
Honesty convention. Every dataset is synthetic and labelled
Toy data:; the agency, its tools and its numbers are invented. Laws and standards are real and change often. Everything legal appears in a dated Legal note, is taken from the course's source check of 2026-10-12, and is not legal advice. Check the current official text for your country and sector.
What you will learn
- How a voluntary principle, a standard and a law differ, and why the difference matters for what you may claim.
- How to map a use case to a risk-based scheme (the EU AI Act as the example), and to verify application dates before any compliance claim.
- How to find the country, sector and authority that apply, and how to record legal questions without answering them yourself.
- How to build a requirements-to-evidence table that reports
MISSING, and how to compare two frameworks without assuming they are equivalent. - How to record framework versions and review dates.
Principle, standard, law
Distinguish a standard from a law or regulation.
| Voluntary principles | Framework or standard | Law or regulation | |
|---|---|---|---|
| Example | OECD AI Principles; UNESCO Recommendation | NIST AI RMF; ISO/IEC 42001 (reported) | EU AI Act |
| Issued by | Intergovernmental bodies | A government agency; a standards body | A legislature |
| Who must follow it | Nobody, by itself | Nobody, by itself; a customer or contract may ask for it | Those in its scope |
| Who checks | Nobody by default | You, or an outside body for a standard that has a scheme | Authorities, with penalties |
| What you may write | "informed by" | "aligned with"; "certified to" only with a certificate | "compliant with", only after a legal check |
Following a voluntary standard does not by itself satisfy a law, and a law can apply to you even if you follow no standard. An ethical concern, a legal obligation and a company policy are three things; this page is mostly about the second.
A risk-based scheme: the EU AI Act
Examine the EU AI Act's risk-based approach.
Legal note (as of 2026-10-12; not legal advice): The EU AI Act (Regulation (EU) 2024/1689) sets harmonised, risk-based rules for AI. The European Commission describes four levels: unacceptable risk (banned), high risk, transparency risk, and minimal or no risk. It entered into force on 1 August 2024. It can apply to organisations outside the EU, so check its scope. Examples of banned practices the Commission lists include social scoring and untargeted scraping of facial images. Areas it names for high-risk systems include critical infrastructure, education, employment, essential services, law enforcement, migration and justice; whether a particular system is high-risk depends on the legal text. For high-risk systems it lists duties such as risk management, data quality, logging, documentation, information for deployers, human oversight, robustness, cybersecurity and accuracy. Most uses fall in the minimal level, where privacy, consumer and copyright law can still apply. Source type: the Commission's AI Act pages and the text on EUR-Lex. Check the current official text for your country and sector.
The scheme sorts by use, not by technology: the same model can be minimal risk in a spam filter and sit in a high-risk area in hiring. It also names roles. The duties above fall mostly on a provider (who places the system on the market) and on a deployer (who uses it); which one you are is a legal question.
Map a use case to a risk-based regulatory scheme. The code turns the Commission's categories into questions. It never says a system is high-risk; it says "candidate" and sends you to the text.
Toy data: four invented uses at the invented agency.
HIGH_AREAS = ("critical infrastructure", "education", "employment", "essential services",
"law enforcement", "migration", "justice", "biometrics") # areas named by the Commission
BANNED_EXAMPLES = ("social scoring", "untargeted scraping of facial images") # examples it lists
def hint(use):
"""A question generator, not a classification: every answer says 'candidate'."""
if use["does"] in BANNED_EXAMPLES:
return "candidate: banned practice; stop and ask a specialist"
if use["area"] in HIGH_AREAS:
return f"candidate: high-risk area ({use['area']}); read the legal text"
if use["talks_to_people"]:
return "candidate: transparency duty (tell people it is AI); check"
return "likely minimal risk; other laws still apply"
USES = [ # Toy data: invented uses at the invented agency
dict(name="CV ranking and summaries", area="employment", does="ranks job applicants", talks_to_people=False),
dict(name="Applicant FAQ chatbot", area="none", does="answers questions", talks_to_people=True),
dict(name="Inbox spam filter", area="none", does="filters email", talks_to_people=False),
dict(name="Scores people's behaviour", area="none", does="social scoring", talks_to_people=False),
]
for u in USES:
print(f"{u['name']:<27}{hint(u)}")CV ranking and summaries candidate: high-risk area (employment); read the legal text
Applicant FAQ chatbot candidate: transparency duty (tell people it is AI); check
Inbox spam filter likely minimal risk; other laws still apply
Scores people's behaviour candidate: banned practice; stop and ask a specialistThe CV-ranking tool is a candidate because hiring is a named area, and the chatbot for the transparency level. The fourth use is built to match a banned example; real cases are rarely that clear. A hint prompts a question; it does not classify.
Verify application dates before a claim
Verify current EU AI Act application dates before making a compliance claim. Dates for this law have moved. Older summaries from 2024 show earlier dates for the high-risk rules and are out of date.
Legal note (as of 2026-10-12; not legal advice): The Commission's AI Service Desk timeline page, which says it takes the AI omnibus amendments into account, gives the dates in the output below. The Commission's digital-strategy page lists the AI omnibus as adopted, in force since 27 July 2026, and as delaying the high-risk obligations to 2 December 2027 (Annex III systems) and 2 August 2028 (AI in products covered by Annex I). The timeline page marks 2 December 2026, 2 December 2027 and 2 August 2028 as amended. Another Commission page, the Service Desk FAQ, still describes the changes as a Commission proposal, so the Commission's own pages are not fully in sync. The legal text on EUR-Lex could not be read for this course, so no regulation number is given for the omnibus and no date is described as unconditional. Check the current official text for your country and sector.
The adopted-or-proposed question is exactly why a claim needs the primary text. The next block prints the dates and whether each applies on the date of the facts.
from datetime import date
AS_OF = date(2026, 10, 12) # the date these facts were checked
TIMELINE = [ # (date, what): as listed on the Commission's AI Service Desk timeline page
("2024-08-01", "Act enters into force"),
("2025-02-02", "definitions, AI literacy, first prohibitions"),
("2025-08-02", "obligations for general-purpose AI models; governance; national authorities"),
("2026-08-02", "most rules and enforcement, including Article 50"),
("2026-12-02", "new ban: sexual deepfakes without consent, child sexual abuse material"),
("2027-08-02", "each Member State has at least one regulatory sandbox"),
("2027-12-02", "high-risk rules for Annex III systems (date amended)"),
("2028-08-02", "high-risk rules for AI in regulated products, Annex I (date amended)"),
]
for day, what in TIMELINE:
status = "applies" if date.fromisoformat(day) <= AS_OF else "not yet"
print(f"{day} {status:<8}{what}")2024-08-01 applies Act enters into force
2025-02-02 applies definitions, AI literacy, first prohibitions
2025-08-02 applies obligations for general-purpose AI models; governance; national authorities
2026-08-02 applies most rules and enforcement, including Article 50
2026-12-02 not yet new ban: sexual deepfakes without consent, child sexual abuse material
2027-08-02 not yet each Member State has at least one regulatory sandbox
2027-12-02 not yet high-risk rules for Annex III systems (date amended)
2028-08-02 not yet high-risk rules for AI in regulated products, Annex I (date amended)If Harbourline's tool were high-risk (an open question), the Annex III row would be the relevant date, and it has not arrived. That does not mean "nothing to do": other rows, other laws and company policy may apply now. And "we comply with the AI Act" needs more than a dated table from a secondary page: it needs the official text, a named reader and a legal check.
Country, sector and authority
Identify the applicable country, sector and responsible authority. Rules depend on where the organisation is, where the affected people are, which sector the use is in (hiring, health, finance) and your role. For the EU AI Act the Commission names the AI Office at EU level, for general-purpose AI models, and national market-surveillance and competent authorities for most other uses; the national authority names were not verified for this course, so find yours on an official government site. Most countries also have a privacy law and a privacy regulator. Fill in a sheet like this and leave unknowns visibly unknown.
Worksheet:
Where is the organisation based? ______________________ (UNKNOWN until written down)
Where do the affected people live? ______________________
Which sector is the use in? ______________________ (hiring, health, finance ...)
Our role for this tool provider | deployer | user | not sure (LQ2)
Rules that may apply (name, version, date) ______________________ found on: ____________
AI authority for this use ______________________ found on: ____________
Data-protection authority ______________________ found on: ____________
Sector regulator, if any ______________________ found on: ____________
Checked by / on ______________________Legal note (as of 2026-10-12; not legal advice): Under the GDPR, in plain words from an unofficial text site (the official text is on EUR-Lex): Article 22 gives people a right not to be subject to a decision based solely on automated processing, including profiling, that has legal or similarly significant effects, with exceptions (necessary for a contract; authorised by law with safeguards; explicit consent); where the contract and consent exceptions apply, the controller must at least offer human intervention, a way to express a view and a way to contest. Article 35 requires a written data-protection impact assessment before processing likely to result in high risk, including systematic, extensive automated evaluation (profiling) with significant effects. Whether either applies to a hiring tool is a legal question. Check the current official text for your country and sector.
Legal note (as of 2026-10-12; not legal advice): United States: our source check found no single comprehensive federal AI statute, and the balance between federal and state rules is contested. Colorado's General Assembly page shows that SB26-189, "Automated Decision-Making Technology", became law (signed 14 May 2026), with some duties starting later (for example, developer documentation duties on 1 January 2027); search summaries that were not checked against the official text report that it replaced the 2024 Colorado AI Act before that Act took effect, a sign of how fast rules can change. New York City's Local Law 144, as described by the city's Department of Consumer and Worker Protection, bars employers and agencies from using an automated employment decision tool unless it had a bias audit within one year, audit information is public and notices were given; enforcement began on 5 July 2023. Check the current official text for your country and sector.
Legal note (as of 2026-10-12; not legal advice): Elsewhere, only as reported by law-firm and policy summaries that were not checked against official texts.
United Kingdom: reported to rely on existing regulators and law, with no single AI statute. China: reported to require visible and metadata labels on AI-generated content. South Korea: reported to have an AI Basic Act in effect. Japan: reported to have a promotion-oriented framework law without fines. India: reported to use voluntary guidelines. Brazil: a bill reported as not yet law. Canada: a proposed federal bill reported as not passed. Singapore: reported to publish a voluntary framework for generative AI. African Union: reported to have a non-binding continental strategy.
These lines may be wrong or out of date. Check the current official text for your country and sector.
Record legal questions, do not resolve them
Record legal questions without pretending to resolve them. A product team can recognise a legal question and write it down, with who can answer it; it cannot answer it by reading a summary. An open question is better than a confident guess, and "open" must stay visible in the decision record from page 2.
Toy data: five legal questions about the screening feature.
LEGAL_QUESTIONS = [ # (id, question, who can answer, answer): recorded, never answered by code
("LQ1", "Is a CV-ranking tool high-risk under the AI Act's employment area?", "lawyer", ""),
("LQ2", "Is Harbourline a provider or only a deployer of the tool?", "lawyer, vendor contract", ""),
("LQ3", "Which authority supervises hiring tools where applicants live?", "official portals", ""),
("LQ4", "Is any hiring decision based solely on automated processing?", "data-protection adviser", ""),
("LQ5", "Is a written data-protection impact assessment needed?", "data-protection adviser", ""),
]
for qid, question, who, answer in LEGAL_QUESTIONS:
print(f"{qid} {'OPEN' if not answer else 'answered'} ask: {who}")
print(f" {question}")
print(sum(1 for q in LEGAL_QUESTIONS if not q[3]), "open; this script does not resolve any of them")LQ1 OPEN ask: lawyer
Is a CV-ranking tool high-risk under the AI Act's employment area?
LQ2 OPEN ask: lawyer, vendor contract
Is Harbourline a provider or only a deployer of the tool?
LQ3 OPEN ask: official portals
Which authority supervises hiring tools where applicants live?
LQ4 OPEN ask: data-protection adviser
Is any hiring decision based solely on automated processing?
LQ5 OPEN ask: data-protection adviser
Is a written data-protection impact assessment needed?
5 open; this script does not resolve any of themRequirements to evidence
Build a requirements-to-evidence mapping table. One row per requirement, in our own short wording, with the source, whether it applies, the control from page 3 that serves it and the evidence you hold. The script reports gaps; it never writes evidence for you. Here the EU rows are the duties the Commission lists for high-risk systems. They apply only if LQ1 is answered "yes", which is why the table says so.
# file: reqmap.py
def table(rows):
"""Print requirement -> control -> evidence. Gaps are reported; nothing is invented."""
print(f"{'id':<4}{'source':<7}{'applies':<13}{'requirement (our wording)':<36}{'ctrl':<7}{'evidence':<21}status")
for r in rows:
if not r["evidence"]:
status = "MISSING"
elif "partial" in r["evidence"]:
status = "partial"
else:
status = "ok"
print(f"{r['id']:<4}{r['source']:<7}{r['applies']:<13}{r['need']:<36}{r['control'] or '-':<7}"
f"{r['evidence'] or '-':<21}{status}")
missing = [r["id"] for r in rows if not r["evidence"]]
print(f"\n{len(missing)} of {len(rows)} rows have no evidence: {', '.join(missing)}")Toy data: ShortlistHelper v2 against two frameworks.
import reqmap
ROWS = [ # Toy data. EU rows apply only if the system is high-risk (LQ1 is open)
dict(id="E1", source="EU", applies="if high-risk", need="risk management", control="REG",
evidence="risk register v2"),
dict(id="E2", source="EU", applies="if high-risk", need="dataset quality", control="", evidence=""),
dict(id="E3", source="EU", applies="if high-risk", need="logging", control="C7",
evidence="access log (partial)"),
dict(id="E4", source="EU", applies="if high-risk", need="documentation", control="", evidence=""),
dict(id="E5", source="EU", applies="if high-risk", need="information for deployers", control="",
evidence=""),
dict(id="E6", source="EU", applies="if high-risk", need="human oversight", control="K2",
evidence="internal test report"),
dict(id="E7", source="EU", applies="if high-risk", need="robustness, cybersecurity, accuracy",
control="K5", evidence=""),
dict(id="N1", source="NIST", applies="voluntary", need="Govern: roles, notice, review", control="K4",
evidence="draft notice"),
dict(id="N2", source="NIST", applies="voluntary", need="Map: context, data flows", control="K3",
evidence=""),
dict(id="N3", source="NIST", applies="voluntary", need="Measure: group check, tests", control="K1",
evidence=""),
dict(id="N4", source="NIST", applies="voluntary", need="Manage: stop rule, incidents", control="K2",
evidence="internal test report"),
]
reqmap.table(ROWS)id source applies requirement (our wording) ctrl evidence status
E1 EU if high-risk risk management REG risk register v2 ok
E2 EU if high-risk dataset quality - - MISSING
E3 EU if high-risk logging C7 access log (partial) partial
E4 EU if high-risk documentation - - MISSING
E5 EU if high-risk information for deployers - - MISSING
E6 EU if high-risk human oversight K2 internal test report ok
E7 EU if high-risk robustness, cybersecurity, accuracy K5 - MISSING
N1 NIST voluntary Govern: roles, notice, review K4 draft notice ok
N2 NIST voluntary Map: context, data flows K3 - MISSING
N3 NIST voluntary Measure: group check, tests K1 - MISSING
N4 NIST voluntary Manage: stop rule, incidents K2 internal test report ok
6 of 11 rows have no evidence: E2, E4, E5, E7, N2, N3Read the status column. E1 is "ok" because the risk register exists. E3 is "partial": the access log exists for one risk, not for the whole system. E2, E4, E5 and E7 are MISSING, and so are two NIST rows whose controls exist on paper without evidence. "MISSING" does not mean the system is unlawful or unsafe; it means no evidence is on file. If LQ1 turns out "no", the EU rows may not apply, and the work is still useful.
Comparing two frameworks
Compare two frameworks without assuming they are equivalent. Two texts can mention the same topic, such as human oversight, and still ask different things of different people. This is our reading, for discussion.
| NIST AI RMF 1.0 | EU AI Act | |
|---|---|---|
| Kind | Voluntary framework, US origin, usable anywhere | Binding regulation, applies to those in scope |
| Question it asks | How should an organisation manage AI risk? | Which uses are banned or regulated, and which duties follow? |
| Meaning of "risk" | Something an organisation identifies and manages | A category assigned to a use |
| Showing conformity | Your own mapping and records | Meeting legal duties; authorities may enforce |
| Version | 1.0, 26 January 2023; revision announced | As amended; dates per the timeline |
One record can serve both: a human-oversight sample log may help with E6 and with N4. But evidence that suits one framework may not meet the other's wording, and being aligned with the voluntary one does not by itself show compliance with the binding one. Read each text.
Record versions and review dates
Record framework versions and review dates. Write down, for each source, the version or date you saw, whether you read the official text, and when you will look again. The next block uses the fixed date of the facts, so its numbers do not drift.
Toy data: an invented review record; the review dates are our choice.
SOURCES = [ # Toy record: (name, version or date as seen, binding?, official text read?, review by)
("EU AI Act", "as amended; omnibus in force 2026-07-27 per Commission pages", True, False, "2027-01-12"),
("OECD AI Principles", "adopted 2019, updated May 2024", False, True, "2027-04-12"),
("UNESCO Recommendation", "November 2021", False, True, "2027-04-12"),
("NIST AI RMF", "1.0, 26 January 2023; revision announced, none published", False, True, "2027-04-12"),
("ISO/IEC 42001", "edition: check iso.org", False, False, "2027-04-12"),
]
for name, version, binding, read, due in SOURCES:
days = (date.fromisoformat(due) - AS_OF).days
claim = "claims possible" if read else "NO claims: official text not read"
print(f"{name:<22}{'binding' if binding else 'voluntary':<10}review by {due} ({days} days) {claim}")
print(f" version: {version}")EU AI Act binding review by 2027-01-12 (92 days) NO claims: official text not read
version: as amended; omnibus in force 2026-07-27 per Commission pages
OECD AI Principles voluntary review by 2027-04-12 (182 days) claims possible
version: adopted 2019, updated May 2024
UNESCO Recommendation voluntary review by 2027-04-12 (182 days) claims possible
version: November 2021
NIST AI RMF voluntary review by 2027-04-12 (182 days) claims possible
version: 1.0, 26 January 2023; revision announced, none published
ISO/IEC 42001 voluntary review by 2027-04-12 (182 days) NO claims: official text not read
version: edition: check iso.orgThe EU row says "NO claims": the official text was not read, so no compliance claim is allowed, however good the secondary pages look. Voluntary rows say "claims possible" only in the sense that you may say "informed by" or "aligned with" if your mapping exists.
Where this shows up at work
Compliance, legal, procurement and product teams keep these records: a source list with versions, a requirements table, open legal questions and a review calendar. Customers and auditors often ask for them.
Common mistakes
- Treating "aligned with" as "compliant with". One is your own mapping; the other is a legal status.
- Quoting dates from memory or an old summary. Dates moved; confirm on the official text and write the date you checked.
- Classifying a system from its technology. The scheme sorts by use and by area; start from the use case.
- Answering legal questions in the register. Record the question, the person who can answer and the status.
- Filling evidence cells to look complete. An empty cell is information.
Try it yourself
Use the namespace from this page. The exercises revisit the K1 to K7 controls from page 3.
- Easy. Using
TIMELINEandAS_OF, print the next date that has not yet arrived, and the row for Annex III high-risk rules. Explain in one sentence why this is not enough for a compliance claim. - Medium. The agency also plans an applicant FAQ chatbot. Add two legal questions for it (one about telling people they talk to an AI, one about the provider or deployer role) without answering them, and list the open ones.
- Hard. Exercise: map the chatbot to two frameworks. Write four rows, two for the EU AI Act and two for NIST AI RMF, run
reqmap.table, and say which gap you would close first and what you still cannot claim.
Answers
Easy.
print("next date after", AS_OF, "is", [d for d, _ in TIMELINE if date.fromisoformat(d) > AS_OF][0])
print("Annex III high-risk rows:", [d for d, w in TIMELINE if "Annex III" in w])next date after 2026-10-12 is 2026-12-02
Annex III high-risk rows: ['2027-12-02']The table is from a secondary page for the facts date, the official text has not been read (see the record), and whether the tool is high-risk is open (LQ1). Pass checklist: the right two dates; at least two of the three reasons; no claim of compliance. A weak answer says "not yet due, so we are fine".
Medium.
LEGAL_QUESTIONS += [
("LQ6", "Must applicants be told they are talking to an AI?", "lawyer", ""),
("LQ7", "Is the chatbot operator a provider or a deployer?", "lawyer, vendor contract", ""),
]
print([q[0] for q in LEGAL_QUESTIONS if not q[3]])['LQ1', 'LQ2', 'LQ3', 'LQ4', 'LQ5', 'LQ6', 'LQ7']Pass checklist: both questions appear as OPEN with a person who can answer; no answer is written. A weak answer writes "yes, we must" in the answer field.
Hard. One possible answer:
CHAT = [ # Toy data: the invented applicant FAQ chatbot, mapped to two frameworks
dict(id="E8", source="EU", applies="check (LQ7)", need="people told it is an AI (provider)",
control="K4", evidence="banner text"),
dict(id="E9", source="EU", applies="check (LQ7)", need="generated text marked (provider)", control="",
evidence=""),
dict(id="N5", source="NIST", applies="voluntary", need="Map: who asks, what is at stake", control="K3",
evidence=""),
dict(id="N6", source="NIST", applies="voluntary", need="Measure: wrong or invented answers",
control="", evidence=""),
]
reqmap.table(CHAT)id source applies requirement (our wording) ctrl evidence status
E8 EU check (LQ7) people told it is an AI (provider) K4 banner text ok
E9 EU check (LQ7) generated text marked (provider) - - MISSING
N5 NIST voluntary Map: who asks, what is at stake K3 - MISSING
N6 NIST voluntary Measure: wrong or invented answers - - MISSING
3 of 4 rows have no evidence: E9, N5, N6The notice (E8, K4) has evidence; the marking row, the Map row and the Measure row have none. A sensible first step is the Measure row (wrong or invented answers), because it can harm an applicant now whatever the legal answer is, and the legal questions (LQ6, LQ7) go to a specialist in parallel. You cannot claim EU compliance or NIST "compliance"; you can say the work is informed by NIST AI RMF 1.0, with these gaps. Pass checklist: four rows with honest evidence cells; MISSING shown; a first step with a reason; no claim of compliance. A weak answer fills the empty cells or ranks the gaps without a reason.
Summary
- Principles, standards and laws are different things; write only the claim your evidence supports.
- Map a use case to a risk-based scheme as a set of questions ("candidate"), by use and area, not by technology.
- Verify application dates on the official text before any compliance claim; note which pages you saw and when.
- Identify the country, sector, role and authority, and record legal questions as open until a specialist answers.
- Build requirements-to-evidence tables that report MISSING, compare frameworks without assuming equivalence, and record versions and review dates.
Next: Fairness Metrics on Toy Data: Selection Rates and Error Rates in Python turns to the second chapter, computing and interpreting fairness measures on an invented table.

