System Cards, Audits, and Impact Assessments › The worked example: one change, three documents

Michael BrenndoerferDecember 2, 202613 min read
Language AI HandbookAll chapters
Part 62 of 67Human-AI Interaction and Governance
Chapter 476System Cards, Audits, and Impact Assessments › The worked example: one change, three documents
Reading section 6 of 9 · The worked example: one change, three documents · 13 minSection 6 of 9 · 13 min

Section 6 of 9 · 13 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

To make the interlocking machinery concrete, we will build a small, self-contained registry for a fictional system called ClinicGuard, an assistant that drafts prior-authorization summaries for a health insurer. It is a language model plus a retrieval index over the insurer's policy documents, a PII redaction step (see PII Removal), a readability post-processor, and a human review step. Three artifacts describe it: a system card, an independent audit report, and an impact assessment. Each is a versioned document. Claims within each point to evidence. Data flows through the system from intake to delivery, so any fact stored in a variable is potentially part of an audit trail.

We will first model the documents and their claims, then apply a change to the deployment and show which claims in which documents go stale, then produce the update obligations.

The artifacts and their claims

A claim is any statement in a document that could be true or false. In the registry we track the claim text, the document it belongs to, the evidence objects that support it, and the deployment properties the claim depends on. When a deployment property changes, claims that depend on it are flagged for re-verification. The design decision that makes this work is separating the claim from its dependencies: the claim text says what is asserted, and the dependency set says what would have to change for the assertion to become doubtful. Keeping those two things distinct is what lets the registry compute invalidation instead of relying on human memory.

Term: claim-level provenance

The practice of attaching, to each non-trivial statement in an artifact, the specific evidence object (evaluation run, dataset snapshot, config file, log extract) that supports it and the deployment properties whose change can invalidate the earlier evidence’s applicability.

PythonIn [3]
CollapseExpand
from dataclasses import dataclass, field
from datetime import date


@dataclass(frozen=True)
class Evidence:
    """A citable artifact: evaluation run, dataset snapshot, config, log extract."""

    evidence_id: str
    kind: str  # "eval_run" | "dataset_snapshot" | "config" | "log_extract"
    reference: str  # path, DOI, run URL, or content hash
    date: date
    captured_under: str  # harness + version + decoding settings, e.g. "evalsuite-2.3; T=0.0; greedy"


@dataclass(frozen=True)
class Claim:
    claim_id: str
    document: str  # "system_card" | "audit_report" | "impact_assessment"
    text: str
    supports: tuple[str, ...]  # evidence_ids backing the claim
    depends_on: frozenset[
        str
    ]  # deployment properties the claim is sensitive to


@dataclass
class Document:
    name: str
    version: str
    published: date
    claims: list[Claim] = field(default_factory=list)

An evidence record names its source and the conditions under which it was captured. The fields make a record inspectable. In a production registry, validate references, bind each record to immutable source bytes, and check whether the source supports the claim.

Populating the registry

We register three artifacts at version 1.0. Each claim cites at least one evidence object.

PythonIn [4]
CollapseExpand
card_evals = Evidence(
    evidence_id="EV-101",
    kind="eval_run",
    reference="run://clinicguard/card-1.0/prior-auth-evals",
    date=date(2024, 6, 3),
    captured_under="evalsuite-2.3; 1500 cases; T=0.0; max_tokens=1024",
)
safety_eval = Evidence(
    evidence_id="EV-102",
    kind="eval_run",
    reference="run://clinicguard/card-1.0/red-team-v2",
    date=date(2024, 6, 3),
    captured_under="redteam-suite-5.1; 2400 prompts; T=0.0",
)
policy_snapshot = Evidence(
    evidence_id="EV-103",
    kind="dataset_snapshot",
    reference="snapshot://clinicguard/policy-index-2024-05",
    date=date(2024, 5, 21),
    captured_under="indexer-3.0; token chunk=512; overlap=64; 12,847 passages",
)
audit_evidence = Evidence(
    evidence_id="EV-104",
    kind="log_extract",
    reference="audit://clinicguard/2024-Q2/incident-excerpts",
    date=date(2024, 7, 15),
    captured_under="access=black_box+docs; window=2024-04-01..2024-06-30",
)
aia_pii = Evidence(
    evidence_id="EV-105",
    kind="config",
    reference="config://clinicguard/pii-redactor-1.2",
    date=date(2024, 6, 10),
    captured_under="redactor-1.2; entity_types=NAME,DOB,MEMBER_ID,ADDR",
)
review_config = Evidence(
    evidence_id="EV-106",
    kind="config",
    reference="config://clinicguard/release-routing-v1",
    date=date(2024, 6, 10),
    captured_under="staff approval required; no auto-release route; no direct member advice",
)

version_1_0_documents = [
    Document(
        name="system_card",
        version="1.0",
        published=date(2024, 6, 14),
        claims=[
            Claim(
                "SC-1",
                "system_card",
                "Prior-auth summaries scored 92.3% exact-match "
                "against reference summaries on 1500-case eval.",
                supports=("EV-101",),
                depends_on=frozenset(
                    {
                        "base_model",
                        "system_prompt",
                        "retrieval_index",
                        "decoding_config",
                    }
                ),
            ),
            Claim(
                "SC-2",
                "system_card",
                "Red-team suite 5.1 refusal rate: 98.1% on 2400 prompts.",
                supports=("EV-102",),
                depends_on=frozenset(
                    {
                        "base_model",
                        "system_prompt",
                        "guardrail_model",
                        "decoding_config",
                    }
                ),
            ),
            Claim(
                "SC-3",
                "system_card",
                "Retrieval indexes the 2024-05 policy corpus; 12,847 policy "
                "passages, indexed with indexer-3.0.",
                supports=("EV-103",),
                depends_on=frozenset({"retrieval_index"}),
            ),
            Claim(
                "SC-4",
                "system_card",
                "The route is configured to require staff approval before release. "
                "Direct member-facing advice is outside intended use.",
                supports=("EV-106",),
                depends_on=frozenset({"product_config", "human_review_step"}),
            ),
        ],
    ),
    Document(
        name="audit_report",
        version="1.0",
        published=date(2024, 8, 2),
        claims=[
            Claim(
                "AU-1",
                "audit_report",
                "No material discrepancy found between evaluated and "
                "deployed configuration in Q2 2024 sample.",
                supports=("EV-104",),
                depends_on=frozenset(
                    {
                        "base_model",
                        "system_prompt",
                        "guardrail_model",
                        "product_config",
                        "decoding_config",
                    }
                ),
            ),
            Claim(
                "AU-2",
                "audit_report",
                "Incident-response logging retained the evidence needed to "
                "reconstruct reviewed cases in the window examined.",
                supports=("EV-104",),
                depends_on=frozenset({"logging_config"}),
            ),
        ],
    ),
    Document(
        name="impact_assessment",
        version="1.0",
        published=date(2024, 7, 1),
        claims=[
            Claim(
                "IA-1",
                "impact_assessment",
                "PII redaction (NAME, DOB, MEMBER_ID, ADDR) is configured before "
                "model input on the documented intake route.",
                supports=("EV-105",),
                depends_on=frozenset({"pii_redactor", "product_config"}),
            ),
            Claim(
                "IA-2",
                "impact_assessment",
                "The documented member-facing route requires human approval and "
                "defines no auto-release path.",
                supports=("EV-106",),
                depends_on=frozenset({"product_config", "human_review_step"}),
            ),
        ],
    ),
]
num_documents = len(version_1_0_documents)
num_claims = sum(len(d.claims) for d in version_1_0_documents)
ConsoleOut [5]
CollapseExpand
Registered 3 documents, 8 claims
system_card v1.0:
  SC-1 depends on ['base_model', 'decoding_config', 'retrieval_index', 'system_prompt']
  SC-2 depends on ['base_model', 'decoding_config', 'guardrail_model', 'system_prompt']
  SC-3 depends on ['retrieval_index']
  SC-4 depends on ['human_review_step', 'product_config']
audit_report v1.0:
  AU-1 depends on ['base_model', 'decoding_config', 'guardrail_model', 'product_config', 'system_prompt']
  AU-2 depends on ['logging_config']
impact_assessment v1.0:
  IA-1 depends on ['pii_redactor', 'product_config']
  IA-2 depends on ['human_review_step', 'product_config']

Each document carries claims that look independent but are coupled through the deployment properties they depend on. The system card's exact-match number and the audit's "no discrepancy" finding both rest on the same system_prompt, so a prompt change invalidates both. The impact assessment's PII redaction claim and its human review claim look unrelated but both hinge on product_config. This coupling is invisible if you read the documents one at a time, which is why the registry stores the dependency sets rather than relying on a human to notice the overlap.

The dependency matrix below renders the registry's coupling structure directly. Rows are claims, columns are deployment properties, and a filled cell means the claim must be re-verified if that property changes. Reading down a column shows the blast radius of a single change; reading across a row shows everything a claim is sensitive to.

PythonIn [6]
CollapseExpand
import numpy as np

deploy_props = [
    "base_model",
    "system_prompt",
    "retrieval_index",
    "decoding_config",
    "guardrail_model",
    "product_config",
    "logging_config",
    "pii_redactor",
    "human_review_step",
]
claim_rows = [
    (d.name, c.claim_id, c.depends_on)
    for d in version_1_0_documents
    for c in d.claims
]
dependency_matrix = np.zeros((len(claim_rows), len(deploy_props)), dtype=int)
for r, (_doc, _cid, deps) in enumerate(claim_rows):
    for p, prop in enumerate(deploy_props):
        if prop in deps:
            dependency_matrix[r, p] = 1
claim_labels = [f"{cid}" for (_doc, cid, _deps) in claim_rows]
doc_index = {
    "system_card": 0,
    "audit_report": 1,
    "impact_assessment": 2,
}
doc_for_row = [doc_index[doc] for (doc, _cid, _deps) in claim_rows]
VisualizationOut [7]
CollapseExpand
Heatmap of eight claims against nine deployment properties showing dependency cells.
Claim-by-deployment-property dependency matrix for the v1.0 ClinicGuard registry. Filled cells mark properties whose change invalidates a claim.

A change arrives

It is September. The team swaps the base model checkpoint for a newer one and, in the same release, tightens the system prompt to reduce hallucinated policy citations, and switches decoding from greedy to a sampling configuration to make output less repetitive. They do not change the retrieval index, the guardrail model, the PII redactor, or the human review step.

PythonIn [8]
CollapseExpand
# Change manifest: component -> current value, new value, change kind
change = {
    "base_model": ("llm-a-3", "llm-a-3.1", "swap"),
    "system_prompt": ("v7", "v8", "policy_tighten"),
    "decoding_config": ("T=0.0;greedy", "T=0.3;top_p=0.95", "sampling_switch"),
}
changed_properties = frozenset(change.keys())

A naive update process would bump the document version numbers and re-publish. Our registry can do better: it tells us which claims depend on the changed properties, so we know what to re-evaluate rather than re-running everything or nothing. The difference matters in both directions: re-running everything wastes effort and encourages teams to skip the update entirely, while re-running nothing leaves the public record describing a system that no longer exists.

PythonIn [9]
CollapseExpand
def claims_invalidated(documents, changed):
    """Return {(doc_name, claim_id): sorted(deps that changed)} for claims
    depending on any changed deployment property."""
    hits = {}
    for d in documents:
        for c in d.claims:
            affected = sorted(c.depends_on & changed)
            if affected:
                hits[(d.name, c.claim_id)] = affected
    return hits


invalidated = claims_invalidated(version_1_0_documents, changed_properties)
total_claims = sum(len(d.claims) for d in version_1_0_documents)
num_invalidated = len(invalidated)
ConsoleOut [10]
CollapseExpand
3 of 8 claims invalidated by the change
      audit_report  AU-1  <- ['base_model', 'decoding_config', 'system_prompt']
       system_card  SC-1  <- ['base_model', 'decoding_config', 'system_prompt']
       system_card  SC-2  <- ['base_model', 'decoding_config', 'system_prompt']

Three of eight claims across two documents are flagged for re-verification: SC-1 and SC-2 in the card, and AU-1 in the audit. The changed properties do not intersect the declared dependencies for the other five. Before the release proceeds, the impact-assessment owner still considers whether the model or prompt change alters review workload or downstream harm. This registry output alone records no decision by that owner.

Propagating the update

The new evidence records contain synthetic diagnostic results. Revisions to the card and audit carry those results and identify what remains pending. The assessment needs a separate decision about whether the release changes the people exposed or the safeguards they rely on. The system card update is driven by the results, not by a calendar.

PythonIn [11]
CollapseExpand
new_evals = [
    Evidence(
        "EV-201",
        "eval_run",
        "run://clinicguard/card-2.0/prior-auth-evals",
        date(2024, 9, 9),
        "evalsuite-2.3; 1500 cases; T=0.0; max_tokens=1024",
    ),
    Evidence(
        "EV-202",
        "eval_run",
        "run://clinicguard/card-2.0/red-team-v2",
        date(2024, 9, 9),
        "redteam-suite-5.1; 2400 prompts; T=0.0",
    ),
    Evidence(
        "EV-204",
        "log_extract",
        "audit://clinicguard/2024-Q3/postchange-configs",
        date(2024, 9, 20),
        "access=black_box+docs; window=2024-09-10..2024-09-19; "
        "eval T=0.0; served T=0.3/top_p=0.95",
    ),
]

# Updated evaluation figures (illustrative) for the new configuration
updated_claims = {
    "SC-1": (
        "Deployment exact-match is pending. The 1,500-case diagnostic "
        "run scored 90.8% exact-match at T=0.0, while v2.0 serves "
        "at T=0.3 with top_p=0.95.",
        ("EV-201", "EV-204"),
    ),
    "SC-2": (
        "Red-team suite 5.1 refusal rate: 97.4% on 2,400 prompts "
        "at T=0.0 on the v2.0 model. Serving-configuration evaluation is pending.",
        ("EV-202",),
    ),
    "AU-1": (
        "Post-change sample identifies a decoding mismatch between "
        "evaluation and service, pending follow-up (Q3 2024).",
        ("EV-204",),
    ),
}

The new synthetic results differ from the prior figures. The same named red-team suite was used in both records, and the serving configuration differs from the diagnostic setup. The updated card states exactly what each run demonstrates and leaves the deployment claims open pending configuration-matched evaluations.

PythonIn [12]
CollapseExpand
def reissue(documents, invalidated, updated_claims, new_version, published):
    """Produce v(N+1) documents from v(N). Claims whose ids appear in
    updated_claims are replaced; claims invalidated but not updated are
    marked 'under re-verification'; all others carry forward."""
    by_doc = {}
    for d in documents:
        by_doc[d.name] = d
    new_docs, changelog = [], {}
    for doc_name, doc in by_doc.items():
        claims_out, changes = [], []
        for c in doc.claims:
            key = (doc_name, c.claim_id)
            if c.claim_id in updated_claims:
                text, evs = updated_claims[c.claim_id]
                claims_out.append(
                    Claim(c.claim_id, doc_name, text, evs, c.depends_on)
                )
                changes.append(
                    (c.claim_id, "new evidence recorded, text updated")
                )
            elif key in invalidated:
                claims_out.append(
                    Claim(
                        c.claim_id,
                        doc_name,
                        "[UNDER RE-VERIFICATION] " + c.text,
                        c.supports,
                        c.depends_on,
                    )
                )
                changes.append((c.claim_id, "re-verification pending"))
            else:
                claims_out.append(c)
        if changes:
            new_docs.append(
                Document(doc_name, new_version, published, claims_out)
            )
            changelog[doc_name] = changes
    return new_docs, changelog


reissued, changelog = reissue(
    version_1_0_documents,
    invalidated,
    updated_claims,
    new_version="2.0",
    published=date(2024, 9, 25),
)
ConsoleOut [13]
CollapseExpand
system_card:
  SC-1: new evidence recorded, text updated
  SC-2: new evidence recorded, text updated
audit_report:
  AU-1: new evidence recorded, text updated

Documents revised or reissued:
  system_card v2.0 (2024-09-25)
  audit_report v2.0 (2024-09-25)

No impact-assessment claim flagged by the manifest.

Evidence records describe capture conditions. Declared dependencies let the registry compute the initial review list, and the resulting changes feed the changelog. In a production system, validate that evidence IDs resolve, use evidence appropriate to each assertion, and document any human decision to carry forward a whole assessment.

The value of computed invalidation is easiest to see against the alternatives. The chart below compares the number of claims a release would touch under three update policies: reissuing every claim, reissuing only the claims the manifest invalidates, and relying on an author who remembers to revisit only the exact-match claim. In this scenario, the author catches SC-1 and misses SC-2 and AU-1. The chart compares the number of flagged claims, which is independent of whether each claim later clears review.

PythonIn [14]
CollapseExpand
policy_names = ["Reissue all", "Registry-driven", "Memory only"]
policy_counts = [
    total_claims,
    num_invalidated,
    # In this scenario the author remembers to revisit only exact match.
    len({"SC-1"} & {cid for (_document, cid) in invalidated}),
]
policy_series = dict(zip(policy_names, policy_counts))
VisualizationOut [15]
CollapseExpand
Bar chart comparing claim update counts across three release policies.
Claims requiring update under three release policies. Registry-driven invalidation touches fewer claims than a blanket reissue while catching changes that memory misses.

Tracing a single claim end-to-end

To trace a claim, combine the revised documents with the original documents for which no revision was produced. Index all registered evidence by ID. Below, the diagnostic run supports the measured score and the audit sample supports the serving settings.

PythonIn [16]
CollapseExpand
def trace_claim(documents, claim_id):
    for d in documents:
        for c in d.claims:
            if c.claim_id == claim_id:
                return d, c
    raise KeyError(claim_id)


versions = {document.name: document for document in version_1_0_documents}
versions.update({document.name: document for document in reissued})
evidence_by_id = {
    evidence.evidence_id: evidence
    for evidence in [
        card_evals,
        safety_eval,
        policy_snapshot,
        audit_evidence,
        aia_pii,
        review_config,
        *new_evals,
    ]
}
doc, clm = trace_claim(versions.values(), "SC-1")
trace_lines = [f"Claim {clm.claim_id} in {doc.name} v{doc.version}"]
trace_lines.append(f"  Text:     {clm.text}")
trace_lines.append(f"  Evidence: {', '.join(clm.supports)}")
trace_lines.append(f"  Sensitive to: {sorted(clm.depends_on)}")
for ev_id in clm.supports:
    ev = evidence_by_id[ev_id]
    trace_lines.append(f"  -> {ev.evidence_id} [{ev.kind}] {ev.reference}")
    trace_lines.append(
        f"     date={ev.date}  captured_under={ev.captured_under}"
    )
trace_output = "\n".join(trace_lines)
ConsoleOut [17]
CollapseExpand
Claim SC-1 in system_card v2.0
  Text:     Deployment exact-match is pending. The 1,500-case diagnostic run scored 90.8% exact-match at T=0.0, while v2.0 serves at T=0.3 with top_p=0.95.
  Evidence: EV-201, EV-204
  Sensitive to: ['base_model', 'decoding_config', 'retrieval_index', 'system_prompt']
  -> EV-201 [eval_run] run://clinicguard/card-2.0/prior-auth-evals
     date=2024-09-09  captured_under=evalsuite-2.3; 1500 cases; T=0.0; max_tokens=1024
  -> EV-204 [log_extract] audit://clinicguard/2024-Q3/postchange-configs
     date=2024-09-20  captured_under=access=black_box+docs; window=2024-09-10..2024-09-19; eval T=0.0; served T=0.3/top_p=0.95

The trace shows that the new diagnostic used T=0.0 and that v2.0 serves with T=0.3 and top_p=0.95. SC-1 records the diagnostic and marks the deployed exact-match result as pending. The audit records the same mismatch as a finding. The registry makes those two statements traceable to the test and the configuration sample.

Where audits and impact assessments differ in registry terms

The audit and assessment claims share the registry with the card. For an independent audit, record who reached the finding and what they could examine. In this example the sample for AU-1 came from output observation and reviewed documentation. The provider may acknowledge an audit report and still have no control over its findings.

The two registry claims about the impact assessment cite configuration records for safeguards. The assessment itself also needs a harm analysis. In this fictional deployment, a draft might omit prior treatment and delay a member’s review. Staff compare the draft with the source record before use, and members can challenge the decision through the insurer’s existing appeals channel. The deployer reviews omissions and delays in a sample of completed cases and revisits the assessment if the model changes either the review workload or the rate at which errors reach members. None of those outcomes follows from the redactor configuration alone.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy