{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ghrisx.com/schemas/last-door-transition-pilot-v1.json",
  "title": "Ghrisx Last Door Synthetic Transition Pilot v1",
  "description": "A bilingual-pairable, permanently non-countable teaching fixture that proves the shape of one Action Circle to six-system to Action Circle transition without creating real intake, publication, verification, adoption, or capacity.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "$schema",
    "contract",
    "schema_version",
    "pilot_id",
    "paired_pilot_id",
    "locale",
    "classification",
    "scenario",
    "source_registry",
    "resilience_system_count",
    "workflow",
    "non_system_gateways",
    "optional_gateways_used",
    "circle_opening",
    "system_records",
    "circle_return",
    "transition_controls",
    "proof_receipts",
    "door_integrity",
    "verified_one_publication_design",
    "ledger_effect",
    "persona_boundary",
    "integrity"
  ],
  "properties": {
    "$schema": {"const": "https://ghrisx.com/schemas/last-door-transition-pilot-v1.json"},
    "contract": {"const": "ghrisx.last-door-transition-pilot.v1"},
    "schema_version": {"const": "1.0"},
    "pilot_id": {"const": "ldp-synthetic-door-001"},
    "paired_pilot_id": {"const": "ldp-synthetic-door-001"},
    "locale": {"enum": ["en-US", "es-US"]},
    "classification": {
      "type": "object",
      "additionalProperties": false,
      "required": ["synthetic", "teaching_fixture", "public_teaching_fixture", "site_controlled", "independent_adoption", "hazard_class", "real_people", "real_location", "intake_submitted", "intake_published", "verified", "countable"],
      "properties": {
        "synthetic": {"const": true},
        "teaching_fixture": {"const": true},
        "public_teaching_fixture": {"const": true},
        "site_controlled": {"const": true},
        "independent_adoption": {"const": false},
        "hazard_class": {"const": "ordinary"},
        "real_people": {"const": false},
        "real_location": {"const": false},
        "intake_submitted": {"const": false},
        "intake_published": {"const": false},
        "verified": {"const": false},
        "countable": {"const": false}
      }
    },
    "scenario": {
      "type": "object",
      "additionalProperties": false,
      "required": ["title", "bounded_access_failure", "affected_need", "answerable_role", "evidence_threshold", "correction_route", "exit_route", "expiry", "succession_test", "cannot_prove"],
      "properties": {
        "title": {"type": "string", "minLength": 1},
        "bounded_access_failure": {"type": "string", "minLength": 1},
        "affected_need": {"type": "string", "minLength": 1},
        "answerable_role": {"type": "string", "minLength": 1},
        "evidence_threshold": {"type": "array", "minItems": 4, "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
        "correction_route": {"type": "string", "minLength": 1},
        "exit_route": {"type": "string", "minLength": 1},
        "expiry": {"type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},
        "succession_test": {"type": "string", "minLength": 1},
        "cannot_prove": {"type": "array", "minItems": 3, "uniqueItems": true, "items": {"type": "string", "minLength": 1}}
      }
    },
    "source_registry": {
      "type": "array",
      "minItems": 4,
      "uniqueItems": true,
      "items": {"$ref": "#/$defs/source_record"}
    },
    "resilience_system_count": {"const": 6},
    "workflow": {
      "const": ["action_circles", "skill_map", "build_labs", "transition_field_guides", "ark", "local_arks", "resilience_ledger", "action_circles"]
    },
    "non_system_gateways": {
      "const": ["recurrence_atlas_claim_record", "wheel_contribution_record"]
    },
    "optional_gateways_used": {"const": []},
    "circle_opening": {"$ref": "#/$defs/circle_opening"},
    "system_records": {
      "type": "array",
      "minItems": 6,
      "maxItems": 6,
      "prefixItems": [
        {"$ref": "#/$defs/skill_map_handoff"},
        {"$ref": "#/$defs/build_lab_handoff"},
        {"$ref": "#/$defs/field_guide_handoff"},
        {"$ref": "#/$defs/ark_handoff"},
        {"$ref": "#/$defs/local_ark_handoff"},
        {"$ref": "#/$defs/ledger_handoff"}
      ],
      "items": false
    },
    "circle_return": {"$ref": "#/$defs/circle_return"},
    "transition_controls": {
      "type": "object",
      "additionalProperties": false,
      "required": ["custody", "dissent", "correction", "representation_refusal", "withdrawal", "exit", "succession", "restoration", "dissolution", "machine_duty", "human_responsibility"],
      "properties": {
        "custody": {"type": "string", "minLength": 1},
        "dissent": {"type": "string", "minLength": 1},
        "correction": {"type": "string", "minLength": 1},
        "representation_refusal": {"type": "string", "minLength": 1},
        "withdrawal": {"type": "string", "minLength": 1},
        "exit": {"type": "string", "minLength": 1},
        "succession": {"type": "string", "minLength": 1},
        "restoration": {"type": "string", "minLength": 1},
        "dissolution": {"type": "string", "minLength": 1},
        "machine_duty": {"type": "string", "minLength": 1},
        "human_responsibility": {"type": "string", "minLength": 1}
      }
    },
    "proof_receipts": {
      "type": "object",
      "additionalProperties": false,
      "required": ["correction", "dissent", "succession", "restoration", "capture_exit_dissolution", "appeal_recusal_third_party", "translation_dedup", "hazard_negative", "expiry_boundary", "negative_door"],
      "properties": {
        "correction": {"$ref": "#/$defs/correction_receipt"},
        "dissent": {"$ref": "#/$defs/dissent_receipt"},
        "succession": {"$ref": "#/$defs/succession_receipt"},
        "restoration": {"$ref": "#/$defs/restoration_receipt"},
        "capture_exit_dissolution": {"$ref": "#/$defs/capture_exit_dissolution_receipt"},
        "appeal_recusal_third_party": {"$ref": "#/$defs/appeal_recusal_third_party_receipt"},
        "translation_dedup": {"$ref": "#/$defs/translation_dedup_receipt"},
        "hazard_negative": {"$ref": "#/$defs/hazard_negative_receipt"},
        "expiry_boundary": {"$ref": "#/$defs/expiry_boundary_receipt"},
        "negative_door": {"$ref": "#/$defs/negative_door_receipt"}
      }
    },
    "door_integrity": {
      "type": "array",
      "minItems": 5,
      "maxItems": 5,
      "prefixItems": [
        {"$ref": "#/$defs/reachable_test"},
        {"$ref": "#/$defs/usable_test"},
        {"$ref": "#/$defs/answerable_test"},
        {"$ref": "#/$defs/repairable_test"},
        {"$ref": "#/$defs/succession_safe_test"}
      ],
      "items": false
    },
    "verified_one_publication_design": {
      "type": "object",
      "additionalProperties": false,
      "required": ["designed", "activated", "intake_enabled", "publication_enabled", "real_submission_created", "candidate_projection", "candidate_projection_sha256", "privacy_rejection_test", "stages", "privacy_allowlist", "privacy_denylist", "lineage_behavior", "one_event_one_count"],
      "properties": {
        "designed": {"const": true},
        "activated": {"const": false},
        "intake_enabled": {"const": false},
        "publication_enabled": {"const": false},
        "real_submission_created": {"const": false},
        "candidate_projection": {"$ref": "#/$defs/illustrative_candidate_sketch"},
        "candidate_projection_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
        "privacy_rejection_test": {"$ref": "#/$defs/privacy_rejection_test"},
        "stages": {
          "type": "array",
          "minItems": 7,
          "maxItems": 7,
          "prefixItems": [
            {"$ref": "#/$defs/stage_deliberate_submission"},
            {"$ref": "#/$defs/stage_private_receipt"},
            {"$ref": "#/$defs/stage_human_review"},
            {"$ref": "#/$defs/stage_candidate_digest"},
            {"$ref": "#/$defs/stage_owner_approval"},
            {"$ref": "#/$defs/stage_distinct_publish_approval"},
            {"$ref": "#/$defs/stage_explicit_publish"}
          ],
          "items": false
        },
        "privacy_allowlist": {"type": "array", "minItems": 6, "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
        "privacy_denylist": {"type": "array", "minItems": 6, "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
        "lineage_behavior": {
          "type": "object",
          "additionalProperties": false,
          "required": ["correction", "withdrawal", "expiry"],
          "properties": {
            "correction": {"type": "string", "minLength": 1},
            "withdrawal": {"type": "string", "minLength": 1},
            "expiry": {"type": "string", "minLength": 1}
          }
        },
        "one_event_one_count": {"const": true}
      }
    },
    "ledger_effect": {
      "type": "object",
      "additionalProperties": false,
      "required": ["aggregate_scope", "baseline_snapshot_id", "baseline_snapshot_cutoff", "baseline_snapshot_source", "current_runtime_aggregate_claimed", "verified_artifact_count_before", "verified_artifact_count_after", "published_projection_count_before", "published_projection_count_after", "verified_artifact_count_delta", "published_projection_count_delta", "capacity_metric_deltas", "capacity_metrics_changed", "reason"],
      "properties": {
        "aggregate_scope": {"const": "synthetic_fixture_only"},
        "baseline_snapshot_id": {"const": "snap_20260825_verified_zero_v1"},
        "baseline_snapshot_cutoff": {"const": "2026-08-25T05:07:27Z"},
        "baseline_snapshot_source": {"const": "/downloads/verified-artifact-snapshots/snap_20260825_verified_zero_v1.json"},
        "current_runtime_aggregate_claimed": {"const": false},
        "verified_artifact_count_before": {"const": 0},
        "verified_artifact_count_after": {"const": 0},
        "published_projection_count_before": {"const": 0},
        "published_projection_count_after": {"const": 0},
        "verified_artifact_count_delta": {"const": 0},
        "published_projection_count_delta": {"const": 0},
        "capacity_metric_deltas": {"$ref": "#/$defs/capacity_metric_deltas"},
        "capacity_metrics_changed": {"const": false},
        "reason": {"type": "string", "minLength": 1}
      }
    },
    "persona_boundary": {
      "type": "object",
      "additionalProperties": false,
      "required": ["persona_authority_id", "site_fixture_is_persona_authority", "persona_artifacts_changed", "required_charter_preserved", "anti_drift_test_required"],
      "properties": {
        "persona_authority_id": {"const": "ghrisx.advanced-persona.realism-first.v1"},
        "site_fixture_is_persona_authority": {"const": false},
        "persona_artifacts_changed": {"const": false},
        "required_charter_preserved": {"const": true},
        "anti_drift_test_required": {"const": true}
      }
    },
    "integrity": {"$ref": "#/$defs/integrity"}
  },
  "$defs": {
    "source_record": {
      "type": "object",
      "additionalProperties": false,
      "required": ["source_record_id", "source_role", "source_class", "version", "digest_algorithm", "digest_canonicalization", "digest", "locale", "temporal_reference", "transformation_lineage", "custody", "permitted_use", "uncertainty", "status"],
      "properties": {
        "source_record_id": {"type": "string", "minLength": 1},
        "source_role": {"enum": ["circle_opening_receipt", "governing_schema", "synthetic_denial_fixture", "synthetic_rule_fixture"]},
        "source_class": {"enum": ["first_party_teaching_fixture", "public_contract", "synthetic_evidence"]},
        "version": {"const": "1.0"},
        "digest_algorithm": {"const": "SHA-256"},
        "digest_canonicalization": {"const": "Set digest to null, recursively sort object keys, preserve array order, serialize as compact UTF-8 JSON, then compute SHA-256."},
        "digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
        "locale": {"enum": ["en-US", "es-US"]},
        "temporal_reference": {
          "type": "object",
          "additionalProperties": false,
          "required": ["observed_at", "reference_system", "precision", "conversion", "uncertainty"],
          "properties": {
            "observed_at": {"const": "2026-08-25T00:00:00Z"},
            "reference_system": {"const": "proleptic_gregorian_utc"},
            "precision": {"const": "second"},
            "conversion": {"const": "none"},
            "uncertainty": {"type": "string", "minLength": 1}
          }
        },
        "transformation_lineage": {
          "type": "object",
          "additionalProperties": false,
          "required": ["parent_source_record_ids", "translation_of_source_record_id", "transformation", "tool", "tool_version", "settings", "human_acceptance_status"],
          "properties": {
            "parent_source_record_ids": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
            "translation_of_source_record_id": {"oneOf": [{"type": "null"}, {"type": "string", "minLength": 1}]},
            "transformation": {"type": "string", "minLength": 1},
            "tool": {"type": "string", "minLength": 1},
            "tool_version": {"type": "string", "minLength": 1},
            "settings": {"type": "string", "minLength": 1},
            "human_acceptance_status": {"enum": ["not_performed", "not_required_for_synthetic_source"]}
          }
        },
        "custody": {"type": "string", "minLength": 1},
        "permitted_use": {"type": "string", "minLength": 1},
        "uncertainty": {"type": "string", "minLength": 1},
        "status": {"const": "synthetic_unreviewed"}
      }
    },
    "canonical_mini_payload": {
      "type": "object",
      "additionalProperties": false,
      "required": ["record_id", "version", "payload", "canonicalization", "sha256"],
      "properties": {
        "record_id": {"type": "string", "minLength": 1},
        "version": {"enum": ["1.0", "1.1"]},
        "payload": {
          "type": "object",
          "additionalProperties": false,
          "required": ["notice_id", "appeal_deadline", "state"],
          "properties": {
            "notice_id": {"const": "ldp-synthetic-door-001-notice"},
            "appeal_deadline": {"type": "string", "minLength": 1},
            "state": {"enum": ["wrong_deadline_stopped", "corrected"]}
          }
        },
        "canonicalization": {"const": "Recursively sort object keys, preserve array order, serialize payload as compact UTF-8 JSON, then compute SHA-256."},
        "sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
      }
    },
    "correction_receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["receipt_id", "predecessor", "successor", "changed_fields", "stop_receipt", "supersedes", "affected_downstream_record_ids", "acknowledgments", "result", "real_world_capacity_proven"],
      "properties": {
        "receipt_id": {"const": "ldp-proof-correction-001"},
        "predecessor": {"$ref": "#/$defs/canonical_mini_payload"},
        "successor": {"$ref": "#/$defs/canonical_mini_payload"},
        "changed_fields": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": ["json_pointer", "old_value", "new_value"],
            "properties": {
              "json_pointer": {"const": "/appeal_deadline"},
              "old_value": {"type": "string", "minLength": 1},
              "new_value": {"type": "string", "minLength": 1}
            }
          }
        },
        "stop_receipt": {
          "type": "object",
          "additionalProperties": false,
          "required": ["receipt_id", "stopped_at", "reason", "workflow_advanced"],
          "properties": {
            "receipt_id": {"const": "ldp-proof-stop-wrong-deadline-001"},
            "stopped_at": {"const": "2026-08-25T00:10:00Z"},
            "reason": {"type": "string", "minLength": 1},
            "workflow_advanced": {"const": false}
          }
        },
        "supersedes": {"type": "string", "minLength": 1},
        "affected_downstream_record_ids": {"type": "array", "minItems": 4, "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
        "acknowledgments": {
          "type": "array",
          "minItems": 4,
          "uniqueItems": true,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": ["acknowledgment_id", "record_id", "correction_receipt_id", "successor_record_id", "successor_sha256"],
            "properties": {
              "acknowledgment_id": {"type": "string", "minLength": 1},
              "record_id": {"type": "string", "minLength": 1},
              "correction_receipt_id": {"const": "ldp-proof-correction-001"},
              "successor_record_id": {"type": "string", "minLength": 1},
              "successor_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
            }
          }
        },
        "result": {"const": "pass_after_correction"},
        "real_world_capacity_proven": {"const": false}
      }
    },
    "dissent_receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["receipt_id", "opening_position", "return_position", "status", "appeal_route", "access_penalty", "resource_penalty", "preserved_through_handoffs", "preserved_through_return"],
      "properties": {
        "receipt_id": {"const": "ldp-proof-dissent-001"},
        "opening_position": {"type": "string", "minLength": 1},
        "return_position": {"type": "string", "minLength": 1},
        "status": {"const": "unresolved_preserved"},
        "appeal_route": {"type": "string", "minLength": 1},
        "access_penalty": {"const": false},
        "resource_penalty": {"const": false},
        "preserved_through_handoffs": {"const": true},
        "preserved_through_return": {"const": true}
      }
    },
    "rehearsal_receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["receipt_id", "clean_start", "original_custodian_absent", "original_custodian_role", "successor_role", "roles_distinct", "input_payload", "input_sha256", "output_payload", "output_sha256", "canonicalization", "dependency_log", "observer_role", "observer_distinct", "expected_result", "observed_result", "synthetic_result", "real_world_capacity_proven"],
      "properties": {
        "receipt_id": {"type": "string", "minLength": 1},
        "clean_start": {"const": true},
        "original_custodian_absent": {"const": true},
        "original_custodian_role": {"type": "string", "minLength": 1},
        "successor_role": {"type": "string", "minLength": 1},
        "roles_distinct": {"const": true},
        "input_payload": {"type": "object", "minProperties": 1},
        "input_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
        "output_payload": {"type": "object", "minProperties": 1},
        "output_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
        "canonicalization": {"const": "Recursively sort object keys, preserve array order, serialize the named payload as compact UTF-8 JSON, then compute SHA-256."},
        "dependency_log": {
          "type": "array",
          "minItems": 2,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": ["dependency", "status"],
            "properties": {
              "dependency": {"type": "string", "minLength": 1},
              "status": {"enum": ["available", "missing_recorded"]}
            }
          }
        },
        "observer_role": {"type": "string", "minLength": 1},
        "observer_distinct": {"const": true},
        "expected_result": {"type": "string", "minLength": 1},
        "observed_result": {"type": "string", "minLength": 1},
        "synthetic_result": {"const": "pass"},
        "real_world_capacity_proven": {"const": false}
      }
    },
    "succession_receipt": {"allOf": [{"$ref": "#/$defs/rehearsal_receipt"}, {"properties": {"receipt_id": {"const": "ldp-proof-succession-001"}}}]},
    "restoration_receipt": {"allOf": [{"$ref": "#/$defs/rehearsal_receipt"}, {"properties": {"receipt_id": {"const": "ldp-proof-restoration-001"}}}]},
    "capacity_metric_deltas": {
      "type": "object",
      "additionalProperties": false,
      "required": ["local_arks_verified", "skills_transferred", "lab_artifacts_verified", "ark_restorations_tested", "field_guides_locally_tested", "systems_replicated"],
      "properties": {
        "local_arks_verified": {"const": 0},
        "skills_transferred": {"const": 0},
        "lab_artifacts_verified": {"const": 0},
        "ark_restorations_tested": {"const": 0},
        "field_guides_locally_tested": {"const": 0},
        "systems_replicated": {"const": 0}
      }
    },
    "capture_exit_dissolution_receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["receipt_id", "attempts", "dissent_preserved", "export", "repair_failed_branch", "verified_one_blocked", "capacity_metric_deltas", "real_world_capacity_proven"],
      "properties": {
        "receipt_id": {"const": "ldp-proof-capture-exit-dissolution-001"},
        "attempts": {
          "type": "array",
          "minItems": 3,
          "maxItems": 3,
          "prefixItems": [
            {"$ref": "#/$defs/permanent_rank_attempt"},
            {"$ref": "#/$defs/loyalty_gate_attempt"},
            {"$ref": "#/$defs/dissent_concealment_attempt"}
          ],
          "items": false
        },
        "dissent_preserved": {"const": true},
        "export": {
          "type": "object",
          "additionalProperties": false,
          "required": ["format", "usable", "requires_loyalty", "requires_original_custodian"],
          "properties": {
            "format": {"const": "UTF-8 JSON"},
            "usable": {"const": true},
            "requires_loyalty": {"const": false},
            "requires_original_custodian": {"const": false}
          }
        },
        "repair_failed_branch": {
          "type": "object",
          "additionalProperties": false,
          "required": ["simulated", "intake_stopped", "minimal_receipt_preserved", "governed_material_exported", "dissolved"],
          "properties": {
            "simulated": {"const": true},
            "intake_stopped": {"const": true},
            "minimal_receipt_preserved": {"const": true},
            "governed_material_exported": {"const": true},
            "dissolved": {"const": true}
          }
        },
        "verified_one_blocked": {"const": true},
        "capacity_metric_deltas": {"$ref": "#/$defs/capacity_metric_deltas"},
        "real_world_capacity_proven": {"const": false}
      }
    },
    "denied_capture_attempt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["attempt", "injected", "denied"],
      "properties": {
        "attempt": {"enum": ["permanent_rank", "loyalty_gate", "dissent_concealment"]},
        "injected": {"const": true},
        "denied": {"const": true}
      }
    },
    "permanent_rank_attempt": {"allOf": [{"$ref": "#/$defs/denied_capture_attempt"}, {"properties": {"attempt": {"const": "permanent_rank"}}}]},
    "loyalty_gate_attempt": {"allOf": [{"$ref": "#/$defs/denied_capture_attempt"}, {"properties": {"attempt": {"const": "loyalty_gate"}}}]},
    "dissent_concealment_attempt": {"allOf": [{"$ref": "#/$defs/denied_capture_attempt"}, {"properties": {"attempt": {"const": "dissent_concealment"}}}]},
    "appeal_recusal_third_party_receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["receipt_id", "conflict_detected", "initial_review_role", "recused", "appeal_role", "appeal_role_distinct", "outcome", "service_retained", "dissent_retained", "representation_authority", "affected_third_party_consent_state", "third_party_waiver_attempted", "third_party_waiver_rejected", "publication_blocked", "real_world_capacity_proven"],
      "properties": {
        "receipt_id": {"const": "ldp-proof-appeal-recusal-third-party-001"},
        "conflict_detected": {"const": true},
        "initial_review_role": {"type": "string", "minLength": 1},
        "recused": {"const": true},
        "appeal_role": {"type": "string", "minLength": 1},
        "appeal_role_distinct": {"const": true},
        "outcome": {"enum": ["remand", "overturn"]},
        "service_retained": {"const": true},
        "dissent_retained": {"const": true},
        "representation_authority": {"const": "contributor_may_authorize_only_own_synthetic_material"},
        "affected_third_party_consent_state": {"const": "not_present"},
        "third_party_waiver_attempted": {"const": true},
        "third_party_waiver_rejected": {"const": true},
        "publication_blocked": {"const": true},
        "real_world_capacity_proven": {"const": false}
      }
    },
    "translation_dedup_receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["receipt_id", "logical_event_id", "source_locale", "target_locale", "transformation", "tool", "tool_version", "settings", "status", "human_acceptance_required", "human_acceptance_performed", "semantic_result", "duplicate_count_created", "verified_artifact_count_delta", "published_projection_count_delta", "capacity_metric_deltas"],
      "properties": {
        "receipt_id": {"const": "ldp-proof-translation-dedup-001"},
        "logical_event_id": {"const": "ldp-synthetic-door-001-logical-event"},
        "source_locale": {"const": "en-US"},
        "target_locale": {"const": "es-US"},
        "transformation": {"const": "paired_fixture_translation"},
        "tool": {"const": "not_recorded_for_legacy_paired_fixture"},
        "tool_version": {"const": "not_recorded"},
        "settings": {"const": "not_recorded"},
        "status": {"const": "structural_only"},
        "human_acceptance_required": {"const": true},
        "human_acceptance_performed": {"const": false},
        "semantic_result": {"const": "structural_parity_only_not_human_accepted"},
        "duplicate_count_created": {"const": false},
        "verified_artifact_count_delta": {"const": 0},
        "published_projection_count_delta": {"const": 0},
        "capacity_metric_deltas": {"$ref": "#/$defs/capacity_metric_deltas"}
      }
    },
    "hazard_negative_receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["receipt_id", "baseline_hazard_class", "injected_content_class", "injected", "accepted", "rejected", "reclassified_hazard_class", "qualified_review_required", "qualified_review_performed", "publication_blocked", "verified_artifact_count_delta", "published_projection_count_delta", "capacity_metric_deltas"],
      "properties": {
        "receipt_id": {"const": "ldp-proof-hazard-negative-001"},
        "baseline_hazard_class": {"const": "ordinary"},
        "injected_content_class": {"const": "individualized_legal_instruction"},
        "injected": {"const": true},
        "accepted": {"const": false},
        "rejected": {"const": true},
        "reclassified_hazard_class": {"const": "nonordinary_legal"},
        "qualified_review_required": {"const": true},
        "qualified_review_performed": {"const": false},
        "publication_blocked": {"const": true},
        "verified_artifact_count_delta": {"const": 0},
        "published_projection_count_delta": {"const": 0},
        "capacity_metric_deltas": {"$ref": "#/$defs/capacity_metric_deltas"}
      }
    },
    "expiry_boundary_receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["receipt_id", "canonical_instant", "semantics", "cases"],
      "properties": {
        "receipt_id": {"const": "ldp-proof-expiry-boundary-001"},
        "canonical_instant": {"const": "2027-08-25T00:00:00Z"},
        "semantics": {"const": "exclusive_active_before_expired_at_or_after"},
        "cases": {
          "type": "array",
          "minItems": 3,
          "maxItems": 3,
          "prefixItems": [
            {"$ref": "#/$defs/expiry_before_case"},
            {"$ref": "#/$defs/expiry_exact_case"},
            {"$ref": "#/$defs/expiry_after_case"}
          ],
          "items": false
        }
      }
    },
    "expiry_case": {
      "type": "object",
      "additionalProperties": false,
      "required": ["at", "expected_state"],
      "properties": {
        "at": {"type": "string", "minLength": 1},
        "expected_state": {"enum": ["active", "expired"]}
      }
    },
    "expiry_before_case": {"allOf": [{"$ref": "#/$defs/expiry_case"}, {"properties": {"at": {"const": "2027-08-24T23:59:59Z"}, "expected_state": {"const": "active"}}}]},
    "expiry_exact_case": {"allOf": [{"$ref": "#/$defs/expiry_case"}, {"properties": {"at": {"const": "2027-08-25T00:00:00Z"}, "expected_state": {"const": "expired"}}}]},
    "expiry_after_case": {"allOf": [{"$ref": "#/$defs/expiry_case"}, {"properties": {"at": {"const": "2027-08-25T00:00:01Z"}, "expected_state": {"const": "expired"}}}]},
    "negative_door_receipt": {
      "type": "object",
      "additionalProperties": false,
      "required": ["receipt_id", "door_test", "failure_preserved", "blocks_verified_one", "blocks_capacity", "verified_artifact_count_delta", "published_projection_count_delta", "capacity_metric_deltas"],
      "properties": {
        "receipt_id": {"const": "ldp-proof-negative-door-001"},
        "door_test": {"$ref": "#/$defs/door_test"},
        "failure_preserved": {"const": true},
        "blocks_verified_one": {"const": true},
        "blocks_capacity": {"const": true},
        "verified_artifact_count_delta": {"const": 0},
        "published_projection_count_delta": {"const": 0},
        "capacity_metric_deltas": {"$ref": "#/$defs/capacity_metric_deltas"}
      }
    },
    "illustrative_candidate_sketch": {
      "type": "object",
      "additionalProperties": false,
      "required": ["candidate_kind", "runtime_schema_conformant", "site_controlled", "independence_claimed", "hazard_class", "canonicalization", "artifact_classification", "artifact_type", "locale", "title", "summary", "source_record_id", "generalized_location", "responsible_public_role", "capacity_state", "health_state", "evidence_state", "expires_at", "correction_channel", "withdrawal_channel", "countable"],
      "properties": {
        "candidate_kind": {"const": "illustrative_candidate_sketch"},
        "runtime_schema_conformant": {"const": false},
        "site_controlled": {"const": true},
        "independence_claimed": {"const": false},
        "hazard_class": {"const": "ordinary"},
        "canonicalization": {"const": "Recursively sort object keys, preserve array order, serialize this illustrative sketch as compact UTF-8 JSON, then compute SHA-256. This is not the runtime projection schema."},
        "artifact_classification": {"const": "demo"},
        "artifact_type": {"const": "resilience_ledger_receipt"},
        "locale": {"enum": ["en-US", "es-US"]},
        "title": {"type": "string", "minLength": 1},
        "summary": {"type": "string", "minLength": 1},
        "source_record_id": {"type": "string", "minLength": 1},
        "generalized_location": {"type": "string", "minLength": 1},
        "responsible_public_role": {"type": "string", "minLength": 1},
        "capacity_state": {"const": "proposed"},
        "health_state": {"const": "active"},
        "evidence_state": {"const": "unreviewed"},
        "expires_at": {"const": "2027-08-25T00:00:00Z"},
        "correction_channel": {"type": "string", "minLength": 1},
        "withdrawal_channel": {"type": "string", "minLength": 1},
        "countable": {"const": false}
      }
    },
    "privacy_rejection_test": {
      "type": "object",
      "additionalProperties": false,
      "required": ["test_id", "prohibited_private_canary_field_names", "injected", "rejected", "candidate_contains_canary_fields", "publication_blocked", "verified_artifact_count_delta", "published_projection_count_delta"],
      "properties": {
        "test_id": {"const": "ldp-proof-privacy-rejection-001"},
        "prohibited_private_canary_field_names": {"const": ["private_id", "owner_capability", "reviewer_identity", "private_note", "credential", "exact_location", "ip_address"]},
        "injected": {"const": true},
        "rejected": {"const": true},
        "candidate_contains_canary_fields": {"const": false},
        "publication_blocked": {"const": true},
        "verified_artifact_count_delta": {"const": 0},
        "published_projection_count_delta": {"const": 0}
      }
    },
    "circle_gateway": {
      "type": "object",
      "additionalProperties": false,
      "required": ["record_id", "gateway_role", "is_resilience_system", "parent_record_ids", "dissent_receipt_id", "question", "decision_method", "dissent", "tangible_artifact", "return_or_handoff"],
      "properties": {
        "record_id": {"type": "string", "minLength": 1},
        "gateway_role": {"enum": ["opening", "return"]},
        "is_resilience_system": {"const": false},
        "parent_record_ids": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
        "dissent_receipt_id": {"const": "ldp-proof-dissent-001"},
        "question": {"type": "string", "minLength": 1},
        "decision_method": {"type": "string", "minLength": 1},
        "dissent": {"type": "string", "minLength": 1},
        "tangible_artifact": {"type": "string", "minLength": 1},
        "return_or_handoff": {"type": "string", "minLength": 1}
      }
    },
    "circle_opening": {"allOf": [{"$ref": "#/$defs/circle_gateway"}, {"properties": {"gateway_role": {"const": "opening"}}}]},
    "circle_return": {"allOf": [{"$ref": "#/$defs/circle_gateway"}, {"properties": {"gateway_role": {"const": "return"}}}]},
    "system_handoff": {
      "type": "object",
      "additionalProperties": false,
      "required": ["sequence", "system_id", "parent_record_id", "handoff_receipt", "handoff", "record"],
      "properties": {
        "sequence": {"type": "integer", "minimum": 1, "maximum": 6},
        "system_id": {"enum": ["skill_map", "build_labs", "transition_field_guides", "ark", "local_arks", "resilience_ledger"]},
        "parent_record_id": {"type": "string", "minLength": 1},
        "handoff_receipt": {"type": "string", "minLength": 1},
        "handoff": {"$ref": "#/$defs/handoff_controls"},
        "record": {"$ref": "https://ghrisx.com/schemas/resilience-artifact-v1.json"}
      }
    },
    "handoff_controls": {
      "type": "object",
      "additionalProperties": false,
      "required": ["sources", "source_record_ids", "dissent_receipt_id", "correction_receipt_id", "uncertainty", "custody_authority", "permitted_use", "representation_refusal", "withdrawal_route", "correction_route", "human_responsibility", "machine_duty", "test_fire", "test_result", "failure_state", "restoration_path", "expires_at", "retirement_or_dissolution"],
      "properties": {
        "sources": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
        "source_record_ids": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
        "dissent_receipt_id": {"const": "ldp-proof-dissent-001"},
        "correction_receipt_id": {"const": "ldp-proof-correction-001"},
        "uncertainty": {"type": "string", "minLength": 1},
        "custody_authority": {"type": "string", "minLength": 1},
        "permitted_use": {"type": "string", "minLength": 1},
        "representation_refusal": {"type": "string", "minLength": 1},
        "withdrawal_route": {"type": "string", "minLength": 1},
        "correction_route": {"type": "string", "minLength": 1},
        "human_responsibility": {"type": "string", "minLength": 1},
        "machine_duty": {"type": "string", "minLength": 1},
        "test_fire": {"enum": ["absence", "outage", "scarcity", "error", "capture", "exclusion"]},
        "test_result": {"enum": ["synthetic_pass", "synthetic_pass_after_correction", "synthetic_fail", "not_tested", "disputed"]},
        "failure_state": {"type": "string", "minLength": 1},
        "restoration_path": {"type": "string", "minLength": 1},
        "expires_at": {"type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"},
        "retirement_or_dissolution": {"type": "string", "minLength": 1}
      }
    },
    "skill_map_handoff": {"allOf": [{"$ref": "#/$defs/system_handoff"}, {"properties": {"sequence": {"const": 1}, "system_id": {"const": "skill_map"}, "record": {"properties": {"artifact_type": {"const": "skill_map_record"}}}}}]},
    "build_lab_handoff": {"allOf": [{"$ref": "#/$defs/system_handoff"}, {"properties": {"sequence": {"const": 2}, "system_id": {"const": "build_labs"}, "record": {"properties": {"artifact_type": {"const": "build_lab_canvas"}}}}}]},
    "field_guide_handoff": {"allOf": [{"$ref": "#/$defs/system_handoff"}, {"properties": {"sequence": {"const": 3}, "system_id": {"const": "transition_field_guides"}, "record": {"properties": {"artifact_type": {"const": "transition_field_guide"}}}}}]},
    "ark_handoff": {"allOf": [{"$ref": "#/$defs/system_handoff"}, {"properties": {"sequence": {"const": 4}, "system_id": {"const": "ark"}, "record": {"properties": {"artifact_type": {"const": "ark_manifest"}}}}}]},
    "local_ark_handoff": {"allOf": [{"$ref": "#/$defs/system_handoff"}, {"properties": {"sequence": {"const": 5}, "system_id": {"const": "local_arks"}, "record": {"properties": {"artifact_type": {"const": "local_ark_charter"}}}}}]},
    "ledger_handoff": {"allOf": [{"$ref": "#/$defs/system_handoff"}, {"properties": {"sequence": {"const": 6}, "system_id": {"const": "resilience_ledger"}, "record": {"properties": {"artifact_type": {"const": "resilience_ledger_receipt"}}}}}]},
    "door_test": {
      "type": "object",
      "additionalProperties": false,
      "required": ["dimension", "test", "synthetic_result", "evidence", "observed_failure", "real_world_capacity_proven", "failure_condition"],
      "properties": {
        "dimension": {"enum": ["reachable", "usable", "answerable", "repairable", "succession_safe"]},
        "test": {"type": "string", "minLength": 1},
        "synthetic_result": {"enum": ["pass", "pass_after_correction", "fail", "not_tested", "disputed"]},
        "evidence": {"type": "array", "minItems": 2, "uniqueItems": true, "items": {"type": "string", "minLength": 1}},
        "observed_failure": {"oneOf": [{"type": "null"}, {"type": "string", "minLength": 1}]},
        "real_world_capacity_proven": {"const": false},
        "failure_condition": {"type": "string", "minLength": 1}
      }
    },
    "reachable_test": {"allOf": [{"$ref": "#/$defs/door_test"}, {"properties": {"dimension": {"const": "reachable"}}}]},
    "usable_test": {"allOf": [{"$ref": "#/$defs/door_test"}, {"properties": {"dimension": {"const": "usable"}}}]},
    "answerable_test": {"allOf": [{"$ref": "#/$defs/door_test"}, {"properties": {"dimension": {"const": "answerable"}}}]},
    "repairable_test": {"allOf": [{"$ref": "#/$defs/door_test"}, {"properties": {"dimension": {"const": "repairable"}}}]},
    "succession_safe_test": {"allOf": [{"$ref": "#/$defs/door_test"}, {"properties": {"dimension": {"const": "succession_safe"}}}]},
    "publication_stage": {
      "type": "object",
      "additionalProperties": false,
      "required": ["sequence", "stage", "status", "human_authority", "proof_required"],
      "properties": {
        "sequence": {"type": "integer", "minimum": 1, "maximum": 7},
        "stage": {"enum": ["deliberate_submission", "private_receipt", "human_evidence_and_privacy_review", "server_candidate_digest", "owner_exact_digest_approval", "distinct_human_publication_approval", "explicit_human_publish"]},
        "status": {"const": "not_run"},
        "human_authority": {"type": "string", "minLength": 1},
        "proof_required": {"type": "string", "minLength": 1}
      }
    },
    "stage_deliberate_submission": {"allOf": [{"$ref": "#/$defs/publication_stage"}, {"properties": {"sequence": {"const": 1}, "stage": {"const": "deliberate_submission"}}}]},
    "stage_private_receipt": {"allOf": [{"$ref": "#/$defs/publication_stage"}, {"properties": {"sequence": {"const": 2}, "stage": {"const": "private_receipt"}}}]},
    "stage_human_review": {"allOf": [{"$ref": "#/$defs/publication_stage"}, {"properties": {"sequence": {"const": 3}, "stage": {"const": "human_evidence_and_privacy_review"}}}]},
    "stage_candidate_digest": {"allOf": [{"$ref": "#/$defs/publication_stage"}, {"properties": {"sequence": {"const": 4}, "stage": {"const": "server_candidate_digest"}}}]},
    "stage_owner_approval": {"allOf": [{"$ref": "#/$defs/publication_stage"}, {"properties": {"sequence": {"const": 5}, "stage": {"const": "owner_exact_digest_approval"}}}]},
    "stage_distinct_publish_approval": {"allOf": [{"$ref": "#/$defs/publication_stage"}, {"properties": {"sequence": {"const": 6}, "stage": {"const": "distinct_human_publication_approval"}}}]},
    "stage_explicit_publish": {"allOf": [{"$ref": "#/$defs/publication_stage"}, {"properties": {"sequence": {"const": 7}, "stage": {"const": "explicit_human_publish"}}}]},
    "integrity": {
      "type": "object",
      "additionalProperties": false,
      "required": ["algorithm", "canonicalization", "digest"],
      "properties": {
        "algorithm": {"const": "SHA-256"},
        "canonicalization": {"const": "Set integrity.digest to null, recursively sort object keys, preserve array order, serialize as compact UTF-8 JSON, then compute SHA-256."},
        "digest": {"oneOf": [{"type": "null"}, {"type": "string", "pattern": "^[a-f0-9]{64}$"}]}
      }
    }
  },
  "x-ghrisx-truth-boundary": "Passing this schema proves fixture shape only. It does not prove a real door exists, a real person used it, a human reviewed it, intake is active, a public projection exists, or any capacity may be counted."
}
