{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swarm-tips/json-schema/swarm-tips-game-resolved-request-schema.json",
  "title": "GameResolvedRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swarm-tips-openapi.json#/components/schemas/GameResolvedRequest",
  "properties": {
    "agent_guess_reasoning": {
      "description": "LLM reasoning for the AI agent's guess decision (for A/B analysis).",
      "type": [
        "string",
        "null"
      ]
    },
    "agent_guess_source": {
      "description": "\"llm\" if LLM decided, \"fallback\" if defaulted due to error.",
      "type": [
        "string",
        "null"
      ]
    },
    "first_committer": {
      "description": "Player who committed first, in the on-chain encoding: 1 = P1, 2 = P2\n(255 is the pre-commit sentinel and is never posted here). NOT 0-indexed —\nreading it as such caused the 2026-05-09 production bug documented below.",
      "format": "int32",
      "minimum": 0,
      "type": "integer"
    },
    "game_id": {
      "format": "int64",
      "minimum": 0,
      "type": "integer"
    },
    "matchup_type": {
      "description": "0 = same-team, 1 = different-team (from on-chain game account).",
      "format": "int32",
      "minimum": 0,
      "type": "integer"
    },
    "p1_guess": {
      "format": "int32",
      "minimum": 0,
      "type": "integer"
    },
    "p1_return": {
      "format": "int64",
      "minimum": 0,
      "type": "integer"
    },
    "p2_guess": {
      "format": "int32",
      "minimum": 0,
      "type": "integer"
    },
    "p2_return": {
      "format": "int64",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "game_id",
    "p1_guess",
    "p2_guess",
    "p1_return",
    "p2_return"
  ],
  "type": "object"
}