Lesson 08 · 40 minutes
Outline an AI management system as records with owners and dates
- Describe what an AI management system standard asks an organisation to run
- List the records of such a system with an owner and a review interval for each
- Report overdue reviews with a script that uses fixed dates
The lab folder as it stands after this lesson. Unzip it in ~/krlab.
More
The zip holds every file that the course has printed up to here. To start this lesson with the files of the earlier lessons only, take the zip of the lesson before. Type the code yourself first: you learn more.
Scenario
Harbour Credit has policies, a register, tests and plans, one by one, as the earlier lessons made them. The board now asks for "a management system", the way the company already runs quality and information security. Your lead explains the ask: not more documents, but proof that the work repeats. "For each record, who owns it, when was it last done, and when is it due again? Show me what is late." You build the list and the script on one fixed date, so that everyone sees the same report.
Recall
Lesson 7: which file in the plan of LoanScore belongs to the function Manage?
response.md, the response plan. It says what starts the response, who acts and in which order. The incident log incidents.csv is a Manage artefact too.
Lesson 3: what does the register say about a risk that has no owner?
The checker reports "no owner" for that row. A risk that nobody owns has nobody who decides on a control or accepts what remains.
The idea
ISO/IEC 42001:2023 is an international standard from ISO and IEC, "Information technology, Artificial intelligence, Management system". Its first edition came out in December 2023. It states requirements, and gives guidance, for establishing, implementing, maintaining and continually improving an AI management system in an organisation. It is for organisations that provide or use AI-based products or services, and it follows the cycle of plan, do, check and act. An organisation can choose to have an outside body certify its management system against it. KaliRange is not a certification body, and this course does not train for a certificate. The standard is sold by ISO, and this lesson does not copy its text: it uses the names of its main clauses and describes, in its own words, the records that such a system needs.
The OECD AI Principles are older and wider than a management system. The OECD (Organisation for Economic Co-operation and Development) is an intergovernmental body. It adopted its Recommendation on Artificial Intelligence in May 2019 and updated it in May 2024. It names five values-based principles for trustworthy AI: inclusive growth, sustainable development and well-being; human rights and democratic values, including fairness and privacy; transparency and explainability; robustness, security and safety; and accountability. It also gives policy makers five recommendations. It guides AI actors. Whether it binds your organisation depends on the law, the contract or the policy that refers to it. You meet it when a customer questionnaire, a tender or a public report asks which principles you follow. You answer with evidence, as the controls file of lesson 12 does. Take the exact text from the OECD.
The main clauses are named: context of the organisation, leadership, planning, support, operation, performance evaluation and improvement. The standard also names an AI risk assessment and an AI system impact assessment as separate activities. A risk assessment looks at what could go wrong for the organisation. An impact assessment looks at what the system does to the people and groups it affects.
- Plan → Do: policy, objectives, risk assessment
- Do → Check: run the controls, collect evidence
- Check → Act: monitor, audit, management review
- Act → Plan: corrective actions start the next round
A management system is a loop of records. Each record has an owner, a date of the last time it was done and an interval after which it is due again. The table shows the records of this lesson and the clause area that each one belongs to. The grouping is the course's own, to make the standard usable. It is not an official mapping.
| Record | Area | What it proves |
|---|---|---|
| AI policy, roles | Leadership | Management decided, and named who answers |
| Scope and context | Context | You know which systems and which parties are in |
| Risk assessment, impact assessment, objectives | Planning | You looked for what could go wrong, and set targets |
| Training record | Support | People are competent for their role (lesson 11 checks each person) |
| Vendor review | Operation | Suppliers are checked (lesson 9) |
| Monitoring report, internal audit, management review | Performance | You measure, and somebody independent looks |
| Corrective action log | Improvement | Problems lead to changes |
This course does not build the monitoring report. It would hold the measures of lessons 4 and 5, the selection-rate ratio and the accuracy, computed on a new month of decisions.
Worked example
Work in ~/krlab/ai-governance with the environment on. The date of this course is fixed at 2026-11-21, so that every reader gets the same report.
1. Save the list of records
Each row is one record with an owner. Some are already late.
ams_records.csv
record,area,owner,last_done,every_days
AI policy,Leadership,Aino,2026-05-21,183
Roles and responsibilities,Leadership,Aino,2026-03-01,365
Scope and context statement,Context,Aino,2026-01-15,365
AI risk assessment,Planning,Dana,2026-08-15,180
AI impact assessment of LoanScore,Planning,Dana,2026-02-10,365
AI objectives and targets,Planning,Aino,2026-01-15,365
Staff AI training record,Support,Elif,2026-06-30,365
Vendor review of ModelHost,Operation,Dana,2025-12-01,365
Monitoring report,Performance,Chidi,2026-10-31,30
Internal audit,Performance,Gus,2025-11-01,365
Management review,Performance,Aino,2026-04-01,180
Corrective action log,Improvement,Femi,2026-09-01,902. Write the report
A date has no time and no time zone here. date.fromisoformat("2026-11-21") makes a date from text, timedelta(days=183) is a span of 183 days, and adding the span to a date gives the due date. Subtracting two dates gives a span, and .days is its length in days. sorted(..., key=...) puts the oldest due date first, and lambda row: row[2] is a one-line function without a name that gives the third item of a row, the due date. The script takes an optional second word as the date, so that you can ask "what will be late on that day?". A real run would use today's date.
overdue.py
"""overdue.py: report the records of the AI management system whose review is overdue.
python3 overdue.py ams_records.csv [2026-11-21]
The date is fixed in this course, so that every reader gets the same report. A real run uses today's date.
"""
import csv
import sys
from datetime import date, timedelta
from govlib import finish
TODAY = date(2026, 11, 21)
def due_dates(path):
"""Return (record, owner, due date) for every row. A bad date raises ValueError."""
with open(path, newline="") as f:
return [(r["record"], r["owner"], date.fromisoformat(r["last_done"]) + timedelta(days=int(r["every_days"])))
for r in csv.DictReader(f)]
def problems(path, today=TODAY):
found = []
for record, owner, due in sorted(due_dates(path), key=lambda row: row[2]):
if not owner.strip():
found.append(f"{record}: no owner")
if due < today:
found.append(f"{record}: due {due}, days late {(today - due).days} (owner {owner or 'none'})")
return found
if __name__ == "__main__":
day = date.fromisoformat(sys.argv[2]) if len(sys.argv) > 2 else TODAY
finish(problems(sys.argv[1], day))python overdue.py ams_records.csvPROBLEM Management review: due 2026-09-28, days late 54 (owner Aino)
PROBLEM Internal audit: due 2026-11-01, days late 20 (owner Gus)
PROBLEM AI policy: due 2026-11-20, days late 1 (owner Aino)
problems: 3Three records are late. The management review is 54 days late, the internal audit 20 days, and the AI policy 1 day.
3. Look ahead
python overdue.py ams_records.csv 2027-01-01 | tail -4PROBLEM Monitoring report: due 2026-11-30, days late 32 (owner Chidi)
PROBLEM Corrective action log: due 2026-11-30, days late 32 (owner Femi)
PROBLEM Vendor review of ModelHost: due 2026-12-01, days late 31 (owner Dana)
problems: 6On 1 January 2027 six records would be late if nobody acts. The last three lines show the three new late records: the monitoring report, the corrective action log and the vendor review. The other three are the ones from step 2. A list like this is a plan for the next month.
4. Do the work and record it
When the three reviews are done, change their dates. sed -i edits a file in place, and the part before s picks the lines.
sed -i '/^Internal audit/s/2025-11-01/2026-11-21/' ams_records.csv
sed -i '/^Management review/s/2026-04-01/2026-11-21/' ams_records.csv
sed -i '/^AI policy/s/2026-05-21/2026-11-21/' ams_records.csv
python overdue.py ams_records.csvproblems: 0The report is clean. A date in the file is a claim that the work was done on that day, so change it only after the work.
5. The finished file
The finished file: ams_records.csv
ams_records.csv
record,area,owner,last_done,every_days
AI policy,Leadership,Aino,2026-11-21,183
Roles and responsibilities,Leadership,Aino,2026-03-01,365
Scope and context statement,Context,Aino,2026-01-15,365
AI risk assessment,Planning,Dana,2026-08-15,180
AI impact assessment of LoanScore,Planning,Dana,2026-02-10,365
AI objectives and targets,Planning,Aino,2026-01-15,365
Staff AI training record,Support,Elif,2026-06-30,365
Vendor review of ModelHost,Operation,Dana,2025-12-01,365
Monitoring report,Performance,Chidi,2026-10-31,30
Internal audit,Performance,Gus,2026-11-21,365
Management review,Performance,Aino,2026-11-21,180
Corrective action log,Improvement,Femi,2026-09-01,90Your turn
The clinic network of Harbour Credit (invented) keeps its own list. Save it as ams-clinic.csv. There are no steps: run the report on the fixed date, and again for the last day of the year.
ams-clinic.csv
record,area,owner,last_done,every_days
AI policy,Leadership,Mona,2026-09-01,180
AI risk assessment,Planning,Nico,2026-04-10,180
AI impact assessment,Planning,,2026-01-05,365
Internal audit,Performance,Olga,2026-02-01,365
Management review,Performance,Mona,2026-06-15,120
Monitoring report,Performance,Nico,2026-11-01,30Last, propose an interval for each of the six records and write one line for each: why that interval.
Check yourself
The monitoring report is monthly and the internal audit is yearly. Why do the intervals differ?
The interval follows how fast the thing changes and how costly the check is. Accuracy and fairness can drift within weeks, so the monitoring report is frequent. An audit needs independent people and time, so it is rarer. After an incident or a big change you review earlier.
What is the difference between a risk assessment and an impact assessment?
A risk assessment looks at what could go wrong for the organisation: harm, cost, law. An impact assessment looks at what the system does to the people and groups that it affects, whether or not that hurts the organisation. A lender can have a small risk of loss and still a large impact on an applicant.
A tender asks: "Which of the OECD AI Principles do you follow?" What do you answer?
Name the five principles, and for each one point to a control and a file that you keep: for inclusive growth the context map, for human rights the fairness report and the impact assessment, for transparency and explainability the model card and the explanation records, for robustness, security and safety the oversight rule and the security records, for accountability the RACI table. If a principle has no file yet, say so plainly. Do not claim a certificate: the OECD page gives values and recommendations, not a certificate. Say how you check each principle and who owns it.
A record is on time in the file, but nobody can find the document. What does that say about the system?
The date is a claim without evidence. A management system needs the record itself: a link or a path in the list, and a rule that auditors can open it. Add a file column to your list, and let the checker test that the file exists, as lesson 7 does.
Field notes
- Certification is a choice, and the standard is not the only route. A management system that runs well on your own records has value before any certificate. If you want one, ask the certification body what evidence it expects.
- Scope matters. Write which systems are inside the management system and which are not. An auditor reads the scope first.
- An internal audit must be done by someone who does not own the thing audited (lesson 1: separation of duties). In a small team, ask a colleague from another team.
- Corrective actions need an owner, a due date and a closing check. The log of this lesson is the place for them, and the same overdue script can report them.
- Read the standard itself before you claim to follow it. This lesson uses only the names of its clauses and its purpose. Annexes with controls and guidance exist, and your compliance team should read the current text.