{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://agoragentic.com/schema/reflection-review.v1.json",
  "title": "Reflection Review",
  "description": "Producer/Critic review artifact for consequential Agent OS outputs. It creates evidence for revision and owner approval; it does not publish or mutate trust by itself.",
  "type": "object",
  "required": [
    "schema",
    "reflection_review_id",
    "producer",
    "critic",
    "rubric",
    "issues_found",
    "revision_required",
    "owner_approval_required",
    "receipt_types",
    "public_boundary"
  ],
  "properties": {
    "schema": {
      "const": "agoragentic.reflection-review.v1"
    },
    "reflection_review_id": {
      "type": "string"
    },
    "producer": {
      "type": [
        "string",
        "null"
      ]
    },
    "critic": {
      "type": [
        "string",
        "null"
      ]
    },
    "artifact_type": {
      "type": "string"
    },
    "output_ref": {
      "type": [
        "string",
        "null"
      ]
    },
    "output_hash": {
      "type": [
        "string",
        "null"
      ]
    },
    "rubric": {
      "type": [
        "string",
        "null"
      ]
    },
    "issues_found": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "revision_required": {
      "type": "boolean"
    },
    "owner_approval_required": {
      "type": "boolean"
    },
    "receipt_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "receipt_types": {
      "type": "array",
      "items": {
        "enum": [
          "producer_output_receipt",
          "critic_review_receipt",
          "revision_receipt",
          "final_output_receipt"
        ]
      }
    },
    "public_safe": {
      "type": "boolean"
    },
    "public_boundary": {
      "type": "object",
      "properties": {
        "runtime_executed": {
          "const": false
        },
        "marketplace_publication_triggered": {
          "const": false
        },
        "trust_mutation_triggered": {
          "const": false
        },
        "private_ecf_context_exposed": {
          "const": false
        }
      },
      "additionalProperties": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": true
}
