{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/africanmarketos-com/json-schema/africanmarketos-com-calibration-readiness-response-schema.json",
  "title": "CalibrationReadinessResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/africanmarketos-com-admin-api-openapi.yml#/components/schemas/CalibrationReadinessResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "strict_calibrated_ready": {
      "type": "boolean",
      "description": "Full manifested corpus plus representative checks; never smoke-only readiness."
    },
    "full_corpus_attested": {
      "type": "boolean"
    },
    "inventory_disposition_complete": {
      "type": "boolean",
      "description": "Every inventoried record is attested or has a verified governed retirement. Not empirical validation or replacement coverage."
    },
    "active_manifest_attestation_status": {
      "type": "string",
      "enum": [
        "pass",
        "fail",
        "not_evaluated"
      ]
    },
    "strict_smoke_calibration_ready": {
      "type": "boolean",
      "description": "Representative subset only. Does not override a false full_corpus_attested."
    },
    "readiness_scope": {
      "type": "string",
      "enum": [
        "representative_runtime_checks_and_full_manifest_matrix"
      ]
    },
    "calibration_readiness_export": {
      "type": "object",
      "properties": {
        "full_corpus_attested": {
          "type": "boolean"
        },
        "inventory_disposition_complete": {
          "type": "boolean",
          "description": "Every inventoried record is attested or has a verified governed retirement. Not empirical validation or replacement coverage."
        },
        "active_manifest_attestation_status": {
          "type": "string",
          "enum": [
            "pass",
            "fail",
            "not_evaluated"
          ]
        },
        "calibration_attestation_status": {
          "type": "string",
          "enum": [
            "pass",
            "partial_with_governed_retirements",
            "fail"
          ]
        },
        "full_coverage": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string"
            },
            "total_manifest_records": {
              "type": "integer",
              "minimum": 0
            },
            "active_manifest_records": {
              "type": "integer",
              "minimum": 0
            },
            "attested_records": {
              "type": "integer",
              "minimum": 0
            },
            "quarantined_records": {
              "type": "integer",
              "minimum": 0
            },
            "retired_records": {
              "type": "integer",
              "minimum": 0
            },
            "retired": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "manifest_key": {
                    "type": "string"
                  },
                  "namespace": {
                    "type": "string"
                  },
                  "key": {
                    "type": "string"
                  },
                  "decision_ref": {
                    "type": "string"
                  },
                  "reason_code": {
                    "type": "string"
                  },
                  "approved_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "serving_prohibited": {
                    "type": "boolean",
                    "enum": [
                      true
                    ]
                  },
                  "attested": {
                    "type": "boolean",
                    "enum": [
                      false
                    ]
                  },
                  "replacement_available": {
                    "type": "boolean",
                    "enum": [
                      false
                    ]
                  },
                  "source_truth_verified": {
                    "type": "boolean",
                    "enum": [
                      false
                    ]
                  }
                },
                "additionalProperties": true
              }
            },
            "inventory_disposition_complete": {
              "type": "boolean",
              "description": "Every inventoried record is attested or has a verified governed retirement. Not empirical validation or replacement coverage."
            },
            "active_manifest_attestation_status": {
              "type": "string",
              "enum": [
                "pass",
                "fail",
                "not_evaluated"
              ]
            },
            "full_corpus_attested": {
              "type": "boolean"
            },
            "failure_reasons": {
              "type": "object",
              "additionalProperties": {
                "type": "integer",
                "minimum": 0
              }
            }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}