An illustrative scene: a team merges a model-generated database migration on a Friday. Three weeks later, during an incident review, someone asks which model version produced it, who approved it, and what data the run touched. The repository answers none of it; the branch is gone and the pull request shows a green check.
That gap is the exercise. It assumes a repository with review history, an agreed definition of "agent" (a person or a service), and a shared understanding that the record proves lineage, not correctness. The W3C PROV data model supplies the vocabulary: entities, activities and agents, with an association linking an agent to the activity it is responsible for. The specification is explicit that provenance records lineage and does not certify correctness — the right scope for an audit trail.
The worked example
Label it illustrative; nothing here has been executed. A provenance record for one change might look like:
{ "entity": {"commit": "abc123", "artifact": "migrations/0042.sql"}, "activity": {"type": "model_invocation", "model": "vendor/model@2026-11"}, "agent": {"approver": "user:li", "association": "reviewed_and_merged"}, "used": ["dataset:staging_snapshot"], "recorded_at": "2026-12-03T09:00:00Z" } Steps
Run it in ninety minutes. Ten framing the three questions the record must answer: what artifact, which activity and model version, and which accountable agent. Twenty for pairs to write the record for a real merged change. Twenty-five for adversarial review, where one pair tries to break another's record by asking what a shared service account approved. Twenty rerunning the check below, fifteen debriefing.
The check is one query: given a commit, return the activity, the model version, and a named human agent. Expected observation is a single row with all three fields populated. If the agent resolves to a bot or a shared account, the record has failed; accountability needs a person, so record the approving human alongside the automation.
Two failures recur. Teams store the credential instead of an identifier; RFC 6750 notes a bearer token can be presented by anyone holding it, so a leaked audit log becomes a leaked key — record a token identifier or hash. Teams also record a model family without a version, which is useless six months on.
This does not fit contexts requiring signed attestation from an external auditor; PROV is a vocabulary, not a compliance certificate.
This article was created with AI assistance.


