InterviewsVector
Arc 9
Build labAdvanced110 min estimateOriginal publication

Build a Golden Dataset That Can Disagree with You

A golden set is governed evidence about a deployment claim: provenance-rich, independently labeled, sliced for failure cost, protected from optimization leakage, and allowed to expose that the product story is wrong.

Authorship
InterviewsVector
Published / updated
2026-09-22 / 2026-09-22
Review status
Artifact tests passing · primary sources recorded

Original InterviewsVector teaching. Executable artifacts are deterministic illustrative audits with focused tests and recorded primary or official sources; they do not certify dataset quality, judge validity, product safety, or release fitness.

The decision in one pass

Define the deployment population and failure costs before selecting examples. Sample real tasks through a documented frame, then deliberately add hard negatives, long tails, incident classes, and policy boundaries that random frequency would miss. Preserve provenance, consent or lawful-use constraints, collection time, transformations, and deduplication identity. Write rubrics independently of the candidate, require qualified reviewers, record disagreement, and adjudicate without erasing it. Version cases and labels; separate development, calibration, and protected release sets; restrict access and attest training or prompt-tuning exclusion. Measure coverage by meaningful task and risk slices rather than count alone, and cap concentration so one easy slice cannot dominate. Refresh for drift while retaining stable anchors and historical comparability. The dataset must be able to fail the system, invalidate a favored hypothesis, and reveal unsupported regions. Calling it golden never makes its labels infallible or its sample representative.

Why this matters

Evaluation data becomes organizational memory. If it is copied from convenient demos, labeled by the builders, repeatedly exposed during prompt tuning, or dominated by common easy cases, it can produce improving scores while real reliability worsens. A governed dataset gives teams a durable record of what was sampled, why it matters, who judged it, what remains uncovered, and which claims the evidence cannot support.

You will be able to

  • Define a sampling frame that connects evaluation cases to deployment tasks and affected populations.
  • Combine real-task sampling with hard negatives, long tails, incident regressions, and policy boundaries.
  • Record provenance, label rubrics, reviewer disagreement, adjudication, and intended-use limits.
  • Protect release evidence from training, prompt-tuning, and repeated-test leakage.
  • Audit slice coverage, concentration, duplication, review support, and dataset drift without claiming representativeness from a local fixture.

Your Vector Loop for this lab

  1. 01

    Model

    Map the deployment population, task taxonomy, failure costs, data rights, sampling frame, label authority, and evidence consumers.

  2. 02

    Derive

    Derive required slices, minimum support, targeted rare cases, concentration limits, reviewer rules, split boundaries, and refresh triggers.

  3. 03

    Build

    Build immutable provenance-rich case records, independent rubrics, adjudicated labels, and a deterministic declared-coverage audit.

  4. 04

    Stress

    Inject duplicates, sparse slices, mislabeled boundaries, single-reviewer cases, leaked examples, temporal drift, string subclasses, and constructor bypass.

  5. 05

    Operate

    Track slice support, disagreement, adjudication changes, deduplication, data age, leakage access, incident coverage, and score sensitivity to dataset versions.

  6. 06

    Defend

    Defend the dataset's sampling and labeling claims, disclose unsupported populations, and keep it capable of contradicting the team that built it.

Golden means governed, not unquestionably true

A golden dataset is a versioned set of cases and reference judgments used for a named evaluation decision. Its value comes from provenance, coverage, labeling discipline, and separation from optimization—not from the adjective. Some tasks have exact answers; others have multiple acceptable responses, conditional policy outcomes, or genuine reviewer disagreement. Preserve that structure instead of forcing every case into an artificial universal truth.

RecordWhy it mattersWhat it cannot prove
case provenanceconnects evidence to a task, source, time, and transformationthat the source population was sampled representatively
expected behaviorstates the decision-relevant acceptance boundarythat one reference text is the only good output
review historyshows expertise, disagreement, and adjudicationthat reviewers are unbiased or always correct
exclusion attestationmakes optimization separation reviewablethat no training system ever saw the content

Sample from a declared deployment frame

Begin with the units the product will actually face: conversations, requests, documents, tool trajectories, sessions, or decisions. Define inclusion, exclusion, time window, channel, language, tenant, privacy handling, and deduplication before drawing examples. Frequency-weighted sampling estimates common performance; it will often under-sample rare high-cost events, so add a clearly labeled targeted stratum rather than pretending the combined set is one random sample.

  1. 01Describe the frameState what records could have been selected and which deployment population they approximate.
  2. 02Sample ordinary workDraw real tasks using a reproducible process and preserve bounded provenance.
  3. 03Target material risksAdd rare but costly policy, safety, security, and tool-use cases with explicit selection reason.
  4. 04Deduplicate by meaningDetect exact and near duplicates, template families, and repeated user sessions so support is not inflated.
  5. 05Document exclusionsRecord privacy, legal, quality, or operational exclusions and the blind spots they create.

Cover behaviors that average traffic will not supply

Case classPurposeConstruction risk
real taskanchor evaluation in observed workhistorical traffic reflects old product and selection bias
hard negativeseparate superficially similar but behaviorally different inputssynthetic artifacts make the shortcut obvious
long tailexercise rare language, format, domain, or multi-step combinationsinvented rarity may not match real risk
policy boundarytest allow/refuse/escalate transitions near a rulereviewers may encode inconsistent interpretations
incident regressionprevent recurrence of a known failure mechanismmemorizing symptoms can miss the broader class

Define coverage over product behaviors and failure mechanisms, not only demographics or topic labels. Cross key axes when interactions matter, but avoid a combinatorial checklist with one token case per cell. Minimum support should reflect the decision and expected variance. Report empty or weak cells as missing evidence rather than filling them with low-quality synthetic examples merely to make a dashboard green.

coverage claim = declared slices + support + provenance + label readiness + known missing regions

Case count alone is not coverage. Concentration limits can prevent one large slice from dominating, but they do not establish population representativeness.

Treat labels as measured judgments with lineage

Write the rubric before exposing reviewers to the favored candidate. Define required context, acceptable alternatives, severity, abstention, and escalation. Recruit reviewers with the domain and policy competence the judgment requires. Use blinded presentation where identity or order could bias the label, and give reviewers a way to flag an invalid case instead of manufacturing certainty.

Label stateMeaningAllowed use
draftsingle interpretation or incomplete contextdevelopment only
independently reviewedmultiple judgments retainedagreement analysis and calibration
adjudicatednamed process resolved the release referencerelease evaluation with disagreement still recorded
retiredpolicy, task, consent, or evidence is stalehistorical analysis only

Keep evaluation independent of optimization

Every time developers inspect a release failure and tune the prompt, retrieval, policy, or model against it, that case becomes development evidence. It may remain useful as a regression test, but repeated adaptation reduces its value as an unbiased estimate of future performance. Maintain separate development, grader-calibration, and protected release partitions with access controls and audit logs. Rotate protected samples and keep a truly sequestered mechanism for high-stakes decisions when feasible.

  • Use content and near-duplicate checks across training, fine-tuning, prompt examples, retrieval corpora, development evals, and protected sets where access permits.
  • Bind exclusion attestations to dataset and candidate versions; an attestation is reviewable evidence, not proof of absence.
  • Do not publish protected labels, expected outputs, or evaluator rationales into systems that generate future candidates.
  • Track how often a case has been inspected and which changes were made because of it.
  • Preserve stable anchor cases for longitudinal comparison while refreshing a portion for drift and new failure modes.

Audit declared coverage without pretending to prove quality

golden_dataset_audit.py
1def audit_coverage(contract: object, snapshot: object) -> CoverageReport:
2 """Audit declared coverage without running a model or changing the dataset."""
3 checked_contract = _rebuild_contract(contract)
4 checked_snapshot = _rebuild_snapshot(snapshot)
5 if checked_snapshot.scope != checked_contract.scope:
6 raise ValueError("snapshot belongs to another scope")
7 if checked_snapshot.contract_content_id != checked_contract.content_id:
8 raise ValueError("snapshot is not bound to this contract content")

Expected output

example=illustrative_only
dataset_id=golden-dataset@sha256:e77405fc5a7aed80ec68877e7342a83b10091610597dfd5dfc0686d496a041ea
cases=8;slices=4
coverage=hard_negative,long_tail,policy_boundary,real_task
decision=PASS_COVERAGE
claim=LOCAL_COVERAGE_AUDIT_NOT_DATASET_QUALITY_CERTIFICATION

Verify: python3 -m unittest discover courses/ai-engineering/reference-impl/golden_dataset

The invented support-assistant snapshot contains eight unique cases across billing, policy, returns, and technical slices. The contract requires per-slice case classes, all four global case classes, two reviewers, adjudication, a training-exclusion attestation, a minimum total, and an exact integer concentration limit. The audit reports only whether those declarations satisfy the local contract.

The implementation reconstructs frozen nested records, copies caller-owned collections, binds the snapshot to contract content and scope, rejects duplicate IDs and input digests, undeclared slices, booleans in integer fields, string subclasses, malformed hashes, and constructor bypass. It does not inspect source records, reviewer competence, consent, training corpora, semantic duplication, label correctness, or deployment representativeness. `PASS_COVERAGE` is not a dataset-quality certification.

Refresh without erasing comparability

TriggerDataset actionComparison safeguard
traffic or product shiftsample from the new frameretain tagged anchors and report both versions
policy revisionrelabel affected boundariesdo not rewrite old labels without lineage
production incidentadd mechanism-level regressionsseparate incident set from prevalence estimates
high disagreementrepair rubric or contextkeep original votes and adjudication reason
test overexposurerotate protected casesmaintain equivalent slice and difficulty targets

Publish a dataset change log: additions, removals, label changes, provenance changes, known leakage, slice support, and expected score discontinuities. Run old and new versions during transition to distinguish candidate movement from measurement movement. Retire cases whose consent, policy, source, or task assumptions no longer hold rather than silently preserving a clean trend line.

Operate at three altitudes

Production lens

  • — Store immutable case, provenance, rubric, vote, adjudication, access, and partition manifests with privacy-aware retention and deletion workflows.
  • — Monitor slice support, duplicate families, reviewer agreement, label changes, data age, protected-set access, incident coverage, and score sensitivity by dataset version.
  • — Keep development convenience separate from release evidence; every inspected protected case should create an auditable contamination risk.

Staff lens

  • — Treat the golden set as a governed organizational asset with data owners, domain reviewers, privacy and policy review, maintenance capacity, and explicit sunset criteria.
  • — Require teams to document which populations and risks are unsupported; a transparent coverage gap is safer than an unjustified representative claim.

Interview defense

How would you build and maintain a golden dataset for an AI support product?

I would define the deployment sampling frame, evaluation decision, and high-cost failures first. I would draw a reproducible sample of real tasks and separately add targeted hard negatives, long tails, policy boundaries, and incident mechanisms, preserving each stratum's selection reason. Every case would carry governed provenance, transformation history, deduplication identity, intended use, and a rubric written independently of the candidate. Qualified reviewers would label blindly where possible, retain votes and abstentions, and adjudicate without erasing disagreement. I would split development, calibration, and protected release evidence, control access, check exact and semantic overlap across optimization channels, and treat exclusion as an attestation rather than proof. Coverage reports would include slice support, concentration, missing regions, and label readiness. I would version and refresh for drift while retaining anchors and reporting score discontinuities.

Expect the interviewer to press on

  • — How do targeted rare cases change what an aggregate rate means?
  • — When does a release case become a development case?
  • — How would you respond to persistent expert disagreement?

Misconceptions to remove

“A golden label is ground truth.”

Some labels are exact, but many are governed human judgments under a rubric. Preserve uncertainty, disagreement, provenance, and conditions of validity.

“Random production sampling covers safety and policy risks.”

Frequency sampling anchors common behavior but can miss rare high-cost boundaries. Add targeted strata and keep their prevalence interpretation separate.

“Once a test case exists, it remains valid forever.”

Traffic, policy, context, labels, consent, tools, and product behavior change. Version, review, refresh, and retire cases with lineage.

Check your model

1. Why retain reviewer disagreement after adjudication?

It reveals ambiguity, rubric weakness, or plural judgment and allows later calibration analysis. A final release reference should not erase evidence about its uncertainty.

2. Why cannot an exclusion attestation prove that a case was absent from training?

The audit sees only a declaration. Proving absence requires end-to-end lineage and access across training, tuning, prompts, retrieval, logs, and other optimization channels that the fixture does not inspect.

3. What is wrong with reporting one rate over mixed random and targeted cases?

The mixture usually has no natural population prevalence. Report strata separately or apply justified weights tied to a declared estimand.

Prove the mechanism

Add a fifth `incident-regression` case class to the coverage contract. Require every incident case to name a failure-mechanism identity distinct from its input digest, add duplicate-mechanism reporting without rejecting multiple valid variants, and preserve the artifact's illustrative boundary.

Add a production constraint

Design a refresh plan for a multilingual product whose traffic mix changes monthly. Specify the sampling frame, stable anchors, targeted risk strata, reviewer assignment, leakage controls, version transition report, and how you would compare scores without claiming that a curated set estimates prevalence.

Artifact: Golden dataset coverage audit

courses/ai-engineering/reference-impl/golden_dataset/golden_dataset_audit.py

Download reference implementation

Primary references and next links

References

  1. 1. NIST AI RMF Core — Measure

    NIST AI Resource Center. Official guidance on documented test sets, deployment-relevant conditions, uncertainty, independent review, and repeatable evaluation.

  2. 2. Datasheets for Datasets

    Gebru et al.. Primary paper proposing structured documentation of dataset motivation, composition, collection, use, and limitations.

  3. 3. Holistic Evaluation of Language Models

    Liang et al.. Primary HELM paper describing scenario and metric coverage, targeted evaluation, and explicit missing areas.

  4. 4. The ML Test Score

    Google Research. Authors' official publication page for production-readiness tests and monitoring needs in machine-learning systems.

Continue through the graph

Glossary: golden dataset · sampling frame · hard negative · long tail · policy boundary · adjudication · test contamination · coverage slice