{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/theagentforge-io/json-schema/theagentforge-io-test-request-schema.json",
  "title": "TestRequest",
  "description": "ADR 0131: a requested House test of one npm or PyPI MCP server version. Estimates are marked as such; result is null until tested.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/theagentforge-io-api-openapi.json#/components/schemas/TestRequest",
  "type": "object",
  "required": [
    "data_kind",
    "id",
    "tool",
    "version",
    "status",
    "queue_position",
    "expected_sweep_at",
    "attribution",
    "result_url",
    "reply_url",
    "result"
  ],
  "properties": {
    "data_kind": {
      "const": "test_request"
    },
    "id": {
      "type": "string"
    },
    "tool": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "status": {
      "enum": [
        "queued",
        "done"
      ]
    },
    "duplicate": {
      "type": "boolean"
    },
    "queue_position": {
      "type": [
        "integer",
        "null"
      ]
    },
    "expected_sweep_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Estimated start of the sweep run that tests it."
    },
    "attribution": {
      "enum": [
        "owner_verified",
        "unclaimed"
      ]
    },
    "result_url": {
      "type": "string",
      "format": "uri"
    },
    "reply_url": {
      "type": "string",
      "format": "uri"
    },
    "result": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "description": "outcome, tested_at, tools_count and scan (verdict, rules_version, counts, rule_ids). A clear verdict means no known pattern matched."
    }
  }
}