Risk Governance Across the Lifecycle › Worked Example: A Release Register in Practice

Michael BrenndoerferDecember 2, 202612 min read
Language AI HandbookAll chapters
Part 62 of 67Human-AI Interaction and Governance
Chapter 477Risk Governance Across the Lifecycle › Worked Example: A Release Register in Practice
Reading section 9 of 13 · Worked Example: A Release Register in Practice · 12 minSection 9 of 13 · 12 min

Section 9 of 13 · 12 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Let's make this concrete with a small synthetic register. We will model artifacts as records with the fields that governance actually depends on, then walk a few artifacts through state transitions to see how the mechanisms interlock.

The artifact record

Each artifact has an identity, an owner, a tier, a model version, and a lifecycle state. We'll represent the register as a list of dataclass instances and write small functions that operate on it. The point is not the data structure but the invariants it lets us enforce.

PythonIn [3]
CollapseExpand
from dataclasses import dataclass, field
from enum import Enum


class Tier(Enum):
    LOW = 1
    MODERATE = 2
    HIGH = 3


class State(Enum):
    DRAFT = "draft"
    PENDING_REVIEW = "pending_review"
    DEPLOYED = "deployed"
    RETIRED = "retired"


@dataclass
class Artifact:
    artifact_id: str
    description: str
    accountable_owner: str | None
    tier: Tier
    model_version: str
    state: State = State.DRAFT
    incidents: list = field(default_factory=list)
    still_serving: bool = False

    def retirement_needs_disconnect(self) -> bool:
        return self.state == State.RETIRED and self.still_serving

    def is_blocked(self) -> bool:
        # An artifact with no owner, or a retired artifact,
        # is in a blocked state that forbids changes and deployment.
        if self.accountable_owner is None or not self.accountable_owner.strip():
            return True
        return self.state == State.RETIRED

The is_blocked method encodes the two hard rules from earlier: no accountable owner blocks the artifact, and a retired artifact stays blocked whether it still serves traffic or has been disconnected. The retirement_needs_disconnect method detects a retired record that still serves traffic. In production, the still_serving flag would come from a routing or traffic check. In a real system these would be enforced by the deployment platform, but encoding them here lets us test the logic.

Note the choice of fields. accountable_owner is typed as nullable, because the register must be able to represent the absence of ownership explicitly rather than letting it be inferred from a blank field. model_version is a first-class field for the reasons discussed under change management: a vendor version bump must be a visible event. incidents records incident history for the artifact. A production register would keep a separate durable release and approval history. The four states form a simple lifecycle: draft, pending review, deployed, and retired, with a gate that blocks an unowned or retired artifact. The example returns gate decisions and leaves transitions to the deployment process.

Populating a small register

Now let's create three artifacts at different tiers to see how obligations differ.

PythonIn [4]
CollapseExpand
register = [
    Artifact(
        artifact_id="notes-summarizer",
        description="summarizes internal meeting notes for a single team",
        accountable_owner="alice@example.org",
        tier=Tier.LOW,
        model_version="open-weights-8b-v3",
    ),
    Artifact(
        artifact_id="support-assist",
        description="drafts customer support replies for human review",
        accountable_owner="bob@example.org",
        tier=Tier.MODERATE,
        model_version="vendor-cc-2024-06",
        state=State.DEPLOYED,
    ),
    Artifact(
        artifact_id="claims-agent",
        description="files reimbursement claims on behalf of users without review",
        accountable_owner=None,
        tier=Tier.HIGH,
        model_version="open-weights-70b-v2",
    ),
]

The obligations attached to an artifact are not a uniform checklist: they accumulate as the tier rises. The chart below makes that accumulation visible by counting how many governance obligations each tier imposes, so each bar counts checklist entries without weighting their time or effort.

PythonIn [5]
CollapseExpand
import numpy as np

# Obligation catalog by tier. Counts are illustrative of the chapter's
# three-tier scheme, not a claim about any specific regulation.
OBLIGATIONS = {
    "Tier 1 (Low)": [
        "register entry",
        "named owner",
        "basic monitoring",
    ],
    "Tier 2 (Moderate)": [
        "register entry",
        "named owner",
        "basic monitoring",
        "pre-deployment eval review",
        "documented change process",
        "incident channel",
    ],
    "Tier 3 (High)": [
        "register entry",
        "named owner",
        "basic monitoring",
        "pre-deployment eval review",
        "documented change process",
        "incident channel",
        "human sign-off",
        "adversarial review",
        "periodic risk review",
    ],
}

tier_labels = list(OBLIGATIONS.keys())
obligation_counts = np.array([len(OBLIGATIONS[t]) for t in tier_labels])
# Increment relative to the previous tier, so the stack shows added burden.
tier_increments = np.diff(np.r_[0, obligation_counts])
incremental_counts = np.array(
    [
        np.where(np.arange(len(tier_labels)) >= i, added, 0)
        for i, added in enumerate(tier_increments)
    ]
)
incremental_labels = [
    f"new at {tier_labels[0]}",
    f"added at {tier_labels[1]}",
    f"added at {tier_labels[2]}",
]
VisualizationOut [6]
CollapseExpand
Stacked bar chart showing governance obligations growing across three risk tiers.
Governance obligations accumulate across risk tiers. Each bar stacks the obligations newly introduced at that tier on top of the obligations inherited from lower tiers, showing how this example assigns additional obligations at each tier.
ConsoleOut [7]
CollapseExpand
notes-summarizer tier=LOW       state=draft        ok
support-assist   tier=MODERATE  state=deployed     ok
claims-agent     tier=HIGH      state=draft        BLOCKED

The claims-agent artifact shows up as blocked because its accountable owner is missing. In a governance review this is not a cosmetic warning: a high-tier autonomous system with no owner accepting residual risk should not be serving traffic. The register surfaces it immediately.

Gating a material change

Next we model a change request. A change carries the change class, the evidence that was gathered, and the approval record. The gate function decides whether the change may proceed based on the artifact's tier and the presence of required evidence and an independent approver.

PythonIn [8]
CollapseExpand
MATERIAL_CLASSES = {
    "model",
    "prompt",
    "retrieval",
    "guardrail",
    "tool_permission",
    "population",
}

# Evidence required at each tier for a material change.
REQUIRED_EVIDENCE = {
    Tier.LOW: {"eval_summary"},
    Tier.MODERATE: {"eval_summary", "rollback_plan"},
    Tier.HIGH: {
        "eval_summary",
        "rollback_plan",
        "adversarial_review",
        "human_signoff",
    },
}


@dataclass
class ChangeRequest:
    artifact_id: str
    change_class: str
    evidence: set
    approver: str | None
    approver_independent: bool = False
    notes: str = ""


def gate(artifact: Artifact, change: ChangeRequest) -> tuple[bool, str]:
    if artifact.artifact_id != change.artifact_id:
        return False, "change refers to a different artifact"
    if artifact.is_blocked():
        return False, "artifact is blocked (no owner or retired)"
    if change.change_class == "copy_only":
        return True, "reviewed copy-only change: notification only"
    if change.change_class not in MATERIAL_CLASSES:
        return False, "change class needs review"
    required = REQUIRED_EVIDENCE[artifact.tier]
    missing = required - change.evidence
    if missing:
        return False, f"missing evidence: {sorted(missing)}"
    if change.approver is None or not change.approver.strip():
        return (
            False,
            "no approver recorded (tests passing is not risk acceptance)",
        )
    if not change.approver_independent:
        return False, "approver is not independent of the requesting team"
    return True, f"approved by {change.approver}"

The gate returns a decision and a human-readable reason. The key line is the check for a recorded approver: this is where we enforce that evidence and acceptance are distinct. A change can carry every piece of evidence and still fail the gate because no one signed off.

The ordering of checks inside gate also reflects a design choice. The gate checks that the request names the same artifact before checking ownership and retirement. A change already classified as copy-only takes the notification path. An unknown class goes back for review, and a recognized material change requires tier-specific evidence and a recorded approval. The example takes independence as supplied input. Production code has to obtain the sign-off and role from trusted records. The function is small, but it encodes the chapter's core distinctions in a form that a deployment pipeline can execute.

Running changes through the gate

Let's submit a few changes and inspect the decisions.

PythonIn [9]
CollapseExpand
changes = [
    ChangeRequest(
        artifact_id="support-assist",
        change_class="prompt",
        evidence={"eval_summary", "rollback_plan"},
        approver="carol@example.org",
        approver_independent=True,
        notes="tightened citation instruction",
    ),
    ChangeRequest(
        artifact_id="claims-agent",
        change_class="tool_permission",
        evidence={
            "eval_summary",
            "rollback_plan",
            "adversarial_review",
            "human_signoff",
        },
        approver="dave@example.org",
        approver_independent=True,
        notes="new claims source, but owner missing",
    ),
    ChangeRequest(
        artifact_id="support-assist",
        change_class="prompt",
        evidence={"eval_summary"},  # no rollback plan
        approver="carol@example.org",
        approver_independent=True,
        notes="missing rollback plan",
    ),
    ChangeRequest(
        artifact_id="support-assist",
        change_class="prompt",
        evidence={"eval_summary", "rollback_plan"},
        approver=None,
        notes="complete evidence, approval pending",
    ),
]

by_id = {a.artifact_id: a for a in register}

results = []
for c in changes:
    ok, reason = gate(by_id[c.artifact_id], c)
    results.append((c, ok, reason))

The four change requests above passed or failed for different reasons, and that variety is the point: the gate distinguishes a missing owner from missing evidence from a recorded sign-off. The chart below bins each outcome by decision and by reason, so the independence of the checks is visible at a glance.

PythonIn [10]
CollapseExpand
# Classify each gate decision by its failure reason for the chart.
# Tie-breaking: a change that fails on a blocked artifact is counted as
# "blocked artifact" even if it also lacks evidence or approval, because
# that check runs first inside `gate`.
def outcome_category(ok, reason):
    if ok:
        return "pass"
    if reason.startswith("artifact is blocked"):
        return "blocked artifact"
    if reason.startswith("missing evidence"):
        return "missing evidence"
    if reason.startswith("no approver recorded"):
        return "no approver"
    if reason.startswith("approver is not independent"):
        return "not independent"
    return "other"


outcome_rows = [
    (change.change_class, outcome_category(ok, reason))
    for change, ok, reason in results
]

outcome_categories = [
    "pass",
    "blocked artifact",
    "missing evidence",
    "no approver",
    "not independent",
    "other",
]
change_classes = sorted({row[0] for row in outcome_rows})
outcome_matrix = np.zeros(
    (len(change_classes), len(outcome_categories)), dtype=int
)
for change_class, outcome in outcome_rows:
    ci = change_classes.index(change_class)
    oi = outcome_categories.index(outcome)
    outcome_matrix[ci, oi] += 1
VisualizationOut [11]
CollapseExpand
Grouped bar chart of gate outcomes by change class and failure reason.
Gate outcomes for four synthetic change requests, broken down by reason. Three requests are blocked, one each for missing ownership, rollback evidence, and approval.
ConsoleOut [12]
CollapseExpand
support-assist   prompt          -> PASS: approved by carol@example.org
claims-agent     tool_permission -> BLOCK: artifact is blocked (no owner or retired)
support-assist   prompt          -> BLOCK: missing evidence: ['rollback_plan']
support-assist   prompt          -> BLOCK: no approver recorded (tests passing is not risk acceptance)

The four outcomes show where each request stopped. The support-assist prompt change passes because it has the moderate-tier evidence and an independent approver. The claims-agent change is blocked even though it carries the full high-tier evidence, because the artifact has no accountable owner: you cannot approve a change to a system nobody owns. The third change is blocked for a different reason, a missing rollback plan, and the fourth is blocked with complete evidence because approval is pending.

Modeling an incident and its feedback

Finally, record an incident and inspect its proposed follow-up actions. A separate decision can open a review or change the tier.

PythonIn [13]
CollapseExpand
@dataclass
class Incident:
    artifact_id: str
    severity: str  # "low", "medium", "high"
    summary: str
    rolled_back: bool


def record_incident(artifact: Artifact, incident: Incident) -> list:
    """Record incident and return required register actions."""
    if artifact.artifact_id != incident.artifact_id:
        raise ValueError("incident refers to a different artifact")
    if incident.severity not in {"low", "medium", "high"}:
        raise ValueError("unrecognized incident severity")
    artifact.incidents.append(incident)
    actions = []
    if incident.severity == "high":
        if artifact.tier != Tier.HIGH:
            actions.append(f"review tier {artifact.tier.name} -> HIGH")
        actions.append("require human sign-off on next material change")
        actions.append("schedule post-incident review")
    elif incident.severity == "medium":
        actions.append("post-incident review")
    if not incident.rolled_back:
        actions.append("flag for rollback decision")
    return actions


inc = Incident(
    artifact_id="support-assist",
    severity="high",
    summary="suggested reply contained a fabricated refund policy",
    rolled_back=True,
)
actions = record_incident(by_id["support-assist"], inc)

The severity determines the follow-up actions in this example. The chart compares severity on artifacts that start at the moderate tier and have already been rolled back.

PythonIn [14]
CollapseExpand
# Action counts implied by `record_incident` for each severity, with
# rolled_back=True so the rollback-flag action is held constant.
severity_levels = ["low", "medium", "high"]
severity_action_counts = np.array(
    [
        len(
            record_incident(
                Artifact(
                    "sample",
                    "comparison only",
                    "owner@example.org",
                    Tier.MODERATE,
                    "v1",
                ),
                Incident(
                    "sample", severity, "synthetic comparison", rolled_back=True
                ),
            )
        )
        for severity in severity_levels
    ]
)
VisualizationOut [15]
CollapseExpand
Bar chart of required register actions rising with incident severity.
Register actions triggered by incident severity. A high-severity incident on a below-high-tier artifact returns a tier review, approval follow-up, and incident review. The comparison holds rollback status fixed.
ConsoleOut [16]
CollapseExpand
Required register actions after incident:
  - review tier MODERATE -> HIGH
  - require human sign-off on next material change
  - schedule post-incident review

Incident count for support-assist: 1

The incident produces three proposed actions: review the tier, require approval on the next material change, and schedule an incident review. Recording the incident leaves the tier unchanged. The approver must record the disposition before the register changes the tier or the deployment process enforces a new restriction. This is the feedback loop in miniature. In a real process, the post-incident review would decide whether the escalation becomes permanent, and the register would record that decision with a date and an approver.

Notice what record_incident does not do: it does not change the tier directly. It returns the actions required, which the governance process then executes with human review. This separation mirrors the distinction between detection and decision that runs through the chapter: the code surfaces what needs attention, but a human decides what happens. The function is a good example of the "human decides, machinery remembers" principle, because it preserves the incident and its consequences in the register without treating an automated rule as a substitute for judgment.

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