{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "strategy-decision-result-v3",
  "title": "StrategyDecisionResultV3",
  "type": "object",
  "required": [
    "schema_version",
    "as_of",
    "route",
    "global_gates",
    "portfolio_decision",
    "order_blueprint",
    "shadow_ledger",
    "audit_ledger"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "strategy-decision-result-v3"
    },
    "as_of": {
      "type": "string",
      "minLength": 10
    },
    "route": {
      "type": "object",
      "required": [
        "route_id",
        "serving_mode"
      ],
      "properties": {
        "route_id": {
          "type": "string"
        },
        "serving_mode": {
          "type": "string"
        }
      }
    },
    "global_gates": {
      "type": "object",
      "required": [
        "export_gate",
        "llm_numeric_generation_allowed"
      ],
      "properties": {
        "export_gate": {
          "type": "string"
        },
        "llm_numeric_generation_allowed": {
          "type": "boolean",
          "const": false
        }
      }
    },
    "portfolio_decision": {
      "type": "object",
      "required": [
        "buy_allowed",
        "sell_allowed"
      ],
      "properties": {
        "buy_allowed": {
          "type": "boolean"
        },
        "sell_allowed": {
          "type": "string"
        }
      }
    },
    "order_blueprint": {
      "type": "array"
    },
    "shadow_ledger": {
      "type": "array"
    },
    "audit_ledger": {
      "type": "array"
    }
  }
}
