Sub topic 15
Documenting results and governing change
This chapter assumes you can compute per-group rates and gaps, as in the earlier chapters on group metrics and the audit workflow. It covers what to write down after an audit and how to keep the result valid as the model changes.
Why a fairness result expires
A fairness audit describes one model, one dataset, one set of groups and one threshold. Change any of these and the numbers can change. Retraining on newer data, moving the decision threshold, or deploying to a new region can each reopen a gap you had closed.
Documentation records what was measured and under which conditions. Governance decides who may accept a gap, who may change the model, and what triggers a new audit.
What to record
A useful audit record answers four questions: what was tested, how, what was found, and what was decided. A short record that is always filled in beats a long template nobody completes.
| Section | Contents |
|---|---|
| Scope | Model version, intended use, decision being made, affected people |
| Data | Dataset version, date range, how group labels were obtained, group sizes |
| Method | Metrics chosen and why, thresholds, how uncertainty was estimated |
| Results | Per-group rates, gaps with confidence intervals, intersectional slices |
| Decision | Accepted gaps, mitigations applied, owner, review date |
Record the reason for choosing each metric. "Equal opportunity, because missed qualified applicants is the main harm" is useful. A bare list of numbers is not.
Also record what you could not measure. If a group had too few examples for a reliable estimate, say so. If group labels were inferred rather than self-reported, say so.
Storing results as data
Keep the machine-readable record next to the model artifact. The following script builds a record and checks it against agreed tolerances.
import json
from datetime import date
def audit_record(model_version, data_version, gaps, tolerances, group_sizes):
checks = {
name: {
"gap": round(gap, 3),
"tolerance": tolerances[name],
"pass": gap <= tolerances[name],
}
for name, gap in gaps.items()
}
return {
"date": date.today().isoformat(),
"model_version": model_version,
"data_version": data_version,
"group_sizes": group_sizes,
"checks": checks,
"release_ok": all(c["pass"] for c in checks.values()),
}
record = audit_record(
model_version="credit-v7",
data_version="2026-10",
gaps={"demographic_parity": 0.08, "equal_opportunity": 0.04},
tolerances={"demographic_parity": 0.10, "equal_opportunity": 0.05},
group_sizes={"A": 5400, "B": 610},
)
print(json.dumps(record, indent=2))
if not record["release_ok"]:
raise SystemExit("Fairness check failed: do not release.")Run this in your release pipeline so a failed check blocks deployment. Tolerances should be agreed with stakeholders before you see the results. Otherwise they tend to drift toward whatever the model achieved.
Governing change
Set triggers that require a new audit:
- A new model version, or a change to features, labels or threshold.
- A material shift in the input data, such as a new customer segment.
- A mitigation step, since it changes the error rates you measured.
- A scheduled review, for example every quarter, even if nothing changed.
Assign a named owner for each model, and a separate reviewer who can block a release. Keep old records. They show whether gaps are growing over time.
Common errors
- Reporting only the overall accuracy and one gap, with no group sizes.
- Writing the record once and never updating it after retraining.
- Letting the model's author set and approve the tolerances alone.
- Omitting limits, such as unmeasured groups, which makes the result look more complete than it is.
Exercise
Your team retrains a model monthly on fresh data and keeps the same decision threshold. Name two things in the audit record that should change with each retrain, and one governance rule that stops an unchecked model from shipping.
Show answer
The model version and data version change, and so do the per-group results, gaps and group sizes. A governance rule is an automated release check that fails when any gap exceeds its pre-agreed tolerance, with a separate reviewer approving any exception.