data/protocols/iip0056_route4_omentum_exvivo_side_contract_v0.9.0.json
Use this file in any AI chat (paste-only or attachment-capable):
Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/data/protocols/iip0056_route4_omentum_exvivo_side_contract_v0.9.0.json · SHA-256: 38b7677a8eafacf6…
// RFC 6901 JSON Pointer: /executable_stage0_and_stage1_gates/stage1_subject_roster_schema
{
"stage1_subject_roster_schema": {
"porcine_subjects_r4o04": {
"min_n": 6,
"archive_binding": "Archived inside current_assay_evidence_record and strictly reconciled against caller payload.",
"canonical_subject_id_deduplication": "Strict ASCII canonical identifier matching ^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$ (isascii(), NFKC==raw, zero C*/Z*/M* Unicode categories), deduplicated case-insensitively after NFKC and C*/Z*/M* stripping (malformed, non-ASCII, whitespace, or canonical duplicate -> FAIL).",
"required_measurement_date_fields": {
"followup_duration_days": "finite non-bool number >= 60.0 (missing/None -> HOLD; < 60.0 -> FAIL)",
"capsule_sampling_day": "finite non-bool number in [60.0, followup_duration_days] (missing/None -> HOLD; < 60.0 or > followup_duration_days -> FAIL)",
"retrieval_assessment_day": "finite non-bool number in [60.0, followup_duration_days] (missing/None -> HOLD; < 60.0 or > followup_duration_days -> FAIL)"
},
"required_typed_monitored_complication_fields": {
"bowel_obstruction_event": "strict bool == false (missing/None -> HOLD; non-bool or true -> FAIL)",
"omental_torsion_event": "strict bool == false (missing/None -> HOLD; non-bool or true -> FAIL)",
"grade3_adhesion_event": "strict bool == false (missing/None -> HOLD; non-bool or true -> FAIL)",
"monitored_complications": "list[str] == [] (missing/None -> HOLD; non-list/malformed or non-empty -> FAIL)"
},
"alias_group_conflict_rule": "All non-None values present across canonical key and every alias in the same date or complication group MUST agree pairwise (even when canonical key is absent); any intra-group disagreement emits FAIL (PORCINE_CONFLICTING_DATE_ALIAS_GROUP / PORCINE_CONFLICTING_COMPLICATION_ALIAS_GROUP).",
"derived_group_reconciliation": "derived_porcine_zero_complications and derived_porcine_eligible_visit_n are computed directly from the verified archived roster; porcine_r4o04_zero_bowel_obstruction_torsion_grade3_adhesions==true with derived_porcine_zero_complications==false emits FAIL (PORCINE_COMPLICATION_CONTRADICTS_AGGREGATE_ATTESTATION).",
"defensive_alias_keys_checked": [
"followup_days",
"capsule_histology_day",
"capsule_day",
"retrieval_day",
"bowel_obstruction",
"omental_torsion",
"torsion",
"grade3_adhesion",
"grade3_adhesions",
"adverse_events",
"complications"
]
},
"nhp_subjects_r4o05": {
"min_n": 4,
"max_post_omentectomy_cpeptide_extinction_window_days": 14,
"date_boundary_arithmetic_precision": "EXACT_DECIMAL_ZERO_TOLERANCE",
"json_input_precision_contract": "EXACT_LEXICAL_DECIMAL_PARSE_FLOAT_DECIMAL",
"authoritative_input_precision_rule": "load_strict_json_text parses every JSON floating-point lexical token directly with parse_float=Decimal (rejecting duplicate keys and non-finite NaN/Infinity constants) without casting through IEEE-754 float64; _is_finite_number, _to_exact_decimal, _dec_diff_exceeds, canonical_json_dumps, and _strict_json_equal enforce 100% context-independent Decimal bounds (is_finite, is_zero, adjusted in [-10000, 100], copy_abs <= 1e100) BEFORE any context-dependent arithmetic or float() cast so hostile extreme finite JSON exponents (e.g. 1e1000, 1e99999999, -1e99999999, 1e-99999999, 9.999999999999999e+99999999) NEVER raise decimal.Overflow in either record_id or archive_sha256 store modes and ALWAYS return structured FAIL (promotion_authorized=false), while preserving every exact Decimal digit across hashing, trusted-store lookups, alias consistency, and validation (maintaining bit-for-bit SHA-256 parity for IEEE-754 float64 tokens while distinguishing sub-ULP lexical values such as 104.000000000000001 vs 104.0). In-memory Python Decimal and int values are preserved verbatim; in-memory Python float values are converted via shortest round-trip Decimal(str(val)), so callers requiring sub-ULP (<1e-14) precision MUST pass Decimal or parse raw JSON via load_strict_json_text.",
"prompt_post_omentectomy_assessment_rule": "Exact arbitrary-precision decimal.Decimal closed interval Decimal('0') <= (cpeptide_extinction_assessment_day - omentectomy_day) <= Decimal('14') days (and <= followup_duration_days) preserved end-to-end from raw JSON lexical parsing (parse_float=Decimal) through canonical hashing, trusted-store resolution (both record_id and archive_sha256 modes), normalization, and validation with ZERO ungoverned epsilon/tolerance across all canonical and alias chronological bounds; any delta < 0 (even -1e-15 d = -86.4 ps or -5e-10 d = -43.2 us) FAILS with NHP_CPEP_EXTINCTION_PRECEDES_OMENTECTOMY_PROCEDURE, and any delta > 14 (even 14 + 1e-15 d = +86.4 ps, e.g. lexical JSON 104.000000000000001 vs 90, or 14 + 5e-10 d = +43.2 us) FAILS with NHP_CPEP_EXTINCTION_EXCEEDS_14D_PROMPT_WINDOW.",
"archive_binding": "Archived inside current_assay_evidence_record and strictly reconciled against caller payload.",
"canonical_subject_id_deduplication": "Strict ASCII canonical identifier matching ^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$ (isascii(), NFKC==raw, zero C*/Z*/M* Unicode categories), deduplicated case-insensitively after NFKC and C*/Z*/M* stripping (malformed, non-ASCII, whitespace, or canonical duplicate -> FAIL); omentectomy_procedure_id likewise strict ASCII canonical and unique per cohort.",
"required_procedure_and_extinction_tuple_rule": "Post-explant C-peptide extinction (graft localization) is scored INDEPENDENTLY from full insulin independence (efficacy): whenever achieved_insulin_independence==true OR ANY procedure/extinction field or alias is non-None on ANY subject (including partial responders who remain on residual exogenous insulin), require ONE complete internally consistent canonical tuple in the verified archived row (omentectomy_performed==true, unique canonical omentectomy_procedure_id, exact Decimal 90<=omentectomy_day<=followup_duration_days, cpeptide_extinction_subject_id==subject_id, cpeptide_extinction_procedure_id==omentectomy_procedure_id, exact Decimal 0<=cpeptide_extinction_assessment_day-omentectomy_day<=14 with zero ungoverned tolerance and <=followup_duration_days, explicit non-None strict boolean post_omentectomy_cpeptide_extinguished reconciled with caller and all outcome aliases, AND when extinguished==true, mandatory paired assay fields lloq_c_peptide_ng_ml > 0, pre_explant_stimulated_c_peptide_ng_ml > lloq_c_peptide_ng_ml, and post_explant_stimulated_c_peptide_ng_ml <= lloq_c_peptide_ng_ml). A partial responder with verified paired C-peptide extinction passes localization cleanly (incrementing derived_nhp_cpeptide_extinction_verified_count) WITHOUT inflating derived_nhp_qualified_ii_count. Missing/None post_omentectomy_cpeptide_extinguished, missing paired C-peptide/LLOQ fields, or any incomplete tuple field -> HOLD (MISSING_NHP_POST_OMENTECTOMY_EXTINCTION_OUTCOME / MISSING_NHP_PAIRED_STIMULATED_CPEPTIDE_OR_LLOQ + NHP_INCOMPLETE_PROCEDURE_OR_EXTINCTION_TUPLE); pre<=LLOQ or post>LLOQ -> FAIL; clean documented Day-90 nonresponder without procedure allows omitted/None extinction fields ONLY when omentectomy_performed in (None, False) AND ALL procedure/extinction dates, IDs, and outcome aliases are None.",
"alias_group_conflict_rule": "All non-None values present across canonical key and every alias in the same date, performed-flag, extinction-outcome, procedure-ID, extinction-subject-ID, or complication group MUST agree pairwise (exact Decimal equality for dates, exact value for bools/IDs, even when canonical key is absent); any intra-group disagreement emits FAIL (NHP_CONFLICTING_DATE_ALIAS_GROUP, NHP_CONFLICTING_OMENTECTOMY_PERFORMED_ALIAS_GROUP, NHP_CONFLICTING_EXTINCTION_OUTCOME_ALIAS_GROUP, NHP_CONFLICTING_PROCEDURE_ID_ALIAS_GROUP, NHP_CONFLICTING_EXTINCTION_SUBJECT_ID_ALIAS_GROUP, NHP_CONFLICTING_EXTINCTION_PROCEDURE_ID_ALIAS_GROUP, NHP_CONFLICTING_COMPLICATION_ALIAS_GROUP).",
"required_responder_omentectomy_procedure_and_binding_fields": {
"omentectomy_performed": "strict bool == true whenever responder or any procedure/extinction evidence is supplied (missing/None -> HOLD; non-bool or false alongside responder or procedure/extinction data -> FAIL); None or false (with zero procedure/extinction dates, IDs, or positive outcomes) allowed on clean documented Day-90 nonresponders",
"omentectomy_procedure_id": "strict ASCII canonical string ^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$ unique per cohort whenever responder or any procedure/extinction evidence is supplied (missing/None -> HOLD; malformed or duplicate -> FAIL)",
"omentectomy_day": "finite non-bool number in exact Decimal [90, followup_duration_days] whenever responder or any procedure/extinction evidence is supplied (missing/None -> HOLD; < 90 or > followup_duration_days -> FAIL)",
"cpeptide_extinction_subject_id": "strict ASCII canonical string matching that exact row's subject_id whenever responder or any procedure/extinction evidence is supplied (missing/None -> HOLD; malformed or mismatch -> FAIL NHP_EXTINCTION_SUBJECT_ID_MISMATCH)",
"cpeptide_extinction_procedure_id": "strict ASCII canonical string matching that exact row's omentectomy_procedure_id whenever responder or any procedure/extinction evidence is supplied (missing/None -> HOLD; malformed or mismatch -> FAIL NHP_EXTINCTION_PROCEDURE_ID_MISMATCH)",
"post_omentectomy_cpeptide_extinguished": "required explicit non-None strict boolean in the verified archived row whenever achieved_insulin_independence==true OR any procedure/extinction claim or outcome alias is present (true on responders; true or false allowed on partial responders/nonresponders with complete tuple, scored independently of full insulin independence; when true, requires paired lloq_c_peptide_ng_ml > 0, pre_explant_stimulated_c_peptide_ng_ml > lloq, and post_explant_stimulated_c_peptide_ng_ml <= lloq; omitted/None -> HOLD MISSING_NHP_POST_OMENTECTOMY_EXTINCTION_OUTCOME + NHP_INCOMPLETE_PROCEDURE_OR_EXTINCTION_TUPLE); None allowed ONLY on clean documented Day-90 nonresponders with omentectomy_performed in (None, False) and ALL procedure/extinction dates, IDs, and outcome aliases None"
},
"required_measurement_date_fields": {
"followup_duration_days": "exact Decimal finite non-bool number >= 90 on responders and documented Day-90 nonresponders (missing/None -> HOLD; < 90 responder -> FAIL; < 90 right-censored nonresponder with unsampled capsule -> HOLD)",
"capsule_sampling_day": "exact Decimal finite non-bool number in [90, followup_duration_days] with zero ungoverned tolerance on every NHP subject (missing/None -> HOLD; < 90 or > followup_duration_days -> FAIL)",
"cpeptide_extinction_assessment_day": "required finite non-bool number with exact Decimal omentectomy_day <= cpeptide_extinction_assessment_day <= min(followup_duration_days, omentectomy_day + Decimal('14')) (and >= 90, ZERO ungoverned epsilon/tolerance) whenever achieved_insulin_independence==true OR any procedure/extinction evidence is supplied (missing/None -> HOLD; < 90, > followup_duration_days, delta < 0 -> FAIL NHP_CPEP_EXTINCTION_PRECEDES_OMENTECTOMY_PROCEDURE; delta > 14 -> FAIL NHP_CPEP_EXTINCTION_EXCEEDS_14D_PROMPT_WINDOW); None allowed ONLY on clean documented Day-90 nonresponders with zero procedure/extinction fields or aliases supplied",
"portal_gradient_assessment_day": "required finite non-bool number with exact Decimal 90 <= portal_gradient_assessment_day <= omentectomy_day (and <= followup_duration_days, zero ungoverned tolerance) when achieved_insulin_independence==true (missing/None -> HOLD; < 90, > followup_duration_days, or > omentectomy_day -> FAIL NHP_PORTAL_GRADIENT_POST_OMENTECTOMY_INVALID); None allowed for documented Day-90 nonresponders (validated if non-None)"
},
"required_typed_monitored_complication_fields": {
"bowel_obstruction_event": "strict bool == false (missing/None -> HOLD; non-bool or true -> FAIL)",
"omental_torsion_event": "strict bool == false (missing/None -> HOLD; non-bool or true -> FAIL)",
"grade3_adhesion_event": "strict bool == false (missing/None -> HOLD; non-bool or true -> FAIL)",
"monitored_complications": "list[str] == [] (missing/None -> HOLD; non-list/malformed or non-empty -> FAIL)"
},
"defensive_alias_keys_checked": [
"followup_days",
"capsule_histology_day",
"capsule_day",
"procedure_day",
"explant_day",
"omentectomy_procedure_day",
"explant_omentectomy_day",
"graft_explant_day",
"partial_omentectomy_day",
"retrieval_day",
"retrieval_assessment_day",
"cpeptide_extinction_day",
"post_omentectomy_cpeptide_assessment_day",
"post_omentectomy_cpeptide_extinction_day",
"portal_gradient_day",
"procedure_id",
"extinction_subject_id",
"extinction_procedure_id",
"bowel_obstruction",
"omental_torsion",
"torsion",
"grade3_adhesion",
"grade3_adhesions",
"adverse_events",
"complications"
]
}
}
}