{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentic-atlas-dev/json-schema/agentic-atlas-dev-search-read-schema.json",
  "title": "Bounded search read",
  "description": "The top `limit` hits for one query. The ranking is stable within a Release, so this is a prefix and there is no second page behind it.",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentic-atlas-dev-openapi.json#/components/schemas/SearchRead",
  "type": "object",
  "properties": {
    "catalog_revision": {
      "type": "object",
      "description": "The active Release's Catalog revision, the same identity the X-Catalog-Revision header carries, with the provenance counts beside it.",
      "properties": {
        "revision": {
          "type": "string",
          "description": "The revision two responses must share to be comparable."
        }
      },
      "required": [
        "revision"
      ]
    },
    "query": {
      "type": "string",
      "description": "The query as it was read."
    },
    "filters": {
      "type": "object",
      "description": "The kind narrowing that was applied.",
      "properties": {
        "kind": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "limit": {
      "type": "integer",
      "description": "The bound this response was read under — echoed so a caller can tell a defaulted read from one it asked for."
    },
    "results": {
      "type": "array",
      "description": "The hits, each carrying the evidence that matched.",
      "items": {
        "type": "object"
      }
    },
    "empty": {
      "type": "boolean",
      "description": "True when the read matched nothing."
    }
  },
  "required": [
    "catalog_revision",
    "query",
    "filters",
    "limit",
    "results",
    "empty"
  ]
}