Chapter 3 · Documentation and Oversight
Model Cards, System Cards and Datasheets: What to Document and for Whom
- Page 9 of 22
- 16 min read
A feature that nobody has written down cannot be reviewed, handed over or challenged. Data Rights, Transfers and Records: Requests, Retention and Audit Trails showed how to keep records about data. This page is about records on the AI itself: what it is for, what it was tested on, where it is weak and who watches it. You will build a card for the hypothetical applicant-screening feature from the earlier pages, as structured data, one section at a time.
You need Python 3.12 and its standard library only: no packages, no network, no model calls. Type the blocks in order into one session, in one folder; they share variables, and the text under a block is its real output.
Honesty convention. Every company, person, file name and number on this page is invented, and the data is labelled
Toy data:. A card, even a good one, is a documentation approach. It is not a certificate of safety, fairness or legal compliance, and nobody should read "has a card" as "has been approved". Nothing here is legal advice.
What you will learn
- How a model card, a system card and a datasheet for a dataset differ, and who each one serves.
- How to write intended use, out-of-scope use and the intended user population so that they can be checked.
- How to record evaluation conditions, limitations, language and regional coverage, accessibility, oversight and failure modes.
- How to write "UNKNOWN" honestly instead of leaving a gap or inventing a claim.
- How to hold a card as a Python dictionary and save it as JSON.
Cards are documentation, not certificates
Documentation helps people decide. A reader learns what the makers intended, what they tested and what they did not. It does not make the system safe: a feature can have a fine card and still harm people, and a card can be accurate about a weak system. Three things follow.
- A card describes a version at a date. Change either and the card may be wrong.
- A card is only as good as its evidence. "Bias tested: passed" with no data behind it is a claim, not documentation.
- Gaps are information. "UNKNOWN: not tested" tells a reader where to be careful; silence tells them nothing.
Model card, system card and datasheet
Distinguish a model card from a system card. Mitchell and colleagues (2019) proposed model cards: short documents that accompany a trained model and report how it performs under stated conditions, including across different groups, together with the context it is meant for. Gebru and colleagues proposed datasheets for datasets: a document for each dataset covering why it was made, what it contains, how it was collected and what it is recommended for. Both are proposals from research papers, not a binding format.
"System card" is not one standard term, and its meaning varies. In this course it means a document about the whole deployed system: the model, the code around it, the interface, the people who act on its output and the rules for escalation. In the screening feature, the model scores CVs; the system also includes the upload form, the ranked list, the recruiter who opens only the top 20% and the monthly sample check.
| Document | Describes | Main readers | Typical content |
|---|---|---|---|
| Model card | One trained model | Engineers choosing or reusing a model; auditors | Intended use, evaluation conditions and results, limits |
| Datasheet | One dataset | People who train, test or reuse on it | Motivation, composition, collection, recommended uses |
| System card | Model plus workflow and people | Owners, reviewers, deployers, support staff | Everything above, plus oversight, escalation, failure modes |
The reader matters because it decides the wording. A recruiter needs "do not use the score for staff" in one plain line. A maintainer needs the file that holds the test results. An applicant needs to know that an AI is used and how to ask for a person (next page). One card rarely serves all of them; plan which parts are public and which stay internal.
Legal note (as of 2026-10-12; not legal advice): The European Commission's page on the EU AI Act lists documentation and information for deployers among the duties of providers of high-risk AI systems. It also says providers of general-purpose AI models must supply documentation and a public summary of training data, and the voluntary General-Purpose AI Code of Practice includes a Model Documentation Form. Treat this as the concept only: whether a duty applies to you, and what the required documentation must contain, depends on the legal text, your role and your sector, and the application dates have been amended. A card like the one below does not by itself meet any legal requirement. Source type: the Commission's regulatory-framework page for AI; check the current official text for your country and sector.
Start the card: identity, use and users
We keep the card as a Python dictionary. A small file holds three helpers. unknown() records a gap on purpose: it says what is not known and why.
# file: card.py
import json
def new_card(name, version, owner, as_of):
return {"card_type": "system card (draft)", "name": name, "version": version,
"owner": owner, "as_of": as_of}
def unknown(why):
"""An honest gap: say what is not known and why. Never replace it with a guess."""
return {"status": "UNKNOWN", "why": why}
def show(card, *keys):
print(json.dumps({k: card[k] for k in keys}, indent=2, ensure_ascii=False))Identify intended use and out-of-scope use. Intended use is the job the feature is built and tested for. Out-of-scope use is what it must not be used for, even though it would be easy. Out-of-scope entries come from the misuse you listed in the impact assessment on page 1. Document the intended user population in the same step: who operates the feature, who is affected by it, and who it is not meant for. Tests only cover the people they included, so this list tells a reader how far the evidence reaches.
Toy data: the first sections of the card.
from card import new_card, unknown, show
card = new_card("ShortlistHelper (hypothetical)", "0.3",
"Head of recruitment (a role)", "2026-10-12")
card["intended_use"] = "order the CVs for ONE job, so a recruiter knows which to read first"
card["out_of_scope"] = [
"rejecting applicants without a person reading the CV",
"ranking or judging current staff",
"any decision about pay, promotion or dismissal",
"jobs other than the one the requirements were written for",
]
card["intended_users"] = {
"operators": "2 recruiters trained on the tool",
"affected": "applicants, who do not see their score",
"not_intended": "managers who see scores without the CV",
}
show(card, "intended_use", "out_of_scope", "intended_users"){
"intended_use": "order the CVs for ONE job, so a recruiter knows which to read first",
"out_of_scope": [
"rejecting applicants without a person reading the CV",
"ranking or judging current staff",
"any decision about pay, promotion or dismissal",
"jobs other than the one the requirements were written for"
],
"intended_users": {
"operators": "2 recruiters trained on the tool",
"affected": "applicants, who do not see their score",
"not_intended": "managers who see scores without the CV"
}
}The wording is narrow on purpose. "Improve hiring" cannot be tested; "order the CVs for one job" can. A reader can also see at once that one person (a recruiter) is expected to act on every score.
Evaluation, limits, language and accessibility
Record evaluation conditions and test coverage. A result means something only with the conditions it was measured in: what data, what language, which period, who ran the test, and where the evidence is kept. Record what was not covered as carefully as what was.
Document known performance limitations. A limitation names a way the feature is weaker, with the evidence for it. Evidence can be a test file, the design itself, or unknown() when nobody has checked.
card["evaluation"] = {
"question": "does the score order agree with a later full review of each CV?",
"data": "40 invented past applicants (Toy data), 2 comparison groups, 1 job type",
"conditions": {"cv_language": "English", "cv_format": "PDF and DOCX with text",
"period": "2026-09", "run_by": "internal team, not independent"},
"evidence_file": "eval/shortlist_check_01.csv",
"not_covered": ["scanned or image-only CVs", "CVs under 150 words",
"more than 1 job type", "groups other than the 2 compared"],
}
card["limitations"] = [
{"limit": "scores use CV text only; skills not written down are invisible",
"evidence": "design of the feature"},
{"limit": "40 people are too few to show that a group difference is absent",
"evidence": "eval/shortlist_check_01.csv"},
{"limit": "a score of 80 does not mean 80% chance of being suitable",
"evidence": unknown("no calibration test has been run")},
]
show(card, "evaluation", "limitations"){
"evaluation": {
"question": "does the score order agree with a later full review of each CV?",
"data": "40 invented past applicants (Toy data), 2 comparison groups, 1 job type",
"conditions": {
"cv_language": "English",
"cv_format": "PDF and DOCX with text",
"period": "2026-09",
"run_by": "internal team, not independent"
},
"evidence_file": "eval/shortlist_check_01.csv",
"not_covered": [
"scanned or image-only CVs",
"CVs under 150 words",
"more than 1 job type",
"groups other than the 2 compared"
]
},
"limitations": [
{
"limit": "scores use CV text only; skills not written down are invisible",
"evidence": "design of the feature"
},
{
"limit": "40 people are too few to show that a group difference is absent",
"evidence": "eval/shortlist_check_01.csv"
},
{
"limit": "a score of 80 does not mean 80% chance of being suitable",
"evidence": {
"status": "UNKNOWN",
"why": "no calibration test has been run"
}
}
]
}Record language and regional coverage. A model that handles one language well may do worse on another, and CV conventions differ between countries. Say which languages and places were tested, which were not, and what happens to the rest.
Document accessibility considerations. Ask whether people with disabilities can use the parts they touch, such as the upload form, and whether the feature treats their documents fairly. Name the alternative route if the main one fails.
card["language_regional_coverage"] = {
"tested": ["English"],
"not_tested": ["Spanish", "Bangla", "Japanese", "CVs mixing two languages"],
"regions": unknown("past applicants' locations were not recorded"),
"rule": "a CV in an untested language is read by a person and not scored",
}
card["accessibility"] = {
"upload_form": unknown("not reviewed with assistive technology"),
"alternative_route": "applicants may email a CV; a recruiter reads it without a score",
"untested_risk": "unusual layouts (some made with accessibility tools) may parse badly",
}
show(card, "language_regional_coverage", "accessibility"){
"language_regional_coverage": {
"tested": [
"English"
],
"not_tested": [
"Spanish",
"Bangla",
"Japanese",
"CVs mixing two languages"
],
"regions": {
"status": "UNKNOWN",
"why": "past applicants' locations were not recorded"
},
"rule": "a CV in an untested language is read by a person and not scored"
},
"accessibility": {
"upload_form": {
"status": "UNKNOWN",
"why": "not reviewed with assistive technology"
},
"alternative_route": "applicants may email a CV; a recruiter reads it without a score",
"untested_risk": "unusual layouts (some made with accessibility tools) may parse badly"
}
}Oversight and failure modes
Describe human oversight and escalation paths. Write who decides, who can override, what signals send a case to someone else, and who can stop the feature. Keep roles, not names. Human Oversight Design: Meaningful Review, Not Rubber-Stamping (page 11) tests whether such a path works in practice.
Document known failure modes. A failure mode is a specific way the system goes wrong. For each one, record how you would notice it and what happens next. A failure mode with no signal is a risk you have agreed not to see.
card["human_oversight"] = {
"decides": "a recruiter decides whom to interview; the score never decides alone",
"override": "any recruiter may open any CV, whatever its score",
"escalation": [
"parse warning on a CV -> read it by hand",
"applicant objects to a result -> Head of recruitment reviews it in 5 working days",
"2 or more suspected scoring errors in a week -> pause the feature",
],
"monitoring": "each month a person reads a sample of 50 low-ranked CVs",
}
card["failure_modes"] = [
{"mode": "layout not parsed, so a CV scores near 0",
"signal": "parse warning", "response": "read by hand"},
{"mode": "recruiters stop opening low-ranked CVs",
"signal": "monthly sample finds suitable CVs ranked low", "response": "review the workflow"},
{"mode": "score reused to rank staff",
"signal": "access log shows non-recruiting use", "response": "block access, report"},
]
show(card, "human_oversight", "failure_modes"){
"human_oversight": {
"decides": "a recruiter decides whom to interview; the score never decides alone",
"override": "any recruiter may open any CV, whatever its score",
"escalation": [
"parse warning on a CV -> read it by hand",
"applicant objects to a result -> Head of recruitment reviews it in 5 working days",
"2 or more suspected scoring errors in a week -> pause the feature"
],
"monitoring": "each month a person reads a sample of 50 low-ranked CVs"
},
"failure_modes": [
{
"mode": "layout not parsed, so a CV scores near 0",
"signal": "parse warning",
"response": "read by hand"
},
{
"mode": "recruiters stop opening low-ranked CVs",
"signal": "monthly sample finds suitable CVs ranked low",
"response": "review the workflow"
},
{
"mode": "score reused to rank staff",
"signal": "access log shows non-recruiting use",
"response": "block access, report"
}
]
}A datasheet for the data behind it
Understand datasheets for datasets. The test data above came from somewhere. A datasheet keeps that story with the data, using the four headings from the Gebru paper: motivation, composition, collection process and recommended uses. We add what the data should not be used for.
datasheet = {
"dataset": "past_applicants_2023_2025 (invented)",
"motivation": "to test whether the score order matches a later full review",
"composition": "40 past applicants (Toy data); fields: CV text, label, 2 group tags",
"collection": "taken from the agency's own archive; group tags added by hand for testing",
"recommended_uses": ["checking score order for the one job type"],
"not_recommended": ["training a new model", "any use outside the agency"],
"permission": unknown("applicants' consent for research use has not been checked"),
}
card["datasets"] = [datasheet]
show(datasheet, "motivation", "recommended_uses", "not_recommended", "permission"){
"motivation": "to test whether the score order matches a later full review",
"recommended_uses": [
"checking score order for the one job type"
],
"not_recommended": [
"training a new model",
"any use outside the agency"
],
"permission": {
"status": "UNKNOWN",
"why": "applicants' consent for research use has not been checked"
}
}The last entry is the most useful: the team has not yet checked whether applicants agreed to this use. The next page treats data permissions in detail. For now the lesson is that a datasheet makes the gap visible.
Save the card and count the gaps
import json, textwrap
def gaps(x):
if isinstance(x, dict):
return (1 if x.get("status") == "UNKNOWN" else 0) + sum(gaps(v) for v in x.values())
if isinstance(x, list):
return sum(gaps(v) for v in x)
return 0
with open("card.json", "w", encoding="utf-8") as f:
json.dump(card, f, indent=2, sort_keys=True, ensure_ascii=False)
print("top-level entries:", len(card))
print(textwrap.fill("sorted: " + ", ".join(sorted(card)), 90))
print("UNKNOWN entries:", gaps(card))top-level entries: 15
sorted: accessibility, as_of, card_type, datasets, evaluation, failure_modes,
human_oversight, intended_use, intended_users, language_regional_coverage, limitations,
name, out_of_scope, owner, version
UNKNOWN entries: 4Four honest gaps are recorded. That is a healthy sign, not a failing: a card with no UNKNOWN anywhere has usually not looked hard. Also note what the card does not claim. It does not say the feature is fair, accurate or approved.
Where this shows up at work
Teams attach a card to each release, review it before a pilot and update it when the model, data or workflow changes. Vendors send documents of this kind when you buy a system; reading them for gaps is the first step of due diligence (page 18). A card is often the first thing an auditor or a new colleague asks for.
Common mistakes
- Writing the card once, at launch. It goes stale. Give it a version and an
as_ofdate, and update it with each change. - Documenting only the model. The harm often sits in the workflow around it. Describe the people and decisions too.
- Using the card as a certificate. "We have a card" is not evidence of safety. Readers should be able to see the tests behind each claim.
- Leaving gaps blank. A blank can mean "not applicable", "forgot" or "never checked". Write UNKNOWN and why.
- Hiding limits in a long list. Put the limits that change what a reader does first, in plain words.
Try it yourself
Use the namespace from this page. The exercises revisit Transparency, Explanation and Accountability: Who Answers for an AI Decision from the Beginner tutorial.
- Easy. Decide whether each statement belongs best in a model card, a datasheet or a system card: (a) "The score was tested on English CVs only." (b) "The past CVs came from the agency's own archive." (c) "A recruiter reads every case escalated by a parse warning."
- Medium. A colleague wants to add "Bias tested: passed" to the card. Replace it with entries the card can support today, using only facts on this page. Add them to the card and print them.
- Hard. Write
paths(card)that returns the path of every UNKNOWN entry, such aslanguage_regional_coverage.regions, and print them sorted.
Answers
Easy. (a) model card (evaluation conditions), but in a system card too if it limits the whole system; (b) datasheet (collection process); (c) system card (oversight and escalation).
Pass checklist: each answer names the thing described (model, data or workflow) and not just the heading. A weak answer places everything in the model card.
Medium.
card["fairness_checks"] = {
"done": "score order compared with a later full review, for 2 groups, on 40 people",
"result_location": "eval/shortlist_check_01.csv",
"not_done": ["tests for other groups", "tests with larger samples", "independent review"],
"claim": "no claim is made that the feature is fair or free of bias",
}
show(card, "fairness_checks"){
"fairness_checks": {
"done": "score order compared with a later full review, for 2 groups, on 40 people",
"result_location": "eval/shortlist_check_01.csv",
"not_done": [
"tests for other groups",
"tests with larger samples",
"independent review"
],
"claim": "no claim is made that the feature is fair or free of bias"
}
}Pass checklist: describes what was done and where the evidence is; lists what was not done; makes no pass/fail verdict. A weak answer keeps the word "passed" or invents a number.
Hard.
def paths(x, prefix=""):
found = []
if isinstance(x, dict):
if x.get("status") == "UNKNOWN":
found.append(prefix)
for key, value in x.items():
found += paths(value, f"{prefix}.{key}" if prefix else key)
elif isinstance(x, list):
for i, value in enumerate(x):
found += paths(value, f"{prefix}[{i}]")
return found
for p in sorted(paths(card)):
print(p)accessibility.upload_form
datasets[0].permission
language_regional_coverage.regions
limitations[2].evidencePass checklist: recursion handles both dictionaries and lists; paths are readable; the count matches the earlier block (four). A strong answer notes that this finds gaps a person marked UNKNOWN, not gaps nobody noticed.
Summary
- A model card describes a model, a datasheet describes a dataset, and a system card describes the whole workflow with its people. All three are documentation approaches, not certificates.
- Write intended use, out-of-scope use and the user population narrowly enough to test.
- Record evaluation conditions, limitations, language and region, accessibility, oversight and failure modes with their evidence.
- Write UNKNOWN and the reason instead of a blank or a guess.
- Version and date every card; it describes one version at one point in time.
Next: Disclosures and Documentation Validation: Checking a System Card with Python adds versions, data permissions, a plain-language disclosure and automatic checks for missing evidence and contradictions.

