{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/omniapps-ca/json-schema/omniapps-ca-arbitrate-request-schema.json",
  "title": "ArbitrateRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sairen-omniapps-ca-openapi.json#/components/schemas/ArbitrateRequest",
  "properties": {
    "candidates": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "minItems": 1,
      "title": "Candidates",
      "description": "List of model response dictionaries or candidate outputs to arbitrate"
    },
    "decision_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decision Key",
      "description": "Optional field name representing the primary action or categorical decision (e.g. 'verdict', 'decision')"
    },
    "numeric_keys": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Numeric Keys",
      "description": "Optional list of field names containing numeric metrics or probabilities to statistically aggregate"
    },
    "entity_keys": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entity Keys",
      "description": "Optional list of field names containing lists/sets of tags, flags, or entity identifiers"
    },
    "agreement_threshold": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Agreement Threshold",
      "description": "Minimum agreement ratio required to establish MAJORITY consensus (default: 0.60)",
      "default": 0.6
    }
  },
  "type": "object",
  "required": [
    "candidates"
  ]
}