# Gate 39 Companion Protocol: Cuff Humoral Multi-Stratum Coverage Reconciliation, Product-Bound Omission Guard & Primed-Serum Disambiguation (`IIP-0060` / `DEC-141`)

**Status:** Executable Zero-LIMS-Touch Stage-0 companion protocol (`GATE-39`, `v0.9.0` open draft)  
**Proposal Reference:** `IIP-0060` ([GitHub Issue #60](https://github.com/OpenIslet/openislet/issues/60)), credited to `giufra` (`@frafra013`), `outcome:changed-blueprint`  
**Side Contract:** `data/protocols/iip0060_cuff_stratum_coverage_side_contract_v0.9.0.json`  
**Executable Verifier:** `scripts/verify_iip0060_cuff_stratum_coverage_gate.py` (`12/12` adversarial self-tests)  
**Verification Receipt:** `data/extracted/iip0060_cuff_stratum_coverage_verification_v0.9.0.json`  
**Scope Lock:** Zero mutations to frozen `scripts/wetlab_contract.py`, `scripts/ingest_wetlab_results.py`, `data/protocols/wetlab_endpoint_contract_v0.8.0.json` (`366` endpoints), `data/protocols/wetlab_endpoint_contract_v0.9.0.json` (`366` endpoints), construct FASTAs, `data/graveyard/idea_graveyard_v0.5.json` (`36` rules), or live published odds (`+0.00 percentage points`).

---

## Plain-English Summary

Outer microgel boundary cuffs rely on PEG coatings and (in legacy `SA-FasL` / `SA-THBD` designs) streptavidin-linked immunomodulators (Lei et al. 2022 (PMID:35559682); Kazmi et al. 2026 (PMID:41842939)). Because roughly `7%` of contemporary adults already carry high pre-existing anti-PEG IgG (`> 500 ng/mL`, with `~72%` carrying detectable anti-PEG antibodies and `IgG2` predominant; Yang et al. 2016 (PMID:27804292)), an unstratified `n = 12` human donor draw expects only `12 × 0.07 = 0.84` high-anti-PEG donors. Accordingly, `IIP-0020` (`DEC-099`, `GY-013`, `OQ-020`) names four non-poolable human-serum challenge strata (`NORMAL_DONOR_SERA`, `HIGH_ANTI_PEG_IGG_GT_500NG_ML`, `ANTI_SA_POSITIVE_HUMAN_SERA`, and `DAY28_SA_FASL_PRIMED_SERA`).

First-party code audit triggered by **`IIP-0060`** verified **two real structural gaps** in `scripts/wetlab_contract.py` and `scripts/ingest_wetlab_results.py` while **correcting two inaccurate claims** in the submission and blind review:

### Verified Real Defects (Remediated by `GATE-39`)
1. **No cross-stratum coverage enforcement & ledger-wide pooling deadlock:** `ALLOWED_CUFF_SERUM_CHALLENGE_STRATA` (`wetlab_contract.py` `L547–552`) contains all four named strata, yet `cuff_serum_challenge_stratum` is a single scalar per batch and `evaluate_stage0_decision_tree` clears `CLEARED_CUFF_HUMORAL_HYDROLYSIS_AND_HEPATOCYTE_SAFETY_GATE` on `NORMAL_DONOR_SERA` alone without requiring `HIGH_ANTI_PEG_IGG_GT_500NG_ML` or the remaining strata. Simultaneously, `scripts/ingest_wetlab_results.py` (`L2768–2789`) raises `ValueError` ledger-wide whenever `len(seen_cuff_strata) > 1` with no lot filter—preventing all four independent strata from coexisting in one accumulating ledger.
2. **Product-binding omission bypass on cuff-bearing lots:** Unlike Gate P05 catalase species (`wetlab_contract.py` `L5224`), `_iip0020_cuff_active` (`L5229–5237`) is not product-bound. If a submitter on a cuff-bearing lot omits *all* cuff endpoints and omits `require_full_iip0020_biomaterial_and_humoral_panel`, `L7743` short-circuits and allows `READY_FOR_ENCAPSULATION_COMPLETE_STAGE0_EVIDENCE` with zero cuff humoral testing.

### Disproved Assertions Recorded for Transparency
- **Submitted failing cuff data *already* block lot release without the opt-in boolean:** Live execution confirms that when any cuff endpoint is supplied and fails, `iip0020_hold_status` (`L5324`) sets `resolved_arch['lot_maturation_status']` (`L7187–7188`), which unconditionally forces `lot_release_readiness_tier = 'HOLD_FAILED_OR_INCOMPLETE_GATE'` at `L7779–7780` even when `require_full_iip0020_biomaterial_and_humoral_panel` is omitted.
- **`iip0020_eval_summary` (and `iip0019_eval_summary`) *are* already returned:** Lines `6907–6912` attach both `biomaterial_antigen_humoral_and_human_cuff_evaluation` and `cuff_humoral_and_hepatocyte_gate_status` to `resolved_architecture_assignments` (and `L6900` attaches `iip0019_eval_summary`), asserted at `tests/test_round3_supporting_boundaries.py:5187`.

---

## 1. Binding `GATE-39` Stage-0 Rules

1. **Cross-Stratum Lot Reconciliation Manifest (Zero-LIMS-Touch):** Preserves `scripts/ingest_wetlab_results.py`'s per-lineage non-pooling guard intact (donor statistics are never pooled across strata), while requiring every cuff-bearing Stage-0 lot to submit a reconciled lot manifest binding independently cleared single-stratum receipts to the identical `lot_id` and `assembled_device_lot_scope` (`HOLD_CUFF_CROSS_LOT_PROVENANCE_MISMATCH` on mismatch; `FAIL_CUFF_ILLEGAL_STRATUM_POOLING` on any pooled batch).
2. **Preserved `n >= 12` Floor per Baseline Prevalence Stratum (`U95 = 22.09%`, `0` Failures) + Upper-Tail Anti-PEG Titre Check:**
   - Every required baseline prevalence stratum (`NORMAL_DONOR_SERA`, `HIGH_ANTI_PEG_IGG_GT_500NG_ML` on all PEG-bearing cuffs, and `ANTI_SA_POSITIVE_HUMAN_SERA` on all streptavidin-bearing cuffs) must independently clear `n >= 12` biological donors with `0` failing donors (`U95 = 1 - 0.05**(1/12) = 22.092%` at `eta = 1.0`, never relaxed to `n = 6` [`39.304%`]). Missing any required stratum emits `HOLD_CUFF_SERUM_STRATUM_COVERAGE_INCOMPLETE`.
   - Because anti-PEG IgG titre is continuous above `500 ng/mL`, `HIGH_ANTI_PEG_IGG_GT_500NG_ML` additionally requires `>= 3` donors at **`>= 1,000 ng/mL`** (or a documented cohort-ceiling waiver) to prevent clustered-threshold passes right above `500 ng/mL` (`HOLD_CUFF_ANTI_PEG_UPPER_TAIL_UNCHARACTERIZED`).
3. **Explicit Disambiguation of `DAY28_SA_FASL_PRIMED_SERA` (Answering `IIP-0060` Ask 5):**
   - `DAY28_SA_FASL_PRIMED_SERA` is formally classified as a **post-exposure primed-serum condition**, not a baseline general-population prevalence stratum.
   - It remains **mandatory on all streptavidin-bearing cuffs** (`SA-FasL` / `SA-THBD` / `SA-FHL1`) with **`n >= 6` independent primed biological sera** (`n >= 12` recommended where available; `0` failing donors; exact Clopper–Pearson `U95` reported alongside documented paired pre- vs. Day-28 anti-SA IgG fold induction). On verified streptavidin-free cuffs (`DPR_HYDROLYZED_CFH_THBD_H1A_ADIPOQ_HEXAFASL` or `CUFF_V2_ACELLULAR_SCR1_THBD_CD200` with `streptavidin_free_cuff_verified = True`), `ANTI_SA_POSITIVE_HUMAN_SERA` and `DAY28_SA_FASL_PRIMED_SERA` are waived cleanly while `NORMAL_DONOR_SERA` and `HIGH_ANTI_PEG_IGG_GT_500NG_ML` remain binding.
4. **Product-Bound Omission Guard & Non-Cuff Protection:**
   - Every lot manifest must declare boolean `cuff_present`. When `cuff_present = True`, omitting cuff stratum receipts emits **`HOLD_CUFF_OMISSION_BYPASS_BLOCKED`** regardless of `require_full_iip0020_biomaterial_and_humoral_panel`.
   - When `cuff_present = False` (e.g., strict zero-additional-biologics `Design A` or un-cuffed `Design Z` / `Design B` / `Design D`), `GATE-39` returns **`NOT_APPLICABLE_NON_CUFF_LOT`** (zero over-blocking). Attempting to register `CUFF_V2_ACELLULAR_SCR1_THBD_CD200` on `ISLET1_DESIGN_A_V080_REF` or `ISLET1_DESIGN_A_V090_TBP_CANDIDATE` triggers **`BLOCK_DESIGN_A_ZERO_ADDITIONAL_BIOLOGIC_BOUNDARY`** (`wave6_canonical_arm_manifest.json`).
