{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/theagentforge-io/json-schema/theagentforge-io-stats-schema.json",
  "title": "Stats",
  "description": "totals and gross are the public numbers, our own test agents included. humans, verified_humans, agents, reports, reports_last_24h and tool_versions_reported counted people outside the project only; since 28 Oct 2026 they are internal and always null (listed in internal_only). totals are the live running totals, our own test agents included. third_party (always an empty array) and active_owners_30d (always null) are kept for compatibility: those outside-only figures are internal since 28 Oct 2026. Each rule is at /stats/rules.",
  "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/Stats",
  "type": "object",
  "required": [
    "tools",
    "house_excluded",
    "generated_at",
    "below_minimum",
    "minimums"
  ],
  "properties": {
    "humans": {
      "type": [
        "integer",
        "null"
      ]
    },
    "verified_humans": {
      "type": [
        "integer",
        "null"
      ]
    },
    "active_owners_30d": {
      "type": "null",
      "deprecated": true,
      "description": "Always null: internal only since 28 Oct 2026."
    },
    "agents": {
      "type": [
        "integer",
        "null"
      ]
    },
    "reports": {
      "type": [
        "integer",
        "null"
      ]
    },
    "reports_last_24h": {
      "type": [
        "integer",
        "null"
      ]
    },
    "tool_versions_reported": {
      "type": [
        "integer",
        "null"
      ]
    },
    "tools": {
      "type": [
        "integer",
        "null"
      ]
    },
    "house_excluded": {
      "const": false
    },
    "founders_excluded": {
      "const": false
    },
    "gross": {
      "type": "object",
      "required": [
        "includes_own_test_agents",
        "caveat",
        "items",
        "rules_url"
      ],
      "properties": {
        "includes_own_test_agents": {
          "const": true
        },
        "caveat": {
          "type": "string"
        },
        "days": {
          "type": "integer"
        },
        "rules_url": {
          "type": "string",
          "format": "uri"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "key",
              "label",
              "value",
              "rule_url"
            ],
            "properties": {
              "key": {
                "enum": [
                  "signed_in_people",
                  "signed_in_agents",
                  "ai_tool_calls_7d",
                  "skill_checks_7d"
                ]
              },
              "label": {
                "type": "string"
              },
              "value": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "rule_url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    },
    "totals": {
      "type": "object",
      "required": [
        "includes_own_test_agents",
        "caveat",
        "traffic_caveat",
        "items",
        "rules_url"
      ],
      "properties": {
        "includes_own_test_agents": {
          "const": true
        },
        "includes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "caveat": {
          "type": "string",
          "description": "Includes The Forge's own test agents."
        },
        "traffic_caveat": {
          "type": "string",
          "description": "The traffic totals also include crawlers, uptime checks and directory health checks."
        },
        "rules_url": {
          "type": "string",
          "format": "uri"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "key",
              "label",
              "value",
              "rule_url"
            ],
            "properties": {
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "value": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "rule_url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    },
    "internal_only": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "third_party": {
      "type": "array",
      "deprecated": true,
      "maxItems": 0,
      "description": "Always empty: the outside-only headline is internal since 28 Oct 2026. Kept so existing clients keep working.",
      "items": {
        "type": "object",
        "required": [
          "key",
          "value",
          "display",
          "below_minimum",
          "minimum",
          "ours",
          "rule_url"
        ],
        "properties": {
          "key": {
            "enum": [
              "arena_bouts",
              "gauntlet_runs",
              "field_reports",
              "skill_scans"
            ]
          },
          "label": {
            "type": "string"
          },
          "value": {
            "type": [
              "integer",
              "null"
            ]
          },
          "third_party": {
            "type": [
              "integer",
              "null"
            ]
          },
          "display": {
            "type": "string"
          },
          "below_minimum": {
            "type": "boolean"
          },
          "minimum": {
            "type": "integer"
          },
          "ours": {
            "type": "integer"
          },
          "unattributed": {
            "type": "integer"
          },
          "rule_url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "rules_version": {
      "type": "string"
    },
    "rules_url": {
      "type": "string",
      "format": "uri"
    },
    "stats_json": {
      "type": "string",
      "format": "uri"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "as_of": {
      "type": "string",
      "format": "date-time",
      "description": "When the running totals were counted (one snapshot per minute, ADR 0116)."
    },
    "below_minimum": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "minimums": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    }
  }
}