Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

Lesson 11 · 40 minutes

Set up the AI governance body, name its jobs and check who is trained

After this lesson you can
  • Say what an AI Center of Excellence decides and how it relates to the roles of lesson 1
  • Map AI job titles to the duties of the RACI table and find a person whose job does not allow a duty
  • Keep a dated awareness training record and fail the check when a date is too old
Lab files of this lesson (59)

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

The board of Harbour Credit forms an AI Center of Excellence and asks two questions. May each person do the duty that the RACI table gives them? Do the staff know the rules? Your task: put the answers in files, and write a check that fails until the files are right.

Recall

Lesson 1: why must the approver not be a person who builds the same system?

A builder who approves their own work has a reason to see no problem.

Lesson 8: why does an auditor hold no part in what they audit?

An auditor must be independent. Someone who audits their own work finds what they want to find.

The idea

An AI Center of Excellence (CoE, also written centre of excellence) is a small team from several functions that keeps the shared skill for AI work in one place. It typically keeps the policy, the templates, the checkers and the list of approved tools, and takes in requests for new AI use. It decides standards, not systems. The approver of lesson 1 still decides whether one system goes live, and the owner still answers for it. A CoE that approves every system becomes a queue, and a queue makes shadow AI (lesson 2). An exception to a rule is decided by the CoE lead and the owner together, in writing.

Where the CoE sits
BoardAI Center of ExcellenceTeamsBoardCoE leadStandards and toolsSystem ownerBuilder1234BoardAI Center of ExcellenceTeamsBoardCoE leadStandards and toolsSystem ownerBuilder1234
  1. Board → CoE lead: sets the policy and the limits
  2. CoE lead → Standards and tools: owns templates, checks, tool list
  3. Standards and tools → Builder: used in every build
  4. System owner → CoE lead: asks for a tool or an exception

Organisations use job titles, not the four duties of lesson 1. This table maps ten AI-related jobs to the activities of the RACI table, in the course's own way (it is not a standard). A data pipeline is the set of jobs that move and clean data. MLOps is running models in production, which means for real users.

JobTypical workMay hold
Data scientistTrains and tests modelsbuild
Data engineerBuilds the data pipelinesbuild
Machine learning engineerTurns a model into code that runs in productionbuild
AI architectDesigns the whole solutionbuild
Platform engineerRuns compute and cloudbuild, run
MLOps engineerAutomates release and monitoringbuild, run
AI security architectJudges the defences of a systemreview
AI governance engineerTurns policy into checks (checks are review work)review
AI risk analystKeeps and scores the registerreview
AI auditorChecks independentlynone

A job that reviews does not build the system under review, and that is why the jobs that judge a system (security architect, governance engineer, risk analyst) sit under review. The auditor holds no activity, because an auditor must be independent of what is audited (lesson 8). The course adds three more. The business owner is the owner of lesson 1, who is accountable for build and run. The approver is the person that lesson 1 names for each system, who decides that it may go live: they may review and approve, never build. An approver who also reviews is allowed here, and is a weaker check than an outsider. The CoE lead holds none of the four activities of one system, because the CoE sets standards for all of them and does not decide for one.

Awareness training is a short course for all staff: the approved tools (lesson 2), the data that never goes to a public tool (lesson 9), checking an AI answer before use (lesson 3), the rule on source code (lesson 12) and whom to tell about an incident (lesson 7). Keep it as a record: who, when, and when it is due again. Here it is due after 365 days.

Worked example

Work in ~/krlab/ai-governance with the environment on. This lesson uses raci.csv of lesson 1, and inventory.py, overdue.py and govlib.py of lessons 1, 2 and 8.

1. Save the jobs and the people

jobs.json says which activities each job may hold. people.csv gives each person a job and the date of the last awareness training. Gus is the internal auditor of lesson 8, Elif is the approver of lesson 1, and Hugo leads the CoE.

jobs.json

{
  "business owner": ["build", "run"],
  "data scientist": ["build"],
  "data engineer": ["build"],
  "machine learning engineer": ["build"],
  "AI architect": ["build"],
  "platform engineer": ["build", "run"],
  "MLOps engineer": ["build", "run"],
  "AI security architect": ["review"],
  "AI governance engineer": ["review"],
  "AI risk analyst": ["review"],
  "approver": ["review", "approve"],
  "CoE lead": [],
  "AI auditor": []
}

people.csv

person,job,trained
Aino,business owner,2026-06-30
Bram,machine learning engineer,2026-06-30
Chidi,AI security architect,2026-07-14
Dana,AI risk analyst,2026-06-30
Elif,approver,2026-06-30
Femi,MLOps engineer,2026-07-14
Gus,AI auditor,2026-06-30
Hugo,CoE lead,2026-06-30

2. Write the checker

The check joins the RACI table to the people file. Each person needs a known job, may hold only the activities of that job, and must be trained in the 365 days before the date of the check. The date is the fixed TODAY of lesson 8, and a caller can pass another. New syntax: sys.argv[1:4] is the three words after the script name, and * hands them over as three arguments. {job!r} prints a value with quotes. {(a, b) for ...} builds a set of pairs, so a pair that repeats counts once.

people_check.py

"""people_check.py: check that each person of the RACI table has a job, may hold the activity, and is trained.
    python3 people_check.py people.csv raci.csv jobs.json"""
import json
import sys
from datetime import date

from govlib import finish
from inventory import load
from overdue import TODAY

TRAINING_DAYS = 365


def problems(people_path, raci_path, jobs_path, today=TODAY):
    with open(jobs_path) as f:
        jobs = json.load(f)
    found, job_of = [], {}
    for row in load(people_path):
        person, job = row["person"], row["job"]
        job_of[person] = job
        if job not in jobs:
            found.append(f"{person}: job {job!r} is not in {jobs_path}")
        if not row["trained"]:
            found.append(f"{person}: no AI awareness training")
        elif (today - date.fromisoformat(row["trained"])).days > TRAINING_DAYS:
            found.append(f"{person}: AI awareness training is older than {TRAINING_DAYS} days")
    for person, activity in sorted({(r["person"], r["activity"]) for r in load(raci_path)}):
        if person not in job_of:
            found.append(f"{person} is in the RACI table and not in the people file")
        elif job_of[person] in jobs and activity not in jobs[job_of[person]]:
            found.append(f"{person} ({job_of[person]}) holds {activity}, which this job may not")
    return found


if __name__ == "__main__":
    finish(problems(*sys.argv[1:4]))
python people_check.py people.csv raci.csv jobs.json
problems: 0

3. Break the people on purpose

A check that has never failed is not proven. Make Femi an auditor (an auditor may not run a system), and give Dana a training date that is too old. sed 's/a/b/; s/c/d/' makes two changes in one pass.

sed 's/Femi,MLOps engineer/Femi,AI auditor/; s/^Dana,AI risk analyst,2026-06-30/Dana,AI risk analyst,2025-10-01/' people.csv > people2.csv
python people_check.py people2.csv raci.csv jobs.json
PROBLEM Dana: AI awareness training is older than 365 days
PROBLEM Femi (AI auditor) holds run, which this job may not
problems: 2

Ask the other question as well. In raci.csv Elif approves. Give her the job of CoE lead in a copy and run the check: it reports that a CoE lead may not hold approve. That is the rule of the idea above, in a form that fails.

sed 's/Elif,approver/Elif,CoE lead/' people.csv > people3.csv
python people_check.py people3.csv raci.csv jobs.json
PROBLEM Elif (CoE lead) holds approve, which this job may not
problems: 1

The check proves that the files agree with the job rules and that the dates are recent. It does not prove that a person learned anything. For that, ask a short question set after the course and keep the result next to the date.

Your turn

Tern Logistics (invented, lesson 1) sent the people of its RACI table. Run the people check on people-team.csv with raci-team.csv. There are no steps.

people-team.csv

person,job,trained
Ola,MLOps engineer,2026-03-10
Pia,business owner,2026-02-01
Quin,data scientist,2025-09-15
Rhea,AI auditor,2026-05-20
Sol,AI risk analyst,
Tamsin,CoE lead,2026-08-02
Uma,machine learning engineer,2026-04-12
Vik,business owner,2026-04-12

Check yourself

The CoE lead says: "No system goes live without my signature." What is wrong with this rule?

It moves the decision from the approver and the owner to one person, and it makes a queue. Teams then go around it with unlisted tools (lesson 2). The CoE sets standards. The approver of each system still decides.

Why does the AI auditor hold no activity in the RACI table?

A person who builds, reviews, approves or runs a system would audit their own work. Independence is the point of an audit.

Every person is trained inside 365 days. What has the check not shown?

That anybody understood the rules. The record shows that a course happened. A short test after the course, kept with the date, is better evidence.

Field notes

  • Keep jobs.json, people.csv and the files of lesson 12 in the repository with the code, and give each an owner and a review date. A person with two jobs needs two rows or a recorded decision from the CoE lead.
  • The job table is the course's own mapping. Job titles differ between organisations, so adapt the names and keep the rule: nobody reviews or approves what they built.
  • 365 days is a choice. A new hire needs the course before they touch a system, and a change of policy may need an early repeat. Write the rule in the policy of lesson 1.
  • The CoE needs a mandate from the board and a budget. A CoE with neither advises and does not decide.