{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://alignedaccelerationism.com/specs/epistemic-pluralism-protocol-v0.3.schema.json",
  "title": "Contestable Decision Briefing Packet (CDBP) v0.3",
  "description": "Formal JSON Schema (Draft 2020-12) for OP-03 (Preventing Subtle Cognitive Capture). Specifies a machine-verifiable Contestable Decision Briefing Packet binding multi-provider cross-lineage declarations, tamper-evident non-AI primary sources, verbatim claim-to-source argument graphs, mandatory adversarial red-team critiques, Factual/Causal/Value disagreement decomposition, randomized framing/blinding metadata, human steelman comprehension checks, and panel preference-stability audit records.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "packet_id",
    "created_at",
    "decision_context",
    "non_ai_primary_source_corpus",
    "model_lineage_registry",
    "claim_source_graph",
    "adversarial_red_team_critique",
    "disagreement_decomposition",
    "framing_and_blinding_control",
    "steelman_comprehension_gate",
    "preference_stability_audit"
  ],
  "properties": {
    "schema_version": {
      "const": "0.3.0",
      "description": "Semantic version of the Epistemic Pluralism Protocol schema."
    },
    "packet_id": {
      "type": "string",
      "pattern": "^cdbp-[a-z0-9][a-z0-9-]{7,63}$",
      "description": "Globally unique, URL-safe identifier for this Contestable Decision Briefing Packet."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "RFC 3339 UTC timestamp when the briefing packet was frozen prior to panel review."
    },
    "decision_context": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "title",
        "decision_question",
        "domain",
        "stakes_tier",
        "reversibility_classification",
        "neutral_prompt_attestation"
      ],
      "properties": {
        "title": {
          "type": "string",
          "minLength": 5,
          "maxLength": 200
        },
        "decision_question": {
          "type": "string",
          "minLength": 15,
          "maxLength": 1000,
          "description": "Neutral, non-leading formulation of the decision under review."
        },
        "domain": {
          "type": "string",
          "enum": [
            "legislation_and_regulation",
            "public_budget_and_procurement",
            "science_and_public_health",
            "infrastructure_and_safety",
            "organizational_strategy",
            "ai_governance_and_deployment",
            "civic_deliberation",
            "other"
          ]
        },
        "stakes_tier": {
          "type": "string",
          "enum": [
            "advisory",
            "institutional",
            "high_consequence_irreversible"
          ],
          "description": "Governs mandatory thresholds for lineage independence, steelman gating, and stability audits."
        },
        "reversibility_classification": {
          "type": "string",
          "enum": [
            "fully_reversible_pilot",
            "costly_reversible",
            "practically_irreversible"
          ]
        },
        "sunset_or_review_date": {
          "type": "string",
          "format": "date",
          "description": "Scheduled review or sunset checkpoint for bounded policy/strategy commitments."
        },
        "neutral_prompt_attestation": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "user_prior_leaning_stripped",
            "symmetric_option_labeling",
            "prompt_template_sha256"
          ],
          "properties": {
            "user_prior_leaning_stripped": {
              "const": true,
              "description": "Certifies that leading preference cues were removed from system/user prompts to suppress RLHF sycophancy."
            },
            "symmetric_option_labeling": {
              "type": "boolean",
              "description": "True when candidate options use neutral identifiers rather than loaded value labels."
            },
            "prompt_template_sha256": {
              "$ref": "#/$defs/sha256Hex",
              "description": "SHA-256 digest of the exact frozen prompt kit executed for this packet."
            }
          }
        }
      }
    },
    "non_ai_primary_source_corpus": {
      "type": "array",
      "minItems": 1,
      "description": "Frozen registry of authoritative, non-AI-synthesized primary records anchoring all empirical claims and preventing circular citation laundering.",
      "items": {
        "$ref": "#/$defs/primarySourceRecord"
      }
    },
    "model_lineage_registry": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "participants",
        "cross_lineage_independence_attestation"
      ],
      "properties": {
        "participants": {
          "type": "array",
          "minItems": 2,
          "description": "All AI model lineages and human domain anchors participating in Role A, Role B, and Role C.",
          "items": {
            "$ref": "#/$defs/lineageParticipant"
          }
        },
        "cross_lineage_independence_attestation": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "role_a_and_b_distinct_provider_org",
            "role_a_and_b_distinct_pretraining_base",
            "role_a_and_b_distinct_post_training_pipeline",
            "role_a_and_b_context_isolated",
            "known_shared_corpus_or_distillation_risks"
          ],
          "properties": {
            "role_a_and_b_distinct_provider_org": {
              "type": "boolean",
              "description": "True if Role A and Role B were produced by distinct model-developing organizations."
            },
            "role_a_and_b_distinct_pretraining_base": {
              "type": "boolean",
              "description": "True if Role A and Role B do not share base pretraining checkpoints or fine-tuned weight ancestry."
            },
            "role_a_and_b_distinct_post_training_pipeline": {
              "type": "boolean",
              "description": "True if Role A and Role B use independent RLHF/DPO/constitutional reward pipelines."
            },
            "role_a_and_b_context_isolated": {
              "const": true,
              "description": "Mandatory invariant: Role A and Role B never share interactive chat history or user preference telemetry."
            },
            "human_domain_anchor_included": {
              "type": "boolean",
              "description": "True if at least one independent human subject-matter expert contributed an unassisted anchor memo or audit."
            },
            "known_shared_corpus_or_distillation_risks": {
              "type": "string",
              "minLength": 10,
              "description": "Honest disclosure of residual correlated blind spots (e.g., overlapping public web pretraining data or shared benchmark optimization)."
            }
          }
        }
      }
    },
    "claim_source_graph": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "primary_brief_participant_id",
        "primary_thesis_summary",
        "word_count",
        "claims",
        "relations",
        "unverified_or_missing_evidence_gaps"
      ],
      "properties": {
        "primary_brief_participant_id": {
          "type": "string",
          "pattern": "^part-[a-z0-9-]+$",
          "description": "References the Role A participant_id in model_lineage_registry."
        },
        "primary_thesis_summary": {
          "type": "string",
          "minLength": 20,
          "maxLength": 1600,
          "description": "Concise Tier-1 summary of Role A's primary synthesis."
        },
        "word_count": {
          "type": "integer",
          "minimum": 1,
          "description": "Used to enforce length symmetry against the adversarial counter-case."
        },
        "claims": {
          "type": "array",
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/claimNode"
          }
        },
        "relations": {
          "type": "array",
          "description": "Directed edges encoding evidentiary support, contradiction, assumption dependency, or omitted-context flags.",
          "items": {
            "$ref": "#/$defs/claimEdge"
          }
        },
        "unverified_or_missing_evidence_gaps": {
          "type": "array",
          "description": "Explicit gaps where primary records do not establish an empirical premise; empty array indicates no declared gaps.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "gap_id",
              "description",
              "decision_relevance"
            ],
            "properties": {
              "gap_id": {
                "type": "string",
                "pattern": "^gap-[0-9]{2,4}$"
              },
              "description": {
                "type": "string",
                "minLength": 10
              },
              "decision_relevance": {
                "type": "string",
                "enum": [
                  "low",
                  "moderate",
                  "load_bearing_crux"
                ]
              }
            }
          }
        }
      }
    },
    "adversarial_red_team_critique": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "red_team_participant_id",
        "disjoint_lineage_verified",
        "strongest_counter_thesis",
        "word_count",
        "length_symmetry_ratio_vs_primary",
        "claim_rebuttals",
        "omission_audit",
        "distributional_losers",
        "unstated_assumptions_exposed",
        "framing_and_sycophancy_flags"
      ],
      "properties": {
        "red_team_participant_id": {
          "type": "string",
          "pattern": "^part-[a-z0-9-]+$",
          "description": "References the Role B participant_id in model_lineage_registry; must differ from primary_brief_participant_id."
        },
        "disjoint_lineage_verified": {
          "const": true,
          "description": "Confirms Role B was executed by a distinct lineage from Role A."
        },
        "strongest_counter_thesis": {
          "type": "string",
          "minLength": 20,
          "maxLength": 1600,
          "description": "Concise steelman counter-case arguing the strongest alternative or status-quo baseline."
        },
        "word_count": {
          "type": "integer",
          "minimum": 1
        },
        "length_symmetry_ratio_vs_primary": {
          "type": "number",
          "minimum": 0.5,
          "maximum": 1.5,
          "description": "Ratio of Role B summary word count to Role A summary word count. Enforces visual/rhetorical parity (target band 0.85–1.15; hard schema envelope 0.50–1.50)."
        },
        "claim_rebuttals": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "rebuttal_id",
              "target_claim_id",
              "attack_category",
              "rebuttal_statement",
              "severity",
              "supporting_source_bindings"
            ],
            "properties": {
              "rebuttal_id": {
                "type": "string",
                "pattern": "^reb-[0-9]{2,4}$"
              },
              "target_claim_id": {
                "type": "string",
                "pattern": "^clm-[0-9]{2,4}$"
              },
              "attack_category": {
                "type": "string",
                "enum": [
                  "empirical_contradiction",
                  "misquoted_or_out_of_context_source",
                  "missing_base_rate",
                  "causal_confounder_or_fragile_extrapolation",
                  "hidden_normative_assumption",
                  "unmodeled_second_order_risk"
                ]
              },
              "rebuttal_statement": {
                "type": "string",
                "minLength": 15
              },
              "severity": {
                "type": "string",
                "enum": [
                  "minor_qualification",
                  "material_weakening",
                  "crux_invalidating"
                ]
              },
              "supporting_source_bindings": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/sourceBinding"
                }
              }
            }
          }
        },
        "omission_audit": {
          "type": "array",
          "minItems": 1,
          "description": "Mandatory audit of omitted base rates, suppressed alternatives, unrepresented stakeholders, or temporal risks.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "omission_id",
              "omission_class",
              "omitted_element",
              "why_material",
              "source_binding_or_gap"
            ],
            "properties": {
              "omission_id": {
                "type": "string",
                "pattern": "^omi-[0-9]{2,4}$"
              },
              "omission_class": {
                "type": "string",
                "enum": [
                  "omitted_base_rate",
                  "omitted_opportunity_cost_or_alternative",
                  "omitted_stakeholder_or_distributional_impact",
                  "omitted_reversibility_or_tail_risk",
                  "omitted_primary_source_passage"
                ]
              },
              "omitted_element": {
                "type": "string",
                "minLength": 10
              },
              "why_material": {
                "type": "string",
                "minLength": 10
              },
              "source_binding_or_gap": {
                "oneOf": [
                  {
                    "$ref": "#/$defs/sourceBinding"
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "missing_data_gap",
                      "required_acquisition_step"
                    ],
                    "properties": {
                      "missing_data_gap": {
                        "const": true
                      },
                      "required_acquisition_step": {
                        "type": "string",
                        "minLength": 10
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "distributional_losers": {
          "type": "array",
          "minItems": 1,
          "description": "Groups, institutions, or future cohorts bearing concentrated costs, latency, or downside exposure under the primary recommendation.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "affected_group",
              "downside_mechanism",
              "compensation_or_mitigation_present"
            ],
            "properties": {
              "affected_group": {
                "type": "string",
                "minLength": 3
              },
              "downside_mechanism": {
                "type": "string",
                "minLength": 10
              },
              "compensation_or_mitigation_present": {
                "type": "boolean"
              }
            }
          }
        },
        "unstated_assumptions_exposed": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 10
          }
        },
        "framing_and_sycophancy_flags": {
          "type": "array",
          "description": "Detected asymmetric metaphors, gain/loss framing skew, unearned consensus language, or citation laundering attempts in Role A.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "flag_type",
              "excerpt_from_primary",
              "neutral_reframe"
            ],
            "properties": {
              "flag_type": {
                "type": "string",
                "enum": [
                  "gain_loss_framing_skew",
                  "loaded_analogy_or_metaphor",
                  "unearned_consensus_phrasing",
                  "sycophantic_prior_mirroring",
                  "citation_laundering_or_drift",
                  "relative_without_absolute_risk"
                ]
              },
              "excerpt_from_primary": {
                "type": "string",
                "minLength": 5
              },
              "neutral_reframe": {
                "type": "string",
                "minLength": 5
              }
            }
          }
        }
      }
    },
    "disagreement_decomposition": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "decomposer_participant_id",
        "factual_disputes",
        "causal_model_disputes",
        "value_weight_disputes",
        "decision_cruxes",
        "dual_symmetric_framing_statements"
      ],
      "properties": {
        "decomposer_participant_id": {
          "type": "string",
          "pattern": "^part-[a-z0-9-]+$",
          "description": "References Role C participant (independent third lineage or structured human moderator)."
        },
        "factual_disputes": {
          "type": "array",
          "description": "Bucket 1: Observable empirical disagreements resolvable via primary records.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "dispute_id",
              "proposition",
              "role_a_position",
              "role_b_position",
              "verification_protocol",
              "resolution_status"
            ],
            "properties": {
              "dispute_id": {
                "type": "string",
                "pattern": "^disp-f-[0-9]{2,4}$"
              },
              "proposition": {
                "type": "string",
                "minLength": 10
              },
              "role_a_position": {
                "type": "string",
                "minLength": 5
              },
              "role_b_position": {
                "type": "string",
                "minLength": 5
              },
              "verification_protocol": {
                "type": "string",
                "minLength": 10,
                "description": "Exact primary document check, dataset query, or audit step that resolves the empirical dispute."
              },
              "resolution_status": {
                "type": "string",
                "enum": [
                  "resolved_in_primary_corpus",
                  "unresolved_requires_external_record",
                  "genuinely_ambiguous_measurement"
                ]
              },
              "related_claim_ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^clm-[0-9]{2,4}$"
                }
              }
            }
          }
        },
        "causal_model_disputes": {
          "type": "array",
          "description": "Bucket 2: Disagreements over predictive mechanisms, behavioral elasticities, second-order equilibria, or counterfactual trajectories.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "dispute_id",
              "causal_mechanism_question",
              "competing_models",
              "key_uncertain_parameters",
              "falsification_or_pilot_signal"
            ],
            "properties": {
              "dispute_id": {
                "type": "string",
                "pattern": "^disp-c-[0-9]{2,4}$"
              },
              "causal_mechanism_question": {
                "type": "string",
                "minLength": 10
              },
              "competing_models": {
                "type": "array",
                "minItems": 2,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "model_label",
                    "mechanism_summary",
                    "predicted_outcome_range"
                  ],
                  "properties": {
                    "model_label": {
                      "type": "string"
                    },
                    "mechanism_summary": {
                      "type": "string"
                    },
                    "predicted_outcome_range": {
                      "type": "string"
                    }
                  }
                }
              },
              "key_uncertain_parameters": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "type": "string"
                }
              },
              "falsification_or_pilot_signal": {
                "type": "string",
                "minLength": 10,
                "description": "Observable pilot metric or leading indicator that would discriminate between competing causal hypotheses."
              }
            }
          }
        },
        "value_weight_disputes": {
          "type": "array",
          "description": "Bucket 3: Irreducible normative trade-offs reserved strictly for sovereign human judgment.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "dispute_id",
              "normative_tradeoff",
              "competing_values",
              "human_sovereign_judgment_required",
              "ai_tie_breaker_prohibited"
            ],
            "properties": {
              "dispute_id": {
                "type": "string",
                "pattern": "^disp-v-[0-9]{2,4}$"
              },
              "normative_tradeoff": {
                "type": "string",
                "minLength": 10
              },
              "competing_values": {
                "type": "array",
                "minItems": 2,
                "items": {
                  "type": "string",
                  "minLength": 3
                }
              },
              "human_sovereign_judgment_required": {
                "const": true
              },
              "ai_tie_breaker_prohibited": {
                "const": true
              }
            }
          }
        },
        "decision_cruxes": {
          "type": "array",
          "minItems": 1,
          "maxItems": 5,
          "description": "Tier-1 progressive disclosure cap: at most 5 load-bearing cruxes that determine the overall decision.",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "crux_id",
              "crux_statement",
              "dispute_bucket",
              "flip_condition"
            ],
            "properties": {
              "crux_id": {
                "type": "string",
                "pattern": "^crux-[0-9]{2}$"
              },
              "crux_statement": {
                "type": "string",
                "minLength": 10,
                "maxLength": 320
              },
              "dispute_bucket": {
                "type": "string",
                "enum": [
                  "factual",
                  "causal",
                  "value_weight"
                ]
              },
              "flip_condition": {
                "type": "string",
                "minLength": 10
              }
            }
          }
        },
        "dual_symmetric_framing_statements": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "gain_framed_summary",
            "loss_framed_summary",
            "semantic_equivalence_audited"
          ],
          "properties": {
            "gain_framed_summary": {
              "type": "string",
              "minLength": 20,
              "description": "Core trade-off expressed in gains/benefits preserved or realized."
            },
            "loss_framed_summary": {
              "type": "string",
              "minLength": 20,
              "description": "Mathematically equivalent expression of the same trade-off expressed in losses/costs incurred or foregone."
            },
            "semantic_equivalence_audited": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "framing_and_blinding_control": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "blind_model_labels_enforced",
        "blind_tokens",
        "randomization_protocol",
        "progressive_disclosure_policy"
      ],
      "properties": {
        "blind_model_labels_enforced": {
          "const": true,
          "description": "Provider/model names must be stripped during human evaluation to eliminate prestige bias."
        },
        "blind_tokens": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "role_a_display_token",
            "role_b_display_token"
          ],
          "properties": {
            "role_a_display_token": {
              "type": "string",
              "pattern": "^Brief-[A-Z][a-zA-Z0-9-]{1,20}$"
            },
            "role_b_display_token": {
              "type": "string",
              "pattern": "^Brief-[A-Z][a-zA-Z0-9-]{1,20}$"
            }
          }
        },
        "randomization_protocol": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "prng_seed_commitment_sha256",
            "order_arms",
            "gain_loss_arms",
            "allocation_ratio"
          ],
          "properties": {
            "prng_seed_commitment_sha256": {
              "$ref": "#/$defs/sha256Hex",
              "description": "Pre-committed hash of the randomization seed used to assign reviewers to order and framing arms."
            },
            "order_arms": {
              "type": "array",
              "minItems": 2,
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "primary_first_counter_second",
                  "counter_first_primary_second",
                  "side_by_side_randomized_columns"
                ]
              }
            },
            "gain_loss_arms": {
              "type": "array",
              "minItems": 1,
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "gain_framed",
                  "loss_framed",
                  "dual_symmetric_framed"
                ]
              }
            },
            "allocation_ratio": {
              "type": "string",
              "description": "Target allocation split across arms (e.g., '50/50 stratified by reviewer role')."
            }
          }
        },
        "progressive_disclosure_policy": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "tier_1_max_words_per_side",
            "tier_2_max_default_disputes_shown",
            "tier_3_verbatim_source_one_click_enabled",
            "symmetrical_visual_hierarchy_enforced"
          ],
          "properties": {
            "tier_1_max_words_per_side": {
              "type": "integer",
              "minimum": 100,
              "maximum": 500,
              "description": "Caps initial brief length per side to prevent cognitive-overload rubber-stamping."
            },
            "tier_2_max_default_disputes_shown": {
              "type": "integer",
              "minimum": 3,
              "maximum": 10
            },
            "tier_3_verbatim_source_one_click_enabled": {
              "const": true
            },
            "symmetrical_visual_hierarchy_enforced": {
              "const": true,
              "description": "Prevents dark-pattern asymmetry (e.g., bold primary card vs. collapsed fine-print counter-case)."
            }
          }
        }
      }
    },
    "steelman_comprehension_gate": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "gate_required_before_binding_vote",
        "minimum_pass_score",
        "minimum_primary_sources_inspected",
        "grader_protocol",
        "reviewer_records"
      ],
      "properties": {
        "gate_required_before_binding_vote": {
          "type": "boolean"
        },
        "minimum_pass_score": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "description": "Normalized rubric threshold (e.g., 0.75) certifying accurate understanding of the opposing steelman without penalizing value disagreements."
        },
        "minimum_primary_sources_inspected": {
          "type": "integer",
          "minimum": 1
        },
        "grader_protocol": {
          "type": "string",
          "enum": [
            "blind_human_peer_rubric",
            "independent_multi_model_rubric_with_human_appeal",
            "structured_crux_mcq_plus_freeform_steelman"
          ]
        },
        "reviewer_records": {
          "type": "array",
          "description": "May start empty ([]) before panel execution; populated strictly from real recorded reviewer submissions.",
          "items": {
            "$ref": "#/$defs/reviewerComprehensionRecord"
          }
        }
      }
    },
    "preference_stability_audit": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "audit_status",
        "sample_size_n",
        "pre_committed_thresholds",
        "metrics",
        "escalation_actions"
      ],
      "properties": {
        "audit_status": {
          "type": "string",
          "enum": [
            "not_yet_executed",
            "insufficient_sample",
            "stable_autonomous",
            "framing_sensitive_review_required",
            "capture_alert_escalated"
          ]
        },
        "sample_size_n": {
          "type": "integer",
          "minimum": 0,
          "description": "Total completed reviewers passing comprehension gating (0 before panel execution)."
        },
        "pre_committed_thresholds": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "max_acceptable_order_swing_delta",
            "max_acceptable_gain_loss_reversibility_rate",
            "min_comprehension_rubric_cohens_kappa",
            "min_sample_size_for_verdict"
          ],
          "properties": {
            "max_acceptable_order_swing_delta": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "max_acceptable_gain_loss_reversibility_rate": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "min_comprehension_rubric_cohens_kappa": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "min_sample_size_for_verdict": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "metrics": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "framing_order_swing_delta",
            "gain_loss_reversibility_rate",
            "post_source_verification_shift_rate",
            "comprehension_gate_pass_rate",
            "comprehension_rubric_cohens_kappa"
          ],
          "properties": {
            "framing_order_swing_delta": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0,
              "maximum": 1,
              "description": "|P(Choice=A | Primary-First) - P(Choice=A | Counter-First)|; null until audit runs."
            },
            "order_swing_wilson_95ci": {
              "type": [
                "object",
                "null"
              ],
              "additionalProperties": false,
              "required": [
                "lower",
                "upper"
              ],
              "properties": {
                "lower": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "upper": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                }
              }
            },
            "gain_loss_reversibility_rate": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0,
              "maximum": 1,
              "description": "Fraction of paired or matched judgments flipping purely under semantically equivalent gain vs. loss framing; null until measured."
            },
            "post_source_verification_shift_rate": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0,
              "maximum": 1,
              "description": "Fraction of reviewers modifying preference after inspecting raw primary records; null until measured."
            },
            "comprehension_gate_pass_rate": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0,
              "maximum": 1
            },
            "comprehension_rubric_cohens_kappa": {
              "type": [
                "number",
                "null"
              ],
              "minimum": -1,
              "maximum": 1,
              "description": "Inter-rater agreement across independent rubric graders scoring steelman comprehension."
            }
          }
        },
        "escalation_actions": {
          "type": "array",
          "description": "Pre-committed governance responses triggered if framing_order_swing_delta or gain_loss_reversibility_rate breaches thresholds.",
          "items": {
            "type": "string",
            "enum": [
              "delay_irreversible_commitment",
              "convene_raw_primary_source_deliberation_workshop",
              "rotate_ai_provider_lineages",
              "commission_unassisted_human_domain_memo",
              "downgrade_to_reversible_pilot_with_sunset"
            ]
          }
        }
      }
    }
  },
  "allOf": [
    {
      "if": {
        "required": [
          "decision_context"
        ],
        "properties": {
          "decision_context": {
            "required": [
              "stakes_tier"
            ],
            "properties": {
              "stakes_tier": {
                "enum": [
                  "institutional",
                  "high_consequence_irreversible"
                ]
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "model_lineage_registry": {
            "properties": {
              "cross_lineage_independence_attestation": {
                "required": [
                  "role_a_and_b_distinct_provider_org",
                  "role_a_and_b_distinct_pretraining_base",
                  "role_a_and_b_distinct_post_training_pipeline"
                ],
                "properties": {
                  "role_a_and_b_distinct_provider_org": {
                    "const": true
                  },
                  "role_a_and_b_distinct_pretraining_base": {
                    "const": true
                  },
                  "role_a_and_b_distinct_post_training_pipeline": {
                    "const": true
                  }
                }
              }
            }
          },
          "steelman_comprehension_gate": {
            "required": [
              "gate_required_before_binding_vote"
            ],
            "properties": {
              "gate_required_before_binding_vote": {
                "const": true
              }
            }
          }
        }
      }
    },
    {
      "if": {
        "required": [
          "decision_context"
        ],
        "properties": {
          "decision_context": {
            "required": [
              "stakes_tier"
            ],
            "properties": {
              "stakes_tier": {
                "const": "high_consequence_irreversible"
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "model_lineage_registry": {
            "properties": {
              "cross_lineage_independence_attestation": {
                "required": [
                  "human_domain_anchor_included"
                ],
                "properties": {
                  "human_domain_anchor_included": {
                    "const": true
                  }
                }
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "sha256Hex": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Lowercase hexadecimal SHA-256 digest."
    },
    "primarySourceRecord": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "source_id",
        "title",
        "source_class",
        "author_or_issuing_body",
        "publication_date",
        "canonical_uri",
        "retrieved_at",
        "content_sha256",
        "ai_synthesized_content_excluded"
      ],
      "properties": {
        "source_id": {
          "type": "string",
          "pattern": "^SRC-[0-9]{2,4}$"
        },
        "title": {
          "type": "string",
          "minLength": 3
        },
        "source_class": {
          "type": "string",
          "enum": [
            "statute_or_bill_text",
            "court_or_regulatory_filing",
            "peer_reviewed_empirical_study",
            "raw_public_budget_or_dataset",
            "technical_audit_or_incident_log",
            "signed_expert_affidavit",
            "historical_primary_archive"
          ]
        },
        "author_or_issuing_body": {
          "type": "string",
          "minLength": 2
        },
        "publication_date": {
          "type": "string",
          "format": "date"
        },
        "canonical_uri": {
          "type": "string",
          "format": "uri"
        },
        "retrieved_at": {
          "type": "string",
          "format": "date-time"
        },
        "content_sha256": {
          "$ref": "#/$defs/sha256Hex",
          "description": "SHA-256 hash of the frozen primary document snapshot to prevent link rot or silent edits."
        },
        "ai_synthesized_content_excluded": {
          "const": true,
          "description": "Guarantees that secondary AI summaries cannot enter the primary source corpus."
        }
      }
    },
    "lineageParticipant": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "participant_id",
        "assigned_role",
        "participant_kind",
        "organization",
        "model_or_credentials_identifier",
        "pretraining_lineage_id",
        "post_training_alignment_lineage",
        "weights_provenance"
      ],
      "properties": {
        "participant_id": {
          "type": "string",
          "pattern": "^part-[a-z0-9-]+$"
        },
        "assigned_role": {
          "type": "string",
          "enum": [
            "role_a_primary_brief",
            "role_b_adversarial_red_team",
            "role_c_disagreement_decomposer",
            "human_domain_anchor"
          ]
        },
        "participant_kind": {
          "type": "string",
          "enum": [
            "ai_model",
            "human_specialist"
          ]
        },
        "organization": {
          "type": "string",
          "minLength": 2
        },
        "model_or_credentials_identifier": {
          "type": "string",
          "minLength": 2,
          "description": "Exact API model snapshot ID, open-weights checkpoint hash, or human reviewer role/credential tag."
        },
        "pretraining_lineage_id": {
          "type": "string",
          "minLength": 2,
          "description": "Identifier of the base pretraining family (or 'human_non_synthetic' for human anchors)."
        },
        "post_training_alignment_lineage": {
          "type": "string",
          "minLength": 2,
          "description": "Identifier of the RLHF/DPO/Constitutional post-training pipeline (or 'none_human')."
        },
        "weights_provenance": {
          "type": "string",
          "enum": [
            "proprietary_hosted_api",
            "open_weights_independent_host",
            "human_authored"
          ]
        },
        "retrieval_index_id": {
          "type": "string",
          "description": "Optional identifier if an external search/RAG index was permitted beyond the frozen corpus."
        },
        "decoding_parameters": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "temperature": {
              "type": "number",
              "minimum": 0,
              "maximum": 2
            },
            "system_prompt_sha256": {
              "$ref": "#/$defs/sha256Hex"
            }
          }
        }
      }
    },
    "sourceBinding": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "source_id",
        "locator",
        "verbatim_excerpt",
        "excerpt_sha256",
        "binding_verification_status"
      ],
      "properties": {
        "source_id": {
          "type": "string",
          "pattern": "^SRC-[0-9]{2,4}$"
        },
        "locator": {
          "type": "string",
          "minLength": 2,
          "description": "Exact human-verifiable pointer (e.g., 'Section 4(b), p. 17, lines 12-19' or JSON Pointer)."
        },
        "verbatim_excerpt": {
          "type": "string",
          "minLength": 10,
          "maxLength": 1200,
          "description": "Exact character-for-character quote copied from the primary source."
        },
        "excerpt_sha256": {
          "$ref": "#/$defs/sha256Hex",
          "description": "SHA-256 hash of UTF-8 normalized verbatim_excerpt for automated substring verification against the frozen source."
        },
        "binding_verification_status": {
          "type": "string",
          "enum": [
            "verified_exact_substring",
            "human_verified_table_or_figure",
            "unverified_pending_check",
            "failed_quote_mismatch"
          ]
        }
      }
    },
    "claimNode": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "claim_id",
        "claim_type",
        "statement",
        "estimative_probability_band",
        "primary_source_bindings"
      ],
      "properties": {
        "claim_id": {
          "type": "string",
          "pattern": "^clm-[0-9]{2,4}$"
        },
        "claim_type": {
          "type": "string",
          "enum": [
            "empirical_fact",
            "causal_mechanism",
            "normative_value_weight",
            "distributional_impact",
            "load_bearing_assumption"
          ]
        },
        "statement": {
          "type": "string",
          "minLength": 10,
          "maxLength": 600
        },
        "estimative_probability_band": {
          "type": "object",
          "additionalProperties": false,
          "description": "Sherman Kent calibrated probability band preventing ambiguous qualitative hedging.",
          "required": [
            "lower_bound",
            "upper_bound",
            "kent_label"
          ],
          "properties": {
            "lower_bound": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "upper_bound": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "kent_label": {
              "type": "string",
              "enum": [
                "virtually_certain_93_to_100",
                "highly_probable_75_to_92",
                "probable_55_to_74",
                "even_chance_45_to_54",
                "improbable_25_to_44",
                "highly_improbable_7_to_24",
                "nearly_impossible_0_to_6",
                "normative_not_probabilistic"
              ]
            }
          }
        },
        "primary_source_bindings": {
          "type": "array",
          "description": "Must contain at least 1 verified binding for empirical_fact claims.",
          "items": {
            "$ref": "#/$defs/sourceBinding"
          }
        }
      },
      "if": {
        "required": [
          "claim_type"
        ],
        "properties": {
          "claim_type": {
            "const": "empirical_fact"
          }
        }
      },
      "then": {
        "required": [
          "primary_source_bindings"
        ],
        "properties": {
          "primary_source_bindings": {
            "minItems": 1
          }
        }
      }
    },
    "claimEdge": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "from_claim_id",
        "to_claim_id",
        "relation_type"
      ],
      "properties": {
        "from_claim_id": {
          "type": "string",
          "pattern": "^clm-[0-9]{2,4}$"
        },
        "to_claim_id": {
          "type": "string",
          "pattern": "^clm-[0-9]{2,4}$"
        },
        "relation_type": {
          "type": "string",
          "enum": [
            "supports",
            "contradicts",
            "qualifies",
            "depends_on_assumption",
            "omitted_context_for"
          ]
        },
        "rationale": {
          "type": "string",
          "maxLength": 400
        }
      }
    },
    "reviewerComprehensionRecord": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "reviewer_pseudonym_id",
        "assigned_order_arm",
        "assigned_gain_loss_arm",
        "primary_sources_inspected",
        "preferred_option_selected",
        "opposing_steelman_summary",
        "primary_deciding_bucket",
        "reversal_condition_stated",
        "comprehension_rubric_score",
        "gate_pass_status",
        "time_on_task_seconds"
      ],
      "properties": {
        "reviewer_pseudonym_id": {
          "type": "string",
          "pattern": "^rev-[a-z0-9]{4,24}$"
        },
        "assigned_order_arm": {
          "type": "string",
          "enum": [
            "primary_first_counter_second",
            "counter_first_primary_second",
            "side_by_side_randomized_columns"
          ]
        },
        "assigned_gain_loss_arm": {
          "type": "string",
          "enum": [
            "gain_framed",
            "loss_framed",
            "dual_symmetric_framed"
          ]
        },
        "primary_sources_inspected": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "pattern": "^SRC-[0-9]{2,4}$"
          }
        },
        "pre_brief_baseline_option": {
          "type": "string"
        },
        "preferred_option_selected": {
          "type": "string",
          "minLength": 1
        },
        "opposing_steelman_summary": {
          "type": "string",
          "minLength": 40,
          "maxLength": 1500,
          "description": "Human-authored articulation of the strongest objection to the reviewer's own preferred choice."
        },
        "primary_deciding_bucket": {
          "type": "string",
          "enum": [
            "factual",
            "causal",
            "value_weight"
          ]
        },
        "reversal_condition_stated": {
          "type": "string",
          "minLength": 15,
          "maxLength": 600
        },
        "comprehension_rubric_score": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "gate_pass_status": {
          "type": "string",
          "enum": [
            "passed",
            "failed_remediation_required",
            "exempt_advisory_tier"
          ]
        },
        "time_on_task_seconds": {
          "type": "integer",
          "minimum": 1
        },
        "copy_paste_anomaly_flagged": {
          "type": "boolean",
          "description": "Flags suspected boilerplate copy-pasting from brief prose into the human steelman response."
        }
      }
    }
  }
}
