Skip to main content

Chapter 6. Human Labels and Annotation Operations

Juniper’s automated judge and a support specialist disagree about whether a customer-facing answer is safe. Although the answer is polite and says the refund was issued, the available tool trace shows only a lookup. Perhaps the judge placed too much weight on tone; perhaps the reviewer missed evidence elsewhere, or the guideline never said how to treat an unsupported claim of action. Before the team can improve either the agent or its judge, it has to understand the disagreement.

That investigation illustrates why human evaluation is more than a last resort or a ceremonial sign-off: it is a measurement operation in which reviewers apply a defined rubric to evidence, while the system preserves the information needed to understand how each label was reached. Human judgment is particularly valuable when a question depends on context, ambiguity, specialist knowledge, or evidence across modalities. Yet people can disagree or share the same blind spots, and their work takes time and money. A well-designed annotation operation therefore makes those limitations visible rather than treating a human label as unquestionable truth [1], [2].

We will follow the evidence from the original question—who should judge the answer, and what must they see?—through rubric design, independent review, agreement measurement, and the maintenance of a trusted set of labels. Along the way, the chapter considers the practical constraints that determine whether the operation can work reliably and safely at scale.

After this chapter you will be able to:

Case study. Harbor & Pine and Juniper are fictional. All cases, label assignments, timings, queue counts, and personal-data examples in the lab are synthetic teaching fixtures. No actual person or annotation vendor is represented.

6.1 When humans are irreplaceable

Start with the question rather than the reviewer. To establish whether Juniper changed an order, an authorized check of the transaction state is generally stronger evidence than a person reading its reply. Whether the explanation addressed the customer’s actual concern, however, may require a trained reviewer who can interpret the conversation, while a policy specialist may be needed to decide whether an ambiguous exception was handled appropriately.

Human review is therefore most useful where the decision requires context, interpretation, or accountability that a deterministic oracle cannot supply. Other examples include judging whether an omission is material or whether a generated image satisfies an underspecified request. That does not make human review the best method for every question, so the choice begins with a few distinctions:

  1. Can an authoritative programmatic check answer this precisely?
  2. Is there meaningful ambiguity or a value judgment?
  3. What expertise is needed to interpret the evidence?
  4. What is the consequence of an incorrect label?
  5. Can the reviewer see enough context to decide without unnecessary sensitive data?
Evaluation question Suitable reviewer Evidence required Important limitation
Did the transaction reach the requested state? Programmatic checker; human for disputes Authoritative state and target identity A text-only reviewer may not see the actual transaction
Was the explanation clear and relevant? Trained reviewer familiar with the user task Conversation and communication rubric Preferences vary; define audience and use case
Does a response violate domain policy? Qualified policy reviewer Current policy and relevant trace Policy versions and jurisdiction may matter
Is a generated image aesthetically effective? Target-user or domain reviewer Original prompt and image One reviewer cannot represent all audiences
Is a medical or legal statement acceptable? Appropriate domain expert and governance process Validated source, locale, and full context Annotation is not professional advice or authorization

The distinction between transaction state and communication quality also explains why the rows in the table call for different evidence. A reviewer who sees only the answer cannot verify the transaction; conversely, the database alone cannot tell the team whether the explanation was understandable.

Human evaluation can estimate quality in a defined population, calibrate automation, investigate disagreements, and review high-risk exceptions. Its conclusions remain bounded by the reviewers and cases selected, however: a handful of expert labels, for example, cannot stand in for all users. Document who the reviewers represent, what they judged, and what they could see; datasheets and data statements provide useful structures for describing dataset composition, motivation, and limitations [2], [3].

6.2 Annotation modalities

Once the team knows what it wants to judge, it must make the relevant evidence usable. For Juniper’s refund claim, that might mean showing the answer beside the associated tool events and state. A reviewer assessing a voice interaction, by contrast, may need synchronized audio and transcript rather than text alone: a transcript can convey the words while concealing an interruption or a speaker overlap.

The same label schema can therefore require different interfaces and reviewer qualifications across modalities. The table maps common evidence types to possible units of annotation and the features that keep them interpretable.

Evidence Possible annotation unit Workflow considerations
Text response Claim, sentence, turn, or whole answer Preserve surrounding context; allow evidence spans
Structured output Field, JSON object, or schema violation Show parsed fields and raw output; distinguish missing from null
Tool-call state Tool name, arguments, result, and state change Correlate IDs and timestamps; protect secrets and unrelated records
Agent trajectory Turn, action, transition, or complete episode Support navigation; avoid losing causal ordering
Code and diffs File, hunk, test result, or patch Provide a safe read-only viewer; hide unrelated repository secrets
GUI and screenshots Screen region, interaction, or task outcome Capture viewport, scale, and accessibility context; consider dynamic content
Audio Clip, time span, transcript segment, speaker, or acoustic property Provide playback controls, timestamps, and appropriate listening conditions
Image and video Region, frame, event, or whole asset Preserve resolution and frame timing; enable zoom and temporal navigation
Multimodal conversation Linked text, audio, image, video, and tool event Keep synchronization and provenance; do not flatten away relevant timing

The right unit depends on the claim. A whole-conversation label may make it difficult to identify a specific false assertion, whereas a sentence-level label can miss whether the user’s goal was achieved. For trajectories, this means keeping episode-level outcomes separate from step-level process labels: a successful ending does not validate every action, and a flawed step does not necessarily make the whole task fail.

Even a well-chosen unit sometimes cannot be judged, so reviewers need ways to mark insufficient evidence, out-of-scope material, and technically unreviewable cases as workflow states rather than negative quality labels. If an audio file is corrupted, for example, the appropriate response is to repair it or exclude it under a documented rule—not to call its transcription incorrect.

6.3 Annotation schema and interface design

Consider what the team needs after two reviewers disagree about Juniper’s answer. Knowing that one selected “safe” and another selected “unsafe” is not enough, because the team also needs to know which case version, guideline, and evidence each reviewer saw. Otherwise, a changed policy or missing tool event could be mistaken for a difference in judgment.

The data model should therefore keep the case schema separate from the annotation record, allowing one case to have multiple independent labels and a separately recorded adjudication. The following fields give those decisions enough context to be interpreted later.

Annotation field Purpose
case_id, case_version Stable identity and exact content version
annotator_id or pseudonymous reviewer key Quality and workload analysis with controlled access
guideline_version, schema_version Reproduce the instructions and allowed labels
label, confidence, abstain_reason Result, uncertainty, or reason the case could not be decided
evidence_refs Text span, tool event, state path, timestamp, or media region supporting the label
notes Concise rationale where needed; avoid unnecessary personal data
started_at, submitted_at, review_status Queue and turnaround analysis
adjudication Final disposition, reason, and reviewer/authority

The labels themselves need equally careful boundaries. “Good/bad” bundles correctness, relevance, safety, and style into a single judgment, so two reviewers can agree on the label while applying different criteria. Split dimensions when they support different decisions, but avoid adding fields without a purpose. Where the task needs uncertain, not_applicable, or insufficient_evidence, specify whether each is a label, an abstention, or a routing outcome.

The interface then has to support the intended judgment. Place the rubric beside the decision, show the necessary context, preserve the source evidence, and prevent edits to the underlying artifact. Keyboard navigation and accessibility matter, as do recorded task versions and a way to flag guideline gaps. Defaults should not nudge a reviewer toward “pass”; nor should the interface reveal a model judge’s rating before an independent human review.

6.4 Guidelines, training, and adjudication

A schema says what can be recorded, but it cannot by itself tell reviewers how to handle a boundary case. Suppose Juniper says a refund was issued, while the trace shown to reviewers contains only a lookup. If the task is to verify the transaction, the guideline must explain whether that evidence is sufficient, what other records may be consulted, and when to abstain. A guideline is consequently an operating specification for real cases, not merely a description of an ideal label. It should include:

  • the purpose and unit of annotation;
  • label definitions and boundaries;
  • what evidence is allowed and what to do when it is missing;
  • examples for typical, difficult, and boundary cases;
  • how to record uncertainty, abstain, or escalate;
  • forbidden inference (for example, do not infer a customer’s intent from protected characteristics);
  • version, effective date, owner, and change log.

Training tests whether those instructions work in practice: reviewers can label the same pilot independently, discuss disagreements against the evidence, and try a second pilot after the instructions are clarified. Keep these examples separate from the final quality-monitoring set, because if reviewers learn every gold answer, those items can no longer demonstrate independent competence.

During ongoing work, a small number of calibration items with known adjudicated labels can reveal changes in understanding. Rotate representative items, because an easy quiz repeated too often measures memory more than judgment, and interpret the results alongside task context rather than speed or agreement totals alone.

When disagreement reaches adjudication, resolving the case should not erase its history. Preserve each independent label and its evidence alongside the final label, adjudicator role, and rationale. The resolution may point to several different kinds of problem:

  1. Guideline ambiguity: clarify the rule and add a boundary example.
  2. Annotator error: provide targeted retraining and check a subsequent sample.
  3. Judge or tool error: fix the automated system and re-score affected cases.
  4. Genuinely ambiguous case: retain an uncertainty label or multiple acceptable interpretations.
  5. Evidence or asset problem: repair, re-collect, or exclude under a documented rule.

Not every disagreement has a single correct interpretation. Where several readings are defensible, forcing consensus can make a genuinely uncertain case look settled, so report the original label distribution and the adjudicated rule rather than letting a single gold label conceal that uncertainty.

6.5 Expert vs. crowd vs. vendor annotators

The discussion of guidelines raises a related question: who is qualified to apply them? “Expert” and “non-expert” are not a useful universal ranking, because expertise depends on the judgment. A policy specialist may be essential for a disputed refund rule, while a representative user may offer a more relevant perspective on whether an explanation is understandable.

Reviewer pool Strengths Risks and controls
Internal subject-matter experts Domain policy and product context Expensive, scarce, and potentially invested in the system
Trained user/community reviewers Target-user context and language variation Sampling and representativeness require care
Crowd workforce Flexible capacity and diverse perspectives Tasks need to be self-contained; monitor qualification and working conditions
Specialist vendor Scaled operations, tooling, and management Contract, security, access, quality, and worker protections must be reviewed

Domain experts are appropriate when a decision requires specialized knowledge, policy interpretation, or high-impact adjudication, while trained general reviewers can handle many tasks whose evidence and rubrics are self-contained. A vendor may add capacity and management infrastructure, but it does not take away the organization’s accountability for policy, privacy, label validity, or working conditions.

That accountability must be reflected in the arrangement before work begins. Specify task scope, qualifications, training, quality sampling, escalation, data access, subcontracting limits, retention and deletion, incident response, and audit rights. For sensitive work, follow the actual data path and confirm that both the contract and technical controls cover it. Compensation matters too: per-item-only pay can reward speed at the expense of review, so assess realistic task time and quality alongside volume.

6.6 Model-assisted annotation, active learning, and sampling

Even a qualified reviewer has limited time, and a model can help by prefilling labels, identifying spans, summarizing traces, or prioritizing cases. Those suggestions may nevertheless influence the very human judgment they are intended to assist: if Juniper’s judge marks a response safe before the reviewer sees the trace, the reviewer may be more likely to accept that conclusion.

Treat model output as a proposal, not ground truth, and design the workflow to make automation bias measurable:

  • hide model suggestions on a random audit sample;
  • measure acceptance, correction, and overrule rates by task and annotator;
  • require evidence review for high-risk claims;
  • keep the suggested label and the human’s initial label separately;
  • check whether the model and annotators share the same systematic error.

The other allocation decision is which cases reviewers see at all. With a limited budget, a useful mix reserves capacity for:

  1. high-risk cases where a miss is costly;
  2. model-human or annotator-annotator disagreements;
  3. rare languages, modalities, or task families with low coverage;
  4. boundary and recently changed-policy cases;
  5. a random sample of ordinary cases to estimate population performance.

These samples answer different questions. Disagreements are valuable for diagnosing difficult cases, but they overrepresent those cases; consequently, without appropriate weighting or a probability sample, the results do not estimate the ordinary error rate. Keep targeted diagnostic samples distinct from representative audit samples, and record inclusion probabilities when possible so estimates can reflect the sampling design.

Active learning can reduce labeling effort by selecting uncertain or informative examples, although its selection rule also shapes the resulting dataset. A random or stratified component helps expose groups that the rule rarely selects. Moreover, a high uncertainty score is not the same thing as high importance to users or the product, so risk still needs its own consideration.

6.7 Label quality: agreement, noise, and disagreement as signal

Once reviewers have labeled a shared sample independently, agreement provides a starting point for examining the operation. If two reviewers give the same label to 85 of 100 responses, the result is easy to explain; nevertheless, its interpretation depends in part on how often each label is used. Raw agreement does not adjust for agreement expected from those label proportions.

Cohen’s kappa, Krippendorff’s alpha, and other chance-corrected measures approach that question under different assumptions. Because the choice depends on the number of reviewers, missing labels, and measurement scale, report both the statistic and the design it summarizes [1]. The next two examples show why the reviewer arrangement matters.

Worked example: Cohen’s kappa for two human raters

Suppose two reviewers independently label the same 100 fictional support-agent responses as acceptable or unacceptable under the same rubric. The table preserves their labels before adjudication:

Reviewer A  Reviewer B Acceptable Unacceptable A total
Acceptable 40 10 50
Unacceptable 5 45 50
B total 45 55 100

For two raters assigning the same nominal categories to \(N\) cases, unweighted Cohen’s kappa is [4]:

\[ \kappa = \frac{p_o - p_e}{1 - p_e}, \qquad p_o = \frac{\text{number of matching pairs}}{N}, \qquad p_e = \sum_{c} p_{A,c}\,p_{B,c}. \]

Here \(p_o\) is observed agreement. The expected agreement \(p_e\) is computed from each rater’s observed marginal proportions for every category \(c\); it is not the measured probability that a reviewer guessed.

  1. Observed agreement: \(p_o=(40+45)/100=0.85\).
  2. Marginals: A labels 50/100 acceptable and 50/100 unacceptable; B labels 45/100 acceptable and 55/100 unacceptable.
  3. Expected agreement: \(p_e=(0.50 \times 0.45)+(0.50 \times 0.55)=0.50\).
  4. Kappa: \(\kappa=(0.85-0.50)/(1-0.50)=0.70\).

The reviewers match on 85 of 100 cases, and their chance-adjusted kappa under this definition is 0.70. Neither number establishes that their labels are correct or supplies a universal pass threshold, and the direction of disagreement matters as well: the 10 cases A called acceptable and B called unacceptable may carry a different safety cost from the 5 opposite cases. Reading the underlying cases is therefore part of interpreting the statistic, not an optional substitute for it.

The existing binary helper reproduces the calculation; the lists below encode the four cells in table order:

from bookkit.judge_eval import cohen_kappa

reviewer_a = [True] * 40 + [True] * 10 + [False] * 5 + [False] * 45
reviewer_b = [True] * 40 + [False] * 10 + [True] * 5 + [False] * 45
print(f"raw agreement: {sum(a == b for a, b in zip(reviewer_a, reviewer_b)) / len(reviewer_a):.2f}")
print(f"Cohen's kappa: {cohen_kappa(reviewer_a, reviewer_b):.2f}")
raw agreement: 0.85
Cohen's kappa: 0.70

Unweighted Cohen’s kappa fits two reviewers assigning paired labels to nominal categories; the helper above accepts Boolean labels. If \(p_e=1\), its denominator is zero, so kappa is undefined and should be reported as such rather than replaced with an invented score. Missing labels need attention too. Report assigned, completed, paired, missing, and abstained counts with their reasons: a calculation over complete pairs describes only that subset and may be biased if difficult cases are more likely to be missing. Abstention is not a negative label unless an explicit rule says otherwise.

For ordinal categories, weighted kappa can represent differences in disagreement severity, provided the weights are set in advance and their meaning is explained. Confidence-interval methods should match the sampling unit—for example, by resampling independent cases or clusters of related cases. Report the marginals, confusion table, and sampling design with the coefficient, especially because highly imbalanced categories can produce a low kappa even when raw agreement is high.

Worked example: Fleiss’ kappa for multiple raters

The previous example follows the same two reviewers across paired cases, but an annotation pool may work differently: three people might independently label each response, while the particular reviewers vary from one response to the next. Fleiss’ kappa addresses a design with the same fixed number of independent nominal ratings per case, usually more than two [5]. Its calculation uses category counts for each case rather than reviewer identities.

For \(N\) cases, \(n\) ratings per case, and \(K\) categories, let \(n_{ij}\) be the number of reviewers who assign case \(i\) to category \(j\). The within-case agreement \(P_i\) is the proportion of ordered reviewer pairs that agree:

\[ P_i=\frac{\sum_{j=1}^{K} n_{ij}(n_{ij}-1)}{n(n-1)}, \qquad \bar P=\frac{1}{N}\sum_{i=1}^{N}P_i. \]

The overall category proportion \(p_j\), expected agreement \(P_e\), and Fleiss’ kappa are:

\[ p_j=\frac{\sum_{i=1}^{N}n_{ij}}{Nn}, \qquad P_e=\sum_{j=1}^{K}p_j^2, \qquad \kappa_{\mathrm{F}}=\frac{\bar P-P_e}{1-P_e}. \]

Consider four fictional responses, each independently labeled by three reviewers as acceptable or unacceptable:

Case Acceptable ratings Unacceptable ratings \(P_i\)
1 3 0 1
2 2 1 1/3
3 1 2 1/3
4 0 3 1
  1. Case-level agreement: for case 2, \(P_2=[2(2-1)+1(1-1)]/[3(3-1)]=2/6=1/3\).
  2. Mean observed agreement: \(\bar P=(1+1/3+1/3+1)/4=2/3\).
  3. Category proportions: six of the 12 ratings are acceptable and six are unacceptable, so \(p_{\text{acceptable}}=p_{\text{unacceptable}}=0.5\).
  4. Expected agreement: \(P_e=0.5^2+0.5^2=0.5\).
  5. Fleiss’ kappa: \(\kappa_{\mathrm{F}}=(2/3-0.5)/(1-0.5)=1/3\), approximately 0.333.

The following standard-library example computes those quantities directly from the counts:

counts = [(3, 0), (2, 1), (1, 2), (0, 3)]
n_cases, n_raters = len(counts), 3
if any(sum(row) != n_raters for row in counts):
    raise ValueError("each case must have the same number of ratings")

case_agreement = [
    sum(count * (count - 1) for count in row) / (n_raters * (n_raters - 1))
    for row in counts
]
p_bar = sum(case_agreement) / n_cases
proportions = [
    sum(row[j] for row in counts) / (n_cases * n_raters)
    for j in range(len(counts[0]))
]
p_e = sum(proportion ** 2 for proportion in proportions)
if p_e == 1:
    raise ValueError("Fleiss' kappa is undefined when expected agreement is 1")
print(f"observed agreement: {p_bar:.3f}")
print(f"expected agreement: {p_e:.3f}")
print(f"Fleiss' kappa: {(p_bar - p_e) / (1 - p_e):.3f}")
observed agreement: 0.667
expected agreement: 0.500
Fleiss' kappa: 0.333

This four-case fixture checks the arithmetic, but it says little about a real reviewer pool. Notice that \(\bar P\) is mean pairwise agreement, not the share of cases with unanimous labels. Cohen’s kappa uses separate reviewer marginals, whereas Fleiss’ expected agreement uses pooled category proportions, so their results can differ even when each case has two ratings. Neither statistic proves that the labels are correct.

The standard formulation requires the same \(n \geq 2\) completed ratings per case and mutually exclusive nominal categories. Missing ratings should not be silently dropped or filled with a category, and abstentions should not be counted as substantive labels unless the design specifies that treatment. Report how many ratings are missing and why.

With variable overlap or missing ratings, an alternative such as Krippendorff’s alpha may be suitable, subject to its own assumptions and distance function. Fleiss’ kappa does not weight ordinal disagreement, so a different method is needed when disagreement severity matters. Alongside the statistic, report category proportions, per-case counts, sampling and reviewer assignment, appropriate uncertainty intervals, and disagreement examples; pooled counts alone cannot diagnose individual reviewers. Kappa is undefined when \(P_e=1\), and prevalence, task ambiguity, and reviewer selection all affect interpretation. Pairwise kappas are not automatically interchangeable with Fleiss’ kappa.

No coefficient can certify a dataset on its own:

  • high agreement can occur when almost every case is easy or one label dominates;
  • low agreement can reveal an ambiguous concept or missing context rather than careless annotators;
  • adjudication can create a consistent final label while hiding original uncertainty;
  • annotators may agree for the same wrong reason.

For a fuller picture, report label distributions, overlap counts, raw agreement, a suitable chance-corrected statistic, and confusion patterns. Break results down by task family, modality, language, risk, guideline version, and reviewer, then read examples from both agreement and disagreement samples. The aggregate may look reassuring while a particular slice reveals a guideline that is difficult to apply.

The response to a noisy label depends on its cause. Criteria may be vague, reviewers tired, evidence unavailable, or the interface broken; alternatively, instructions may have been misunderstood, or the case may genuinely admit multiple interpretations. Because retraining is not the answer to every one of these problems, ongoing checks should track calibration performance and drift while protecting reviewer privacy and avoiding unnecessary surveillance.

6.8 Throughput, cost, and operating the annotation pipeline

Agreement tells the team something about labels that have been produced, but it does not tell them whether the remaining work will be completed in time. Imagine that Juniper’s urgent policy cases are waiting behind a large batch of routine reviews: an attractive average turnaround could conceal the fact that the decisions with the greatest consequences are arriving too late.

An annotation operation has a queue as well as a per-item price. Service expectations should cover assignment, review, adjudication, turnaround, and escalation, with enough detail to reveal where work is accumulating. Useful measures include:

  • incoming volume, backlog, and age of oldest task;
  • median and tail turnaround time, segmented by modality and priority;
  • throughput per completed label and rework rate;
  • reviewer overlap and adjudication rate;
  • cost per usable, adjudicated case—including training, tooling, quality audits, and rework;
  • service-level attainment and unresolved high-risk cases.

Separate service-level objectives for ordinary and urgent, high-risk work make that trade-off visible; segmentation by modality can also reveal a backlog hidden by an overall average. Plan for overflow in advance, whether by pausing intake or narrowing scope, rather than lowering review standards to clear the queue.

Capacity estimates must include breaks, training, calibration, tool friction, and the demands of emotionally difficult content. Speed targets should come from observed task times and be checked against quality, since productivity alone is not enough; the same principle applies to vendor scorecards, where cost and item count belong beside quality, security, retention, escalation, and worker conditions.

6.9 Tooling and workflow

The queue becomes easier to manage when the tool distinguishes work that has merely been submitted from work that is ready to use. A dependable workflow usually makes these states visible:

created → privacy-screened → sampled → assigned → independently labeled → quality-checked → adjudicated (if needed) → released

Each transition needs a recorded reason, including paths in which the task becomes blocked, asset_error, out_of_scope, or abstained. Unique task IDs and an audit trail of edits and adjudication make the history recoverable, while hiding other reviewers’ labels until independent submission protects the independence the agreement analysis assumes.

The annotation tool is part of the measurement instrument: if its media preview loses timing or its interface exposes another reviewer’s answer, the label can change for reasons unrelated to the agent. For that reason, version the schema and interface, test keyboard and accessibility behavior, and verify media resolution and timing. Also check that hidden fields stay hidden, permissions prevent unauthorized downloads, and exports preserve identifiers and label meanings. A staging queue with synthetic examples can exercise these controls before launch.

Visible status helps both analysts and reviewers understand what a label means: submission may be followed by quality review, adjudication, or privacy checks, and it does not automatically make a label gold.

6.10 Building and maintaining the gold set

A gold set is a reviewed collection of cases whose labels are trusted for a defined purpose. That trust is not an unchanging property of a row: if Harbor & Pine changes its refund policy, an answer that was previously acceptable might no longer be acceptable under the new rule. The label’s meaning depends on policy version, scope, evidence, reviewer expertise, and adjudication.

Building such a set requires more than choosing the cleanest cases. Sample key task families and risk strata, collect independent labels, document disagreements, and use the appropriate authority to adjudicate them. Preserve the original labels beside the final disposition. Calibration, development, and sealed evaluation cases also need separation, because repeated feedback from the sealed set turns it into training data.

Maintain gold through controlled changes:

  • version labels and guidelines together;
  • record the evidence and authority for policy-dependent labels;
  • add new cases for new failure modes and changed product behavior;
  • retire or mark historical cases when policy changes;
  • audit for contamination when gold examples are shown to annotators or models;
  • compare old and new labels before replacing a version.

The resulting set can calibrate reviewers and automated judges, but labels need rechecking when their meaning changes. To support that work, keep provenance and known limitations with the set, using dataset documentation practices such as datasheets and data statements [2], [3].

6.11 Closing the loop from disagreement to guidelines and training

The gold set and the guidelines will both change as the team learns. Suppose repeated adjudications reveal that reviewers interpret Juniper’s unsupported refund claim differently because the instructions do not distinguish a missing trace from a verified failure. That pattern is useful evidence about the annotation process, but changing the rule without tracking its effect would make scores before and after the change difficult to compare.

A controlled improvement cycle connects the discovery to a measurable revision:

  1. Detect a recurring pattern in labels, judge-human comparisons, or audit samples.
  2. Sample examples and classify the cause: guideline, annotator, judge, evidence, interface, or genuine ambiguity.
  3. Agree on the narrowest rule change with the accountable domain owner.
  4. Update the guideline version and add anonymized examples showing the old boundary and new rule.
  5. Retrain affected reviewers and re-label cases whose meaning changed.
  6. Re-measure agreement and automated performance on a held-out sample.
  7. Release the change with its expected impact, limitations, and rollback path.

Labels should not be edited quietly to improve agreement, so preserve the old and new guideline versions, labels, and decisions. If a rule change reverses earlier labels, create a migration or dataset version and report its score impact separately from changes to the agent.

An issue taxonomy and review queue help the program follow recurring problems without losing their context. Redact examples and share them only with authorized people. Once the cause is understood, the disagreement may lead to a guideline example, a grader test, a dataset slice, or a question for the product-policy owner.

6.12 Security, privacy, and access control

Every stage discussed so far depends on reviewers seeing evidence, but more evidence is not automatically better. User messages, screenshots, code, traces, account details, and sensitive media can expose information that the annotation question does not require. For a refund review, the reviewer may need to distinguish the target order from another order without seeing the customer’s full identity.

Collect and display only what the task needs, redacting or transforming identifiers when they are unnecessary. If identity or context is essential, use a protected environment with narrow access. A regex redactor is only a filter, not a privacy guarantee, so test it, look for missed data, and prevent exports from becoming uncontrolled copies of source records.

Before work starts, document:

  • data purpose, source, permission or consent basis, and retention period;
  • fields removed, transformed, or masked and the remaining re-identification risk;
  • role-based access, authentication, download controls, and audit logging;
  • encryption and approved storage/transfer paths;
  • vendor or subcontractor restrictions, training use, onward transfer, and deletion;
  • incident response and escalation for harmful or illegal content;
  • reviewer support, opt-out or pause procedures, and exposure minimization.

The NIST Privacy Framework offers a voluntary structure for identifying and managing privacy risks [6], but it does not replace legal, security, or contract review. Data-handling decisions belong with the organization’s privacy and security owners, who should check the actual controls rather than rely on a vendor’s general assurances.

Separate access to raw data, redacted annotation payloads, and identity mappings, and keep personal data out of free-text rationales unless it is essential. For highly sensitive cases, a controlled review environment with no local downloads may be appropriate. In every case, return to the measurement question: can less sensitive evidence support the same judgment?

Chapter summary

  • Use human judgment where context, ambiguity, expertise, or accountability matters; reserve deterministic checks for verifiable outcomes.
  • Match annotation unit, interface, modality, and reviewer qualifications to the claim being measured.
  • Version schemas and guidelines, train on boundary cases, and preserve independent labels through adjudication.
  • Use a mix of targeted disagreement/risk review and representative random audits; disagreement samples alone do not estimate population error.
  • Monitor agreement, label distributions, modality-specific backlog, turnaround, rework, and cost per usable case.
  • Maintain gold sets with provenance, independent labels, controlled updates, and sealed evaluation splits.
  • Minimize sensitive data, restrict access, and establish vendor, retention, deletion, and reviewer-support controls before annotation begins.

For product managers. Ask: Which decisions require human judgment? Who is qualified to make them? Can they see the evidence without seeing unnecessary personal data? How are disagreements resolved and retained? What does “gold” mean for this policy version? Which service-level or quality threshold pauses intake or release?

Hands-on lab (Python)

The runnable lab is code/ch09/lab_annotation_ops.py, with reusable redaction, disagreement routing, queue selection, label-record validation, and pipeline summaries in code/bookkit/annotation.py. The case records and labels are fictional and pre-authored to demonstrate operations; no person has reviewed them.

Screen a synthetic message before it enters the annotation queue. Redaction reduces exposure but should not be treated as a full privacy guarantee:

from bookkit.annotation import redact_pii

message = "Please help me, demo.user@example.test, call 202-555-0148."
print(redact_pii(message))
Please help me, [EMAIL], call [PHONE].

Now compare independent reviewer labels. The queue includes label disagreements and high-risk cases for review, plus a small random agreement audit:

from bookkit.annotation import agreement_summary, select_review_queue

print(agreement_summary(rows))
queue = select_review_queue(rows, budget=4, seed=7)
print([(row["case_id"], row["queue_reason"]) for row in queue])
{'double_labeled': 8, 'agreements': 5, 'disagreements': 3, 'raw_agreement': 0.625}
review queue: [('tool-01', 'high_risk'), ('policy-01', 'annotator_disagreement'), ('support-02', 'annotator_disagreement'), ('summary-01', 'agreement_audit')]

Agreement is computed only for rows with two independent labels, while the queue is a targeted operational sample rather than a statistically representative estimate of all cases. Preserve the original labels and use adjudication to record a disposition rather than overwriting either reviewer.

from bookkit.annotation import pipeline_metrics, validate_annotation

record = {
    "case_id": "support-02",
    "annotator_id": "reviewer-17",
    "guideline_version": "hp-v1.2",
    "label": None,
    "confidence": 1,
    "evidence_refs": [],
    "abstain_reason": "policy_reference_missing",
    "status": "abstained",
}
print("valid annotation record:", validate_annotation(record))
print(pipeline_metrics(rows, sla_hours=24))
valid annotation record: []
{'cases': 8, 'pending': 1, 'adjudication_needed': 3, 'median_turnaround_hours': 7, 'sla_met_rate': 0.8571428571428571}

The abstained record passes validation because it explains why the reviewer could not decide and leaves the label unset. In production, track abstention reasons and repair missing references or inaccessible media. Do not count those cases as incorrect judgments.

Exercises

  1. (Conceptual) For an autonomous agent’s browser task, choose one outcome-level and one step-level annotation. What evidence should the reviewer see?
  2. (Conceptual) A team has a small budget and 30% label disagreement. Explain why labeling only disagreements will not estimate overall error.
  3. (Hands-on) Add a new insufficient_context abstention reason and tests for a missing reason, malformed confidence, and a valid abstention.
  4. (Hands-on) Add a multilingual slice and a stratified random audit. Compare its sample composition with selecting only the highest-priority cases.
  5. (Hands-on) Create a new guideline version that changes one policy boundary. Record old and new labels, then produce a migration summary without overwriting history.
  6. (Discussion) A vendor promises fast annotation but requests downloadable raw conversations and model-training rights. Create a list of conditions for privacy, quality, reviewer welfare, and contract approval.

Further reading

  • Artstein and Poesio, Inter-Coder Agreement for Computational Linguistics: assumptions and interpretation of agreement statistics [1].
  • Gebru et al., Datasheets for Datasets: documenting motivation, composition, collection, and use [2].
  • Bender and Friedman, Data Statements for NLP: documenting linguistic populations and context [3].
  • National Institute of Standards and Technology, NIST Privacy Framework, Version 1.0: a voluntary privacy-risk management structure [6].
[1]
R. Artstein and M. Poesio, “Inter-coder agreement for computational linguistics,” Computational Linguistics, vol. 34, no. 4, pp. 555–596, 2008, doi: 10.1162/coli.07-034-R2.
[2]
T. Gebru et al., “Datasheets for datasets,” Communications of the ACM, vol. 64, no. 12, pp. 86–92, 2021, doi: 10.1145/3458723.
[3]
E. M. Bender and B. Friedman, “Data statements for natural language processing: Toward mitigating system bias and enabling better science,” Transactions of the Association for Computational Linguistics, vol. 6, pp. 587–604, 2018, doi: 10.1162/tacl_a_00041.
[4]
J. Cohen, “A coefficient of agreement for nominal scales,” Educational and Psychological Measurement, vol. 20, no. 1, pp. 37–46, 1960, doi: 10.1177/001316446002000104.
[5]
J. L. Fleiss, “Measuring nominal scale agreement among many raters,” Psychological Bulletin, vol. 76, no. 5, pp. 378–382, 1971, doi: 10.1037/h0031619.
[6]
National Institute of Standards and Technology, “NIST privacy framework: A tool for improving privacy through enterprise risk management, version 1.0,” National Institute of Standards; Technology, NIST CSWP 10, 2020. doi: 10.6028/NIST.CSWP.10.