OpenIslet

docs/GATE-0V-WHOLEGRAFT-PROTOCOL.md

Gate 0V Companion Protocol: Whole-Graft Viral Safety, Stress-State AP1903 Erasure, Composite Dual-Evaluator Release & NW-08 Calibration (IIP-0043 / DEC-122)

doc Release v0.8.0 gen-eb955f8266035aba 82 KB · 10 sections

Use this file in any AI chat (paste-only or attachment-capable):

Download as text (.txt) Download section (.txt)

Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/docs/GATE-0V-WHOLEGRAFT-PROTOCOL.md · SHA-256: a5a57bd1ff4993d5…

### 2.4 `Gate 0V-Kill` *(Biological Gate 5 — 5-Regime × 5-Lineage Raw-Count `AP1903` Erasure with Exact Component-Probability Bonferroni Ratio Bounds Strictly at `deff == 1.0` & Reconciled Per-Estimand Sampling-Unit Basis)*
- Across `5` regimes (`normoxia`, `1% O2 + cytokines`, `ER stress`, `active/persistent CVB4`, `active/persistent HCMV`) × `5` lineages, rejects bare self-attested `L95` scalars and recomputes every clearance bound directly from raw counts (`s_veh_L >= 0.10`) using **exact conservative component-probability ratio bounds over the true mathematical ratio domain `[0, +infinity)`** with outward-consistent effective numerator counts at `n_eff = floor(n / deff)` (`k_eff_lower = floor(k * n_eff / n)` and `k_eff_upper = ceil(k * n_eff / n)`, preserving outward point ordering for diagnostic display): `u_ratio = ceil(U(k_eff_upper, n_eff; alpha_treated) / floor(prod(L_den_i)))` — NEVER clamped to `1.0`, reporting `+Infinity` if `den_lower_prod == 0` (and `u_treated = 1` if `n_eff < 1`) — and `l_ratio = floor(L(k_eff_lower, n_eff; alpha_treated) / ceil(prod(U_den_i)))`, evaluated strictly on the actual sampling denominators (NEVER an adjusted-denominator Clopper-Pearson shortcut `n_eff = n_treated * s_veh_lower`). **Reconciled Per-Estimand Sampling-Unit Basis & Zero Default `deff = 1.0` Certification:**
  - **Never Default or Retain Unvalidated `deff`:** Whenever `clustering_and_independence_spec` is absent, non-object, or fails validation (missing/invalid `clustering_design_effect_deff`, `independent_biological_units_n < 6`, missing/invalid `independent_sampling_unit_class`, or missing `unit_definition`), OR when per-unit partitions fail reconciliation (missing, mismatched, or subset-contradictory `per_unit_counts`), the evaluator sets `clustering_design_effect_deff = null` (recording any raw submitted value separately under `submitted_clustering_design_effect_deff_unvalidated`), `exact_directional_confidence_certified = false`, `release_authorizing = false`, and routes to `HOLD` while unconditionally preserving deterministic biological `FAIL_HARD_STOP` (`post_ap1903_viable_viral_pos_k >= 1`, adverse `per_unit_counts` rows, `caspase9_3_activity_fold_over_vehicle < 5.0`, `k_treated > n_treated`, `cxadr_ko_present == true`).
  - **Strict Typed `independent_sampling_unit_class` Enum, Reconciled Per-Unit Partitions (`independent_biological_units_n >= 6`) & Cross-Estimand Same-Unit Subset Reconciliation:** Declaring fewer than `6` independent biological units (e.g., changing `6 -> 3`) fails closed with **`HOLD_INSUFFICIENT_INDEPENDENT_BIOLOGICAL_UNITS`** (`exact_directional_confidence_certified = false`, `clustering_design_effect_deff = null`, `release_authorizing = false`). Only two canonical `independent_sampling_unit_class` values are permitted:
    1. `"INDEPENDENT_SINGLE_CELL_OR_LIMITING_DILUTION_UNIT"`: every binomial trial is an independent biological unit (`independent_biological_units_n >= max_binomial_denominator_n` across all evaluated estimands), certifying `confidence_scope = "EXACT_INDEPENDENT_BINOMIAL_BONFERRONI_DEFF_EQ_1_UNIT_MATCHED"` at `deff == 1.0`. Any submitted `per_unit_counts` in single-cell mode is scanned first by the unconditional pre-schema adverse scanner (escalating any positive viral escape, `k_u > n_u`, or aggregate-contradicting survivor to `FAIL_HARD_STOP` exit `3`) and otherwise fails closed with **`HOLD_UNEXPECTED_PER_UNIT_COUNTS_IN_SINGLE_CELL_MODE`** (`exact_directional_confidence_certified = false`, `release_authorizing = false`, exit `2`).
    2. `"RECONCILED_MULTI_WELL_CELL_ASSAY_WITH_UNIT_PARTITION"`: `6 <= independent_biological_units_n < n`, requiring an explicit per-estimand / per-regime-lineage `per_unit_counts` partition (list of `{unit_id, k, n}` or map `{unit_id: {k, n}}`) for **EVERY** count entering an exact Clopper–Pearson or joint directional confidence bound — including BOTH stressed-arm recovery calibrants (`spike_calibrant` and `fragile_infected_spike_calibrant` on infected Gate 0V-Kill arms), the Day-28 uninfected negative control (`uninfected_ctrl_per_unit_counts`), AND BOTH Day-28 recovery calibrants (`spike_calibrant_per_unit_counts` and `fragile_infected_spike_per_unit_counts`, totaling `209/209` checked partitions on the shipping multi-well bank fixture) — where `len(per_unit_counts) == independent_biological_units_n >= 6`, every unit has integer `n_u > 0` and `0 <= k_u <= n_u`, `sum(n_u) == n`, and `sum(k_u) == k`, PLUS **cross-estimand same-unit reconciliation**: all paired estimands in the same arm (including pre-dissociation spike calibrants) MUST share the exact same canonical `unit_id` set (`len == independent_biological_units_n >= 6`), and within every individual unit `u`, `direct_infected_veh_72h` must satisfy `n_u == veh_72h.n_u` and `0 <= k_u <= veh_72h.k_u <= veh_72h.n_u`, `SAME_72H_ALIQUOT` `infected_viral_pos_72h` must satisfy `n_u == ap1903_72h.n_u` and `0 <= k_u <= ap1903_72h.k_u <= ap1903_72h.n_u`, and latent `ddPCR` targets must sum to the aggregate latent count per unit. Any omitted partition, length mismatch, or sum mismatch (including missing stressed recovery calibrants, Day-28 negative controls, or Day-28 recovery calibrants) fails closed with **`HOLD_SAMPLING_UNIT_PARTITION_MISMATCH_OR_INSUFFICIENT_UNITS`**, and any unit-ID set mismatch or within-unit subset contradiction (e.g., `125 > 90` direct infected-vehicle survivors in a single well) fails closed with **`HOLD_SAMPLING_UNIT_SUBSET_OR_ID_CONTRADICTION`** (`exact_directional_confidence_certified = false`, `all_sampling_units_reconciled = false`, `clustering_design_effect_deff = null`, `release_authorizing = false`, exit `2`), while strictly preserving deterministic biological `FAIL_HARD_STOP` precedence across all remaining rows with zero early returns on malformed rows. When fully reconciled at `deff == 1.0`, certification carries explicit conditional scope **`confidence_scope = "CONDITIONAL_ON_EXTERNALLY_VALIDATED_WITHIN_WELL_INDEPENDENCE_DEFF_EQ_1"`** — JSON partition accounting verifies linkage to the declared biological units but does **NOT** prove physical within-well independence; external assay QA must verify zero intra-well clustering, otherwise cluster-level inference is required.
  - **Exact Directional Confidence Scope (`deff == 1.0` Strictly, Matching `GY-018` & `IIP-0044`):** Exact Clopper–Pearson directional confidence certification (`exact_directional_confidence_certified = true`) is restricted **strictly to `deff == 1.0`** under a valid reconciled sampling-unit basis and explicit **per-estimand Bonferroni error budgets strictly `<= 0.050` (`>= 95.0%` directional one-sided confidence across all estimated component parameters within each individual lineage × regime estimand; explicitly NOT familywise across all `5 × 5` arms simultaneously)**. Whenever **`deff > 1.0`** (clustered/correlated observations — including sub-ULP values such as `1.00000000000000001` whether supplied as a JSON number or JSON string, preserved identically via exact `Decimal` decoding — where variance-adjusted effective sample size cannot guarantee nominal binomial tail coverage), the ratio helpers preserve outward point ordering strictly as a **non-authorizing diagnostic display** (`exact_directional_confidence_certified = false`, `confidence_scope = "NON_AUTHORIZING_VARIANCE_ADJUSTED_DIAGNOSTIC_ONLY"`, `directional_one_sided_confidence_lower_bound = null`, `release_authorizing_eligible = false`), NEVER certify exact 95% directional confidence in either direction, and route Gate 0V-Kill / composite release adjudication to **`HOLD_CLUSTERED_DEFF_GT_1_REQUIRES_CLUSTER_LEVEL_INFERENCE`** (`release_authorizing = false`, exit `2`; deterministic/direct empirical biological hard stops such as `post_ap1903_viable_viral_pos_k >= 1`, `caspase9_3_activity_fold_over_vehicle < 5.0`, and `k_treated > n_treated` remain `FAIL_HARD_STOP`). **Zero-Denominator Boundary Conventions (`k_veh_alive == 0`):** (a) **`0/0` (`k_treated == 0` and `k_veh_alive == 0`):** the empirical ratio point estimate is undefined (`empirical_ratio_point_estimate_dec = None`), `bounds_ordered_l_le_point_le_u = None` (undefined, NOT `true`), while `bounds_ordered_l_le_u = true` (`0 <= +Infinity`) and `u_ratio = +Infinity`; (b) **`k > 0 / 0` (`k_treated > 0` and `k_veh_alive == 0`):** the empirical ratio point estimate is `+Infinity` (`empirical_ratio_point_estimate_dec = +Infinity`), `u_ratio = +Infinity`, and `bounds_ordered_l_le_point_le_u = true` (`0 <= l_ratio <= +Infinity <= +Infinity`).
  - **Paired `24-h` (`u_ratio <= 0.001`, i.e., `>= 99.9%` kill) and `72-h` (`u_ratio <= 0.0001`, i.e., `>= 4.0 log10` kill) vehicle-normalized survival ratios (`R = p_treated / s_veh in [0, +infinity)`, `confidence_statement_type = "DIRECTIONAL_ONE_SIDED_SEPARATE_AT_1_MINUS_ALPHA_SUM"` at `deff == 1.0`, `u_ratio_clamped_to_unity = false`):** `alpha_veh = 0.025` + `alpha_surv = 0.025` = **`0.050`**. Because `R = p_treated / s_veh` legitimately exceeds `1.0` whenever treated survival exceeds matched vehicle survival (e.g., synthetic `90%` drug [`900/1,000`] vs `70%` vehicle [`700/1,000`] at `deff = 1` with component tails `alpha_treated = 0.025` and `alpha_veh = 0.025` yields ordered unclamped limits `l_ratio = 1.2079329473... <= point_est = 1.2857142857... <= u_ratio = 1.3688921818...`, never clamped to `1.0`; with smaller sample sizes `90/100` vs `70/100` at the same `alpha_treated = alpha_veh = 0.025`, the bounds widen to `[1.04594, 1.58450]`), reporting unclamped bounds with outward effective counts (`k_eff_lower = floor(k * n_eff / n)`, `k_eff_upper = ceil(k * n_eff / n)`) guarantees **`0 <= l_ratio <= empirical_point <= u_ratio` mathematically unconditionally for every defined empirical point across the entire admitted domain** (`0 <= k_t <= n_t`, `0 <= k_v <= n_v`, `deff >= 1.0`, `0 < alpha_treated, alpha_veh <= 0.5`, `alpha_treated + alpha_veh < 1`, with `0/0` explicitly reporting `empirical_point = None` and `bounds_ordered_l_le_point_le_u = None`, and `k > 0 / 0` reporting `empirical_point = +Infinity`), while any `R > 1.0` cleanly fails the `<= 0.001` / `<= 0.0001` erasure caps. At `deff == 1.0`, because both directions reuse the same per-component one-sided tail budgets `(alpha_treated, alpha_veh)`, `u_ratio` and `l_ratio` are **separate directional (one-sided) confidence statements** at `>= 1 - (alpha_treated + alpha_veh) = 95.0%` each — **NOT** a simultaneous two-sided confidence interval at that same unsplit alpha (e.g., at `veh = 51/100` [`s_veh_lower = 0.4080363292`] and `treated = 0/90,402`, exact `u_ratio = 0.00010000201070 > 0.0001` properly holds rather than clearing early, while `0/90,404` passes). At `deff > 1.0`, exact directional confidence is NOT certified and release routes to `HOLD_CLUSTERED_DEFF_GT_1_REQUIRES_CLUSTER_LEVEL_INFERENCE`.
  - **Infected-Arm Estimand 1 (`U_esc,total = ceil(U_obs(vk, n_in_eff; 0.005) / floor(s_veh_L975 * eta_L)) <= 1.0 × 10^-4` per total vehicle-adjusted input):** `alpha_veh = 0.025` + `alpha_eta = 0.005` + `alpha_escape = 0.005` = **`0.035 <= 0.050`** (`>= 96.5%` joint; by intersection-union, `min(eta_healthy_L, eta_fragile_L)` uses single `alpha_eta = 0.005`).
  - **Infected-Arm Estimand 2 (`U_esc,cond <= 1.0 × 10^-3` conditional per pre-treatment infected cells at risk):**
    - *Direct mode — MANDATORY for release-authorizing PASS (`infected_cell_escape_mode == "DIRECT_INFECTED_VEHICLE_DENOMINATOR"`):* Requires directly measured viable infected vehicle-control survivor counts (`pretreat_infected_veh_survivor_n` out of `veh_72h_input_n`, `1 <= direct_inf_veh_k <= v72_v <= v72_n`), bounding `U_esc,cond = ceil(U_obs(vk, n_in_eff; 0.020) / floor(q_inf_veh_L975 * eta_L))` with `alpha_inf_veh = 0.025` + `alpha_eta = 0.005` + `alpha_escape = 0.020` = **`0.050`** (`>= 95.0%` joint). Machine-readable sampling-model qualifier: **`DIRECT_EXACT_BINOMIAL_RATIO_WITHOUT_INDIRECT_SURVIVAL_INEQUALITY_CONDITIONAL_ON_REPRESENTATIVE_PAIRED_ALIQUOTS`** — removes the unverified indirect survival inequality (`s_veh_infected >= s_veh_bulk`) while remaining conditional on valid measured fractions, calibrated detection efficiency (`eta`), and representative paired aliquots.
    - *Indirect marginal mode — STRICTLY DIAGNOSTIC ONLY (NEVER authorizes release PASS):* When only bulk vehicle survival and pre-treatment prevalence (`bulk_s_veh * p_pre`) are supplied without direct infected-vehicle survival counts, the evaluator computes the conditional diagnostic ratio bound (`alpha_veh = 0.015` + `alpha_prev = 0.015` + `alpha_eta = 0.005` + `alpha_escape = 0.015` = **`0.050`**), tags `infected_cell_escape_mode = "CONDITIONAL_INDIRECT_DIAGNOSTIC_ONLY_UNVERIFIED_SURVIVAL_INEQUALITY"` (`estimand2_release_authorizing_eligible = false`), and ALWAYS emits **`HOLD_INDIRECT_CONDITIONAL_ESCAPE_UNSUPPORTED_FOR_RELEASE`** (`verdict = "HOLD_INCOMPLETE_OR_UNDERPOWERED"`, composite exit `2`; never `PASS`), while still preserving **`FAIL_HARD_STOP`** if caspase, viable viral survivor, or conclusive kill-failure findings are adverse.
- In infected arms: requires proposed direct caspase-9/3 fold activity `>= 5.0×` over vehicle (`< 5.0×` -> `FAIL_HARD_STOP`), explicit `aliquot_linkage_id` + **strict `SAME_72H_ALIQUOT` count reconciliation** (`pre_ap1903_lineage_input_cells_n == ap1903_72h_input_n` AND `post_ap1903_viable_survivors_total_n == ap1903_72h_viable_survivors_k`), `post_ap1903_viable_viral_pos_k == 0`, and dual healthy + fragile spike recovery `eta_eff >= 0.80`. Any non-same-aliquot mode (such as `PAIRED_HIGH_INPUT_ALIQUOT` with mismatched counts, even with a syntactically valid 64-hex digest) fails closed to non-authorizing `HOLD` (**`HOLD_NON_SAME_ALIQUOT_UNVERIFIED_COUNT_RECONCILIATION`**, exit `2`; NEVER `PASS_WHOLEGRAFT_BANK_QUALIFICATION`), while all downstream adverse escape, caspase, and viable viral-survivor checks continue to run so adverse findings ALWAYS preserve **`FAIL_HARD_STOP`** (exit `3`). Optional late `XIAP` probing (`Yuan et al. 2022 PMID:35013114` HeLa `AP20187` context) is strictly diagnostic and never waives monotherapy failure.

---