{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ARR Opera daily Profile output",
  "description": "SuperAgent Profile editor compatible top-level transport schema. The trusted runtime validates the full nested contract independently.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "contract_version",
    "job_id",
    "source_file_id",
    "status",
    "business_date",
    "processor_result",
    "files"
  ],
  "properties": {
    "contract_version": {
      "type": "string",
      "description": "Must equal arr-opera-daily-agent-1"
    },
    "job_id": {
      "type": "string",
      "description": "The unchanged ARR job_id from PROGRAM_INPUT"
    },
    "source_file_id": {
      "type": "string",
      "description": "The unchanged ARR source_file_id from PROGRAM_INPUT"
    },
    "status": {
      "type": "string",
      "description": "success or failed, matching processor_result.status"
    },
    "business_date": {
      "type": "string",
      "description": "YYYY-MM-DD, or an empty string when processor_result.business_date is null"
    },
    "processor_result": {
      "type": "object",
      "description": "The complete, unmodified Skill result.json object"
    },
    "files": {
      "type": "object",
      "description": "Runtime-local file descriptors for daily_report, result_json, structured_result, and exception_report"
    }
  }
}
