{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aidemos-com/json-schema/aidemos-com-event-in-schema.json",
  "title": "EventIn",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aidemos-com-openapi.json#/components/schemas/EventIn",
  "properties": {
    "record_kind": {
      "type": "string",
      "enum": [
        "test_case_review",
        "cell_acceptance"
      ],
      "title": "Record Kind"
    },
    "benchmark_version_id": {
      "type": "string",
      "title": "Benchmark Version Id"
    },
    "subject_id": {
      "type": "string",
      "title": "Subject Id"
    },
    "scenario_id": {
      "type": "string",
      "title": "Scenario Id"
    },
    "round": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Round"
    },
    "pinned_digest": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "title": "Pinned Digest"
    },
    "test_case_version_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Test Case Version Id"
    },
    "clickup_task_id": {
      "type": "string",
      "title": "Clickup Task Id"
    },
    "researcher_clickup_id": {
      "type": "string",
      "title": "Researcher Clickup Id"
    },
    "researcher_actor_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Researcher Actor Id"
    },
    "reviewer_actor_id": {
      "type": "string",
      "title": "Reviewer Actor Id"
    },
    "reviewed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Reviewed At"
    },
    "source_task_updated_at": {
      "type": "string",
      "title": "Source Task Updated At"
    },
    "source_comment_cursor": {
      "type": "string",
      "title": "Source Comment Cursor"
    },
    "submission_sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "title": "Submission Sha256"
    },
    "post_write_sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "title": "Post Write Sha256"
    },
    "outcome": {
      "type": "string",
      "enum": [
        "accepted",
        "needs_update",
        "blocked"
      ],
      "title": "Outcome"
    },
    "researcher_verdict": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "pass",
            "fail",
            "not_gradable"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Researcher Verdict"
    },
    "reviewed_verdict": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "pass",
            "fail",
            "not_gradable"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Reviewed Verdict"
    },
    "archive_run_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Archive Run Id"
    },
    "archive_evidence_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Archive Evidence Id"
    },
    "clickup_review_comment_id": {
      "type": "string",
      "title": "Clickup Review Comment Id"
    },
    "remediation_type": {
      "type": "string",
      "enum": [
        "none",
        "clarification",
        "recapture",
        "rerun"
      ],
      "title": "Remediation Type"
    },
    "blocker_owner": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Blocker Owner"
    },
    "structured_signal_codes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Structured Signal Codes"
    },
    "research_quality_score": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 5.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Research Quality Score"
    },
    "quality_signal_summary": {
      "anyOf": [
        {
          "additionalProperties": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ]
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Quality Signal Summary"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "record_kind",
    "benchmark_version_id",
    "subject_id",
    "scenario_id",
    "round",
    "pinned_digest",
    "clickup_task_id",
    "researcher_clickup_id",
    "reviewer_actor_id",
    "reviewed_at",
    "source_task_updated_at",
    "source_comment_cursor",
    "submission_sha256",
    "post_write_sha256",
    "outcome",
    "clickup_review_comment_id",
    "remediation_type"
  ]
}