{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/africanmarketos-com/json-schema/africanmarketos-com-export-job-response-schema.json",
  "title": "ExportJobResponse",
  "description": "Governed historical export only. Creation returns 201; deletion 200 preserves the source. Status retrieval is read-only. Legacy/expired jobs return requires_regeneration with no download URL; their artifact URL returns 410. Unknown or inaccessible jobs return 404; changed/missing source lineage rejects retrieval. No export authorizes an action.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/africanmarketos-com-export-jobs-api-openapi.yml#/components/schemas/ExportJobResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "code": {
      "type": "string"
    },
    "job_id": {
      "type": "string"
    },
    "job_status": {
      "type": "string"
    },
    "job": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "schema": {
          "type": "string"
        },
        "source_kind": {
          "type": "string"
        },
        "source_ref": {
          "type": "string"
        },
        "artifact_boundary": {
          "$ref": "#/$defs/ArtifactBoundary"
        },
        "download_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "file_generation": {
          "type": "boolean"
        },
        "expires_at": {
          "type": "string"
        },
        "source_sha256": {
          "type": "string"
        },
        "artifact_sha256": {
          "type": "string"
        },
        "render_spec_sha256": {
          "type": "string"
        },
        "mime_type": {
          "type": "string"
        },
        "byte_length": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": true
    },
    "artifact_boundary": {
      "$ref": "#/$defs/ArtifactBoundary"
    },
    "source_kind": {
      "type": "string",
      "enum": [
        "persisted_decision_check"
      ]
    },
    "source_ref": {
      "type": "string"
    },
    "download_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "file_generation": {
      "type": "boolean"
    },
    "expires_at": {
      "type": "string"
    },
    "source_sha256": {
      "type": "string"
    },
    "artifact_sha256": {
      "type": "string"
    },
    "render_spec_sha256": {
      "type": "string"
    },
    "mime_type": {
      "type": "string"
    },
    "byte_length": {
      "type": "integer",
      "minimum": 0
    },
    "get_is_read_only": {
      "type": "boolean"
    },
    "artifact_access_revoked": {
      "type": "boolean"
    },
    "source_deleted": {
      "type": "boolean"
    },
    "provenance_note": {
      "type": "string"
    },
    "action_authorization": {
      "$ref": "#/$defs/ActionAuthorizationBoundary"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "ActionAuthorizationBoundary": {
      "type": "object",
      "required": [
        "contract",
        "decision",
        "capability_issued",
        "execution_authorized",
        "source_authenticity_verified",
        "signer_standing_verified",
        "revocation_checked",
        "signature"
      ],
      "properties": {
        "contract": {
          "type": "string",
          "enum": [
            "mvr-action-boundary@1"
          ]
        },
        "decision": {
          "type": "string",
          "enum": [
            "BLOCKED"
          ]
        },
        "capability_issued": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "execution_authorized": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "reason": {
          "type": "string"
        },
        "source_authenticity_verified": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "signer_standing_verified": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "revocation_checked": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "signature": {
          "enum": [
            null
          ]
        }
      },
      "additionalProperties": false,
      "description": "Required fail-closed action boundary, not a signed permission capability. Missing, malformed or unknown boundaries must be treated as BLOCKED by the host. This release cannot emit ALLOWED. Independent authority is required outside AMOS. Legacy authorized output-use labels never lift this boundary."
    },
    "ArtifactBoundary": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "contract",
        "headline",
        "notice",
        "source_kind",
        "decision_check_id",
        "response_hash",
        "execution_authorized",
        "capability_issued",
        "current_reliance_authorized",
        "source_authenticity_verified",
        "signer_standing_verified",
        "revocation_checked"
      ],
      "properties": {
        "contract": {
          "type": "string",
          "enum": [
            "mvr-artifact-boundary@2"
          ]
        },
        "headline": {
          "type": "string",
          "enum": [
            "BLOCKED: NO EXECUTION PERMISSION"
          ]
        },
        "notice": {
          "type": "string",
          "enum": [
            "Historical decision support only. Source claims and institutional authority are not verified by this export. Current reliance requires fresh evaluation and independent authority."
          ]
        },
        "source_kind": {
          "type": "string",
          "enum": [
            "persisted_decision_check"
          ]
        },
        "decision_check_id": {
          "type": "string",
          "pattern": "^DCHK-[A-Za-z0-9-]{1,100}$"
        },
        "response_hash": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "execution_authorized": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "capability_issued": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "current_reliance_authorized": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "source_authenticity_verified": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "signer_standing_verified": {
          "type": "boolean",
          "enum": [
            false
          ]
        },
        "revocation_checked": {
          "type": "boolean",
          "enum": [
            false
          ]
        }
      },
      "description": "Non-authorizing historical artifact boundary. Not a signed permission receipt or proof of source truth, issuer standing, current reliance or revocation checking."
    }
  }
}