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…

    chk("FAIL_GATE_C1_NORMOXIA_JAK2_HYPOMORPH_RANGE_50_65" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "target_gene": "JAK2", "c1_evidence": _sign_receipt({**c1_y, "candidate_gene": "JAK2", "c1_normoxia": _mk_r8_c1_block(assay_record_id="C1-JK2", bids=["B1","B2","B3","B4","B5","B6"], c9_vec=[51.0,55.0,49.0,54.0,52.0,56.0], ctrl_vec=[54.0,52.0,56.0,55.0,53.0,54.0], tr_vec=[76.0,75.0,79.0,77.0,74.0,78.0], veh_vec=[90.0]*6, comp_vec=[71.0]*6, target="JAK2", target_kd=85.0, jak2_shield_pct=92.0)})})["failures"], "G42_jak2_kd")
    chk("HOLD_GATE_C3_GSIS_MISSING" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c3_gsis_evidence": None})["holds"], "G42_c3g_hold")
    chk("HOLD_GATE_C3_NK_MISSING" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c3_nk_evidence": None})["holds"], "G42_c3n_hold")
    chk("HOLD_FOUNDRY_V2_GATE36_RECEIPT_MISSING" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "foundry_v2_gate36_evidence": None})["holds"], "G42_g36_hold")
    chk("HOLD_IIP0049_STAGE1_STAGE2_ATTRIBUTION_MISSING" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": None})["holds"], "G42_att_hold")
    chk("FAIL_MATCHED_FOUNDRY_V2_BACKGROUND_NOT_VERIFIED" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "background_class": "UNMODIFIED_DESIGN_A_REFERENCE"})})["failures"], "G42_bg_mm")
    chk("FAIL_IIP0049_IDENTICAL_COPY_PASTE_NORMOXIA_HYPOXIA_ATTRIBUTION" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "stage2_hypoxia_15mmhg_mechanism_panel": att_panel_norm})})["failures"], "G42_att_cp")
    chk("FAIL_GATE_C1_MISSING_SHARED_STUDY_ID" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "shared_study_id": ""})})["failures"], "G42_no_study_id")
    chk("FAIL_GATE42_UNKNOWN_OR_UNRECONCILED_FIELDS:rogue_c" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "rogue_c": 1})["failures"], "G42_unknown_key")
    # Descriptive pilot n=3 non-advancing check
    c1_n3 = _mk_r8_c1_block(assay_record_id="C1-P3-N", bids=["P1","P2","P3"], c9_vec=[50.0,54.0,52.0], ctrl_vec=[52.0,50.0,54.0], tr_vec=[74.0,73.0,77.0], veh_vec=[90.0,89.0,91.0], comp_vec=[68.0,67.0,70.5])
    c1_h3 = _mk_r8_c1_block(assay_record_id="C1-P3-H", bids=["Q1","Q2","Q3"], c9_vec=[48.0,51.0,49.0], ctrl_vec=[49.0,48.0,51.0], tr_vec=[71.0,70.0,73.0], veh_vec=[87.0,86.0,88.0], comp_vec=[65.0,64.5,67.2], batch_prefix="C1-HBAT")
    c1_prereg_p3 = _mk_c1_prereg(py, by, ly, ry, att_y, n_b=3, norm_bids=["P1", "P2", "P3"], hyp_bids=["Q1", "Q2", "Q3"])
    c1_p3 = _sign_receipt({**c1_y, "prerequisite_receipt_sha256s": {**pr_c1_yc, "C-1-PREREGISTRATION": c1_prereg_p3["receipt_sha256"]}, "biological_blocks_n": 3, "c1_normoxia": c1_n3, "c1_hypoxia_2pct_o2": c1_h3})
    c2_p3 = _sign_receipt({**c2_y, "parent_receipt_sha256": c1_p3["receipt_sha256"]})
    sw_p3 = _mk_r8_switch(py, by, ly, ry, mat_yc, "2026-09-28T14:00:00Z", candidate_gene=tg_dual, comparator_nt_lot_id=nt_y, prereq_receipts={"C-2": c2_p3["receipt_sha256"]}, transient_engagement=_mk_c_eng(c1_cohort_y, "2026-09-28T13:00:00Z", stage_name="NATIVE_SAFETY_SWITCH", lot_s_id=ly, win_start="2026-09-25T12:00:00Z", win_end="2026-09-28T13:15:00Z", mode="VALIDATED_LONGITUDINAL_KINETICS"))
    g0v_p3 = _mk_r8_gate0v(py, by, ly, ry, mat_yc, "2026-09-28T14:30:00Z", candidate_gene=tg_dual, comparator_nt_lot_id=nt_y, prereq_receipts={"C-2": c2_p3["receipt_sha256"]}, transient_engagement=_mk_c_eng(c1_cohort_y, "2026-09-28T13:15:00Z", stage_name="GATE-0V-KILL", lot_s_id=ly, win_start="2026-09-25T12:00:00Z", win_end="2026-09-28T13:30:00Z", mode="VALIDATED_LONGITUDINAL_KINETICS"))
    pr_c3_p3 = {**pr_c1_yc, "NATIVE_SAFETY_SWITCH": sw_p3["receipt_sha256"], "GATE-0V-KILL": g0v_p3["receipt_sha256"]}
    c3n_p3 = _sign_receipt({**c3_nk_y, "parent_receipt_sha256": c2_p3["receipt_sha256"], "prerequisite_receipt_sha256s": pr_c3_p3})
    c3g_p3 = _sign_receipt({**c3_gsis_y, "parent_receipt_sha256": c3n_p3["receipt_sha256"], "prerequisite_receipt_sha256s": pr_c3_p3})
    chk(evaluate_gate42_gy032_channel_c_screen({**g42_ok, "native_switch_evidence": sw_p3, "gate0v_evidence": g0v_p3, "c1_preregistered_plan_receipt": c1_prereg_p3, "c1_evidence": c1_p3, "c2_evidence": c2_p3, "c3_nk_evidence": c3n_p3, "c3_gsis_evidence": c3g_p3})["verdict"] == "DESCRIPTIVE_PILOT_ONLY_NON_ADVANCING", "G42_pilot3_non_adv")
    # Autologous Design D with canonical AUTOLOGOUS tier in Gate 0V passes cleanly!
    mat_d = _mk_r8_mat(pd_, bd_, ld_, "2026-09-10T08:00:00Z")
    df_d = _sign_receipt({**df_y, "product_id": pd_, "bank_id": bd_, "lot_id": ld_, "route_id": rd_, "parent_receipt_sha256": mat_d["receipt_sha256"]})
    g32_d = _sign_receipt({**g32_y, "product_id": pd_, "bank_id": bd_, "lot_id": ld_, "route_id": rd_, "parent_receipt_sha256": mat_d["receipt_sha256"]})
    g36_d = _sign_receipt({**g36_y, "product_id": pd_, "bank_id": bd_, "lot_id": ld_, "route_id": rd_, "parent_receipt_sha256": mat_d["receipt_sha256"], "prerequisite_receipt_sha256s": {"DRUG_FREE_EXPOSURE": df_d["receipt_sha256"]}, "live_gate32_debris_recall_receipt": g32_d})
    att_d = _sign_receipt({**att_y, "product_id": pd_, "bank_id": bd_, "lot_id": ld_, "route_id": rd_, "foundry_v2_gate36_receipt_sha256": g36_d["receipt_sha256"], "prerequisite_receipt_sha256s": {"BANK_MATERIALIZATION": mat_d["receipt_sha256"], "DRUG_FREE_EXPOSURE": df_d["receipt_sha256"], "GATE-36-FOUNDRY-V2": g36_d["receipt_sha256"]}})
    c1_prereg_d = _mk_c1_prereg(pd_, bd_, ld_, rd_, att_d)
    pr_c1_d = {"BANK_MATERIALIZATION": mat_d["receipt_sha256"], "DRUG_FREE_EXPOSURE": df_d["receipt_sha256"]}
    c1_d = _sign_receipt({**c1_y, "product_id": pd_, "bank_id": bd_, "lot_id": ld_, "route_id": rd_, "parent_receipt_sha256": att_d["receipt_sha256"], "prerequisite_receipt_sha256s": {**pr_c1_d, "C-1-PREREGISTRATION": c1_prereg_d["receipt_sha256"]}, "c1_common_family_acquisition_record": _mk_c1_common_acq(c1_norm_6, c1_hyp_6, c1_prereg_d, acq_id="C1-COMMON-ACQ-D"), "c1_normoxia": _mk_c1_with_kd_lot(c1_norm_6, ld_, pd_), "c1_hypoxia_2pct_o2": _mk_c1_with_kd_lot(c1_hyp_6, ld_, pd_)})
    c2_d = _sign_receipt({**c2_y, "product_id": pd_, "bank_id": bd_, "lot_id": ld_, "route_id": rd_, "specimen_id": f"SPEC-C-2-{ld_}", "parent_receipt_sha256": c1_d["receipt_sha256"], "prerequisite_receipt_sha256s": pr_c1_d, "basal_shield_retention_by_component": _mk_r8_shields(pd_, 93.0), "hour0_density_by_lineage": _mk_r8_hour0(pd_), "soluble_iapp_matched_ctrl_assay": _mk_c2_sol_iapp(spec_v=f"SPEC-C-2-{ld_}", lot_v=ld_, nt_v=nt_y), "resting_survival_protein_panel": _mk_c2_surv_panel(spec_v=f"SPEC-C-2-{ld_}", lot_v=ld_, nt_v=nt_y), "c2_per_lot_proliferation_records": [_mk_c2_prolif_lot(1, active_lot=ld_, prod_v=pd_), _mk_c2_prolif_lot(2, prod_v=pd_), _mk_c2_prolif_lot(3, prod_v=pd_)], "transient_target_engagement_record": _mk_c_eng(c1_cohort_y, "2026-09-25T08:00:00Z", stage_name="C-2", lot_s_id=ld_, win_start="2026-09-22T08:00:00Z", win_end="2026-09-25T09:00:00Z")})
    sw_d = _mk_r8_switch(pd_, bd_, ld_, rd_, mat_d, "2026-09-28T14:00:00Z", candidate_gene=tg_dual, comparator_nt_lot_id=nt_y, prereq_receipts={"C-2": c2_d["receipt_sha256"]}, transient_engagement=_mk_c_eng(c1_cohort_y, "2026-09-28T13:00:00Z", stage_name="NATIVE_SAFETY_SWITCH", lot_s_id=ld_, win_start="2026-09-25T12:00:00Z", win_end="2026-09-28T13:15:00Z", mode="VALIDATED_LONGITUDINAL_KINETICS"))
    g0v_d = _mk_r8_gate0v(pd_, bd_, ld_, rd_, mat_d, "2026-09-28T14:30:00Z", candidate_gene=tg_dual, comparator_nt_lot_id=nt_y, prereq_receipts={"C-2": c2_d["receipt_sha256"]}, transient_engagement=_mk_c_eng(c1_cohort_y, "2026-09-28T13:15:00Z", stage_name="GATE-0V-KILL", lot_s_id=ld_, win_start="2026-09-25T12:00:00Z", win_end="2026-09-28T13:30:00Z", mode="VALIDATED_LONGITUDINAL_KINETICS"))
    pr_c3_d = {**pr_c1_d, "NATIVE_SAFETY_SWITCH": sw_d["receipt_sha256"], "GATE-0V-KILL": g0v_d["receipt_sha256"]}
    c3n_d = _sign_receipt({**c3_nk_y, "product_id": pd_, "bank_id": bd_, "lot_id": ld_, "route_id": rd_, "specimen_id": f"SPEC-C-3-NK-{ld_}", "parent_receipt_sha256": c2_d["receipt_sha256"], "prerequisite_receipt_sha256s": pr_c3_d, "transient_target_engagement_record": _mk_c_eng(c1_cohort_y, "2026-09-30T09:00:00Z", stage_name="C-3-NK", lot_s_id=ld_, win_start="2026-09-28T15:00:00Z", win_end="2026-09-30T11:00:00Z"), "readout3b_evidence": _mk_r8_readout3b(include_sirpa_low=True, include_hla_e_spr=False, specimen_id=f"SPEC-C-3-NK-{ld_}", specimen_lot_id=ld_, intervention_cohort_id=c1_cohort_y)})
    c3g_d = _sign_receipt({**c3_gsis_y, "product_id": pd_, "bank_id": bd_, "lot_id": ld_, "route_id": rd_, "specimen_id": f"SPEC-C-3-GSIS-{ld_}", "parent_receipt_sha256": c3n_d["receipt_sha256"], "prerequisite_receipt_sha256s": pr_c3_d, "transient_target_engagement_record": _mk_c_eng(c1_cohort_y, "2026-10-01T16:00:00Z", stage_name="C-3-GSIS", lot_s_id=ld_, win_start="2026-09-30T13:00:00Z", win_end="2026-10-01T18:00:00Z"), "readout2_evidence": _mk_r8_readout2(matched_comparator_id=nt_y, block_prefix="C3GD", lot_id=ld_, stage7_start_utc="2026-09-12T00:00:00Z", sort_reaggregation_utc="2026-09-22T00:00:00Z", assay_harvest_utc="2026-10-01T00:00:00Z", specimen_id=f"SPEC-C-3-GSIS-{ld_}", intervention_cohort_id=c1_cohort_y, candidate_gene=tg_dual)})
    g42_d = {"target_arm": "D", "product_id": pd_, "bank_id": bd_, "lot_id": ld_, "route_id": rd_, "drug_free_exposure_evidence": df_d, "materialization_evidence": mat_d, "foundry_v2_gate36_evidence": g36_d, "native_switch_evidence": sw_d, "gate0v_evidence": g0v_d, "zero_fasta_minted": True, "iip0049_foundry_attribution_evidence": att_d, "target_gene": tg_dual, "c1_preregistered_plan_receipt": c1_prereg_d, "c1_evidence": c1_d, "c2_evidence": c2_d, "c3_nk_evidence": c3n_d, "c3_gsis_evidence": c3g_d}
    chk(evaluate_gate42_gy032_channel_c_screen(g42_d)["verdict"] == OFFLINE_VERDICT_PRIMARY, "G42_D_autologous_pass")
    # Autologous Design D given allogeneic BANK_QUALIFICATION tier -> HOLD_INAPPLICABLE_QUALIFICATION_TIER_FOR_PRODUCT_FAMILY!
    g0v_d_wrong = _mk_r8_gate0v(pd_, bd_, ld_, rd_, mat_d, "2026-09-26T09:30:00Z", candidate_gene=tg_dual, comparator_nt_lot_id=nt_y, tier_override="PASS_WHOLEGRAFT_BANK_QUALIFICATION")
    chk("HOLD_INAPPLICABLE_QUALIFICATION_TIER_FOR_PRODUCT_FAMILY" in evaluate_gate42_gy032_channel_c_screen({**g42_d, "gate0v_evidence": g0v_d_wrong})["holds"], "G42_D_wrong_g0v_tier_hold")
    chk("FAIL_GATE_C1_NORMOXIA_ACTIVE_ARM_MISMATCH_WITH_5ARM_TABLE" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "all_five_arms_paired_data": {**c1_norm_6["all_five_arms_paired_data"], tg_dual: {"treated_beta_plated_t0_by_block": [10000]*6, "treated_beta_surviving_by_block": [7000]*6, "treated_beta_t0_pct_by_block": [70.0]*6, "casp9_treated_raw_by_block": c1_norm_6["casp9_treated_raw_by_block"], "casp9_reduction_pct_by_block": c1_norm_6["casp9_reduction_pct_by_block"]}}}})})["failures"], "G42_active_5arm_mm")
    chk("FAIL_GATE_C1_NORMOXIA_MISSING_ALL_5_SIBLING_ARM_RAW_VECTORS" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "all_five_arms_paired_data": None}})})["failures"], "G42_missing_5arms")
    chk("FAIL_GATE_C1_NORMOXIA_NONPOSITIVE_NET_BETA_RESCUE" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": _mk_r8_c1_block(assay_record_id="C1-NEG", bids=["B1","B2","B3","B4","B5","B6"], c9_vec=[51.0,55.0,49.0,54.0,52.0,56.0], ctrl_vec=[54.0,52.0,56.0,55.0,53.0,54.0], tr_vec=[50.0,49.0,52.0,51.0,50.0,51.0], veh_vec=[90.0]*6, comp_vec=[48.0,47.5,50.0,49.5,48.0,49.0])})})["failures"], "G42_neg_rescue")
    chk("FAIL_GATE_C1_NORMOXIA_HOLM5_ADJUSTED_PVALUE_MISMATCH_BETA" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "holm_adjusted_beta_p_value": 0.000001}})})["failures"], "G42_holm_tamper")
    chk("FAIL_GATE_C1_UNDECLARED_STATISTICAL_METHOD" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "statistical_test_method": "WILCOXON"})})["failures"], "G42_stat_method")
    chk("FAIL_IIP0049_STAGE1_WINDOW_NOT_POSITIVE" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "stage1_cytokine_window_positive": False})})["failures"], "G42_s1_neg")
    chk("FAIL_IIP0049_T0_DENOMINATORS_MISSING" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "t0_original_plated_denominators_used": False})})["failures"], "G42_att_t0")
    chk("FAIL_IIP0049_CONCURRENT_CONTROLS_INVALID" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "concurrent_controls_valid": False})})["failures"], "G42_att_ctrl")
    chk("FAIL_UNRECOGNIZED_TARGET_GENE" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "target_gene": "TP53"})["failures"], "G42_bad_gene")
    chk("FAIL_DESIGN_A_DIAGNOSTIC_MUST_USE_UNCOATED_R1" in evaluate_gate42_gy032_channel_c_screen({**g42_a, "route_id": "R2"})["failures"], "G42_A_not_r1")
    chk("FAIL_GATE_C2_REQUIRES_AT_LEAST_3_PER_LOT_PROLIFERATION_RECORDS" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c2_evidence": _sign_receipt({**c2_y, "c2_per_lot_proliferation_records": c2_prolif_ok[:2]})})["failures"], "G42_c2_lt3")
    chk("FAIL_FOUNDRY_V2_GATE36_NOT_PASSED" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "foundry_v2_gate36_evidence": _sign_receipt({**g36_y, "canonical_gate36_verdict": "HOLD"})})["failures"], "G42_g36_not_pass")
    chk("FAIL_FOUNDRY_V2_GATE36_EXPOSURE_UNVERIFIED" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "foundry_v2_gate36_evidence": _sign_receipt({**g36_y, "matched_foundry_exposure_verified": False})})["failures"], "G42_g36_exp")
    chk("FAIL_CHRONOLOGICAL_PREREQ_POSTDATES_STAGE:GATE-32_AFTER_GATE-36" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "foundry_v2_gate36_evidence": _sign_receipt({**g36_y, "live_gate32_debris_recall_receipt": _sign_receipt({**g32_y, "recorded_at_utc": "2026-09-14T08:00:00Z"})})})["failures"], "G42_g32_after_g36")
    chk("FAIL_GATE_C1_NORMOXIA_BCL2L11_COMPARATOR_MISMATCH_WITH_5ARM_TABLE" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "bcl2l11_comparator_beta_t0_pct_by_block": [69.0,68.0,71.0,70.0,68.0,70.0]}})})["failures"], "G42_bcl2l11_5arm_mm")
    chk("FAIL_GATE_C1_NORMOXIA_CASP9_OUT_OF_DOMAIN_NEG100_100" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "casp9_reduction_pct_by_block": [-120.0,55.0,49.0,54.0,52.0,56.0]}})})["failures"], "G42_c9_lt_neg100")
    chk("FAIL_GATE_C1_IDENTICAL_COPY_PASTE_CASP9_ACROSS_OXYGEN_REGIMES" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_hypoxia_2pct_o2": {**c1_hyp_6, "casp9_reduction_pct_by_block": c1_norm_6["casp9_reduction_pct_by_block"]}})})["failures"], "G42_c9_cp")
    chk("FAIL_GATE_C2_PROLIF_DUPLICATE_OR_EMPTY_LOT_ID" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c2_evidence": _sign_receipt({**c2_y, "c2_per_lot_proliferation_records": [_mk_c2_prolif_lot(1), _mk_c2_prolif_lot(1, resting_assay_record_id="R2", post_recovery_assay_record_id="P2"), _mk_c2_prolif_lot(3)]})})["failures"], "G42_c2_dup_lot")
    chk("FAIL_IIP0049_ATTRIBUTION_BLOCKS_LT_3" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "biological_blocks_n": 2})})["failures"], "G42_att_lt3")
    chk("FAIL_IIP0049_STAGE1_CYTOKINE_DROP_BELOW_10PP" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "stage1_cytokine_drop_pp": 5.0})})["failures"], "G42_s1_lt10")
    chk("FAIL_IIP0049_RESIDUAL_DROP_BELOW_10PP_OR_OUT_OF_DOMAIN" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "residual_viable_beta_drop_pp": 6.0})})["failures"], "G42_res_lt10")
    chk("FAIL_FOUNDRY_V2_GATE36_RECEIPT_DIGEST_MISMATCH" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "foundry_v2_gate36_receipt_sha256": "9" * 64})})["failures"], "G42_g36_sha_mm")
    chk("FAIL_GATE_C1_NORMOXIA_MISSING_ASSAY_RECORD_ID" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "assay_record_id": ""}})})["failures"], "G42_no_aid")
    chk("FAIL_GATE_C1_NORMOXIA_INVALID_OR_DUPLICATE_BLOCK_IDS" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "block_ids": ["B1","B1","B3","B4","B5","B6"]}})})["failures"], "G42_dup_bid")
    chk("FAIL_GATE_C1_NORMOXIA_MISSING_PMLKL_BOOL" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": {**c1_norm_6, "pmlkl_flag_triggered": "no"}})})["failures"], "G42_pmlkl_bool")
    chk("FAIL_NATIVE_SAFETY_SWITCH_GATE34_NOT_PASSED" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "native_switch_evidence": _sign_receipt({**sw_y_c, "gate34_passed": False})})["failures"], "G42_sw_g34")
    chk("FAIL_GATE0V_EXPOSED_PRODUCT_NOT_TESTED" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "gate0v_evidence": _sign_receipt({**g0v_y_c, "exposed_product_tested": False})})["failures"], "G42_g0v_exp")

    # ========================================================================
    # GATE-43 (80 tests: 70 prior + 10 adversarial closures)
    # ========================================================================
    def _mk_d1_unified(base_d: Mapping[str, Any], **ov: Any) -> dict[str, Any]:
        body: dict[str, Any] = {
            "lot_id": "D1-LOT-001", "plate_id": "D1-PLATE-01", "sibling_aliquot_pair_id": "D1-SIBPAIR-01",
            "arm_a_exposure_start_utc": "2026-10-02T12:00:00Z", "arm_a_exposure_end_utc": "2026-10-03T12:00:00Z",
            "arm_b_exposure_start_utc": "2026-10-02T12:05:00Z", "arm_b_exposure_end_utc": "2026-10-03T12:05:00Z",