# Verification coverage matrix (version 0.8.3)

Generated by `research/analysis-082/coverage_matrix.py` from `verification.json`. The independent implementation is `research/analysis-082/verify.py` (Python, standard library only, imports no project module). It reads the same input files, whose SHA-256 it records, and recomputes each value from the texts; the primary values come from `analyse.mjs`, which uses the site's own JavaScript modules, or, for the 0.8.1 values, from the 0.8.1 pipeline.

**Comparison items:** 1,379 (873 numbers, 389 strings, 116 lists, 1 boolean). An item is one compared value: a count; a string such as a term, code or entry id; a list, such as a term list or a triple of counts for marked, unmarked and all occupations; or a yes/no observation. **Mismatches:** 0. **Every value in `site/data/empirical-082.json` is compared**: all 621 of them (450 numbers, 103 lists, 68 strings); only its descriptive `note` is not.

**Inputs.** `verify.py` needs the complete July 2022 draft and the full texts of all 121 notice entries, as listed with their fingerprints in `INPUTS.json`. The public download contains neither the draft nor the texts of the 46 entries from reprint sources; with any input missing or incomplete the program says what is missing and stops without computing or writing. `python3 -I research/analysis-082/verify.py --check-inputs` reports the state of the inputs without computing.

**Preconditions checked on the inputs** (both must be 0 for the two languages to read the texts identically): characters outside the Basic Multilingual Plane (JS length = code points): 0; characters that only one of JS and Python treats as whitespace: 0. The draft contains no whitespace at all and no non-NFC strings; the notices contain only ASCII spaces.

**Input fingerprints (SHA-256):**

- `local-data/draft2022_texts.json`: `dd3ac4caaad262962ce077570d9233f775976c9f9629119a124f57c0660a7bad`
- `prototypes/shared/data/releases.json`: `ab598dd0b8b3b155d5b2d052d8a695fefe2962923c263b77dfc2f717a1397ee2`
- `site/data/recount.json`: `431f4baaa68d5a2bb8456f5cbcb847a344aeb55e69b7cca691727eeaa9f51767`
- `research/analysis-082/RULES.md`: `18657c8d080241ef0ad9426ef5da8095dc1fe501e702d29d45fe91cf49c22266`
- `site/data/field-and-task-counts.json`: `22327f6b887fd54e8db2b471ecba88fe6d9c1f07d09025ce2c81f487f3b7b1f6`
- `research/analysis-082/results.json`: `07a48d1ec6eea350aa594f7e96a18bfe1f50ba074a3bec2fbc06810ea9ddff26`
- `site/data/empirical-082.json`: `314740d27810ed5c3c01c49fc94ec2b7275f47a1c423810ad24fffd56bbaba72`
- `site/data/term-position.json`: `446043e60d5b8ac9f83bb85df947a839286e6706629ed106eb2bb7b176e315c8`
- `site/data/variation-types.json`: `011dc8f620ed3ca8e86966a3d51c16df51c22793c24adc87628c5453c6f69d7b`
- `site/data/split-merge-signals.json`: `eec044f7d5a670dc79334264a971ba5ac0952a87dbdf7ec5234e0a290b5c455a`

## Results compared value by value

| Result | Definition and counting unit | Source corpus | Primary implementation | Independent implementation | Items compared | Mismatches | Where it appears | Status |
|---|---|---|---|---|---|---|---|---|
| Search terms (`terms`) | the 25 terms of the fixed list (input; both programs read site/data/recount.json) | — | recount.json | verify.py | 1 | 0 | Exp 1 table; Sources | verified |
| Stricter list (`strictTerms`) | 15 terms; verify.py parses them from RULES.md, analyse.mjs holds its own copy | RULES.md | analyse.mjs | verify.py | 1 | 0 | Exp 1, Exp 3, homepage #fields | verified |
| A. Marker × fields, 25 terms (`markerByField`) | occupations per cell (S / not S / all × definition, tasks, either, both, definition only, tasks only, neither) | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 24 | 0 | homepage #findings, #fields (table and prose); Exp 3 #marker-text table | verified |
| A/B. Marker × fields, stricter list (`markerByFieldStrict`) | occupations per cell, as above | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 24 | 0 | homepage #fields; Exp 1 #dictionary; Exp 3 table | verified |
| B. Contribution of each term (`perTerm`) | occupations with the term in definition / tasks / either, of which S and not S; occupations no other term finds; occurrences in tasks | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 200 | 0 | Exp 1 per-term table; Exp 1 (数据: 229, 233, 173, 348) | verified |
| B. Term counts kept in results only (`results.B.perTerm`) | occurrences in definitions; definitions and task clauses containing the term; occupations also found by another term | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 125 | 0 | Exp 1 (数据: 307 task clauses) | verified |
| B. Leave one term out (`leaveOneOut`) | occupations [S, not S, all] in definition / tasks / either / tasks only, for each of 25 omissions | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 125 | 0 | Exp 1 leave-one-out table (149); homepage #fields (216; about half = 161 of 319, 161 = 319 − 158) | verified |
| B. Clauses containing 数据 (`dataInTasks`) | task clauses (not occupations) with 数据, by co-occurring verb group, production data, major group; occupations (229) | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 16 | 0 | homepage #fields (307, 109, 137; every task about production data = 75); Exp 1 (75, 56, 43, 120, 92, 85) | verified |
| B. Contexts of the ten excluded terms (`results.B.excludedContexts`) | occurrences in definitions and tasks; the 12 most frequent two-character contexts and their counts | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 129 | 0 | Exp 1 #dictionary (线上 13, 云 36); RULES.md §3 | verified |
| Observations stated in the prose (`reading`) | 云 inside 云母 (19); 线上 in 线上线下 / 线上、线下 (two of its 13 occurrences); full-width marks in the draft text layer (none); notices mostly full-width | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json); notices | reading of the stored contexts and texts | verify.py | 4 | 0 | Exp 1 #dictionary; homepage #alignment | verified |
| C. Closing cohort (`closingCohort`) | occupations whose last task records production data, by type, S; Major Group 6 size and S | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 8 | 0 | homepage #fields; Exp 1 #closing-position | verified |
| C. Windows, full draft (`windows.fullDraft`) | occupations hit by definition-length windows at start, end, random (500 runs: median, 5th and 95th percentile; S and not-S medians taken separately); overlap of start window with definitions | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 12 | 0 | homepage #findings (114, 76, 112) and #fields (114, 226, 134); Exp 1 window table and #closing-position (split by marker; range 121–145) | verified |
| C. Windows, nine other settings (`windows`) | as above, for: without the 72; the 72 alone; other Major Group 6; other major groups; formula deleted; end before last task; without 数据; without 数据 and the 72; stricter list | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 108 | 0 | Exp 1 window table (44, 42) and #closing-position (92/52/41); homepage #findings (the 72 alone: 72 − 1 = 71) and #fields (41) | verified |
| C. End-window overlap and eligible occupations (`results.C`) | overlap of end windows with definitions (75, 59, 25); occupations with a definition and tasks (1,625) | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 4 | 0 | Sources (1,625); internal | verified |
| D. Revisions by notice (`revisionsByBatch`) | per notice: pairs, reference tasks, number pairs and their raw / normalised / below-90 changes; similarity pairs and theirs; pairs both methods choose, their normalised changes, 负责/从事 openings, verb replacements, verb-only | 74 notice–draft pairs (releases.json + July 2022 draft) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 102 | 0 | Exp 4 #batches table; homepage #alignment | verified |
| D. The 74 pairs (`results.D.pairList`) | release id, notice, draft code, reference witness, reference tasks for each pair | 74 notice–draft pairs (releases.json + July 2022 draft) | analyse.mjs (site modules core.js, alignment.js) | verify.py | 370 | 0 | Exp 4 (74 pairs, six notices); internal | verified |
| 0.8.1 full-draft counts relied on in 0.8.2 (`v081.draft`) | occupations hit; characters in definitions and tasks; tasks; task lists missing; window hits and overlaps, random distributions; task lists shorter than the definition | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | 0.8.1 pipeline (tools/recount_final.mjs, site/assets/alignment.js) | verify.py | 28 | 0 | homepage #fields (114, 391, 'about four times'); Exp 1; Sources (five shorter lists) | verified |
| 0.8.1 counts over the 121 notice texts (`v081.release`) | occupations hit in definitions / tasks / both / either; characters; tasks; window hits, overlaps and random distributions | 121 notice entries (releases.json) | 0.8.1 pipeline (tools/recount_final.mjs, site/assets/alignment.js) | verify.py | 30 | 0 | Experiment 1 fixed table (55, 79, 81 …) | verified |
| 0.8.1 term positions within task lists (`v081.termPosition`) | tasks with a term at positions 1–3 from the start and from the end; by thirds of the list; occupations with a term only in the first or only in the last task; most common terms in first and last tasks | July 2022 draft, 1,636 occupations (local-data/draft2022_texts.json) | 0.8.1 pipeline (tools/term_position.mjs) | verify.py | 46 | 0 | Experiment 1 #position (91 of 1,625; 158; 93 against 20) | verified |
| 0.8.1 types of change among shared pairs (`v081.variationTypes`) | normalised differences; 负责/从事 → 进行 replacements; verb-only; below 90; below 90 with the replacement | 74 notice–draft pairs (releases.json + July 2022 draft) | 0.8.1 pipeline (tools/variation_types.mjs) | verify.py | 5 | 0 | Experiment 4 #what-changed (113, 24, 13, 59, 14); homepage #alignment | verified |
| 0.8.1 possible splits and merges (`v081.splitMerge`) | tasks scoring at least 70 against more than one task of the other witness, in each direction; pairs where this occurs | 74 notice–draft pairs (releases.json + July 2022 draft) | 0.8.1 pipeline (tools/split_merge_signals.mjs) | verify.py | 3 | 0 | Experiment 4 #split-merge (four pairs, nine and eight tasks) | verified |
| 0.8.1 pairing totals relied on in 0.8.2 (`v081.pairing`) | reference tasks; number, similarity and shared pairs; changes under the three criteria for each population | 74 notice–draft pairs (releases.json + July 2022 draft) | 0.8.1 pipeline (tools/recount_final.mjs, site/assets/alignment.js) | verify.py | 14 | 0 | homepage #alignment (472, 466, 433, 160, 106, 419, 113); Exp 4 (426, 386, 59) | verified |

## Derived figures in the text

These are arithmetic on verified counts. The comparison above checks the data files. Where the last column names a test, the project's tests (`tests/empirical-082.test.mjs`, `tests/page-figures.test.mjs`) recompute the figure from the data and require the page to contain it; where it does not, the figure rests on the verified counts and the arithmetic shown. The tests belong to the project repository and are not part of the public download.

| Figure in the text | Derivation | Checked by |
|---|---|---|
| 85 / 21 per cent; 48 / 5 per cent | either-field hits ÷ group size, full and stricter list | empirical-082 test (homepage table and #fields; Exp 1) |
| 61 per cent of hits unmarked (stricter list) | 75 ÷ 122 | empirical-082 test |
| 161 unmarked occupations reached only through 数据 | 319 − 158 (either, not S, without 数据) | empirical-082 test |
| 175 occupations lost from task-list hits without 数据; 54 | 391 − 216; 229 − 175 | Exp 1 prose; leave-one-out and per-term figures verified |
| 76 / 38 / 38 / 152, “half” | start-window overlap with definitions; 114 − 76; 114 + 114 − 76 | empirical-082 test (homepage #findings, #fields) |
| 112, 41, 44, 42, 0 | end − start for the window settings | empirical-082 test (window table) |
| 52 / 41 of 92 marked | start and end S counts, without 数据 | empirical-082 test (0.8.3 claims) |
| 273 tasks differing only in width or whitespace | 433 − 160 | number-pair totals verified |
| batch shares (47 of 98, 68 of 115 …) | normalised changes ÷ number-paired tasks per notice | empirical-082 test (Exp 4 prose and table) |
| “about four times as much text” | 262,226 ÷ 63,251 characters = 4.15 | character totals verified (v081.draft) |
| “half the definitions”, “four in five” task-list hits unmarked | 59 ÷ 114; 311 ÷ 391 | empirical-082 test (ratio guard) |
| no other term moves a total by more than 26; 计算机 in 43 unmarked occupations | leave-one-out totals; per-term not-S count | Exp 1 tables (verified values) |
| six tasks without a number partner, 46 without a similarity partner | 472 − 466; 472 − 426 | pairing totals verified |
| 24 of the 30 openings | sum of verb replacements ÷ sum of 负责/从事 openings, both over the 419 shared pairs | empirical-082 test |
| 27 of the 30 openings and 21 of the 24 replacements in February 2020 and March 2021; the other three openings all replaced | 17 + 10; 12 + 9; 30 − 27 = 24 − 21 | empirical-082 test (Exp 4) |
| 58 / 56, 55 / 79, 55 / 171 marked and unmarked occupations found by start, random and end windows | start and end S counts; medians of S and not S taken separately | empirical-082 test (Exp 1) |

## Results not recomputed by verify.py, and why

| Result | Basis | Reason |
|---|---|---|
| The 25-term search over the 75 notice texts of the public edition (Experiment 1 browser search) | `site/reproduce.js` (`releaseSearch`), public reproduction | Computed in the browser and by the public script; the fixed table's counts over all 121 texts are verified above (v081.release) |
| The 97 S titles in the draft and the final table, 95 with the same code (Experiment 2 concordance) | `site/reproduce.js` (`sTitleConcordance`), public reproduction | Not part of the 0.8.2 analyses |
| Candidate links of the browser rules: by code 53, by name 54, name then code at three thresholds, proposed renames 55 (Experiment 2) | `site/reproduce.js` (`candidateLinks2015To2022`), public reproduction | Not part of the 0.8.2 analyses |
| 18 codes with a different name and 16 names with a different code, draft against the 2022 table (homepage, Experiment 2) | the version concordance in `prototypes/shared/data/versions.json`, prepared in the research record; public and countable from its records | Not recomputed by `site/reproduce.js` or `verify.py` |
| The two linkage rules that compare definitions, R4 and R5 (a candidate predecessor for 54 and 55 of the 97 S occupations; Experiment 2) | counts stored in `versions.json` (`rule_sensitivity`), computed in the research record from the 2015 definitions and those of the July draft | Neither text is distributed and the program belongs to the research record, so these two counts cannot be recomputed from the download |
| Shortened definitions: 73 comparable definitions, 25 shorter by more than a tenth, fragment matches 4 / 2 / 0 / 0 at six, eight and ten characters and the whole phrase (homepage: 73, 25, two confirmed, 23; Collation and Sources: fragment matches) | `tools/definition_moves.mjs` (0.8.1) over the full corpus: the draft and the notice texts dated before July 2022, including the 18 June 2022 texts the public edition omits; rerun in 0.8.3 with byte-identical output (`site/data/definition-moves.json`) | Needs full-corpus reproduction; not in the download and not run by `site/reproduce.js`; no second implementation. The two eight-character cases are checked against the documents |
| Indel similarity of the 最优 example (90) | arithmetic on the quoted strings (2 × 9 ÷ (11 + 9) × 100) | Documentary case, checkable on the printed page |
| The case-selection search over the 121 notice definitions: four definitions (homepage, Sources) | the rule stated in Sources & methods (`#case-selection`), applied to the full notice texts | No second implementation. One of the four comes from a reprint source (S170) whose text the public edition omits, so the 75 public texts give three |
| Readings of individual cases (seven definitions; delivery worker; record-keeping clause) | sources, printed pages and codes cited on the pages | Documentary verification, not computation |
| `similarity` columns per notice in results.json | verified (revisionsByBatch) | Shown in no table; the shared-pair columns are |
