{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://anthonyveltri.github.io/durable-governance/schemas/continuity-review-v4.schema.json",
  "title": "Continuity Review Checklist (Version 4 / Machine Edition 4.0) by Anthony Veltri",
  "description": "Draft 2020-12 JSON Schema for the Continuity Review Checklist (Version 4; machine alias 4.0), developed by Anthony Veltri (https://orcid.org/0009-0009-8697-6103). Canonical page: https://anthonyveltri.com/continuity-review-checklist/. Zenodo Version DOI: https://doi.org/10.5281/zenodo.24571958 (Concept DOI: https://doi.org/10.5281/zenodo.24571957). Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Mirrors the four header fields and six operational sections of Version 4.",
  "$comment": "Author: Anthony Veltri (https://anthonyveltri.com#person, ORCID 0009-0009-8697-6103). Edition: Version 4 (machine token 4.0). License: CC BY 4.0. Technical interoperability recommendation: if you publish a modified validation schema, use a distinct $id URI in a namespace you control alongside CC BY 4.0 modification notices so validators do not confuse adapted rules with the canonical schema.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_id",
    "instrument_edition",
    "header",
    "what_must_continue",
    "exposure_layers",
    "dependencies",
    "record_and_context",
    "last_recoverable_decision_point",
    "decision_gate"
  ],
  "properties": {
    "schema_id": {
      "const": "https://anthonyveltri.github.io/durable-governance/schemas/continuity-review-v4.schema.json",
      "description": "Canonical JSON Schema URI for Continuity Review Checklist Version 4."
    },
    "instrument_edition": {
      "type": "string",
      "enum": [
        "4.0",
        "Version 4"
      ],
      "description": "Edition identifier. Machine token 4.0 is a documented alias of the issued PDF Version 4."
    },
    "evidence_context": {
      "type": "string",
      "enum": [
        "operational_record",
        "public_record",
        "hypothetical_worked_case"
      ],
      "description": "Optional tag distinguishing live institutional records from hypothetical worked examples."
    },
    "header": {
      "type": "object",
      "additionalProperties": false,
      "description": "Top worksheet block identifying the capability, proposed change, reviewers, and scheduled action date.",
      "required": [
        "capability_under_review",
        "pending_action",
        "reviewer",
        "action_date"
      ],
      "properties": {
        "capability_under_review": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Operational or scientific capability under review."
        },
        "pending_action": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Reorganization, closure, transfer, staffing change, or vendor offboarding under consideration."
        },
        "reviewer": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Names or roles of the domain lead and decision-authority reviewer completing the gate."
        },
        "action_date": {
          "type": "string",
          "format": "date",
          "description": "Scheduled or proposed effective date of the pending action (ISO 8601 YYYY-MM-DD)."
        }
      }
    },
    "what_must_continue": {
      "type": "object",
      "additionalProperties": false,
      "description": "Section 1: Name the capability, not the building.",
      "required": [
        "capability_one_sentence",
        "who_relies_and_what_depends",
        "consulted_status"
      ],
      "properties": {
        "capability_one_sentence": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "The scientific or operational capability stated in one sentence."
        },
        "who_relies_and_what_depends": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Internal teams, external partners, downstream systems, or data users that depend on the capability."
        },
        "consulted_status": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Record of which users, partners, and outside data users have been consulted and which have not yet been consulted."
        }
      }
    },
    "exposure_layers": {
      "type": "object",
      "additionalProperties": false,
      "description": "Section 2: Where exposure sits across the five stewardship layers. Verified requires a non-empty evidence_reference.",
      "required": [
        "translation",
        "external_protection",
        "internal_governance",
        "custody",
        "operations"
      ],
      "properties": {
        "translation": {
          "$ref": "#/$defs/exposureLayerFinding",
          "description": "Translation: do decision makers see the consequences, dependencies, and options?"
        },
        "external_protection": {
          "$ref": "#/$defs/exposureLayerFinding",
          "description": "External protection: what enforceable obligations or review requirements apply?"
        },
        "internal_governance": {
          "$ref": "#/$defs/exposureLayerFinding",
          "description": "Internal governance: who decides, and who must evaluate continuity first?"
        },
        "custody": {
          "$ref": "#/$defs/exposureLayerFinding",
          "description": "Custody: who holds the record, and who holds the context to interpret it?"
        },
        "operations": {
          "$ref": "#/$defs/exposureLayerFinding",
          "description": "Operations: who runs it day to day, with what staff and funding, and who is the backup?"
        }
      }
    },
    "dependencies": {
      "type": "object",
      "additionalProperties": false,
      "description": "Section 3: Dependencies across five fixed rows, capturing current holder, whether the action weakens it, and fallback if lost.",
      "required": [
        "people",
        "facilities_and_equipment",
        "agreements_and_permits",
        "funding",
        "interpretive_context"
      ],
      "properties": {
        "people": {
          "$ref": "#/$defs/dependencyRow",
          "description": "Key personnel, operators, curators, and specialists."
        },
        "facilities_and_equipment": {
          "$ref": "#/$defs/dependencyRow",
          "description": "Physical space, environmental controls, sensors, compute, or laboratory instruments."
        },
        "agreements_and_permits": {
          "$ref": "#/$defs/dependencyRow",
          "description": "Interagency agreements, site permits, data-sharing agreements, or vendor contracts."
        },
        "funding": {
          "$ref": "#/$defs/dependencyRow",
          "description": "Operating budget lines, grants, reimbursable agreements, or fee allocations."
        },
        "interpretive_context": {
          "$ref": "#/$defs/dependencyRow",
          "description": "Documented and tacit knowledge required to interpret records, anomalies, and operating history."
        }
      }
    },
    "record_and_context": {
      "type": "object",
      "additionalProperties": false,
      "description": "Section 4: Record and context. Uses distinct boolean planned and verified checkboxes for each of the three preservation and readback items.",
      "required": [
        "data_and_samples_survival",
        "method_and_calibration_history_documented",
        "successor_demonstrated_interpretation"
      ],
      "properties": {
        "data_and_samples_survival": {
          "$ref": "#/$defs/recordContextItem",
          "description": "Data and samples are stored where they will survive the action, with storage conditions maintained."
        },
        "method_and_calibration_history_documented": {
          "$ref": "#/$defs/recordContextItem",
          "description": "Method changes, calibration history, compromised batches, and site history are documented."
        },
        "successor_demonstrated_interpretation": {
          "$ref": "#/$defs/recordContextItem",
          "description": "A successor has demonstrated correct interpretation of selected records, not only met the holder."
        }
      }
    },
    "last_recoverable_decision_point": {
      "type": "object",
      "additionalProperties": false,
      "description": "Section 5: Last recoverable decision point, including readiness deadline, irreversible exposure event, and accountable role through transfer.",
      "required": [
        "readiness_deadline",
        "irreversible_exposure",
        "accountable_role_through_transfer",
        "acknowledged_on"
      ],
      "properties": {
        "readiness_deadline": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "When transfer must be complete (for example, a key person's departure or contract expiration)."
        },
        "readiness_deadline_date": {
          "type": "string",
          "format": "date",
          "description": "Optional ISO 8601 date corresponding to readiness_deadline when a calendar date is known."
        },
        "irreversible_exposure": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Event after which the capability can no longer be restored, including whether a pause breaks a continuous record."
        },
        "accountable_role_through_transfer": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Named role accountable from approval through completed transfer or authorized termination."
        },
        "acknowledged_on": {
          "oneOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "const": "unacknowledged"
            }
          ],
          "description": "ISO 8601 date on which the accountable role acknowledged custody responsibility, or 'unacknowledged' while open."
        },
        "latest_mitigation_authorization_date": {
          "type": "string",
          "format": "date",
          "description": "Companion schema extension (not on printed one-page PDF): latest calendar date to authorize mitigation while accounting for lead time ahead of readiness_deadline."
        }
      }
    },
    "decision_gate": {
      "type": "object",
      "additionalProperties": false,
      "description": "Section 6: Decision gate. Represents a typed exit only when recorded; supports pending/escalated states that withhold readiness clearance.",
      "required": [
        "decision_status",
        "escalation_triggered",
        "readiness_finding_withheld",
        "transfer_clearance_claimed",
        "escalation_route_if_unresolved",
        "revisit_when"
      ],
      "properties": {
        "decision_status": {
          "type": "string",
          "enum": [
            "recorded",
            "pending"
          ],
          "description": "Use 'recorded' when an authorized role selects one of the three gate exits; use 'pending' when unanswered, refused, or escalated without decision."
        },
        "selected_exit": {
          "type": "string",
          "enum": [
            "demonstrate",
            "mitigate",
            "accept_defined_loss"
          ],
          "description": "Authorized gate exit. Present only when decision_status is 'recorded'."
        },
        "escalation_triggered": {
          "type": "boolean",
          "description": "True when unresolved exposure has been escalated up the decision chain."
        },
        "readiness_finding_withheld": {
          "type": "boolean",
          "description": "True while the gate decision remains pending or escalated without an authorized exit; false once an authorized role records a gate decision (demonstrate, mitigate, or accept_defined_loss). A recorded 'mitigate' decision issues a formal conditional-hold finding (readiness_finding_withheld: false) while still holding the transfer (transfer_hold_until_verified: true, transfer_clearance_claimed: false)."
        },
        "transfer_clearance_claimed": {
          "type": "boolean",
          "description": "True only when continuity is demonstrated in place; must be false for 'mitigate' holds and 'pending' reviews."
        },
        "evidence_reference": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Required for 'demonstrate': reference to verified continuity evidence."
        },
        "mitigation_action": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Required for 'mitigate': concrete remedial action required before transfer completes."
        },
        "mitigation_owner": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Required for 'mitigate': named role responsible for completing mitigation_action."
        },
        "verified_complete_target_date": {
          "type": "string",
          "format": "date",
          "description": "Required for 'mitigate': target date by which mitigation must be verified complete prior to transfer."
        },
        "transfer_hold_until_verified": {
          "type": "boolean",
          "description": "Required true for 'mitigate': confirms transfer waits until mitigation and readback are verified."
        },
        "defined_loss_statement": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Required for 'accept_defined_loss': plain-language statement of the capability being given up."
        },
        "obligations_checked": {
          "type": "boolean",
          "description": "Required true for 'accept_defined_loss': confirms statutory, contractual, and archival obligations were checked."
        },
        "specification_or_acceptance_criteria_reference": {
          "type": "string",
          "description": "Footer row 1: reference to the transfer specification, readback protocol, or acceptance criteria."
        },
        "approving_role_and_date": {
          "type": "object",
          "additionalProperties": false,
          "description": "Footer row 2: approving authority role and date when decision_status is 'recorded'.",
          "required": [
            "approving_role",
            "approval_date"
          ],
          "properties": {
            "approving_role": {
              "$ref": "#/$defs/nonEmptyString"
            },
            "approval_date": {
              "type": "string",
              "format": "date"
            }
          }
        },
        "escalation_route_if_unresolved": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Footer row 3: designated authority or governance body that receives unresolved continuity gaps."
        },
        "revisit_when": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Footer row 4: scheduled review date or operational event that triggers re-evaluation."
        },
        "gate_notes": {
          "type": "string",
          "description": "Optional context on gate deliberations or conditions."
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "decision_status": {
                "const": "pending"
              }
            },
            "required": [
              "decision_status"
            ]
          },
          "then": {
            "properties": {
              "readiness_finding_withheld": {
                "const": true
              },
              "transfer_clearance_claimed": {
                "const": false
              }
            },
            "not": {
              "anyOf": [
                { "required": ["selected_exit"] },
                { "required": ["approving_role_and_date"] },
                { "required": ["transfer_hold_until_verified"] },
                { "required": ["evidence_reference"] },
                { "required": ["mitigation_action"] },
                { "required": ["mitigation_owner"] },
                { "required": ["verified_complete_target_date"] },
                { "required": ["defined_loss_statement"] },
                { "required": ["obligations_checked"] }
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "decision_status": {
                "const": "recorded"
              }
            },
            "required": [
              "decision_status"
            ]
          },
          "then": {
            "required": [
              "selected_exit",
              "approving_role_and_date",
              "specification_or_acceptance_criteria_reference"
            ],
            "properties": {
              "specification_or_acceptance_criteria_reference": {
                "$ref": "#/$defs/nonEmptyString"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "decision_status": {
                "const": "recorded"
              },
              "selected_exit": {
                "const": "demonstrate"
              }
            },
            "required": [
              "decision_status",
              "selected_exit"
            ]
          },
          "then": {
            "required": [
              "evidence_reference"
            ],
            "properties": {
              "readiness_finding_withheld": {
                "const": false
              },
              "transfer_clearance_claimed": {
                "const": true
              },
              "evidence_reference": {
                "$ref": "#/$defs/nonPlaceholderString"
              },
              "specification_or_acceptance_criteria_reference": {
                "$ref": "#/$defs/nonEmptyString"
              }
            },
            "not": {
              "anyOf": [
                { "required": ["transfer_hold_until_verified"] },
                { "required": ["mitigation_action"] },
                { "required": ["mitigation_owner"] },
                { "required": ["verified_complete_target_date"] },
                { "required": ["defined_loss_statement"] },
                { "required": ["obligations_checked"] }
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "decision_status": {
                "const": "recorded"
              },
              "selected_exit": {
                "const": "mitigate"
              }
            },
            "required": [
              "decision_status",
              "selected_exit"
            ]
          },
          "then": {
            "required": [
              "mitigation_action",
              "mitigation_owner",
              "verified_complete_target_date",
              "transfer_hold_until_verified"
            ],
            "properties": {
              "readiness_finding_withheld": {
                "const": false
              },
              "transfer_clearance_claimed": {
                "const": false
              },
              "transfer_hold_until_verified": {
                "const": true
              },
              "specification_or_acceptance_criteria_reference": {
                "$ref": "#/$defs/nonEmptyString"
              }
            },
            "not": {
              "anyOf": [
                { "required": ["defined_loss_statement"] },
                { "required": ["obligations_checked"] }
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "decision_status": {
                "const": "recorded"
              },
              "selected_exit": {
                "const": "accept_defined_loss"
              }
            },
            "required": [
              "decision_status",
              "selected_exit"
            ]
          },
          "then": {
            "required": [
              "defined_loss_statement",
              "obligations_checked"
            ],
            "properties": {
              "readiness_finding_withheld": {
                "const": false
              },
              "transfer_clearance_claimed": {
                "const": false
              },
              "obligations_checked": {
                "const": true
              }
            },
            "not": {
              "anyOf": [
                { "required": ["transfer_hold_until_verified"] },
                { "required": ["mitigation_action"] },
                { "required": ["mitigation_owner"] },
                { "required": ["verified_complete_target_date"] }
              ]
            }
          }
        }
      ]
    }
  },
  "allOf": [
    {
      "if": {
        "properties": {
          "decision_gate": {
            "type": "object",
            "anyOf": [
              {
                "properties": {
                  "transfer_clearance_claimed": {
                    "const": true
                  }
                },
                "required": [
                  "transfer_clearance_claimed"
                ]
              },
              {
                "properties": {
                  "selected_exit": {
                    "const": "demonstrate"
                  }
                },
                "required": [
                  "selected_exit"
                ]
              }
            ]
          }
        },
        "required": [
          "decision_gate"
        ]
      },
      "then": {
        "properties": {
          "exposure_layers": {
            "properties": {
              "translation": {
                "properties": {
                  "status": {
                    "enum": ["verified", "not_applicable"]
                  }
                }
              },
              "external_protection": {
                "properties": {
                  "status": {
                    "enum": ["verified", "not_applicable"]
                  }
                }
              },
              "internal_governance": {
                "properties": {
                  "status": {
                    "enum": ["verified", "not_applicable"]
                  }
                }
              },
              "custody": {
                "properties": {
                  "status": {
                    "enum": ["verified", "not_applicable"]
                  }
                }
              },
              "operations": {
                "properties": {
                  "status": {
                    "enum": ["verified", "not_applicable"]
                  }
                }
              }
            }
          },
          "record_and_context": {
            "properties": {
              "data_and_samples_survival": {
                "$ref": "#/$defs/clearedRecordContextItem"
              },
              "method_and_calibration_history_documented": {
                "$ref": "#/$defs/clearedRecordContextItem"
              },
              "successor_demonstrated_interpretation": {
                "$ref": "#/$defs/clearedRecordContextItem"
              }
            },
            "anyOf": [
              {
                "properties": {
                  "data_and_samples_survival": {
                    "properties": {
                      "verified": {
                        "const": true
                      }
                    },
                    "required": [
                      "verified"
                    ]
                  }
                },
                "required": [
                  "data_and_samples_survival"
                ]
              },
              {
                "properties": {
                  "method_and_calibration_history_documented": {
                    "properties": {
                      "verified": {
                        "const": true
                      }
                    },
                    "required": [
                      "verified"
                    ]
                  }
                },
                "required": [
                  "method_and_calibration_history_documented"
                ]
              },
              {
                "properties": {
                  "successor_demonstrated_interpretation": {
                    "properties": {
                      "verified": {
                        "const": true
                      }
                    },
                    "required": [
                      "verified"
                    ]
                  }
                },
                "required": [
                  "successor_demonstrated_interpretation"
                ]
              }
            ]
          }
        }
      }
    }
  ],
  "$defs": {
    "nonEmptyString": {
      "type": "string",
      "minLength": 1,
      "pattern": "\\S"
    },
    "nonPlaceholderString": {
      "allOf": [
        {
          "$ref": "#/$defs/nonEmptyString"
        },
        {
          "not": {
            "pattern": "^\\s*(?:[Uu][Nn][Kk][Nn][Oo][Ww][Nn]|[Nn][Oo][Nn][Ee]|[Nn]\\/[Aa]|[Nn][Aa]|[Nn][Uu][Ll][Ll]|[Tt][Bb][Dd]|[Tt][Oo][Dd][Oo]|[Pp][Ee][Nn][Dd][Ii][Nn][Gg]|[Uu][Nn][Vv][Ee][Rr][Ii][Ff][Ii][Ee][Dd]|[Nn][Oo][Tt]\\s+[Rr][Ee][Vv][Ii][Ee][Ww][Ee][Dd]|[Nn][Oo][Tt]\\s+[Aa][Pp][Pp][Ll][Ii][Cc][Aa][Bb][Ll][Ee]|--?)\\s*$"
          }
        }
      ]
    },
    "clearedRecordContextItem": {
      "anyOf": [
        {
          "properties": {
            "verified": {
              "const": true
            }
          },
          "required": [
            "verified"
          ]
        },
        {
          "properties": {
            "not_applicable": {
              "const": true
            }
          },
          "required": [
            "not_applicable",
            "inapplicable_reason"
          ]
        }
      ]
    },
    "exposureLayerFinding": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "status"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "verified",
            "unresolved",
            "not_applicable"
          ]
        },
        "evidence_reference": {
          "type": "string",
          "description": "Required non-empty, non-placeholder citation or record locator whenever status is 'verified'."
        },
        "notes": {
          "type": "string"
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "status": {
                "const": "verified"
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "required": [
              "evidence_reference"
            ],
            "properties": {
              "evidence_reference": {
                "$ref": "#/$defs/nonPlaceholderString"
              }
            }
          }
        }
      ]
    },
    "dependencyRow": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "current_holder",
        "action_weakens_it",
        "fallback_if_lost"
      ],
      "properties": {
        "current_holder": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Column 2: Current holder of the dependency."
        },
        "action_weakens_it": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Column 3: Whether and how the proposed action removes or weakens the dependency."
        },
        "fallback_if_lost": {
          "$ref": "#/$defs/nonEmptyString",
          "description": "Column 4: Operational fallback if lost, or explicit statement that none exists."
        }
      }
    },
    "recordContextItem": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "planned",
        "verified"
      ],
      "properties": {
        "planned": {
          "type": "boolean",
          "description": "Checked when preservation, documentation, or readback is planned (must be false when not_applicable is true)."
        },
        "verified": {
          "type": "boolean",
          "description": "Checked only when completion has been verified against records or demonstrated readback (must be false when not_applicable is true)."
        },
        "not_applicable": {
          "type": "boolean",
          "description": "Optional true when this specific Section 4 item genuinely does not apply to the capability (requires non-placeholder inapplicable_reason)."
        },
        "inapplicable_reason": {
          "$ref": "#/$defs/nonPlaceholderString",
          "description": "Required non-placeholder explanation whenever not_applicable is true; forbidden otherwise."
        },
        "evidence_reference": {
          "type": "string",
          "description": "Supporting non-placeholder record or readback log when verified is true."
        },
        "notes": {
          "type": "string"
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "not_applicable": {
                "const": true
              }
            },
            "required": [
              "not_applicable"
            ]
          },
          "then": {
            "required": [
              "inapplicable_reason"
            ],
            "properties": {
              "planned": {
                "const": false
              },
              "verified": {
                "const": false
              },
              "inapplicable_reason": {
                "$ref": "#/$defs/nonPlaceholderString"
              }
            },
            "not": {
              "required": [
                "evidence_reference"
              ]
            }
          },
          "else": {
            "not": {
              "required": [
                "inapplicable_reason"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "verified": {
                "const": true
              }
            },
            "required": [
              "verified"
            ]
          },
          "then": {
            "required": [
              "evidence_reference"
            ],
            "properties": {
              "evidence_reference": {
                "$ref": "#/$defs/nonPlaceholderString"
              }
            }
          }
        }
      ]
    }
  }
}
