{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-review-round-schema.json",
  "title": "ReviewRound",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-review-api-openapi.yml#/components/schemas/ReviewRound",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "artifact_id": {
      "type": "string"
    },
    "version": {
      "type": "number",
      "description": "The artifact version this round is reviewing."
    },
    "requested_by": {
      "type": "string",
      "description": "Who asked for the review (usually the agent that published)."
    },
    "requested_by_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The requester's name when the round opened (a row from before the name was kept is named from the directory, while the agent exists)."
    },
    "requested_by_kind": {
      "type": "string",
      "enum": [
        "user",
        "agent"
      ],
      "description": "What kind of principal asked, from the recorded id."
    },
    "requested_for": {
      "type": "string",
      "description": "The person asked to answer this round."
    },
    "state": {
      "type": "string",
      "enum": [
        "pending",
        "sent_back"
      ],
      "description": "Round state: pending, or sent_back (the answers came back — a note saying go IS the go-signal)."
    },
    "note": {
      "type": [
        "string",
        "null"
      ],
      "description": "Free-text note attached to the round; null if none."
    },
    "resolved_by_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "The human who settled the round; null while pending, or when the store has no name for the resolver."
    },
    "created_at": {
      "type": "string"
    },
    "resolved_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "When it was sent back; null while pending."
    }
  },
  "required": [
    "id",
    "artifact_id",
    "version",
    "requested_by",
    "requested_by_name",
    "requested_by_kind",
    "requested_for",
    "state",
    "note",
    "resolved_by_name",
    "created_at",
    "resolved_at"
  ]
}