Gold sets
Owner: sme-diplomacy · Updated: 2026-11-23 (units-v3-test held-out set labeled and adjudicated, A5; sentence-unit gold set v1 added; the statement-level reference set below dates from 2026-11-19)
This page has two parts. Part A (sections A1 to A4) is the current gold set: 600 sentence units labeled with the unit codebook, the test set for the sentence-level tagging layer. Part B is the earlier statement-level reference set (codebook 1.1/1.2, built 2026-11-19), kept as the record for the statement-level target tone; its sections keep their old numbers 1 to 7, which other pages cite.
Part A. Sentence-unit gold set v1 (current)
A1. What it is
db/seed/gold/gold-v1.jsonl: one final label set for each of 600 sentence units (608 lines; 8 sentences are split into two clauses) drawn from real canonical statements collected between 2026-08-25 and 2026-11-23 (db/seed/gold/units-v2.jsonl, seed 20261123). Each unit is labeled under codebook-units-v1.md v1.2: whose words they are (attribution frame), what the sentence does (position, courtesy, narration, procedural, other), the source actor, up to two targets with polarity −2..+2 for positions, mode, PLOVER hint, theme and a verbatim evidence span. 586 units are usable; 14 were marked fragment, garbled or not a statement and keep null labels.
It is the test set for the unit tagging layer (nlp-claims-v5, scored by claims-eval; docs/pipelines/claims-eval.md): courtesy versus position, target linking, polarity, mode, theme and evidence validity.
| Split | Units | Lines | Usable units | Use |
|---|---|---|---|---|
| test | 200 | 203 | 192 | evaluation only; never tune on it |
| dev | 400 | 405 | 394 | prompt and rule tuning; includes the 30 pilot units |
The test units are a stratified draw (seed 20261123) by stratum (language x source kind, largest-remainder allocation) from the 570 non-pilot units. The pilot units are always dev, because v1.2 was written from them. The 75-unit smoke set (smoke-coderA.jsonl, smoke-coderB.jsonl, codebook v1) is a separate dev set, unchanged. Test composition: 104 English units, then fr 20, ru 20, es 19, pt 12, uk 12, ar 9, de 5, fi 1, sl 1 (language tags as stored; see limits); label sources 151 single, 27 agreed, 22 adjudicated.
A2. How it was made
All labels are AI labels. No human has coded or checked any unit yet. Coders were Claude Sonnet agents; the reviewer and adjudicator was a Claude Opus agent. "Correct" below means "matches the Opus reading of the text under the codebook", a third AI reading.
- Smoke test (75 units, codebook v1, two coders): review gold-smoke-review-2026-11-23.md led to v1.1 and to sampler fixes (units v2).
- Pilot (30 units of units v2,
pilot: true, two coders, v1.1): review gold-pilot-review-2026-11-23.md proposed fixes G1 to G8, adopted as v1.2. - Main run (v1.1): the other 135 double-coded units by coders DA and DB, blind to each other; the 435 single units split among coders S1, S2 and S3.
- Adjudication (Opus, v1.2), reading each unit in its original language with the full statement from the local Postgres (read-only, no model API call): every DA/DB disagreement and the three units only one of them split; the pilot disagreements, open calls and the six pilot lines the review said to recode; a v1.2 spot-check of 44 singles chosen because their coding touches a changed rule; and 12 S1 positions with a missing polarity. Each decision and its reason is in
db/seed/gold/gold-v1-adjudications.md. - Merge:
label_sourceisadjudicatedfor the 30 pilot units (all read by the pilot review) and for every decided unit,agreedfor double-coded units where both coders gave the same label,singlefor the rest.
| label_source | Units | Lines |
|---|---|---|
| agreed | 82 | 84 |
| adjudicated | 103 (30 pilot, 53 double-coded, 20 single) | 107 |
| single | 415 | 417 |
What adjudication changed: of the 53 double-coded decisions, 14 only filled in a polarity that coder DA had left null on target-none positions (a coder slip, not a codebook question); the rest were real disagreements, mostly function (courtesy versus narration versus other) and polarity steps. The v1.2 spot-check of 44 singles changed 8 (6 under G3, 2 under G2); none changed under G1, G4, G5 or G6. G3 (another side's quoted words are narration) was applied to every single it can touch. Three conventions the codebook does not yet state (group statements keep the group as source; "'...', said the minister" is reported_institution; split only when the parts differ in function) are listed in the adjudication record and proposed for v1.3 in codebook section 12.
A3. Agreement (AI coder against AI coder)
Agreement measures how clear the codebook is, not accuracy against human diplomats. Krippendorff's alpha, two coders.
| Field | Pilot (30 units, v1.1): alpha (raw agreement) | Main double-coded (135 units, v1.1): alpha |
|---|---|---|
| attribution_frame | 0.82 (27 of 30) | 0.89 |
| function | 0.91 (28 of 30) | 0.88 |
| first target (units both coded position or courtesy) | 1.00 (17 of 17) | 0.91 |
| polarity (both position, same target) | 1.00 (10 of 10) | 0.98 |
| mode | 0.87 (28 of 30) | 0.90 |
Main-run figures as reported by the PM's agreement run; a recount by the adjudicator on the 130 units both coders marked usable gives the same picture (frame 0.91, function 0.89, target 0.92, polarity 0.98 on 39 pairs, mode 0.92). Every field clears the 0.80 target in codebook section 11. High agreement is not the same as being right: the pilot review found one agreed target wrong and two agreed functions in a codebook gap, and both main-run coders gave courtesy to a quoted counterpart (42543-527) that v1.2 makes narration. Polarity is gated on few pairs (10 in the pilot, about 40 in the main run) because DA left many polarities null.
A4. Limits
- AI only. Coders and adjudicator are Claude models; their errors may be correlated. A human-coded sample (Part B, section 3) is still pending. Call every figure computed against this set a reference figure, not human gold.
- Most labels are single-coded under v1.1. 415 of 600 units carry one coder's label. Only 44 singles were re-read under v1.2, picked by rule, so v1.2 cases under G1, G4 and G5 may remain among the other singles. The test split is 76% single-coded (151 of 200 units).
- Language tags are wrong for some cells. The pilot review (P1) found that the
decell holds Dutch, Danish, Swedish and other languages, thetrcell holds no Turkish and theptcell holds Icelandic units; units v2 was not redrawn after the language fix. Do not report per-language results for de, tr or pt from this set. Shown machine translations were wrong for those units; coders read the originals. - Entity names are not frozen. The entity export
entities-v1.csv(pilot review S5) does not exist yet; 39 distinct names stayunresolved:(groups such as the Baltic States and AUKUS, IOM, ECCAS, the ILC). Scorers must drop the prefix and compare names case-insensitively, asclaims-evaldoes. - Hard cases are oversampled. At least 30% of each cell names two or more states and at least 25% has a courtesy cue, so label frequencies do not describe real text; reweight by stratum with
units-v2.manifest.jsonfor prevalence. - Small cells. The test split has 9 Arabic, 5
deand single-digit counts for several source kinds; per-cell intervals are wide. English is about half of every split because the pool is. - Codebook gaps remain. Three adjudication conventions are not yet rules (A2); theme was not adjudicated (two defensible leaves often exist);
plover_hint,confidenceandambiguousare kept from the coder whose label was used. - Source quirks.
sur-mfa-nlis a whole-government feed labeled as a foreign ministry (review S6), and some publishers repost other governments' words (Azerbaijan's presidency reproduces Vietnamese and Kyrgyz speeches); these units are coded as quoted words of the other side.
A5. units-v3-test (held-out set for the final decision)
Status: final; do not read while iterating. Labels: db/seed/gold/gold-v3-test.jsonl. Sample: db/seed/gold/units-v3-test.jsonl (+ .manifest.json). Decisions: gold-v3-test-adjudications.md. This set exists because the gold-v1 test split was looked at five times during prompt rounds. It is scored once, for the final decision; never tune a prompt, rule or model on it, and never open it to debug errors. Dev work stays on gold-v1 (the dev split, and with its limits the test split) and on the smoke set.
Sample. 200 fresh sentence units, drawn by the gold-units-sample flow (run 79190bf8-1275-49f1-9c85-6f8b325ff069, seed 20261130). It uses the units-v2 strata (language x source kind; 30% multi-country and 25% courtesy per cell), covers the last 30 days and has 50 units double-coded, with no pilot. Every statement in units-v1 or units-v2 (1,091) is excluded whole. Country-target precision needs n, so cells were topped up until 60% of units sit in statements naming a state other than the speaker's: 152 of 200 qualify.
Labeling. Two Sonnet coders (A: the first 75 singles plus the 50 doubles; B: the last 75 singles plus the 50 doubles) coded under unit codebook v1.2, blind to each other and to every model output. An Opus adjudicator then read every unit in its original language with the full statement (read-only Postgres; no model API call, no model predictions read), applying v1.2 as written. The codebook was frozen for this set, so the test is scored against a fixed rulebook. Splits were handled as in gold-v1: label_source is per unit and applies to both lines. All labels are AI labels; no human has coded or checked them.
| label_source | Units | Lines |
|---|---|---|
| agreed | 35 | 35 |
| adjudicated (13 disagreements; 2 agreed labels changed under s3 item 1 and s5) | 15 | 16 |
| single | 146 | 146 |
| single-corrected (3 of a random spot-check of 30 singles, 15 per coder; 1 by a gap decision) | 4 | 5 |
There are 197 usable units. Three are unusable and keep null fields (two fragments, one garbled Arabic PDF). 44 usable units have a state as target: 20 positions (24 state-target pairs) and 24 courtesy. Most units that the sampler counted as country-eligible do not take the named state as a stance object.
Agreement on the 50 double-coded units (Krippendorff's alpha, AI coder against AI coder, 1,000-resample bootstrap 95% interval):
| Field | n | Raw agreement | Alpha (95% CI) |
|---|---|---|---|
| attribution_frame (five-way) | 50 | 94% | 0.90 (0.79 to 1.00) |
| attribution_frame (three-way) | 50 | 98% | 0.94 (0.78 to 1.00) |
| function | 50 | 92% | 0.89 (0.77 to 0.97) |
| target, entity set (both position or courtesy) | 22 | 91% | 0.89 (0.73 to 1.00) |
| polarity (agreed targets, ordinal) | 15 | 93% | 0.96 (0.71 to 1.00) |
| mode | 50 | 96% | 0.92 (0.79 to 1.00) |
| theme (leaf) | 50 | 78% | 0.77 (0.65 to 0.87) |
Every field except theme clears the 0.80 target. Theme clears the 0.67 minimum and is not adjudicated, as in gold-v1. The random spot-check changed 3 of 30 singles (10%). Both coders met ten codebook gaps: thanks for work or leadership, aligning with a group statement, reaffirmed cooperation with a named goal, quoted stances of the other side (G3), loaded framing in narration, charges against an unnamed set, joint statements, and three new ones. The adjudication record says how v1.2 as written decided each, and they are proposed for v1.3 on board thread codebook. Data bugs found while adjudicating (machine translations that swap country names, quotes credited to the publisher, stale dates) are listed in the same record. None was fixed in the labels; the coders read the originals.
Part B. Statement-level reference set (2026-11-19, codebook 1.1/1.2)
Purpose: a hand-labeled test set of 200-300 real statements to measure the rules baseline and the local LLM classifier, and to calibrate the codebook. Every gold label is on a real collected statement with a real source URL (CLAUDE.md rule 3), labeler human:sme-diplomacy, is_gold=1, with codebook_version.
Status: first pass done (see section 6). This is a reference set labeled by AI expert agents; human validation pending. It is not human gold: the labeler string is agent:sme-diplomacy, not human:..., and every figure computed against it must say so.
1. Sampling
Draw from statements where is_canonical=1 (no dedup duplicates), on the MVP topic and a small off-topic slice.
| Dimension | Target |
|---|---|
| Size | 250 statements (floor 200, cap 300); the number of labels will be larger since a statement can carry several (topic, target) labels |
| Countries | 12-20 speaker countries; cap any one country at 15% of the set |
| Language | Per source language, in proportion to the corpus but at least 20 each for the non-English languages in the MVP (zh, ru, ar, fr, es as present); label in the original language |
| Venue | Mix of press briefing, UN SC/GA, press release, communiqué, speech; briefings are over-sampled because of non-answers |
| Level | Stratified by a provisional automatic label (rules or LLM): sample about 35 per level among -3..+3 where available, and add 40 random statements from the whole pool regardless of the automatic label to avoid bias toward what the classifier already finds |
| Hard cases | 15-20% deliberately hard: hedged, conditional, "all parties", boilerplate, non-answers, reported speech, multi-target |
| Time | Spread across the collection window; max 20% from any one week |
| Length | Exclude statements under 5 words or over 600 words (use a segmentation fix instead) |
Procedure: fix a random seed (record it in the label rationale or a note on board thread codebook), run the stratified query, export to a spreadsheet-like view or the review UI, and freeze the sample list (statement ids) before labeling. The sample ids and seed are recorded so the draw is reproducible. Never add a statement because it "looks interesting" after seeing the classifier output.
Do not train or tune prompts on the gold set. A separate small dev set (about 50 statements) is drawn the same way for prompt and rule tuning; gold stays untouched until evaluation.
2. Labeling procedure
- Open the statement with its source URL; read the whole statement and the briefing question if present.
- Blind labeling: the annotator does not see model or rules output.
- For each (topic, target) with an explicit position: assign level, hedged, demand, threat, and copy the evidence sentence verbatim (codebook section 5).
- Use the checklist in codebook section 7. If unsure between adjacent levels, choose the one closer to 0 and mark
needs_review. - Record a short rationale where any codebook rule other than the plain cue applied (rule numbers).
- Non-English: label from the original text. If the annotator cannot read the language reliably, the item goes to the translation-assisted queue and is marked as such in the rationale; those items are excluded from the headline per-language scores unless a second annotator reads the language.
- Log unclear cases in a running list; after 50 items stop and review the list. Adjust the codebook (bump to 1.1) and relabel the first 50 under the new version.
- Store in
stance_labelswithlabeler='agent:sme-diplomacy'for the AI reference labels (a human annotator would usehuman:<name>),review_status='accepted',is_gold=1,confidencenull.
3. Inter-annotator agreement plan
A single expert labeling is not enough to claim the scale is valid. The plan:
- Second annotator: recruit 1-2 independent annotators with diplomatic or IR background (former diplomat, political-science graduate student), ideally one reading Chinese/Russian/Arabic. Open question for the PM/user: who they are. Until then, the self-agreement check below is the fallback, and results are reported as single-annotator.
- Overlap: the second annotator labels a random 25% (about 60 statements, at least 10 per non-English language) blind, using only the codebook.
- Metrics, computed on the (statement, topic, target) units labeled by both:
- Weighted Cohen's kappa (quadratic weights) on level (the scale is ordinal); target at least 0.70, and flag anything under 0.60.
- Exact agreement and within-one-level agreement on level (target: within-one at least 90%).
- Cohen's kappa for each flag (hedged, demand, threat); target 0.65.
- Agreement on label units: whether both annotators identified the same (topic, target) pairs (F1 of the unit sets), and on the evidence sentence (same sentence, or at least overlapping).
- Confusion matrix of levels, especially the +1/0/-1 band and the -2/-3 boundary.
- Adjudication: disagreements by more than one level, and every flag disagreement, are discussed; the adjudicated label becomes the gold label and the rule that resolved it is written back to the codebook. The unadjudicated labels are kept in the record (as
labeler='human:<name>',is_gold=0) so agreement can be recomputed. - Self-consistency (fallback and extra): the same annotator relabels 30 items two weeks later (or as far apart as the sprint allows) with order shuffled; report intra-rater kappa.
- Iteration: if weighted kappa < 0.60 on the first 60, revise the codebook (likely candidates: "welcomes" procedural, non-recognition, hedged definition) and repeat on a fresh sample before expanding. Report agreement per level pair so the product can say which grades are reliable.
- Reporting: publish agreement with the gold-set size, annotator count, versions, and the caveat that annotators are few. Report model-vs-gold with the same metrics plus macro-F1 per level, and the sign accuracy (negative / neutral / positive) separately, since users will trust the direction more than the exact grade.
4. Use in evaluation (for sme-nlp)
- Evaluate on gold only, per language, per venue, and per level; report confidence intervals (bootstrap).
- Treat a model label as correct on evidence if the evidence is the gold sentence or a sentence with the same cue; wrong evidence with the right level is a separate failure mode and should be counted.
- Re-run the evaluation when codebook_version changes; keep old gold labels with their original version and add re-adjudicated ones as new rows.
5. Risks
- Few annotators and an unvalidated scale: results should be called provisional.
- Class imbalance: neutral and mild-concern statements dominate real text; the stratified draw corrects this but means gold level frequencies do not describe the real distribution. Compute prevalence-weighted metrics too.
- Translation drift for non-English items (see section 2, step 6).
6. First reference set (built 2026-11-19, codebook 1.1)
Honesty statement: reference set labeled by AI expert agents; human validation pending. The first labeler is agent:sme-diplomacy (an AI agent briefed as a diplomacy expert); a second blind AI annotator will label the same ids for an agreement study. Agreement between two AI agents measures consistency of the codebook, not accuracy against human diplomats. The human validation plan in section 3 still applies.
Sample: 155 statements, ids and strata in docs/stance/gold-sample.csv (columns statement_id, stratum). Drawn with a fixed seed (20261119) from canonical statements of 80 to 3600 characters, using only the statements, documents, topics and targets tables; no model or other labeler output was read. Strata are country/venue/Ukraine-keyword (regex ukrain, russia, kyiv, zelensk, putin, donbas, crimea, kremlin, moscow, kursk on the text): CHN briefings 68 (all 24 keyword hits plus 44 random others), EU releases 40 (26 keyword, 14 other), GBR speeches 34 (22 keyword, 12 other), GBR releases 13 (3 keyword, 10 other). Deviations from section 1: only three countries exist in the data so the 15% cap per country cannot hold; the length cap excludes many long EU and GBR texts (average 3300 to 4000 characters, because segmentation returned whole releases and speeches rather than single positions); the 60-statement overlap for the agreement study is the whole set; no separate dev set was drawn.
Labeling: per codebook 1.1, one label per (topic, target) with level, hedged, demand, threat, non_answer, verbatim evidence sentence (checked: every evidence string is an exact substring of the statement text), is_gold=1, review_status='accepted', codebook_version='1.1', rationale. Statements off the Ukraine topic got labels on the other topics of the taxonomy when they take an explicit position on them (for example arms-control, taiwan-strait-type topics, un-votes, human-rights); statements with nothing relevant are recorded as none (no label row). Statement ids with no label (none): 20,108,199,203,234,273,292,320,379,489,500,507,520,562,572,577,584,610,612,621,628,630,634,650,673. Targets that did not exist were created in the targets table (33 rows: countries, EU/UN/ICC/ICJ/ICRC, Hamas, Houthis, Taiwan authorities (DPP)).
Counts: 218 labels on 130 statements (25 statements none). Levels (excluding non_answer): -3: 17, -2: 71, -1: 11, 0: 7, +1: 0, +2: 43, +3: 54; non_answer: 15 (all CHN briefings); hedged 3, demand 53, threat 5. By speaker country: CHN 79 labels, GBR 97, EU 42.
Distribution warning: real text is bimodal. Level +1 never occurs and 0 is rare; statements are either clear approval/disapproval or deflections. The mild levels of the scale may not be reliably separable in this data; report sign and within-one accuracy, not only exact match.
7. Adjudication list for codebook 1.2 (reference set labeled under 1.1)
Labels expected to differ under 1.2 (see codebook 10.11): generic dialogue +2 to 0 (statements 18, 97, 250), 335 +2 to +1; own export-control measures -3 to -2 (126, 336); sanctions in 456 retargeted to CUB plus a USA dispute label; ritual bilateral praise +3 to +2 (172, 220, 293, 340, 347, 411, 414, others); long evidence in 265 shortened to a clause of about 300 characters; insult labels stay -2 (56, 240, 303, 224). Do not relabel in bulk; resolve disagreements with annotator-2 case by case after sme-nlp posts the agreement numbers, and keep both versions' rows (the 1.1 row stays as the record).