{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-review-record-schema.json",
  "title": "ReviewRecord",
  "description": "A funder/analyst rating of a certification (Ticket #3). Enables the\n\"verify the reviewer\" bridge — calibrate a reviewer on verifiable outcomes,\nthen trust their ratings on unverifiable calls. Many-per-invoice: dedup key is\n(invoice_ref, reviewer_handle).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-governed-decisions-api-openapi.yml#/components/schemas/ReviewRecord",
  "properties": {
    "invoice_ref": {
      "type": "string",
      "title": "Invoice Ref"
    },
    "reviewer_handle": {
      "type": "string",
      "title": "Reviewer Handle"
    },
    "rating": {
      "type": "number",
      "title": "Rating"
    },
    "agent_handle": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Handle"
    },
    "decision_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decision Id"
    },
    "review_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Review Date"
    },
    "source": {
      "type": "string",
      "title": "Source",
      "default": "manual"
    }
  },
  "type": "object",
  "required": [
    "invoice_ref",
    "reviewer_handle",
    "rating"
  ]
}