chk("FAIL_GATE_B2B_BENCH_MIXTURE_REQUAL_RATIO_DOES_NOT_COVER_OBSERVED_BMT_PARENT" 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": mix_wrong_ratio})})["failures"], "ADV_G41_b2b_mixture_ratio_coverage_enforced") # 18. Readout-3B missing HLA-E SPR affinity OR KIR+/- adaptive lysis > 10% FAILS! r3b_no_spr = {k: v for k, v in _mk_r8_readout3b(include_sirpa_low=True, matched_vehicle_lot_id=bv_b).items() if k != "hla_e_spr_affinity_evidence"} chk("FAIL_GATE_B3_READOUT3B_MISSING_HLAE_SPR_AFFINITY_EVIDENCE" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b3_evidence": _sign_receipt({**b3_y, "readout3b_evidence": r3b_no_spr})})["failures"], "ADV_G41_b3_r3b_missing_spr_fails") # --- GATE-42 Regressions (6 tests) --- # 19. Omitting comparator_nt_lot_id from C-1 FAILS immediately (never falls back to optional None)! c1_no_nt = _sign_receipt({k: v for k, v in c1_y.items() if k != "comparator_nt_lot_id"}) chk("FAIL_GATE42_MISSING_MANDATORY_COMPARATOR_NT_LOT_ID" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": c1_no_nt})["failures"], "ADV_G42_missing_c1_comparator_nt_lot_fails") # 20. IIP-0049 missing Stage-1 gatekeeper record OR Stage-2 block manifest OR quantitative IL-1 control FAILS! chk("FAIL_IIP0049_MISSING_STAGE1_GATEKEEPER_RECORD" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "stage1_gatekeeper_record": None})})["failures"], "ADV_G42_iip0049_missing_stage1_fails") chk("FAIL_IIP0049_MISSING_STAGE2_BLOCK_MANIFEST" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "stage2_block_manifest": None})})["failures"], "ADV_G42_iip0049_missing_block_manifest_fails") # 21. C-1 caspase-9 reduction mismatch vs raw paired measurements OR missing locked analysis plan FAILS! c1_bad_c9raw = {**c1_norm_6, "casp9_treated_raw_by_block": [90.0]*6} chk("FAIL_GATE_C1_NORMOXIA_CASP9_REDUCTION_MISMATCH_VS_RAW_PAIRS" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": c1_bad_c9raw})})["failures"], "ADV_G42_c1_raw_casp9_mismatch_fails") chk("FAIL_GATE_C1_MISSING_LOCKED_ANALYSIS_PLAN_ID" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "locked_analysis_plan_id": ""})})["failures"], "ADV_G42_c1_missing_locked_plan_fails") # 22. Safety switch missing cryptographic C-2 prerequisite digest pin FAILS! sw_no_c2pin = _mk_r8_switch(py, by, ly, ry, mat_yc, "2026-09-26T09:00:00Z", candidate_gene=tg_dual, comparator_nt_lot_id=nt_y) chk("FAIL_GATE42_MISSING_C2_PREREQ_DIGEST_IN_NATIVE_SAFETY_SWITCH" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "native_switch_evidence": sw_no_c2pin})["failures"], "ADV_G42_switch_missing_c2_pin_fails") # --- GATE-43 Regressions (4 tests) --- # 23. D-2 identical numerical arrays across lots (with renamed block IDs!) FAILS! d2_lot2_copy = _mk_d2_lot(2, readout2_evidence=_mk_r8_readout2(matched_comparator_id="CTRL-LOT-2", block_prefix="D2L2", meas_id="MEAS-D2-LOT-2", lot_jitter=1.0)) chk("FAIL_CHECK_D2_IDENTICAL_NUMERICAL_ARRAYS_ACROSS_LOTS:D2-LOT-2" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "check_d2_per_lot_records": [_mk_d2_lot(1), d2_lot2_copy, _mk_d2_lot(3)]})["failures"], "ADV_G43_d2_identical_numeric_arrays_fails") # 24. D-3(b) missing F3 knockdown target engagement (< 60%) FAILS! chk("FAIL_CHECK_D3B_TARGET_ENGAGEMENT_F3_KD_BELOW_60PCT" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "d3b_pilot_receipt": _sign_receipt({**d3b_rcpt_a, "f3_kd_pct_in_pilot": 20.0})})["failures"], "ADV_G43_d3b_low_f3_kd_fails") # 25. D-3(b) assay acquired before prerequisite FAILS! chk("FAIL_CHECK_D3B_ASSAY_ACQUIRED_BEFORE_GATE-31" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "d3b_pilot_receipt": _sign_receipt({**d3b_rcpt_a, "assay_acquired_at_utc": "2026-10-12T09:40:00Z"})})["failures"], "ADV_G43_d3b_acquired_before_g31_fails") # 26. D-3(b) ASSEMBLED_ROUTE_QUALIFICATION without D-3(a) evaluated FAILS! g43_no_d3a = {k: v for k, v in g43_full_a.items() if k != "check_d3a_per_lot_records"} g43_no_d3a["check_d3a_status"] = "NOT_ATTEMPTED" chk("FAIL_CHECK_D3B_ASSEMBLED_REQUIRES_D3A_EVALUATED_FIRST" in evaluate_gate43_cellgemma_guardrails_and_pilots(g43_no_d3a)["failures"], "ADV_G43_d3b_assembled_requires_d3a_fails") # 27. GATE-36 live GATE-32 residual class-II > 0.30 OR exogenous shield not excluded FAILS! chk("FAIL_FOUNDRY_V2_GATE36_LIVE_GATE32_RESIDUAL_CLASS2_EXCEEDS_0P30" 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, "residual_class2_recall_u95_frac": 0.35})})})["failures"], "ADV_G42_g36_g32_residual_class2_fails") chk("FAIL_FOUNDRY_V2_GATE36_EXOGENOUS_SHIELD_NOT_EXCLUDED" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "foundry_v2_gate36_evidence": _sign_receipt({**g36_y, "exogenous_shield_excluded_from_drug_free_scope": False})})["failures"], "ADV_G42_g36_exogenous_shield_excluded_fails") # 28. GY / Coated deferred X/R1 GATE-31 missing quantitative coating stability FAILS! g31_x_nocoat = _sign_receipt({k: v for k, v in g31_x.items() if k != "coating_stability_evidence"}) chk("FAIL_DEFERRED_X_R1_GATE31_MISSING_QUANTITATIVE_COATING_STABILITY_EVIDENCE" in evaluate_gate40_pirfenidone_h4({**g40_x, "gate31_evidence": g31_x_nocoat})["failures"], "ADV_G40_x_r1_missing_coating_stability_fails") # ======================================================================== # ADVERSARIAL REGRESSION SUITE (22 NEW TESTS -> 461/461 TOTAL!) # Adversarial fail-closed invariant regression tests. # ======================================================================== # --- Shared DEC-134 Raw Washout Trace Reconciliation (3 tests) --- # 1. Contradictory DEC-134 raw washout trace (95% @ 4.5m, 90% @ 11m, 80% @ 15m, claiming t50=3.6, t90=9.2) FAILS in GATE-43 D-2! r2_bad_w = _mk_r8_readout2(matched_comparator_id="CTRL-LOT-1", block_prefix="D2L1", meas_id="MEAS-D2-LOT-1", lot_jitter=1.0) r2_bad_w["dec134_washout_time_min_series"] = [0.0, 4.5, 11.0, 15.0, 20.0] r2_bad_w["dec134_washout_remaining_peak_pct_series"] = [100.0, 95.0, 90.0, 80.0, 5.0] r2_bad_w["dec134_washout_raw_trace_sha256"] = sha256_bytes(canonical_json_bytes({"time_min": r2_bad_w["dec134_washout_time_min_series"], "remaining_peak_pct": r2_bad_w["dec134_washout_remaining_peak_pct_series"]})) r2_bad_w["dec134_washout_tail_remaining_pct"] = 5.0 chk("FAIL_CHECK_D2_D2-LOT-1_READOUT2_DEC134_WASHOUT_TAIL_FAILED" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "check_d2_per_lot_records": [_mk_d2_lot(1, readout2_evidence=r2_bad_w), _mk_d2_lot(2), _mk_d2_lot(3)]})["failures"], "ADV_shared_r2_contradictory_dec134_trace_fails") # 2. Tampered DEC-134 raw_trace_sha256 FAILS in Readout-2! r2_bad_wsha = _mk_r8_readout2(matched_comparator_id="CTRL-LOT-1", block_prefix="D2L1", meas_id="MEAS-D2-LOT-1", lot_jitter=1.0) r2_bad_wsha["dec134_washout_raw_trace_sha256"] = "9" * 64 chk("FAIL_CHECK_D2_D2-LOT-1_READOUT2_DEC134_WASHOUT_TAIL_FAILED" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "check_d2_per_lot_records": [_mk_d2_lot(1, readout2_evidence=r2_bad_wsha), _mk_d2_lot(2), _mk_d2_lot(3)]})["failures"], "ADV_shared_r2_tampered_dec134_sha_fails") # 3. Contradictory DEC-134 raw washout trace in GATE-31 whole_device_washout_dec134 FAILS! g31_bad_w = _sign_receipt({**g31_a_42, "whole_device_washout_dec134": {**g31_a_42["whole_device_washout_dec134"], "time_min_series": [0.0, 4.5, 11.0, 15.0, 20.0], "remaining_peak_pct_series": [100.0, 95.0, 90.0, 80.0, 5.0], "raw_trace_sha256": sha256_bytes(canonical_json_bytes({"time_min": [0.0, 4.5, 11.0, 15.0, 20.0], "remaining_peak_pct": [100.0, 95.0, 90.0, 80.0, 5.0]})), "tail_remaining_pct": 5.0}}) chk("FAIL_R1_GATE31_DEC134_WASHOUT_FAILED" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "gate31_evidence": g31_bad_w})["failures"], "ADV_shared_g31_contradictory_dec134_trace_fails") # --- GATE-40 Regressions (6 tests) --- # 4. Exact monotone 24-h supremum on [0, 12, 36, 48] / [0, 0, 1, 2] returns 2.0 mg (never 1.0 mg!) chk(abs(_recompute_max_24h_cumulative_mg([0.0, 12.0, 36.0, 48.0], [0.0, 0.0, 1.0, 2.0]) - 2.0) < 1e-9, "ADV_G40_exact_monotone_24h_supremum_2p0mg") # 5. A-1 t50 crossing bracket straddling 7.0 d (e.g. [5.0, 9.0] d) HOLDS even when declared t50=8.0 d! tr_strad_t = [0.0, 1.0, 3.0, 6.0, 12.0, 24.0, 48.0, 120.0, 216.0, 336.0, 528.0, 840.0] tr_strad_m = [0.0, 0.2, 0.45, 0.75, 1.2, 1.8, 3.0, 7.0, 10.5, 13.5, 16.3, 17.6] # half=8.8 crosses inside [120h=5d, 216h=9d]! chk("HOLD_GATE_A1_T50_CROSSING_BRACKET_STRADDLES_7_TO_14D_WINDOW" in evaluate_gate40_pirfenidone_h4({**g40_ok, "a1_evidence": _sign_receipt({**a1_y, "elution_time_hours": tr_strad_t, "cumulative_intact_parent_released_mg": tr_strad_m, "elution_t50_days": 8.0})})["holds"], "ADV_G40_a1_t50_straddling_bracket_holds") # 6. Raw recomputed Day-35 exhaustion <= 90% (1.90/18.75=10.13% residual -> 89.87% exh) FAILS even if declared 90.2%! chk("FAIL_GATE_A1_RAW_RECOMPUTED_DAY35_EXHAUSTION_LE_90PCT" in evaluate_gate40_pirfenidone_h4({**g40_ok, "a1_evidence": _sign_receipt({**a1_y, "day35_residual_parent_mg": 1.90, "day35_residual_parent_pct": 9.8, "day35_depot_exhaustion_pct": 90.2, "day35_terminal_mass_recovery_pct": 104.0})})["failures"], "ADV_G40_a1_raw_recomp_day35_le90_fails") # 7. Gap: A-0a raw concentration-response ceiling above max safe tested FAILS! chk("FAIL_GATE_A0A_RAW_CONC_RESPONSE_CONTRADICTS_BRACKET_OR_CEILING" in evaluate_gate40_pirfenidone_h4({"phase": "ROUTE_FREE_A0A", "a0a_evidence": _sign_receipt({**a0a_ok, "cc10_free_7d_l95_uM": 400.0, "c_sprout_max_free_7d_l95_uM": 380.0, "c_upper_provisional_7d_l95_uM": 380.0})})["failures"], "ADV_G40_a0a_ceiling_above_safe_tested_fails") # 8. Gap: A-4a missing >= 3 donor pairs FAILS! chk("FAIL_GATE_A4A_REQUIRES_AT_LEAST_3_DONOR_PAIRS" in evaluate_gate40_pirfenidone_h4({**g40_ok, "a4a_evidence": _sign_receipt({**a4a_y, "donor_pair_records": a4a_y["donor_pair_records"][:2]})})["failures"], "ADV_G40_a4a_lt3_donor_pairs_fails") # 9. Gap: A-4b longitudinal shared animal with mismatched implanted_at_utc FAILS! prereg_l10, coh_l10 = _mk_r8_a4b_prereg_and_cohorts(py, by, ly, ry, a4a_y, coat_a, mode="VALIDATED_NONTERMINAL_LONGITUDINAL_IMAGING") coh_l10_bad = {**coh_l10, "day28_cohort_records": [{**coh_l10["day28_cohort_records"][0], "implanted_at_utc": "2026-12-20T09:00:00Z"}, *coh_l10["day28_cohort_records"][1:]]} chk("FAIL_GATE_A4B_LONGITUDINAL_IMPLANT_EVENT_MISMATCH:L-COAT-01" in evaluate_gate40_pirfenidone_h4({**g40_ok, "a4b_preregistration_receipt": prereg_l10, "a4b_evidence": _sign_receipt({**a4b_y, "prerequisite_receipt_sha256s": {**pr_all_y, "A-4b-PREREGISTRATION": prereg_l10["receipt_sha256"]}, **coh_l10_bad})})["failures"], "ADV_G40_a4b_longitudinal_implant_mismatch_fails") # --- GATE-41 Regressions (6 tests) --- # 10. B-0a claiming 49 nM C_safe_max when last tested safe is 25 nM (first unsafe 50 nM) FAILS! chk("FAIL_GATE_B0A_CSAFE_EXCEEDS_QUALIFIED_TESTED_SAFE_CONC" in evaluate_gate41_deucravacitinib_tyk2({"phase": "ROUTE_FREE_B0A", "b0a_evidence": _sign_receipt({**b0a_ok, "c_safe_max_bench_l95_free_nM": 49.0})})["failures"], "ADV_G41_b0a_49nM_above_25nM_safe_fails") # 11. B-0a-exact claiming 44 nM when last tested safe cassette conc is 22 nM FAILS! chk("FAIL_GATE_B0A_EXACT_CSAFE_EXCEEDS_QUALIFIED_TESTED_SAFE_CONC" in evaluate_gate41_deucravacitinib_tyk2({**g41_ok, "b0a_exact_evidence": _sign_receipt({**b0a_ex_y, "c_safe_max_exact_l95_free_nM": 44.0})})["failures"], "ADV_G41_b0a_exact_44nM_above_22nM_safe_fails") # 12. Short first gap (3 h) + wide later gap (72 h) with t_half=10h (ke=0.0693, kr=0.0693) breaches local ceiling! def _mk_env_t(**kw: Any) -> dict[str, Any]: eb = { "coating_article_id": "ART-DEUC-R3P-01", "evidence_scope": "bench_unedited", "compartment_id": "BENCH_ELUTION_RECIRCULATION", "envelope_qualification_method": "DENSE_PILOT_TIMECOURSE_BOUND", "pilot_sampling_max_gap_h": 1.0, "k_elim_bmt_max_per_h": 0.020, "k_rise_bmt_max_per_h": 0.020, "burst_phase_covered": True, "washout_phase_covered": True, "source_study_ids": ["PK-TEST-1"], **kw, } return {**eb, "envelope_receipt_sha256": sha256_bytes(canonical_json_bytes(eb))} env_late_pk = _validate_and_apply_continuous_pk_envelope( _mk_env_t(k_elim_local_max_per_h=0.0693, k_rise_local_max_per_h=0.0693, k_elim_parent_max_per_h=0.0693, k_rise_parent_max_per_h=0.0693, k_elim_sys_max_per_h=0.0693, k_rise_sys_max_per_h=0.0693, efficacy_window_start_h=0.0, envelope_model_sha256="a" * 64), hours_seen=[3.0, 75.0, 240.0], u_local_series=[2.0, 0.758, 0.5], l_parent_all_series=[1.5, 0.5, 0.3], u_sys_series=[0.1, 0.1, 0.05], max_efficacy_start_h=6.0, fails=[], holds=[], prefix="T", ) chk(env_late_pk is not None and env_late_pk[0] > 3.0, "ADV_G41_continuous_late_gap_peak_catches_hidden_spike") # 13. Systemic 0.348 nM after 12-h gap with 10-h half-life (ke_sys=0.0693) breaches 0.50 nM cap (>= 0.80 nM)! env_sys_pk = _validate_and_apply_continuous_pk_envelope( _mk_env_t(k_elim_local_max_per_h=0.012, k_rise_local_max_per_h=0.002, k_elim_parent_max_per_h=0.012, k_rise_parent_max_per_h=0.002, k_elim_sys_max_per_h=0.0693, k_rise_sys_max_per_h=0.0693, efficacy_window_start_h=0.0, envelope_model_sha256="a" * 64), hours_seen=[12.0, 24.0, 240.0], u_local_series=[10.0, 9.0, 8.0], l_parent_all_series=[8.0, 7.0, 6.5], u_sys_series=[0.348, 0.20, 0.05], max_efficacy_start_h=6.0, fails=[], holds=[], prefix="T", ) chk(env_sys_pk is not None and env_sys_pk[2] >= 0.50, "ADV_G41_continuous_systemic_envelope_catches_0p80nM_peak") # 14. B-0b loaded API below quantitative mass requirement FAILS! chk("FAIL_GATE_B0B_LOADED_API_BELOW_QUANTITATIVE_MASS_REQUIREMENT" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b0b_evidence": _sign_receipt({**b0b_y, "loaded_api_mass_mg": 0.5})})["failures"], "ADV_G41_b0b_insufficient_loaded_api_fails") # 15. B-2b missing local_measurement_includes_recirculation flag FAILS! chk("FAIL_GATE_B2B_BENCH_MISSING_RECIRCULATION_ACCOUNTING_FLAG" in evaluate_gate41_deucravacitinib_tyk2({**g41_bench, "b2b_bench_evidence": _sign_receipt({k: v for k, v in b2bb_y.items() if k != "local_measurement_includes_recirculation"})})["failures"], "ADV_G41_b2b_missing_recirc_flag_fails") # --- GATE-42 Regressions (4 tests) --- # 16. Stage-2 block study_start_utc predating Stage-1 decision_recorded_at_utc FAILS! att_s2_early = _sign_receipt({**att_y, "stage2_block_manifest": [{**att_y["stage2_block_manifest"][0], "study_start_utc": "2026-09-14T07:00:00Z"}, *att_y["stage2_block_manifest"][1:]]}) chk("FAIL_IIP0049_STAGE2_STARTED_BEFORE_STAGE1_DECISION:0" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": att_s2_early})["failures"], "ADV_G42_stage2_predates_stage1_fails") # 17. Adverse raw caspase-9 increase (mean(ctrl-tr) < 0) with mean % reduction >= 40% FAILS (cannot corroborate protection!) c1_adv = {**c1_norm_6, "casp9_stressed_ctrl_raw_by_block": [10.0, 10.0, 10.0, 10.0, 10.0, 1000.0], "casp9_treated_raw_by_block": [4.0, 4.0, 4.0, 4.0, 4.0, 1300.0], "casp9_reduction_pct_by_block": [60.0, 60.0, 60.0, 60.0, 60.0, -30.0]} chk("FAIL_GATE_C1_NORMOXIA_ADVERSE_OR_ZERO_RAW_CASP9_DIRECTION" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c1_evidence": _sign_receipt({**c1_y, "c1_normoxia": c1_adv})})["failures"], "ADV_G42_c1_adverse_raw_casp9_direction_fails") # 18. Missing keyed reference_comparator_measurements FAILS! chk("FAIL_IIP0049_MISSING_KEYED_REFERENCE_COMPARATOR_MEASUREMENTS" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "iip0049_foundry_attribution_evidence": _sign_receipt({**att_y, "reference_comparator_measurements": None})})["failures"], "ADV_G42_missing_keyed_comparator_meas_fails") # 19. GATE-42 C-3-NK missing mandatory SIRPa-low NK endpoint FAILS! chk("FAIL_GATE_C3_NK_READOUT3B_R1_SIRPA_LOW_LYSIS_GT_10PCT:NK-D1" in evaluate_gate42_gy032_channel_c_screen({**g42_ok, "c3_nk_evidence": _sign_receipt({**c3_nk_y, "readout3b_evidence": _mk_r8_readout3b(include_sirpa_low=False)})})["failures"], "ADV_G42_c3_nk_missing_sirpa_low_fails") # --- GATE-43 Regressions (3 tests) --- # 20. D-3(a) missing timestamps FAILS; D-3(b) assembled missing D-3(a) digest binding OR predating D-3(a) FAILS! chk("FAIL_CHECK_D3A_INVALID_OR_MISSING_TIMESTAMPS:IEC-LOT-1" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "check_d3a_per_lot_records": [_sign_receipt({k: v for k, v in d3a_ok_lots[0].items() if k not in ("assay_acquired_at_utc", "recorded_at_utc")}), d3a_ok_lots[1], d3a_ok_lots[2]]})["failures"], "ADV_G43_d3a_missing_timestamps_fails") chk("FAIL_CHECK_D3B_ASSEMBLED_MISSING_D3A_RECEIPT_DIGEST_BINDING" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "d3b_pilot_receipt": _sign_receipt({k: v for k, v in d3b_rcpt_a.items() if k != "d3a_lot_receipt_sha256s"})})["failures"], "ADV_G43_d3b_missing_d3a_digest_pin_fails") # 21. D-2 reused matched_control_lot_id across independent lots FAILS! chk("FAIL_CHECK_D2_REUSED_MATCHED_CONTROL_LOT_ACROSS_LOTS:D2-LOT-2" in evaluate_gate43_cellgemma_guardrails_and_pilots({**g43_full_a, "check_d2_per_lot_records": [_mk_d2_lot(1), _mk_d2_lot(2, mctrl_override="CTRL-LOT-1"), _mk_d2_lot(3)]})["failures"], "ADV_G43_d2_reused_ctrl_lot_fails") # ======================================================================== # ADVERSARIAL REGRESSION SUITE (24 NEW TESTS -> 485/485 TOTAL!) # Adversarial fail-closed invariant regression tests. # ======================================================================== # --- Shared Live Readout-2 Parity (4 tests) ---