OpenIslet

scripts/verify_wave7_cellgemma_2p24_rebase.py

Wave-7 CellGemma-Islet (IIP-0062 to IIP-0065 / GATE-40 to GATE-43) Pure-CPU

script Release v0.8.0 gen-eb955f8266035aba 1.37 MB · 90 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/scripts/verify_wave7_cellgemma_2p24_rebase.py · SHA-256: 5f31a6369f25031d…

    # RECIRCULATION FU, DUAL MRNA/PROTEIN KD, C-2 COMPONENT SHIELDS, & D-3A/D-1
    # QUANTIFICATION SUITE (20 NEW TESTS -> 672/672!)
    # ========================================================================
    # --- GATE-40 A-4b Extrusion Reconciliation & A-0a Simultaneous Grid Bonferroni (5 tests) ---
    # 1. Measured Day-28 animal tagged IMPLANT_EXTRUSION while top-level implant_extrusions == 0 FAILS!
    a4b_hidden_extr = _sign_receipt({
        **a4b_y,
        "day28_cohort_records": [{**a4b_y["day28_cohort_records"][0], "adverse_event_code": "IMPLANT_EXTRUSION"}, *a4b_y["day28_cohort_records"][1:]],
    })
    r_a4b_he = evaluate_gate40_pirfenidone_h4({**g40_ok, "a4b_evidence": a4b_hidden_extr})
    chk("FAIL_GATE_A4B_IMPLANT_EXTRUSION_DETECTED" in r_a4b_he["failures"] and "FAIL_GATE_A4B_EXTRUSION_COUNT_MISMATCH_VS_ANIMAL_RECORDS" in r_a4b_he["failures"], "G40_a4b_measured_animal_extrusion_contradicts_zero_total_fails")
    # 2. Early measured animal with free-text unrecognized AE code FAILS!
    a4b_bad_ae = _sign_receipt({
        **a4b_y,
        "early_cohort_records": [{**a4b_y["early_cohort_records"][0], "adverse_event_code": "MILD_FREE_TEXT_NOTE"}, *a4b_y["early_cohort_records"][1:]],
    })
    chk("FAIL_GATE_A4B_UNRECOGNIZED_ADVERSE_EVENT_CODE:E-COAT-01" in evaluate_gate40_pirfenidone_h4({**g40_ok, "a4b_evidence": a4b_bad_ae})["failures"], "G40_a4b_unstructured_ae_code_fails")
    # 3. Excluded animal tagged IMPLANT_EXTRUSION even with adverse_event_related == False STILL FAILS!
    a4b_exc_extr = _sign_receipt({
        **a4b_y,
        "prerequisite_receipt_sha256s": {**pr_all_y, "A-4b-PREREGISTRATION": prereg_ae_d["receipt_sha256"]},
        "day28_cohort_enrolled_coated_n": 9,
        "day28_cohort_exclusions": [{"animal_id": "D28-COAT-09", "arm": "COATED", "reason": "SAMPLE_LOSS_PRE_ADJUDICATION", "pre_adjudication_decision": True, "excluded_at_utc": "2026-12-21T09:00:00Z", "adverse_event_related": False, "adverse_event_code": "IMPLANT_EXTRUSION"}],
    })
    chk("FAIL_GATE_A4B_IMPLANT_EXTRUSION_DETECTED" in evaluate_gate40_pirfenidone_h4({**g40_ok, "a4b_preregistration_receipt": prereg_ae_d, "a4b_evidence": a4b_exc_extr})["failures"], "G40_a4b_excluded_animal_extrusion_fails")
    # 4. A-0a unverified external fit method label rejected!
    a0a_fit_badm = _sign_receipt({**a0a_fit_ok, "analysis_method": "EXTERNAL_UNREPLAYED_4PL"})
    chk("FAIL_GATE_A0A_FIT_ARTIFACT_DIGEST_OR_SUMMARY_MISMATCH" in evaluate_gate40_pirfenidone_h4({"phase": "ROUTE_FREE_A0A", "a0a_evidence": _sign_receipt({**a0a_ok, "a0a_fit_artifact_receipt": a0a_fit_badm})})["failures"], "G40_a0a_unreplayed_external_fit_method_fails")
    # 5. A-0a dose clearing pointwise alpha=0.05 (mean=52, sd=1.5, L95_pw=50.57 >= 50) yet failing simultaneous Bonferroni alpha=0.05/14 (L_sim=48.55 < 50) HOLDS!
    a0a_pw_only = [dict(r) for r in a0a_reps_ok]
    a0a_pw_only[3] = {**a0a_pw_only[3], "col1a1_inhibition_pct": [50.0, 51.0, 52.0, 53.0, 54.0]}
    a0a_fit_pw = _sign_receipt({**a0a_fit_ok, "raw_replicates_sha256": sha256_bytes(canonical_json_bytes(a0a_pw_only))})
    chk("HOLD_GATE_A0A_IC50_U95_UNSUBSTANTIATED_BY_DONOR_REPLICATES" in evaluate_gate40_pirfenidone_h4({"phase": "ROUTE_FREE_A0A", "a0a_evidence": _sign_receipt({**a0a_ok, "a0a_donor_replicates_by_conc": a0a_pw_only, "a0a_fit_artifact_receipt": a0a_fit_pw})})["holds"], "G40_a0a_pointwise_only_fails_simultaneous_grid_bonferroni_holds")

    # --- GATE-41 B-2b Matrix-Bound fu & B-0a Simultaneous Grid Bonferroni (5 tests) ---
    # 6. B-2b distinct recirc_assay_matrix ("low_serum_media", fu=0.86) WITHOUT recirc_fu_bmt_replicates FAILS!
    chk("FAIL_GATE_B2B_BENCH_MISSING_OR_INVALID_RECIRC_MATRIX_FU_BMT_CALIBRATION" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2b_bench_evidence": _sign_receipt({**b2bb_y, "recirc_assay_matrix": "low_serum_media"})})["failures"], "G41_b2b_distinct_recirc_matrix_missing_fu_fails")
    # 7. B-2b distinct recirc_assay_matrix ("low_serum_media") with mismatched serum fu (0.15 instead of 0.86) FAILS!
    chk("FAIL_GATE_B2B_BENCH_RECIRC_FU_BMT_MISMATCH_VS_B0A_MATRIX" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2b_bench_evidence": _sign_receipt({**b2bb_y, "recirc_assay_matrix": "low_serum_media", "alpha_conc": 0.020, "recirc_fu_bmt_replicates": [0.148, 0.150, 0.152], "alpha_fu_bmt_recirc": 0.005})})["failures"], "G41_b2b_recirc_fu_mismatched_vs_b0a_matrix_fails")
    # 8. B-2b local fu_parent_replicates mismatched vs B-0a local_assay_matrix (0.85 instead of 0.14) FAILS!
    chk("FAIL_GATE_B2B_BENCH_LOCAL_FU_PARENT_MISMATCH_VS_B0A_MATRIX" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2b_bench_evidence": _sign_receipt({**b2bb_y, "fu_parent_replicates": [0.84, 0.85, 0.86]})})["failures"], "G41_b2b_local_fu_mismatched_vs_b0a_matrix_fails")
    # 9. B-0a unverified FOUR_PARAM_LOGISTIC_PROFILE_LIKELIHOOD label rejected!
    chk("FAIL_GATE_B0A_ANALYSIS_RECEIPT_MISMATCH" in evaluate_gate41_deucravacitinib_tyk2({"phase": "ROUTE_FREE_B0A", "b0a_evidence": _sign_receipt({**b0a_ok, "b0a_analysis_receipt": _sign_receipt({**b0a_an_ok, "analysis_method": "FOUR_PARAM_LOGISTIC_PROFILE_LIKELIHOOD"})})})["failures"], "G41_b0a_unreplayed_4pl_label_fails")
    # 10. B-0a dose clearing pointwise alpha=0.05 (mean=53, sd=2.0, L95_pw=51.09 >= 50) yet failing simultaneous Bonferroni alpha=0.05/24 (L_sim=47.68 < 50) HOLDS!
    b0a_ei_pw = list(b0a_ei_grid); b0a_ei_pw[3] = 53.0
    b0a_e_reps_pw = [dict(r) for r in b0a_e_reps_ok]
    _pw_vals = [50.0, 51.2, 52.4, 53.6, 54.8, 56.0]
    b0a_e_reps_pw[3] = {**b0a_e_reps_pw[3], "iec_ibmir_marker_suppression_pct": _pw_vals, "raw_unit_measurements": {**b0a_e_reps_pw[3]["raw_unit_measurements"], "iec_ibmir_marker_suppression_pct": _mk_b0a_raw_ratio(_pw_vals, b0a_e_reps_pw[3]["matched_vehicle_record_id"], 250.0, is_inhib=True)}}
    b0a_an_pw = _sign_receipt({**b0a_an_ok, "raw_efficacy_replicates_sha256": sha256_bytes(canonical_json_bytes(b0a_e_reps_pw))})
    chk("HOLD_GATE_B0A_EC50_U95_UNSUBSTANTIATED_BY_EFFICACY_REPLICATES" in evaluate_gate41_deucravacitinib_tyk2({"phase": "ROUTE_FREE_B0A", "b0a_evidence": _sign_receipt({**b0a_ok, "efficacy_inhibition_pct_grid": b0a_ei_pw, "efficacy_iec_ibmir_pct_grid": b0a_ei_pw, "efficacy_replicates_by_conc": b0a_e_reps_pw, "b0a_analysis_receipt": b0a_an_pw})})["holds"], "G41_b0a_pointwise_only_fails_simultaneous_grid_bonferroni_holds")

    # --- GATE-42 C-1 Separate mRNA & Protein KD, C-2 Component Shields, & G36 Drug-Free Pin (5 tests) ---
    # 11. C-1 high mRNA KD (82%) with low protein KD (52% < 70%) FAILS (Barthson Fig. 4E-F distinction)!
    chk("FAIL_GATE_C1_NORMOXIA_KD_BELOW_70PCT" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "target_kd_pct": 52.0, "mrna_kd_pct": 82.0, "protein_kd_pct": 52.0}})})["failures"], "G42_c1_high_mrna_low_protein_kd_fails")
    # 12. C-1 identical mRNA and protein assay IDs FAILS separate assay verification!
    chk("FAIL_GATE_C1_NORMOXIA_MISSING_SEPARATE_MRNA_AND_PROTEIN_KD" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "protein_assay_record_id": c1_norm_6["mrna_assay_record_id"]}})})["failures"], "G42_c1_identical_mrna_and_protein_assay_ids_fails")
    # 13. C-1 dual arm where PMAIP1 protein KD drops to 55% while mRNA stays 83% FAILS!
    chk("FAIL_GATE_C1_NORMOXIA_DUAL_TARGET_COMPONENT_KD_FAILED" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "pmaip1_kd_pct": 55.0, "pmaip1_protein_kd_pct": 55.0}})})["failures"], "G42_c1_dual_pmaip1_low_protein_kd_fails")
    # 14. C-2 single shield component dropping below 85% (SERPINB9=76%) FAILS per-component check!
    chk("FAIL_GATE_C2_SHIELD_COMPONENT_BELOW_85PCT:SERPINB9" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c2_evidence": _sign_receipt({**c2_y, "basal_shield_retention_by_component": {**_mk_r8_shields(py, 93.0), "SERPINB9": 76.0}})})["failures"], "G42_c2_single_shield_component_below_85pct_fails")
    # 15. GATE-36 Foundry receipt missing DRUG_FREE_EXPOSURE prerequisite pin FAILS!
    g36_no_df = _sign_receipt({k: v for k, v in g36_y.items() if k not in ("prerequisite_receipt_sha256s", "receipt_sha256")})
    chk("FAIL_MISSING_PREREQUISITE_RECEIPT_DIGEST_MAP:GATE-36-FOUNDRY-V2" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "foundry_v2_gate36_evidence": g36_no_df})["failures"], "G42_g36_missing_drug_free_prereq_pin_fails")

    # --- GATE-43 D-3(a) TAT LLOQ Consistency + ELISA Row Uniqueness & D-1 End-of-Exposure Chemistry (5 tests) ---
    # 16. D-3(a) quantified reading (tat_f3_below_lloq=False) with value 3.0 < LLOQ 5.0 FAILS analytical contradiction!
    chk("FAIL_CHECK_D3A_TAT_QUANTIFIED_BELOW_LLOQ:IEC-LOT-1" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "check_d3a_per_lot_records": [_mk_d3a_lot(1, tat_assay_lloq_ng_ml=5.0, tat_f3_below_lloq=False, chandler_tat_f3_sirna_ng_ml=3.0), d3a_ok_lots[1], d3a_ok_lots[2]]})["failures"], "G43_d3a_quantified_tat_below_lloq_fails")
    # 17. D-3(a) censored reading (tat_f3_below_lloq=True, tat_f3=None) imputes LLOQ=5.0 cleanly and PASSES when NTC >= 15 & >= 20% reduction!
    d3a_cens_lots = [_mk_d3a_lot(1, tat_assay_lloq_ng_ml=5.0, tat_f3_below_lloq=True, chandler_tat_f3_sirna_ng_ml=None), d3a_ok_lots[1], d3a_ok_lots[2]]
    d3b_cens_rcpt = _sign_receipt({**d3b_rcpt_a, "d3a_lot_receipt_sha256s": [r["receipt_sha256"] for r in d3a_cens_lots]})
    r_d3a_cens = evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "check_d3a_per_lot_records": d3a_cens_lots, "d3b_pilot_receipt": d3b_cens_rcpt})
    chk(r_d3a_cens["verdict"] == "PASS_DESCRIPTIVE_PILOT_ZERO_ODDS_GY037_WARN_RETAINED", "G43_d3a_valid_censored_blq_tat_passes")
    # 18. D-3(a) overlapping (raw_elisa_record_sha256, raw_elisa_well_or_row_id) across two lots FAILS!
    shared_elisa = sha256_bytes(b"SHARED-PLATE-EXPORT")
    chk("FAIL_CHECK_D3A_OVERLAPPING_ELISA_SOURCE_ROW:IEC-LOT-2" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "check_d3a_per_lot_records": [_mk_d3a_lot(1, raw_elisa_record_sha256=shared_elisa, raw_elisa_well_or_row_id="WELL-A1"), _mk_d3a_lot(2, raw_elisa_record_sha256=shared_elisa, raw_elisa_well_or_row_id="WELL-A1"), d3a_ok_lots[2]]})["failures"], "G43_d3a_overlapping_elisa_source_row_fails")
    # 19. D-1 early-only chemistry collected at start of 24h exposure (12:00 Day 0 instead of end-of-exposure Day 1) FAILS!
    d1_early_chem = _mk_d1_unified(g43_base, arm_a_chemistry_sample={
        "sample_id": "D1-CHEM-A-EARLY", "sibling_aliquot_pair_id": "D1-SIBPAIR-01",
        "collected_at_utc": "2026-10-02T12:15:00Z", "instrument_record_sha256": "1" * 64,
        "instrument_row_or_injection_id": "INJ-A-EARLY",
    })
    chk("FAIL_CHECK_D1_CHEMISTRY_SAMPLE_PROVENANCE_OR_TIMING_INVALID" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_base, "check_d1_paired_assay_receipt": d1_early_chem})["failures"], "G43_d1_early_only_start_chemistry_fails")
    # 20. D-1 unmatched end-of-exposure chemistry timing (Arm A at +0.0h, Arm B at +0.9h -> diff 0.9h > 0.5h) FAILS!
    d1_unmatch_chem = _mk_d1_unified(g43_base, arm_b_chemistry_sample={
        "sample_id": "D1-CHEM-B-LATE", "sibling_aliquot_pair_id": "D1-SIBPAIR-01",
        "collected_at_utc": "2026-10-03T12:59:00Z", "instrument_record_sha256": "2" * 64,
        "instrument_row_or_injection_id": "INJ-B-LATE",
    })
    chk("FAIL_CHECK_D1_CHEMISTRY_SAMPLE_PROVENANCE_OR_TIMING_INVALID" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_base, "check_d1_paired_assay_receipt": d1_unmatch_chem})["failures"], "G43_d1_unmatched_arm_chemistry_timing_fails")


    # ========================================================================
    # ADVERSARIAL REGRESSION SUITE (16 NEW TESTS -> 688/688 TOTAL!)
    # ========================================================================
    # --- Exposure-Specific H3 Combined Model Firewall (2 tests) ---
    # 1. Toggling IIP-0064 (C) ON vs OFF changes coated-only (B_COAT/R2_COAT, Y_COAT/R3P_COAT) by exact 0.000000 pp!
    _ab_only = _eval_wave7_in_wave6_state("CHK_AB_ONLY", a_on=True, b_on=True, c_on=False, tier="CENTRAL", ceiling_lift=True, compute_strassen=False)
    _abc_exp = _eval_wave7_in_wave6_state("CHK_ABC_EXP", a_on=True, b_on=True, c_on=True, tier="CENTRAL", ceiling_lift=True, compute_strassen=False)
    _abc_cf_c = _eval_wave7_in_wave6_state("CHK_ABC_CF", a_on=True, b_on=True, c_on=True, tier="CENTRAL", ceiling_lift=True, allow_c_on_coated_paths=True, compute_strassen=False)
    chk(abs(_abc_exp["coated_only_by_modular_exact"] - _ab_only["coated_only_by_modular_exact"]) <= 1e-12, "G42_combined_h3_zero_c_spillover_onto_coated_by")
    # 2. Exposure-specific combined strictly excludes unverified C credit on coated paths (< counterfactual C-on-coated) while preserving standalone C!
    chk(_abc_exp["modular_exact"] < _abc_cf_c["modular_exact"] and _abc_exp["modular_exact"] > _ab_only["modular_exact"], "G42_combined_h3_exposure_specific_below_cf_and_above_ab")

    # --- GATE-40 (IIP-0062) 3-Component Vascular & Independent-Unit PK + Zero-Dispersion HOLDs (5 tests) ---
    # 3. A-0b preserved sprout length (94%) with lost Day-4 network persistence (81% < 90%) HOLDS!
    a0b_np_drop = [dict(r) for r in a0b_reps_ok]
    a0b_np_drop[5] = {**a0b_np_drop[5], "day4_network_persistence_14d_pct": [80.7, 81.0, 81.3], "day4_delayed_sprouting_14d_pct": [80.7, 81.0, 81.3], "raw_donor_measurements": {**a0b_np_drop[5]["raw_donor_measurements"], "day4_network_persistence_14d": _mk_a0b_raw_pair([80.7, 81.0, 81.3], 0.89)}}
    a0b_fit_np = _sign_receipt({**a0b_fit_ok, "raw_replicates_sha256": sha256_bytes(canonical_json_bytes(a0b_np_drop))})
    chk("HOLD_GATE_A0B_14D_CEILING_UNSUBSTANTIATED_BY_DONOR_REPLICATES" in evaluate_gate40_pirfenidone_h4({**g40_bench, "a0b_evidence": _sign_receipt({**a0b_y, "a0b_14d_safety_replicates_by_conc": a0b_np_drop, "a0b_fit_artifact_receipt": a0b_fit_np})})["holds"], "G40_a0b_network_persistence_drop_holds")
    # 4. A-2 preserved sprout length (95%) with failing branching (82% < 90%) FAILS!
    _a2_bad_br_vb = {k: v for k, v in a2_y["a2_vascular_raw_measurements"].items() if k != "vascular_assay_receipt_sha256"}
    _a2_bad_br_vb["treated_branching_junctions"] = 22.96
    a2_bad_br = _sign_receipt({
        **a2_y, "day14_iec_branching_pct_ctrl": 82.0,
        "a2_vascular_raw_measurements": {**_a2_bad_br_vb, "vascular_assay_receipt_sha256": sha256_bytes(canonical_json_bytes(_a2_bad_br_vb))},
    })
    chk("FAIL_GATE_A2_DAY14_IEC_BRANCHING_BELOW_90PCT" in evaluate_gate40_pirfenidone_h4({**g40_ok, "a2_evidence": a2_bad_br})["failures"], "G40_a2_branching_below_90pct_fails")
    # 5. A-0b identical zero-dispersion safety replicates [95.0, 95.0, 95.0] HOLDS (no silent min fallback)!
    a0b_zdisp = [dict(r) for r in a0b_reps_ok]
    a0b_zdisp[5] = {**a0b_zdisp[5], "viability_14d_pct": [95.0, 95.0, 95.0], "raw_donor_measurements": {**a0b_zdisp[5]["raw_donor_measurements"], "viability_14d": _mk_a0b_raw_pair([95.0, 95.0, 95.0], 96.5)}}
    a0b_fit_zd = _sign_receipt({**a0b_fit_ok, "raw_replicates_sha256": sha256_bytes(canonical_json_bytes(a0b_zdisp))})
    chk("HOLD_GATE_A0B_14D_SAFETY_ZERO_DISPERSION_UNESTIMABLE" in evaluate_gate40_pirfenidone_h4({**g40_bench, "a0b_evidence": _sign_receipt({**a0b_y, "a0b_14d_safety_replicates_by_conc": a0b_zdisp, "a0b_fit_artifact_receipt": a0b_fit_zd})})["holds"], "G40_a0b_safety_zero_dispersion_holds")
    # 6. A-0b local PK with identical zero-dispersion readings HOLDS (no min/max fallback)!
    a0b_tp_zd = _mk_pfd_tp_rows(a0b_tp_pts, coat_a["coating_lot_id"], "A0BZD", deltas=(0.0, 0.0, 0.0, 0.0))
    chk("HOLD_GATE_A0B_LOCAL_PK_ZERO_DISPERSION_UNESTIMABLE" in evaluate_gate40_pirfenidone_h4({**g40_bench, "a0b_evidence": _sign_receipt({**a0b_y, "a0b_local_exposure_timepoints": a0b_tp_zd})})["holds"], "G40_a0b_local_pk_zero_dispersion_holds")
    # 7. A-1 local PK with mismatched coating_lot_id or duplicate independent_unit_id FAILS!
    a1_tp_badlot = _mk_pfd_tp_rows(a1_tp_pts, "WRONG-COATING-LOT-99", "A1BL")
    chk("FAIL_GATE_A1_LOCAL_FREE_PARENT_SCHEDULE_GAP_OR_MALFORMED" in evaluate_gate40_pirfenidone_h4({**g40_ok, "a1_evidence": _sign_receipt({**a1_y, "a1_local_free_parent_timepoints": a1_tp_badlot})})["failures"], "G40_a1_local_pk_mismatched_coating_lot_fails")

    # --- GATE-41 (IIP-0063) 7-Endpoint Mixture Panel, Simultaneous Bonferroni, Zero-Disp, & Readout-3B (6 tests) ---
    # 8. Mixture curve with sprouting_pct = 87% (>= old 85%, < B-0a 90% floor!) HOLDS!
    dr_spr87 = {k: v for k, v in _mk_mix_dr(0.0, 0.25, 6.5, 21.0).items() if k != "evidence_sha256"}
    dr_spr87["mixture_composition_curves"][1]["mixture_safety_replicates_by_conc"][4]["sprouting_pct"] = [86.8, 86.9, 87.0, 87.1, 87.2]
    dr_spr87["evidence_sha256"] = sha256_bytes(canonical_json_bytes(dr_spr87))
    chk("HOLD_GATE_B2B_BENCH_MIXTURE_REPLICATES_DO_NOT_SUBSTANTIATE_WINDOW" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2b_bench_evidence": _sign_receipt({**b2bb_y, "c_bmt_local_total_u_alloc_nM": 0.25, "mixture_requalified": True, "mixture_requalification_receipt": _sign_receipt({**mix_rcpt_ok, "mixture_dose_response_evidence": dr_spr87})})})["holds"], "G41_mix_sprouting_87pct_below_90pct_floor_holds")
    # 9. Mixture curve with zero-dispersion replicates HOLDS (no silent min fallback)!
    dr_zdisp = {k: v for k, v in _mk_mix_dr(0.0, 0.25, 6.5, 21.0).items() if k != "evidence_sha256"}
    dr_zdisp["mixture_composition_curves"][0]["mixture_safety_replicates_by_conc"][2]["sprouting_pct"] = [96.0, 96.0, 96.0, 96.0, 96.0]
    dr_zdisp["evidence_sha256"] = sha256_bytes(canonical_json_bytes(dr_zdisp))
    chk("HOLD_GATE_B2B_BENCH_MIXTURE_ZERO_DISPERSION_UNESTIMABLE" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2b_bench_evidence": _sign_receipt({**b2bb_y, "c_bmt_local_total_u_alloc_nM": 0.25, "mixture_requalified": True, "mixture_requalification_receipt": _sign_receipt({**mix_rcpt_ok, "mixture_dose_response_evidence": dr_zdisp})})})["holds"], "G41_mix_zero_dispersion_holds")
    # 10. Mixture curve clearing pointwise alpha=0.05 (mean=54, sd=2.5, L95_pw=51.6 >= 50) yet failing simultaneous Bonferroni alpha=0.05/54 HOLDS!