{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "Products: the current reading of each listed product",
 "description": "One row per product listed on agentdrives.com when the release was built: what it does, the level of its newest listed drive and where the agent stopped. A product in its Audit year (profile full) also has how an agent gets in and the drive's summary.",
 "x-table": "products",
 "x-schema-version": "1.1.0",
 "x-license": "CC-BY-4.0",
 "type": "object",
 "properties": {
  "schema_version": {
   "type": "string",
   "const": "1.1.0",
   "description": "The version of this table's schema (semver). Additive changes only within a year; a removal is announced 90 days ahead."
  },
  "id": {
   "type": [
    "string",
    "null"
   ],
   "description": "Stable product id (prd_…); null when the product has none yet."
  },
  "slug": {
   "type": "string",
   "description": "The product's slug on agentdrives.com."
  },
  "name": {
   "type": "string"
  },
  "domain": {
   "type": [
    "string",
    "null"
   ],
   "description": "The product's web domain."
  },
  "page": {
   "type": "string",
   "description": "The product's page on agentdrives.com."
  },
  "profile": {
   "type": "string",
   "enum": [
    "basic",
    "full"
   ],
   "description": "basic: the free listing; full: the product is in its Audit year and its page shows the whole drive."
  },
  "category": {
   "type": [
    "string",
    "null"
   ],
   "description": "Category slug (a leaf of the category tree)."
  },
  "category_name": {
   "type": [
    "string",
    "null"
   ]
  },
  "category_id": {
   "type": [
    "string",
    "null"
   ],
   "description": "Category id (cat_…), as in the categories table."
  },
  "area": {
   "type": [
    "string",
    "null"
   ],
   "description": "Area slug (the category's parent)."
  },
  "area_id": {
   "type": [
    "string",
    "null"
   ],
   "description": "Area id (cat_…)."
  },
  "what_it_does": {
   "type": [
    "string",
    "null"
   ],
   "description": "One sentence on what the product does."
  },
  "level": {
   "type": "integer",
   "minimum": 0,
   "maximum": 5,
   "description": "The agent level, L0 to L5 (agentdrives.com/method)."
  },
  "level_name": {
   "type": "string",
   "description": "The level's name."
  },
  "entry": {
   "type": [
    "string",
    "null"
   ],
   "description": "How an agent gets in: self-start, closed, or another value the method defines."
  },
  "ways_in": {
   "type": [
    "array",
    "null"
   ],
   "description": "The ways in the drive found, each with its key and label; null on a free listing (profile basic).",
   "items": {
    "type": "object",
    "properties": {
     "key": {
      "type": "string"
     },
     "label": {
      "type": "string"
     }
    },
    "required": [
     "key",
     "label"
    ],
    "additionalProperties": false
   }
  },
  "stop": {
   "type": [
    "string",
    "null"
   ],
   "description": "The checkpoint where the agent stopped; null when it didn't stop."
  },
  "stop_line": {
   "type": [
    "string",
    "null"
   ],
   "description": "One line of evidence at the stop, as the product page shows it."
  },
  "stop_date": {
   "type": [
    "string",
    "null"
   ],
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
  },
  "access": {
   "type": [
    "string",
    "null"
   ],
   "description": "yes, part, no, or another state the product page shows; null when the drive didn't get that far."
  },
  "use": {
   "type": [
    "string",
    "null"
   ],
   "description": "yes, part, no, or another state the product page shows; null when the drive didn't get that far."
  },
  "pay": {
   "type": [
    "string",
    "null"
   ],
   "description": "yes, part, no, or another state the product page shows; null when the drive didn't get that far."
  },
  "leave": {
   "type": [
    "string",
    "null"
   ],
   "description": "yes, part, no, or another state the product page shows; null when the drive didn't get that far."
  },
  "summary": {
   "type": [
    "string",
    "null"
   ],
   "description": "The drive's summary, as the product page shows it; null on a free listing (profile basic)."
  },
  "mcp": {
   "type": [
    "string",
    "null"
   ],
   "description": "The product's MCP server: official, or another value; null when none was found."
  },
  "tested_at": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "description": "The date of the listed drive."
  },
  "drives": {
   "type": [
    "integer",
    "null"
   ],
   "description": "How many drives of this product count on its page."
  },
  "methodology": {
   "type": "integer",
   "description": "The methodology version the level was read under."
  },
  "rules_date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
  },
  "rules_version": {
   "type": [
    "string",
    "null"
   ],
   "pattern": "^rules-\\d{4}-\\d{2}-\\d{2}(-\\d+)?$",
   "description": "The rules version the level was judged under: its entry on https://agentdrives.com/method/changelog (#rules_version). Added in schema 1.1.0."
  },
  "owner_paid": {
   "type": "boolean",
   "description": "The product's owner paid for this drive."
  },
  "disclosure": {
   "type": [
    "string",
    "null"
   ],
   "description": "The tag every listing of an owner-paid drive carries; null otherwise."
  }
 },
 "required": [
  "schema_version",
  "id",
  "slug",
  "name",
  "domain",
  "page",
  "profile",
  "category",
  "category_name",
  "category_id",
  "area",
  "area_id",
  "what_it_does",
  "level",
  "level_name",
  "entry",
  "ways_in",
  "stop",
  "stop_line",
  "stop_date",
  "access",
  "use",
  "pay",
  "leave",
  "summary",
  "mcp",
  "tested_at",
  "drives",
  "methodology",
  "rules_date",
  "rules_version",
  "owner_paid",
  "disclosure"
 ],
 "additionalProperties": false
}
