scripts/verify_wave7_cellgemma_2p24_rebase.py
Use this file in any AI chat (paste-only or attachment-capable):
Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/verify_wave7_cellgemma_2p24_rebase.py · SHA-256: 5f31a6369f25031d…
"BANK_MATERIALIZATION": mat_y40["receipt_sha256"],
"NATIVE_SAFETY_SWITCH": sw_y40["receipt_sha256"], "GATE-0V-KILL": g0v_y40["receipt_sha256"],
}
b2be_y = _sign_receipt({
"stage": "B-2b-exact", "verdict": "PASS", "product_id": py, "bank_id": by, "lot_id": ly, "route_id": ry,
"evidence_scope": "exact_product", "recorded_at_utc": "2026-09-25T10:00:00Z",
"parent_receipt_sha256": b2bb_y["receipt_sha256"], "prerequisite_receipt_sha256s": pr_b2be, **coat_b,
"c_safe_max_operative_l95_free_nM": 22.0,
"used_marginal_u95_sum": False, "alpha_conc": 0.025, "alpha_fu_parent": 0.0125, "alpha_fu_bmt": 0.0125,
"u95_joint_peak_free_nM": 20.8, "days0_10_parent_lower_free_nM": 7.0,
**_mk_r8_b2b_replicates(evidence_scope="exact_product"),
"c_bmt_local_total_u_alloc_nM": 0.04, "c_bmt_local_free_u_alloc_nM": 0.02,
"c_bmt_recirc_total_u_alloc_nM": 0.03, "c_bmt_recirc_free_u_alloc_nM": 0.02,
"censoring_audit_passed": True, "intersample_peak_envelope_justified": True,
"systemic_exposure_below_cap": True, "mixture_requalified": False,
})
def _mk_b3_il10_assay(
lot_id_v: str = ly, veh_lot_v: str = bv_b, *,
mean_rec: float = 95.0, wash_utc: str = "2026-10-05T09:00:00Z", recov_utc: str = "2026-10-08T09:00:00Z",
**ov: Any,
) -> dict[str, Any]:
drows = []
for di, off in enumerate((-1.5, 0.0, 1.5), start=1):
veh_v = 80.0
tr_v = round(veh_v * (mean_rec + off) / 100.0, 4)
db = {
"donor_id": f"IL10-DONOR-{di:02d}",
"raw_record_id": f"IL10-REC-{lot_id_v}-{di:02d}",
"treated_post_washout_il10_suppression_pct": tr_v,
"matched_vehicle_il10_suppression_pct": veh_v,
}
drows.append({**db, "record_sha256": sha256_bytes(canonical_json_bytes(db))})
ab: dict[str, Any] = {
"assay_id": f"IL10-WASHOUT-{lot_id_v}",
"lot_id": lot_id_v,
"matched_blank_vehicle_lot_id": veh_lot_v,
"exposure_started_at_utc": "2026-10-01T09:00:00Z",
"washout_started_at_utc": wash_utc,
"recovery_collected_at_utc": recov_utc,
"recorded_at_utc": "2026-10-08T18:00:00Z",
"exposure_measured_free_parent_nM": 12.5,
"donor_records": drows,
}
ab.update(ov)
return {**ab, "assay_receipt_sha256": sha256_bytes(canonical_json_bytes(ab))}
def _mk_b3_challenge_panel(
b2be_sha: str, *, prod_id: str = py, lot_id_v: str = ly, veh_lot_v: str = bv_b,
free_p_nM: float = 12.5, free_b_nM: float = 0.02, comp_overrides: Optional[Mapping[str, Mapping[str, float]]] = None,
) -> dict[str, Any]:
req_c = sorted(SHIELD_COMPONENTS_BY_PRODUCT[prod_id])
shields_ref = _mk_r8_shields(prod_id)
chals_obj: dict[str, Any] = {}
for c_nm in ("IFNG_PLUS_TNFA", "IFNG_PLUS_IL1B", "IFNA_PLUS_LOW_IFNG"):
comps_map: dict[str, Any] = {}
for cn in req_c:
tgt_pct = float(comp_overrides[c_nm][cn]) if (comp_overrides and c_nm in comp_overrides and cn in comp_overrides[c_nm]) else float(shields_ref[cn])
comps_map[cn] = {
"vehicle": [1000.0, 1020.0, 980.0],
"treated": [round(v * (tgt_pct + d) / 100.0, 4) for v, d in zip((1000.0, 1020.0, 980.0), (-0.4, 0.0, 0.4))],
}
chals_obj[c_nm] = {
"block_ids": [f"B3-{c_nm}-BLK-1", f"B3-{c_nm}-BLK-2", f"B3-{c_nm}-BLK-3"],
"matched_vehicle_record_id": f"B3-VEH-{c_nm}-{veh_lot_v}",
"cassette_retention_raw": {
"vehicle": [1000.0, 1010.0, 990.0],
"treated": [round(v * (92.0 + d) / 100.0, 4) for v, d in zip((1000.0, 1010.0, 990.0), (-0.4, 0.0, 0.4))],
},
"components": comps_map,
}
pb: dict[str, Any] = {
"lot_id": lot_id_v,
"matched_blank_vehicle_lot_id": veh_lot_v,
"b2b_exact_receipt_sha256": b2be_sha,
"exposure_started_at_utc": "2026-10-01T09:00:00Z",
"assessed_at_utc": "2026-10-03T09:00:00Z",
"measured_free_parent_nM": free_p_nM,
"measured_free_bmt_nM": free_b_nM,
"challenges": chals_obj,
}
return {**pb, "panel_receipt_sha256": sha256_bytes(canonical_json_bytes(pb))}
b3_il10_ok = _mk_b3_il10_assay()
b3_cpanel_ok = _mk_b3_challenge_panel(b2be_y["receipt_sha256"])
b3_y = _sign_receipt({
"stage": "B-3", "verdict": "PASS", "product_id": py, "bank_id": by, "lot_id": ly, "route_id": ry,
"evidence_scope": "exact_product", "recorded_at_utc": "2026-10-09T11:00:00Z",
"parent_receipt_sha256": b2be_y["receipt_sha256"], "prerequisite_receipt_sha256s": pr_mat_40, **coat_b,
"transgene_cassette_retention_pct": 92.0, "shield_retention_by_component": _mk_r8_shields(py),
"b3_cytokine_challenge_shield_panel": b3_cpanel_ok,
"il10_suppression_pct": 12.0, "post_washout_72h_il10_recovery_pct": 95.0,
"il10_washout_recovery_assay": b3_il10_ok,
"nkg2a_mfi_pct_ctrl": 93.0, "cd94_mfi_pct_ctrl": 94.0,
"readout3b_evidence": _mk_r8_readout3b(include_sirpa_low=True, matched_vehicle_lot_id=bv_b),
"readout2_evidence": _mk_r8_readout2(
matched_comparator_id=bv_b, block_prefix="B3B",
stage7_start_utc="2026-09-16T00:00:00Z", sort_reaggregation_utc="2026-09-28T00:00:00Z", assay_harvest_utc="2026-10-07T00:00:00Z",
),
"hour0_density_by_lineage": _mk_r8_hour0(py),
})
b4_hrs = [2.0, 12.0, 24.0, 72.0, 144.0, 192.0, 240.0, 312.0, 384.0, 456.0, 504.0]
b4_lpf = [15.5, 14.0, 12.5, 10.6, 9.5, 8.6, 8.0, 4.2, 2.1, 0.9, 0.45]
b4_lbf = [0.004, 0.005, 0.005, 0.005, 0.004, 0.004, 0.004, 0.003, 0.003, 0.003, 0.003]
b4_spf = [0.035, 0.032, 0.028, 0.024, 0.020, 0.016, 0.014, 0.012, 0.010, 0.008, 0.008]
b4_sbf = [0.012, 0.012, 0.010, 0.010, 0.009, 0.008, 0.008, 0.008, 0.008, 0.008, 0.008]
b4_y = _sign_receipt({
"stage": "B-4", "verdict": "PASS", "product_id": py, "bank_id": by, "lot_id": ly, "route_id": ry,
"evidence_scope": "exact_product", "invivo_study_started_at_utc": "2026-10-10T10:00:00Z",
"recorded_at_utc": "2026-11-02T12:00:00Z", "parent_receipt_sha256": b3_y["receipt_sha256"],
"prerequisite_receipt_sha256s": pr_all_40, **coat_b,
"invivo_time_resolved_pk_gate_retained": True,
"serial_pk_schedule_hours": b4_hrs,
"serial_pk_local_parent_free_nM": b4_lpf,
"serial_pk_local_bmt_free_nM": b4_lbf,
"serial_pk_systemic_parent_total_nM": b4_spf,
"serial_pk_systemic_bmt_total_nM": b4_sbf,
**_mk_r8_b4_replicates(b4_hrs, b4_lpf, b4_lbf, b4_spf, b4_sbf),
"censoring_audit_passed": True, "blq_imputation_rule": "LLOQ_TIMES_FU_U_ALLOC_SAFETY_AND_ZERO_EFFICACY",
"alpha_conc": 0.025, "alpha_fu_parent": 0.0125, "alpha_fu_bmt": 0.0125,
"intersample_peak_envelope_justified": True,
"invivo_u95_joint_peak_free_nM": 19.2, "invivo_days0_10_parent_lower_free_nM": 6.4,
"invivo_systemic_plasma_u95_nM": 0.38,
"matched_control_switch_parity_evidence": _mk_r8_switch_parity(bv_b),
})
g41_bench = {
"phase": "BENCH_UNEDITED", "track_mode": "PRIMARY", "credit_scope": "PRIMARY",
"target_arm": "Y", "product_id": py, "bank_id": by, "lot_id": ly, "route_id": ry,
"b0a_evidence": b0a_ok, "b0b_evidence": b0b_y, "b1_evidence": b1_y, "b2_evidence": b2_y, "b2b_bench_evidence": b2bb_y,
}
g41_ok = {
**g41_bench, "phase": "EXACT_PRODUCT",
"materialization_evidence": mat_y40, "native_switch_evidence": sw_y40, "gate0v_evidence": g0v_y40,
"b0a_exact_evidence": b0a_ex_y, "b2b_exact_evidence": b2be_y, "b3_evidence": b3_y, "b4_evidence": b4_y,
}
r41 = evaluate_gate41_deucravacitinib_tyk2(g41_ok)
chk(r41["verdict"] == OFFLINE_VERDICT_PRIMARY and r41["release_authorizing"] is False and r41["live_ledger_authenticated"] is False, "G41_pass_Y_R3P")
chk(evaluate_gate41_deucravacitinib_tyk2({"phase": "ROUTE_FREE_B0A", "b0a_evidence": b0a_ok})["verdict"] == "PASS_ROUTE_FREE_B0A_ONLY", "G41_phase1_ok")
chk(evaluate_gate41_deucravacitinib_tyk2(g41_bench)["verdict"] == "PASS_BENCH_ONLY_UNEDITED_PRE_MATERIALIZATION", "G41_phase2_ok")
# GATE-41 closures (10 brand-new tests!)
# 1. B-4 228-hour blind gap between 12 h and 240 h returns HOLD_GATE_B4_INSUFFICIENT_TEMPORAL_COVERAGE_GAP_GT_72H!
chk("HOLD_GATE_B4_INSUFFICIENT_TEMPORAL_COVERAGE_GAP_GT_72H" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "serial_pk_schedule_hours": [2.0, 6.0, 12.0, 240.0, 360.0, 432.0, 504.0], "serial_pk_local_parent_free_nM": [15.5, 14.5, 14.0, 7.2, 2.4, 1.1, 0.45], "serial_pk_local_bmt_free_nM": [0.02]*7, "serial_pk_systemic_parent_total_nM": [0.10]*7, "serial_pk_systemic_bmt_total_nM": [0.01]*7})})["holds"], "G41_ADV_b4_228h_gap_hold")
# 2. B-2 negative coated TAT (impossible >100% reduction) FAILS!
bad_d_neg = _mk_r8_b2_donors(); bad_d_neg[0]["tat_coated_ng_ml"] = -5.0
chk("FAIL_GATE_B2_TAT_RAW_VALUES_INVALID:D1" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2_evidence": _sign_receipt({**b2_y, "donor_records": bad_d_neg})})["failures"], "G41_ADV_b2_neg_tat_impossible")
# 3. B-2 null exclusion entry FAILS!
chk("FAIL_GATE_B2_MALFORMED_OR_NULL_EXCLUSION_ROW:0" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2_evidence": _sign_receipt({**b2_y, "enrolled_donors_n": 7, "excluded_invalid_donors_n": 1, "invalid_donor_exclusion_log": [None]})})["failures"], "G41_ADV_b2_null_excl")
# 4. B-2 trailing-whitespace duplicate donor ID ("D1" vs "D1 ") FAILS!
bad_d_ws = _mk_r8_b2_donors(); bad_d_ws[1]["donor_id"] = "D1 "
chk("FAIL_GATE_B2_UNDERPOWERED_OR_DUPLICATE_DONORS_LT_6" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2_evidence": _sign_receipt({**b2_y, "donor_records": bad_d_ws})})["failures"], "G41_ADV_b2_whitespace_dup_donor")
# 5. B-0a-exact swapped api_batch_id FAILS coating identity check!
chk("FAIL_B-0a-exact_COATING_IDENTITY_MISMATCH:api_batch_id" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b0a_exact_evidence": _sign_receipt({**b0a_ex_y, "api_batch_id": "DIFFERENT-API-BATCH"})})["failures"], "G41_ADV_b0a_exact_api_batch_mismatch")
# 6. B-3 Readout-2 50% drop vs matched blank vehicle FAILS!
r2_b3_50 = _mk_r8_readout2(matched_comparator_id=bv_b, block_prefix="B3B")
for b in r2_b3_50["o2_40_mmhg"]["blocks"]:
b["matched_control_z2_increment"] = round(b["z2_increment"] * 2.0, 4)
b["matched_control_output_ratio"] = 0.50
chk("FAIL_GATE_B3_READOUT2_O2_40_RECOMPUTED_CTRL_FIELLER_L95_BELOW_FLOOR" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b3_evidence": _sign_receipt({**b3_y, "readout2_evidence": r2_b3_50})})["failures"], "G41_ADV_b3_r2_50pct_ctrl_fails")
# 7. B-3 Readout-3B coated lysis > +2.0 pp above matched blank vehicle FAILS!
r3b_d2 = _mk_r8_readout3b(include_sirpa_low=True, matched_vehicle_lot_id=bv_b)
for d in r3b_d2["donor_records"]:
d["regime_i_ifng_24h"]["veh_nkg2a_pos_lysis_pct"] = 1.0 # coated ~4.6 vs veh 1.0 -> +3.6 pp > +2 pp!
chk("FAIL_GATE_B3_READOUT3B_R1_NKG2A_EXCEEDS_MATCHED_VEH_BY_GT_2PP" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b3_evidence": _sign_receipt({**b3_y, "readout3b_evidence": r3b_d2})})["failures"], "G41_ADV_b3_r3b_veh_delta_gt2pp")
# 8. B-0a raw concentration-response grid failing to bracket bounds FAILS!
chk("FAIL_GATE_B0A_BOUNDS_NOT_OBSERVATION_BRACKETED" in evaluate_gate41_deucravacitinib_tyk2({"phase": "ROUTE_FREE_B0A", "b0a_evidence": _sign_receipt({**b0a_ok, "tested_free_conc_grid_nM": [0.0, 1.0, 2.0, 3.0, 5.0, 10.0, 20.0, 24.0]})})["failures"], "G41_ADV_b0a_grid_not_bracketed")
# 9. B-2b-bench claimed U95 understating recomputed simultaneous replicate upper bound FAILS!
chk("FAIL_GATE_B2B_BENCH_RECOMPUTED_SIMULTANEOUS_PEAK_EXCEEDS_CLAIMED_OR_CSAFE" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2b_bench_evidence": _sign_receipt({**b2bb_y, "u95_joint_peak_free_nM": 10.0})})["failures"], "G41_ADV_b2b_understates_recomp_peak")
# 10. B-4 missing matched-control switch parity receipt triggers HOLD (no bare boolean shortcut!)
chk("HOLD_GATE_B4_MATCHED_CONTROL_SWITCH_PARITY_MISSING" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "matched_control_switch_parity_evidence": None})})["holds"], "G41_ADV_b4_sw_parity_data_req")
# & Core 67 GATE-41 invariants
chk("FAIL_GATE_B4_SERIAL_PK_SAMPLE_POSTDATES_RECEIPT" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "serial_pk_schedule_hours": [2.0, 12.0, 24.0, 72.0, 144.0, 192.0, 240.0, 312.0, 384.0, 504.0, 600.0]})})["failures"], "G41_ADV_b4_postdated_sample")
chk("FAIL_GATE_B4_SERIAL_PK_WINDOW_MISSES_BURST_DAY10_OR_DAY21_WINDOW" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "recorded_at_utc": "2026-11-10T12:00:00Z", "serial_pk_schedule_hours": [2.0, 12.0, 24.0, 72.0, 144.0, 192.0, 240.0, 312.0, 384.0, 456.0, 600.0]})})["failures"], "G41_ADV_b4_misses_day21_window")
chk("HOLD_GATE_B0A_EXACT_CASSETTE_CEILING_MISSING" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b0a_exact_evidence": None})["holds"], "G41_ADV_missing_b0a_exact_hold")
chk("FAIL_GATE_B2B_EXACT_OPERATIVE_NOT_EQUAL_TO_MIN_BENCH_AND_EXACT" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b2b_exact_evidence": _sign_receipt({**b2be_y, "c_safe_max_operative_l95_free_nM": 24.0})})["failures"], "G41_ADV_derived_op_mismatch")
rmap_ind = {r: {l: dict(c) for l, c in lm.items()} for r, lm in g0v_y40["regime_by_lineage_raw_counts"].items()}
rmap_ind["active_persistent_cvb4"]["INS_beta"]["infected_cell_escape_mode"] = "CONDITIONAL_INDIRECT_DIAGNOSTIC_ONLY"
chk("HOLD_GATE0V_INDIRECT_CONDITIONAL_ESCAPE_UNSUPPORTED_FOR_RELEASE:active_persistent_cvb4:INS_beta" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "gate0v_evidence": _sign_receipt({**g0v_y40, "regime_by_lineage_raw_counts": rmap_ind})})["holds"], "G41_ADV_g0v_indirect_hold")
rmap_sub = {r: {l: dict(c) for l, c in lm.items()} for r, lm in g0v_y40["regime_by_lineage_raw_counts"].items()}
bad_dinf = [dict(u) for u in rmap_sub["active_persistent_cvb4"]["INS_beta"]["per_unit_counts_direct_infected_veh_72h"]]
bad_dinf[0]["k"] = 33; bad_dinf[1]["k"] = 7
rmap_sub["active_persistent_cvb4"]["INS_beta"]["per_unit_counts_direct_infected_veh_72h"] = bad_dinf
chk("HOLD_GATE0V_SAMPLING_UNIT_SUBSET_OR_ID_CONTRADICTION:active_persistent_cvb4:INS_beta:direct_inf:W1" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "gate0v_evidence": _sign_receipt({**g0v_y40, "regime_by_lineage_raw_counts": rmap_sub})})["holds"], "G41_ADV_g0v_subset_contradiction")
bad_d_ctrl = _mk_r8_b2_donors(); bad_d_ctrl[0]["pos_ctrl_tat_fold"] = 2.0
chk("FAIL_GATE_B2_NUMERIC_DONOR_CONTROL_INVALID:pos_ctrl_tat_fold" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2_evidence": _sign_receipt({**b2_y, "donor_records": bad_d_ctrl})})["failures"], "G41_ADV_b2_numeric_ctrl_fail")
bad_d_loo = _mk_r8_b2_donors()
# Set raw platelet coated - vehicle / 250 -> [-2, 1, 22, 24, 26, 49] pp (overall passes, LOO fragile!)
for i, target_pp in enumerate([-2.0, 1.0, 22.0, 24.0, 26.0, 49.0]):
bad_d_loo[i]["platelet_vehicle_k_ul"] = 100.0
bad_d_loo[i]["platelet_coated_k_ul"] = 100.0 + 2.5 * target_pp
chk("FAIL_GATE_B2_PLATELET_LEAVE_ONE_DONOR_OUT_FRAGILE" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2_evidence": _sign_receipt({**b2_y, "donor_records": bad_d_loo})})["failures"], "G41_ADV_b2_loo_fragile")
bad_r3b_sl = _mk_r8_readout3b(include_sirpa_low=True, matched_vehicle_lot_id=bv_b); bad_r3b_sl["donor_records"][0]["regime_ii_t0_unpreinduced"]["il12_il18_sirpa_low_lysis_pct"] = 14.0
chk("FAIL_GATE_B3_READOUT3B_R2_SIRPA_LOW_LYSIS_GT_10PCT:NK-D1" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b3_evidence": _sign_receipt({**b3_y, "readout3b_evidence": bad_r3b_sl})})["failures"], "G41_ADV_b3_sirpa_low_checked")
chk("FAIL_B-4_COATING_IDENTITY_MISMATCH:coating_article_id" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "coating_article_id": "OTHER-ARTICLE"})})["failures"], "G41_ADV_b4_coating_swap")
chk("FAIL_GATE_B4_SERIAL_PK_WINDOW_MISSES_BURST_DAY10_OR_DAY21_WINDOW" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "serial_pk_schedule_hours": [2.0, 12.0, 24.0, 72.0, 120.0, 168.0, 240.0], "serial_pk_local_parent_free_nM": [15.5, 14.0, 12.5, 10.2, 9.0, 8.2, 7.2], "serial_pk_local_bmt_free_nM": [0.02]*7, "serial_pk_systemic_parent_total_nM": [0.10]*7, "serial_pk_systemic_bmt_total_nM": [0.02]*7})})["failures"], "G41_ADV_b4_ends_day10")
chk("FAIL_GATE_B4_COMBINED_LOCAL_PEAK_EXCEEDS_REPORTED_U95_JOINT_PEAK" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "serial_pk_local_parent_free_nM": [16.5, 14.0, 12.5, 10.2, 8.8, 7.9, 7.2, 4.5, 2.4, 1.1, 0.45], "serial_pk_local_bmt_free_nM": [4.0, 0.03, 0.04, 0.04, 0.03, 0.02, 0.02, 0.02, 0.01, 0.01, 0.01]})})["failures"], "G41_ADV_b4_comb_local")
chk("FAIL_GATE_B4_COMBINED_SYSTEMIC_PEAK_EXCEEDS_REPORTED_U95_SYSTEMIC" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "serial_pk_systemic_parent_total_nM": [0.35, 0.11, 0.09, 0.06, 0.04, 0.03, 0.03, 0.02, 0.02, 0.01, 0.01], "serial_pk_systemic_bmt_total_nM": [0.10, 0.02, 0.02, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01]})})["failures"], "G41_ADV_b4_comb_sys")
chk("FAIL_GATE_B4_DAY21_WASHOUT_NOT_EXHAUSTED" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "serial_pk_local_parent_free_nM": [15.5, 14.0, 12.5, 10.2, 8.8, 7.9, 7.2, 5.5, 4.5, 3.8, 3.2]})})["failures"], "G41_ADV_b4_day21_not_exh")
chk("FAIL_GATE_B4_ELAPSED_STUDY_DURATION_LT_21_DAYS" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b4_evidence": _sign_receipt({**b4_y, "recorded_at_utc": "2026-10-20T12:00:00Z"})})["failures"], "G41_ADV_b4_lt_21d")