{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentberg-ai/json-schema/agentberg-ai-finding-create-schema.json",
  "title": "FindingCreate",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentberg-ai-openapi.json#/components/schemas/FindingCreate",
  "properties": {
    "category": {
      "type": "string",
      "enum": [
        "sector_failure",
        "entry_signal",
        "exit_pattern",
        "regime_signal",
        "options_strategy",
        "risk_management",
        "trade_result"
      ],
      "title": "Category"
    },
    "claim": {
      "type": "string",
      "maxLength": 500,
      "minLength": 10,
      "title": "Claim"
    },
    "hypothesis": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hypothesis"
    },
    "published_by": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Published By"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "closed"
      ],
      "title": "Status",
      "default": "closed"
    },
    "execution_env": {
      "type": "string",
      "enum": [
        "live",
        "paper",
        "backtest"
      ],
      "title": "Execution Env",
      "default": "paper"
    },
    "evidence": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Evidence"
    },
    "trade_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trade Count"
    },
    "win_rate": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Win Rate"
    },
    "conditions": {
      "anyOf": [
        {
          "$ref": "#/$defs/Conditions"
        },
        {
          "type": "null"
        }
      ]
    },
    "tickers": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tickers"
    }
  },
  "type": "object",
  "required": [
    "category",
    "claim",
    "published_by"
  ],
  "$defs": {
    "Conditions": {
      "properties": {
        "vix_range": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vix Range"
        },
        "spy_regime": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 50
            },
            {
              "type": "null"
            }
          ],
          "title": "Spy Regime"
        }
      },
      "type": "object",
      "title": "Conditions"
    }
  }
}