{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://lists.metix.ai/schema/ledger-agent-teams-1.0.json",
  "title": "Metix AI ledger: AI coding, developer tool and enterprise agent teams 1.0",
  "description": "AI coding, developer-tool, enterprise-agent and inference companies ranked by mapped technical staff as of team_as_of, with 12-month technical growth, 12-month technical cohort retention and Big-Tech or lab alumni shares.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "schema_version": {
      "const": "1.0"
    },
    "kind": {
      "const": "agent-teams"
    },
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "collected": {
      "type": "string",
      "format": "date"
    },
    "updated": {
      "type": "string",
      "format": "date"
    },
    "team_as_of": {
      "type": "string",
      "format": "date"
    },
    "window_start": {
      "type": "string",
      "format": "date"
    },
    "postings_as_of": {
      "type": "string",
      "format": "date"
    },
    "floor": {
      "const": 3
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "source": {
      "type": "string",
      "minLength": 1
    },
    "methodology": {
      "type": "string",
      "format": "uri"
    },
    "$schema": {
      "const": "https://lists.metix.ai/schema/ledger-agent-teams-1.0.json"
    },
    "min_mapped": {
      "type": "integer",
      "minimum": 0
    },
    "min_technical": {
      "type": "integer",
      "minimum": 0
    },
    "feeders": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "inclusion": {
      "type": "string",
      "minLength": 1
    },
    "scope_gap": {
      "type": "string"
    },
    "evaluated_not_listed": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "reason": {
            "type": "string",
            "minLength": 1
          },
          "rule": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "name",
          "reason",
          "rule"
        ]
      }
    },
    "dropped": {
      "type": "object"
    },
    "rows": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "rank": {
            "type": "integer",
            "minimum": 1
          },
          "company": {
            "type": "string",
            "minLength": 1
          },
          "website": {
            "type": "string",
            "pattern": "^(?:https://.+)?$"
          },
          "focus": {
            "type": "string",
            "minLength": 1
          },
          "founded_year": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "hq": {
            "type": "string"
          },
          "edge": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "staff": {
            "type": "integer",
            "minimum": 0
          },
          "technical": {
            "type": "integer",
            "minimum": 0
          },
          "technical_share": {
            "type": "number"
          },
          "technical_12m_ago": {
            "type": "integer",
            "minimum": 0
          },
          "technical_growth_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "joined_technical_12m": {
            "type": "integer",
            "minimum": 0
          },
          "left_technical_12m": {
            "type": "integer",
            "minimum": 0
          },
          "cohort_tech_12m_hired": {
            "type": "integer",
            "minimum": 0
          },
          "cohort_tech_12m_kept": {
            "type": "integer",
            "minimum": 0
          },
          "retained_tech_12m_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "median_tech_tenure_months": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "feeder_people": {
            "type": "integer",
            "minimum": 0
          },
          "feeder_share_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "feeder_groups": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "minimum": 3
            }
          },
          "from_academia_share": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "history": {
            "type": "array",
            "minItems": 24,
            "maxItems": 24,
            "items": {
              "type": "integer",
              "minimum": 0
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "people": {
                  "type": "integer",
                  "minimum": 3
                }
              },
              "required": [
                "name",
                "people"
              ]
            }
          },
          "destinations": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "people": {
                  "type": "integer",
                  "minimum": 3
                }
              },
              "required": [
                "name",
                "people"
              ]
            }
          },
          "active_postings": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "id",
          "rank",
          "company",
          "website",
          "focus",
          "founded_year",
          "hq",
          "edge",
          "staff",
          "technical",
          "technical_share",
          "technical_12m_ago",
          "technical_growth_pct",
          "joined_technical_12m",
          "left_technical_12m",
          "cohort_tech_12m_hired",
          "cohort_tech_12m_kept",
          "retained_tech_12m_pct",
          "median_tech_tenure_months",
          "feeder_people",
          "feeder_share_pct",
          "feeder_groups",
          "from_academia_share",
          "history",
          "sources",
          "destinations",
          "active_postings",
          "tags"
        ]
      }
    }
  },
  "required": [
    "schema_version",
    "kind",
    "slug",
    "title",
    "collected",
    "updated",
    "team_as_of",
    "window_start",
    "postings_as_of",
    "floor",
    "url",
    "source",
    "methodology",
    "$schema",
    "min_mapped",
    "min_technical",
    "feeders",
    "inclusion",
    "scope_gap",
    "evaluated_not_listed",
    "dropped",
    "rows"
  ]
}
