Evaluation Governance › A Complete Governance Walkthrough

Michael BrenndoerferDecember 1, 20264 min read
Language AI HandbookAll chapters
Part 57 of 67Dynamic, Interactive, and Agentic Evaluation
Chapter 440Evaluation Governance › A Complete Governance Walkthrough
Reading section 10 of 13 · A Complete Governance Walkthrough · 4 minSection 10 of 13 · 4 min

Section 10 of 13 · 4 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Let's tie the pieces together in one end-to-end scenario, still entirely synthetic. The story:

  1. Benchmark family syn-demo has explicit registry entries for the observed versions.
  2. Model-a is scored and released, but the gate withholds it because of a contamination flag.
  3. The steward records a clean benchmark revision and recomputes the score on its five items. The successor is approved while the benchmark is active.
  4. The benchmark saturates, is deprecated with successor 2.0.0, then retired.
  5. The ledger retains historical results and the incident reason for inspection. The current gate withholds the retired benchmark.

We will run this as a script and print a compact audit summary.

PythonIn [31]
CollapseExpand
def governance_scenario():
    ledger = ReleaseLedger()
    registry = BenchmarkRegistry()
    audit = AuditLog()
    registry.register("syn-demo", "1.0.0")
    registry.register("syn-demo", "1.1.0")
    registry.register("syn-demo", "2.0.0")

    items = synthetic_items()
    responses = synthetic_model_responses(items, make_errors=True)
    sc = scorer_synthetic(responses, SYNTHETIC_GOLD)

    rel = Release(
        model_id="synth-model-a",
        model_hash=framed_sha256("a"),
        benchmark_id="syn-demo",
        benchmark_version="1.0.0",
        split="test",
        harness_id="syn-harness",
        harness_version="0.1.0",
        prompt_template="Q: {question}\nA:",
        decoding_config={"temperature": 0.0},
        access_tier="gated",
        environment="cpu-fp32",
        scorer_code=SYNTHETIC_SCORER_CODE,
        privacy_review=make_privacy_review(
            items_contain_human=False,
            consent_documented=True,
            contains_personal_data=False,
            redaction_applied=True,
            reviewer="privacy-bot-v0",
        ),
        gaming_flags=contamination_flag(items, train_logs),
    )
    rel.score = sc
    ledger.add(rel)
    audit.record("release_created", rel.release_id, "eval-bot")
    g1 = reporting_gate(rel, registry.state)
    audit.record(
        "gate_evaluation",
        rel.release_id,
        "gate",
        decision=g1["decision"],
        reasons=g1["reasons"],
        notices=g1["notices"],
    )

    # mitigation: retire the contaminated item (only honest move) and re-run on clean subset
    clean = [it for it in items if it["prompt"] != "Add 3 and 4."]
    clean_resp = [
        r for r in responses if r["item_id"] in {it["item_id"] for it in clean}
    ]
    clean_gold = {
        k: v
        for k, v in SYNTHETIC_GOLD.items()
        if k in {it["item_id"] for it in clean}
    }
    sc_clean = scorer_synthetic(clean_resp, clean_gold)

    rel2 = make_correction(
        rel,
        reason="remove contaminated item",
        corrected_score_notes="rescored on clean subset",
        actor="reviewer-bob",
        ledger=ledger,
        audit=audit,
        new_benchmark_version="1.1.0",
        new_score=sc_clean,
        reviewed_flags=contamination_flag(clean, train_logs),
    )
    g2 = reporting_gate(rel2, registry.state)
    audit.record(
        "gate_evaluation",
        rel2.release_id,
        "gate",
        decision=g2["decision"],
        reasons=g2["reasons"],
        notices=g2["notices"],
    )

    # lifecycle: deprecate then retire
    registry.transition(
        "syn-demo",
        "1.1.0",
        "deprecated",
        reason="saturation",
        successor="2.0.0",
    )
    g_deprecated = reporting_gate(rel2, registry.state)
    audit.record(
        "gate_evaluation",
        rel2.release_id,
        "gate",
        decision=g_deprecated["decision"],
        reasons=g_deprecated["reasons"],
        notices=g_deprecated["notices"],
    )
    registry.transition(
        "syn-demo",
        "1.1.0",
        "retired",
        reason="retired after refresh",
    )

    g3 = reporting_gate(rel2, registry.state)
    audit.record(
        "gate_evaluation",
        rel2.release_id,
        "gate",
        decision=g3["decision"],
        reasons=g3["reasons"],
        notices=g3["notices"],
    )
    return {
        "score_original": sc,
        "score_clean": sc_clean,
        "gate_original": g1,
        "gate_corrected": g2,
        "gate_deprecated": g_deprecated,
        "gate_after_retirement": g3,
        "chain": ledger.supersession_chain(rel2.release_id),
        "audit_actions": [e.action for e in audit.entries],
        "audit_notices": [
            e.detail.get("notices", [])
            for e in audit.entries
            if e.action == "gate_evaluation"
        ],
    }


out = governance_scenario()
ConsoleOut [32]
CollapseExpand
{
  "score_original": 0.6666666666666666,
  "score_clean": 0.6,
  "gate_original": {
    "release_id": "demo-0011",
    "decision": "withheld",
    "reasons": [
      "exact_overlap_contamination"
    ],
    "notices": []
  },
  "gate_corrected": {
    "release_id": "demo-0014",
    "decision": "approved",
    "reasons": [],
    "notices": []
  },
  "gate_deprecated": {
    "release_id": "demo-0014",
    "decision": "restricted",
    "reasons": [],
    "notices": [
      "benchmark_deprecated"
    ]
  },
  "gate_after_retirement": {
    "release_id": "demo-0014",
    "decision": "withheld",
    "reasons": [
      "benchmark_retired"
    ],
    "notices": []
  },
  "chain": [
    "demo-0011",
    "demo-0014"
  ],
  "audit_actions": [
    "release_created",
    "gate_evaluation",
    "correction",
    "gate_evaluation",
    "gate_evaluation",
    "gate_evaluation"
  ],
  "audit_notices": [
    [],
    [],
    [
      "benchmark_deprecated"
    ],
    []
  ]
}

The original score is four of six, about 0.667. The removed item was one of the correct responses, leaving three of five, or 0.6, on a different benchmark version. The drop is a change in the item set. The trace records the original hold, the successor approval, a deprecation notice, and the final retirement hold. The audit log includes the correction event as well as each gate evaluation.

This is the whole pattern in miniature. Every decision is a record; the gate is a pure function; corrections are appended; retirement is enforced; and the audit trail lets a reviewer reconstruct the sequence. Scaled up with real benchmarks, this is what makes a leaderboard or a benchmark citation trustworthy.

Visualizing the Governance Flow

To make the control flow concrete, we plot the release states over time as a small state diagram with transitions annotated by their gate decision. We precompute the transition labels in an ordinary code cell, then render a single figure.

PythonIn [33]
CollapseExpand
flow = [
    ("Original", out["gate_original"]["decision"]),
    ("Corrected", out["gate_corrected"]["decision"]),
    ("Deprecated", out["gate_deprecated"]["decision"]),
    ("Retired", out["gate_after_retirement"]["decision"]),
]
state_levels = {"withheld": 0, "restricted": 1, "approved": 2}
VisualizationOut [34]
CollapseExpand
Chronological step chart of withheld, approved, restricted, and withheld decisions across four review events.
Release state across a governance lifecycle. A release starts withheld due to a contamination flag, is approved once corrected on a clean subset, becomes restricted when the benchmark is deprecated (reportable only with notice), and is withheld entirely once the benchmark is retired.

The original release is withheld. Its successor passes on the revised snapshot, acquires a notice at deprecation, and is withheld after retirement. The plot reads those decisions from the worked example in chronological order.

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