{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modelspec-dev/json-schema/modelspec-dev-decision-response-schema.json",
  "title": "DecisionResponse",
  "description": "The engine's answer to one spec against one snapshot.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modelspec-dev-openapi.yaml#/components/schemas/DecisionResponse",
  "additionalProperties": false,
  "properties": {
    "near_misses": {
      "items": {
        "$ref": "#/$defs/DecisionNearMiss"
      },
      "type": "array"
    },
    "top": {
      "items": {
        "$ref": "#/$defs/DecisionCandidateValues"
      },
      "type": "array"
    },
    "chart": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "number_origins": {
      "items": {
        "$ref": "#/$defs/DecisionNumberOrigin"
      },
      "type": "array"
    },
    "sources": {
      "items": {
        "$ref": "#/$defs/DecisionCitedSource"
      },
      "type": "array"
    },
    "benchmark_exclusions": {
      "anyOf": [
        {
          "$ref": "#/$defs/DecisionBenchmarkExclusions"
        },
        {
          "type": "null"
        }
      ]
    },
    "contract_version": {
      "const": "2.20",
      "default": "2.20",
      "type": "string"
    },
    "decision_id": {
      "pattern": "^dec_[0-9A-Za-z]{8,}$",
      "type": "string"
    },
    "snapshot": {
      "pattern": "^snap_[A-Za-z0-9:._-]+$",
      "type": "string"
    },
    "signature_verified": {
      "default": false,
      "type": "boolean"
    },
    "spec_hash": {
      "pattern": "^sha256:[0-9a-f]{64}$",
      "type": "string"
    },
    "explain": {
      "enum": [
        "none",
        "summary",
        "full"
      ],
      "type": "string"
    },
    "status": {
      "enum": [
        "answered",
        "partial",
        "no_feasible"
      ],
      "type": "string"
    },
    "answer": {
      "anyOf": [
        {
          "oneOf": [
            {
              "$ref": "#/$defs/DecisionSeparatedAnswer"
            },
            {
              "$ref": "#/$defs/DecisionTiedAnswer"
            }
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "bands": {
      "anyOf": [
        {
          "$ref": "#/$defs/DecisionBands"
        },
        {
          "type": "null"
        }
      ]
    },
    "blend": {
      "items": {
        "$ref": "#/$defs/DecisionBlendTerm"
      },
      "type": "array"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/DecisionResult"
      },
      "type": "array"
    },
    "by_model": {
      "items": {
        "$ref": "#/$defs/DecisionModelRow"
      },
      "type": "array"
    },
    "may_qualify": {
      "items": {
        "$ref": "#/$defs/DecisionMayQualify"
      },
      "type": "array"
    },
    "eliminated": {
      "$ref": "#/$defs/DecisionEliminated"
    },
    "truncated": {
      "$ref": "#/$defs/DecisionTruncated"
    },
    "constraint_costs": {
      "items": {
        "$ref": "#/$defs/DecisionConstraintCost"
      },
      "type": "array"
    },
    "tipping_points": {
      "items": {
        "$ref": "#/$defs/DecisionTippingPoint"
      },
      "type": "array"
    },
    "relax": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "relax_to": {
      "items": {
        "$ref": "#/$defs/DecisionRelaxation"
      },
      "type": "array"
    },
    "relax_task_tokens": {
      "anyOf": [
        {
          "$ref": "#/$defs/DecisionTaskTokensHint"
        },
        {
          "type": "null"
        }
      ]
    },
    "relax_single": {
      "anyOf": [
        {
          "$ref": "#/$defs/DecisionRelaxSingle"
        },
        {
          "type": "null"
        }
      ]
    },
    "warnings": {
      "items": {
        "pattern": "^[a-z0-9_]+$",
        "type": "string"
      },
      "type": "array"
    },
    "out_of_lineup": {
      "default": 0,
      "minimum": 0,
      "type": "integer"
    },
    "with_estate": {
      "anyOf": [
        {
          "$ref": "#/$defs/DecisionWithEstate"
        },
        {
          "type": "null"
        }
      ]
    },
    "excluded_plans": {
      "items": {
        "$ref": "#/$defs/DecisionPlanExclusion"
      },
      "type": "array"
    },
    "feedback": {
      "$ref": "#/$defs/DecisionFeedbackPointer"
    },
    "reading": {
      "anyOf": [
        {
          "$ref": "#/$defs/DecisionReading"
        },
        {
          "type": "null"
        }
      ]
    },
    "coverage": {
      "anyOf": [
        {
          "$ref": "#/$defs/DecisionCoverageRefusal"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "decision_id",
    "snapshot",
    "spec_hash",
    "explain",
    "status"
  ],
  "type": "object",
  "$defs": {
    "DecisionBandEntry": {
      "additionalProperties": false,
      "description": "One model in a band, through its best offering. Added in 2.7 (MODEL-206).",
      "properties": {
        "model": {
          "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
          "type": "string"
        },
        "offering": {
          "$ref": "#/$defs/DecisionOfferingRef"
        },
        "score": {
          "type": "number"
        },
        "score_interval": {
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "type": "number"
            },
            {
              "type": "number"
            }
          ],
          "type": "array"
        },
        "p_best": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "p_beats_leader": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "cost_per_task": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "estimates": {
          "items": {
            "$ref": "#/$defs/DecisionDimensionEstimate"
          },
          "type": "array"
        },
        "warnings": {
          "description": "Assurance warnings for this row.",
          "items": {
            "pattern": "^[a-z0-9_]+$",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "model",
        "offering",
        "score",
        "score_interval"
      ],
      "type": "object"
    },
    "DecisionBands": {
      "additionalProperties": false,
      "description": "The ranked models in three bands (MODEL-206). Added in 2.7.\n\n``best`` is the leader and every model with enough evidence whose score is\nat least the leader's with probability ``band_probability`` or more,\nordered by ``p_best``. ``rest`` holds the other models with enough\nevidence and ``thin`` the models with a weighted capability interval wider\nthan ``thin_interval_width``, both in score order. Every ranked model is in\nexactly one band.",
      "properties": {
        "basis": {
          "type": "string"
        },
        "band_probability": {
          "exclusiveMaximum": 1,
          "exclusiveMinimum": 0,
          "type": "number"
        },
        "thin_interval_width": {
          "exclusiveMinimum": 0,
          "type": "number"
        },
        "leader": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "best": {
          "items": {
            "$ref": "#/$defs/DecisionBandEntry"
          },
          "type": "array"
        },
        "rest": {
          "items": {
            "$ref": "#/$defs/DecisionBandEntry"
          },
          "type": "array"
        },
        "thin": {
          "items": {
            "$ref": "#/$defs/DecisionBandEntry"
          },
          "type": "array"
        }
      },
      "required": [
        "basis",
        "band_probability",
        "thin_interval_width"
      ],
      "type": "object"
    },
    "DecisionBenchmarkEstimateChange": {
      "additionalProperties": false,
      "description": "How one model's domain estimate changed after removing evidence. Added in 1.12.",
      "properties": {
        "model": {
          "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
          "type": "string"
        },
        "domain": {
          "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
          "type": "string"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionEstimate"
            },
            {
              "type": "null"
            }
          ]
        },
        "after": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionEstimate"
            },
            {
              "type": "null"
            }
          ]
        },
        "removed_drivers": {
          "items": {
            "$ref": "#/$defs/DecisionEvidenceItem"
          },
          "type": "array"
        }
      },
      "required": [
        "model",
        "domain"
      ],
      "type": "object"
    },
    "DecisionBenchmarkExclusions": {
      "additionalProperties": false,
      "description": "Benchmarks a spec distrusted and their visible estimate effects. Added in 1.12.",
      "properties": {
        "benchmarks": {
          "items": {
            "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
            "type": "string"
          },
          "type": "array"
        },
        "estimate_changes": {
          "items": {
            "$ref": "#/$defs/DecisionBenchmarkEstimateChange"
          },
          "type": "array"
        }
      },
      "required": [
        "benchmarks"
      ],
      "type": "object"
    },
    "DecisionBlendTerm": {
      "additionalProperties": false,
      "description": "One weighted dimension, its share, and the order on it alone. Added in 2.7 (MODEL-206).\n\nThe weighted score mixes these dimensions; each term says who leads on\nthat dimension by itself. A capability term leads with the best point\nestimate among models with enough evidence on it; ``thin`` lists the rest.\nAn exact term (cost, a fact, a preference) can have several ``leaders``\nwhen they share the best value.",
      "properties": {
        "dimension": {
          "pattern": "^-?[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*(/[a-z][a-z0-9_]*)?$",
          "type": "string"
        },
        "weight": {
          "type": "number"
        },
        "share": {
          "maximum": 1,
          "minimum": 0,
          "type": "number"
        },
        "estimated": {
          "type": "boolean"
        },
        "leaders": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "type": "array"
        },
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "p_best": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "runner_up": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "p_runner_up": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "order": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "type": "array"
        },
        "thin": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "dimension",
        "weight",
        "share",
        "estimated"
      ],
      "type": "object"
    },
    "DecisionCandidateValues": {
      "additionalProperties": false,
      "properties": {
        "offering": {
          "$ref": "#/$defs/DecisionOfferingRef"
        },
        "facts": {
          "items": {
            "$ref": "#/$defs/DecisionShownFact"
          },
          "type": "array"
        },
        "contributions": {
          "items": {
            "$ref": "#/$defs/DecisionContribution"
          },
          "type": "array"
        },
        "evidence": {
          "items": {
            "$ref": "#/$defs/DecisionDomainEvidence"
          },
          "type": "array"
        },
        "unknown_facets": {
          "items": {
            "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
            "type": "string"
          },
          "type": "array"
        },
        "hardware_estimates": {
          "items": {
            "$ref": "#/$defs/DecisionHardwareEstimate"
          },
          "type": "array"
        }
      },
      "required": [
        "offering"
      ],
      "type": "object"
    },
    "DecisionCitationSource": {
      "additionalProperties": false,
      "properties": {
        "source_id": {
          "type": "string"
        },
        "url": {
          "pattern": "^https?://\\S+$",
          "type": "string"
        },
        "snapshot_ref": {
          "pattern": "^sha256:[0-9a-f]{64}$",
          "type": "string"
        },
        "retrieved_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "resolved_urls": {
          "items": {
            "pattern": "^https?://\\S+$",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "source_id",
        "url",
        "snapshot_ref"
      ],
      "type": "object"
    },
    "DecisionCitedSource": {
      "additionalProperties": false,
      "description": "One registered source, listed once per decision. Added in 1.4.",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "pattern": "^https?://\\S+$",
          "type": "string"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "date": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "url"
      ],
      "type": "object"
    },
    "DecisionConstraintCost": {
      "additionalProperties": false,
      "properties": {
        "units": {
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": "object"
        },
        "records": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "condition": {
          "type": "string"
        },
        "admits": {
          "minimum": 0,
          "type": "integer"
        },
        "gain": {
          "patternProperties": {
            "^-?[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$": {
              "type": "number"
            }
          },
          "type": "object"
        },
        "refinement_gains": {
          "items": {
            "$ref": "#/$defs/DecisionRefinementGain"
          },
          "type": "array"
        }
      },
      "required": [
        "condition",
        "admits"
      ],
      "type": "object"
    },
    "DecisionContribution": {
      "additionalProperties": false,
      "properties": {
        "raw_value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "records": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "dimension": {
          "pattern": "^-?[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
          "type": "string"
        },
        "weight": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "normalisation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "evidence": {
          "items": {
            "$ref": "#/$defs/DecisionEvidenceItem"
          },
          "type": "array"
        },
        "formula": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "preferred_value": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "preference_status": {
          "anyOf": [
            {
              "enum": [
                "satisfied",
                "not_satisfied",
                "unknown"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "refinement": {
          "anyOf": [
            {
              "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "dimension"
      ],
      "type": "object"
    },
    "DecisionCoverageRefusal": {
      "additionalProperties": false,
      "description": "An unsupported requirement, with the current board's aggregate scope.",
      "properties": {
        "kind": {
          "const": "out_of_coverage",
          "default": "out_of_coverage",
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "url": {
          "const": "https://modelspec.dev/api/coverage.json",
          "default": "https://modelspec.dev/api/coverage.json",
          "type": "string"
        },
        "snapshot": {
          "pattern": "^snap_[A-Za-z0-9:._-]+$",
          "type": "string"
        },
        "as_of": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "classes": {
          "items": {
            "$ref": "#/$defs/DecisionCoveredClass"
          },
          "type": "array"
        },
        "domains": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "requested_classes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "requested_domains": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "message",
        "snapshot",
        "as_of",
        "classes",
        "domains"
      ],
      "type": "object"
    },
    "DecisionCoveredClass": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "models": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "models"
      ],
      "type": "object"
    },
    "DecisionDimensionEstimate": {
      "additionalProperties": false,
      "description": "A band entry's estimate on one weighted capability. Added in 2.7 (MODEL-206).",
      "properties": {
        "dimension": {
          "pattern": "^-?[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*(/[a-z][a-z0-9_]*)?$",
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "interval": {
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "type": "number"
            },
            {
              "type": "number"
            }
          ],
          "type": "array"
        },
        "benchmarks": {
          "minimum": 0,
          "type": "integer"
        },
        "direct_benchmarks": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "dimension",
        "value",
        "interval",
        "benchmarks",
        "direct_benchmarks"
      ],
      "type": "object"
    },
    "DecisionDomainEvidence": {
      "additionalProperties": false,
      "properties": {
        "domain": {
          "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
          "type": "string"
        },
        "items": {
          "items": {
            "$ref": "#/$defs/DecisionEvidenceItem"
          },
          "type": "array"
        }
      },
      "required": [
        "domain",
        "items"
      ],
      "type": "object"
    },
    "DecisionEliminated": {
      "additionalProperties": false,
      "properties": {
        "funnel": {
          "items": {
            "$ref": "#/$defs/DecisionFunnelStep"
          },
          "type": "array"
        },
        "models": {
          "items": {
            "$ref": "#/$defs/DecisionModelElimination"
          },
          "type": "array"
        },
        "model_groups": {
          "items": {
            "$ref": "#/$defs/DecisionModelEliminationGroup"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "DecisionEstateGap": {
      "additionalProperties": false,
      "description": "Why the two answers differ, or that they do not.",
      "properties": {
        "same_answer": {
          "type": "boolean"
        },
        "unreachable_models": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "type": "array"
        },
        "summary": {
          "type": "string"
        }
      },
      "required": [
        "same_answer",
        "summary"
      ],
      "type": "object"
    },
    "DecisionEstateHold": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "enum": [
            "provider",
            "plan",
            "device"
          ],
          "type": "string"
        },
        "id": {
          "maxLength": 120,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    },
    "DecisionEstateMark": {
      "additionalProperties": false,
      "description": "How the estate reaches one row, and what one more task costs the caller.",
      "properties": {
        "via": {
          "$ref": "#/$defs/DecisionEstateHold"
        },
        "cost_basis": {
          "enum": [
            "list_price",
            "plan_included",
            "owned_hardware"
          ],
          "type": "string"
        },
        "marginal_cost_per_task_usd": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "coverage": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionPlanCoverage"
            },
            {
              "type": "null"
            }
          ]
        },
        "availability": {
          "anyOf": [
            {
              "enum": [
                "open",
                "existing_subscribers_only",
                "retired"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "via",
        "cost_basis"
      ],
      "type": "object"
    },
    "DecisionEstateResult": {
      "additionalProperties": false,
      "properties": {
        "rank": {
          "minimum": 1,
          "type": "integer"
        },
        "offering": {
          "$ref": "#/$defs/DecisionOfferingRef"
        },
        "estate": {
          "$ref": "#/$defs/DecisionEstateMark"
        },
        "soft_penalty": {
          "default": 0.0,
          "minimum": 0,
          "type": "number"
        },
        "warnings": {
          "items": {
            "pattern": "^[a-z0-9_]+$",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "rank",
        "offering",
        "estate"
      ],
      "type": "object"
    },
    "DecisionEstimate": {
      "additionalProperties": false,
      "properties": {
        "domain": {
          "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "interval": {
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "type": "number"
            },
            {
              "type": "number"
            }
          ],
          "type": "array"
        },
        "harness": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9-]*@[0-9]+\\.[0-9]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "effort": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9_-]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "domain",
        "value",
        "interval"
      ],
      "type": "object"
    },
    "DecisionEvidenceItem": {
      "additionalProperties": false,
      "properties": {
        "requested_domain": {
          "anyOf": [
            {
              "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "record_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "benchmark": {
          "type": "string"
        },
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "sub_category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "value": {
          "type": "number"
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "n": {
          "anyOf": [
            {
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "interval": {
          "anyOf": [
            {
              "maxItems": 2,
              "minItems": 2,
              "prefixItems": [
                {
                  "type": "number"
                },
                {
                  "type": "number"
                }
              ],
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "quality_flags": {
          "items": {
            "enum": [
              "deprecated",
              "contamination_warning"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "measured_by": {
          "enum": [
            "benchmark_author",
            "independent",
            "provider_self_report",
            "modelspec",
            "outcome_protocol"
          ],
          "type": "string"
        },
        "effort": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9_-]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "harness": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9-]*@[0-9]+\\.[0-9]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "harness_unregistered": {
          "default": false,
          "type": "boolean"
        },
        "date": {
          "format": "date",
          "type": "string"
        },
        "date_type": {
          "enum": [
            "observed",
            "published"
          ],
          "type": "string"
        },
        "source": {
          "pattern": "^https?://\\S+$",
          "type": "string"
        },
        "source_snapshot": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "directness": {
          "enum": [
            "direct",
            "proxy"
          ],
          "type": "string"
        },
        "loading": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "estimate_weight": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "recency_weight": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "citation": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionFactCitation"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "benchmark",
        "value",
        "measured_by",
        "date",
        "date_type",
        "source",
        "directness"
      ],
      "type": "object"
    },
    "DecisionFactCitation": {
      "additionalProperties": false,
      "properties": {
        "status": {
          "const": "cited",
          "type": "string"
        },
        "sources": {
          "items": {
            "$ref": "#/$defs/DecisionCitationSource"
          },
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "status",
        "sources"
      ],
      "type": "object"
    },
    "DecisionFactInterval": {
      "additionalProperties": false,
      "description": "An estimate's scenario bounds in the fact's unit, not a confidence interval.",
      "properties": {
        "low": {
          "minimum": 0,
          "type": "number"
        },
        "high": {
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "low",
        "high"
      ],
      "type": "object"
    },
    "DecisionFeedbackPointer": {
      "additionalProperties": false,
      "description": "Where to say whether this answer held up. The same on every decision.\n\nAdded in 2.10 (MODEL-221), so that an agent holding an answer finds the\nfeedback endpoint without reading anything else. No key is needed.",
      "properties": {
        "endpoint": {
          "const": "https://api.modelspec.dev/v1/feedback",
          "default": "https://api.modelspec.dev/v1/feedback",
          "type": "string"
        },
        "method": {
          "const": "POST",
          "default": "POST",
          "type": "string"
        },
        "request_schema": {
          "const": "https://modelspec.dev/api/feedback/v1.schema.json",
          "default": "https://modelspec.dev/api/feedback/v1.schema.json",
          "type": "string"
        },
        "ratings": {
          "items": {
            "enum": [
              "reliable",
              "unreliable",
              "trustworthy",
              "untrustworthy",
              "confusing"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "cli": {
          "const": "modelspec feedback <decision_id> --rating <rating>",
          "default": "modelspec feedback <decision_id> --rating <rating>",
          "type": "string"
        }
      },
      "type": "object"
    },
    "DecisionFunnelStep": {
      "additionalProperties": false,
      "properties": {
        "condition": {
          "type": "string"
        },
        "before": {
          "minimum": 0,
          "type": "integer"
        },
        "after": {
          "minimum": 0,
          "type": "integer"
        },
        "may_qualify": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        },
        "models_before": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        },
        "models_after": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        },
        "offerings_before": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        },
        "offerings_after": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        },
        "models_may_qualify": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        },
        "offerings_may_qualify": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "condition",
        "before",
        "after"
      ],
      "type": "object"
    },
    "DecisionGainItem": {
      "additionalProperties": false,
      "description": "One hold the caller does not have whose addition would change the answer.",
      "properties": {
        "add": {
          "$ref": "#/$defs/DecisionEstateHold"
        },
        "status": {
          "enum": [
            "answered",
            "partial",
            "no_feasible"
          ],
          "type": "string"
        },
        "leader": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "answer": {
          "anyOf": [
            {
              "oneOf": [
                {
                  "$ref": "#/$defs/DecisionSeparatedAnswer"
                },
                {
                  "$ref": "#/$defs/DecisionTiedAnswer"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "add",
        "status"
      ],
      "type": "object"
    },
    "DecisionHardwareEstimate": {
      "additionalProperties": false,
      "description": "One device's estimate, separate from the known facts. Added in 2.16.",
      "properties": {
        "device": {
          "maxLength": 120,
          "minLength": 1,
          "type": "string"
        },
        "facet": {
          "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "unit": {
          "type": "string"
        },
        "quantisation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "interval": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionFactInterval"
            },
            {
              "type": "null"
            }
          ]
        },
        "unknown_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "formula": {
          "type": "string"
        },
        "records": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "source_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "device",
        "facet",
        "value",
        "unit",
        "quantisation",
        "formula"
      ],
      "type": "object"
    },
    "DecisionMayQualify": {
      "additionalProperties": false,
      "properties": {
        "model": {
          "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
          "type": "string"
        },
        "offering": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionOfferingRef"
            },
            {
              "type": "null"
            }
          ]
        },
        "unknown": {
          "items": {
            "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
            "type": "string"
          },
          "type": "array"
        },
        "warnings": {
          "description": "Assurance warnings for this row.",
          "items": {
            "pattern": "^[a-z0-9_]+$",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "model",
        "unknown"
      ],
      "type": "object"
    },
    "DecisionModelElimination": {
      "additionalProperties": false,
      "properties": {
        "values": {
          "items": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "string"
              }
            ]
          },
          "type": "array"
        },
        "offering": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionOfferingRef"
            },
            {
              "type": "null"
            }
          ]
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "records": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "model": {
          "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
          "type": "string"
        },
        "condition": {
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "formula": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "warnings": {
          "description": "Assurance warnings for this row.",
          "items": {
            "pattern": "^[a-z0-9_]+$",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "model",
        "condition"
      ],
      "type": "object"
    },
    "DecisionModelEliminationGroup": {
      "additionalProperties": false,
      "description": "One eliminated model, with its model row or offering rows. Added in 1.6.",
      "properties": {
        "model": {
          "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
          "type": "string"
        },
        "model_elimination": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionModelElimination"
            },
            {
              "type": "null"
            }
          ]
        },
        "offerings": {
          "items": {
            "$ref": "#/$defs/DecisionOfferingElimination"
          },
          "type": "array"
        }
      },
      "required": [
        "model"
      ],
      "type": "object"
    },
    "DecisionModelOffering": {
      "additionalProperties": false,
      "description": "One offering of a model in ``by_model``, with why it is or is not ranked. Added in 2.5.",
      "properties": {
        "offering": {
          "$ref": "#/$defs/DecisionOfferingRef"
        },
        "status": {
          "enum": [
            "ranked",
            "may_qualify",
            "eliminated"
          ],
          "type": "string"
        },
        "rank": {
          "anyOf": [
            {
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "cost_per_task": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "unknown": {
          "items": {
            "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
            "type": "string"
          },
          "type": "array"
        },
        "reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "warnings": {
          "description": "Assurance warnings for this row.",
          "items": {
            "pattern": "^[a-z0-9_]+$",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "offering",
        "status"
      ],
      "type": "object"
    },
    "DecisionModelRow": {
      "additionalProperties": false,
      "description": "One model, with all its offerings, in ranking order. Added in 2.5.\n\nA model is ``ranked`` when any offering is, else ``may_qualify`` when any\nis unknown on a facet, else ``eliminated``. ``rank`` is ``Result.model_rank``.\nEliminated models appear only when the explanation carries eliminations.",
      "properties": {
        "model": {
          "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
          "type": "string"
        },
        "status": {
          "enum": [
            "ranked",
            "may_qualify",
            "eliminated"
          ],
          "type": "string"
        },
        "rank": {
          "anyOf": [
            {
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "cost_per_task": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "offerings": {
          "items": {
            "$ref": "#/$defs/DecisionModelOffering"
          },
          "type": "array"
        }
      },
      "required": [
        "model",
        "status"
      ],
      "type": "object"
    },
    "DecisionNearMiss": {
      "additionalProperties": false,
      "properties": {
        "values": {
          "items": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "string"
              }
            ]
          },
          "type": "array"
        },
        "offering": {
          "$ref": "#/$defs/DecisionOfferingRef"
        },
        "condition": {
          "type": "string"
        },
        "facet": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "value": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "distance": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "records": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "formula": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "offering",
        "condition"
      ],
      "type": "object"
    },
    "DecisionNumberOrigin": {
      "additionalProperties": false,
      "properties": {
        "path": {
          "type": "string"
        },
        "basis": {
          "type": "string"
        },
        "records": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "sources": {
          "items": {
            "pattern": "^https?://\\S+$",
            "type": "string"
          },
          "type": "array"
        },
        "source_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "path",
        "basis"
      ],
      "type": "object"
    },
    "DecisionOfferingElimination": {
      "additionalProperties": false,
      "description": "Why one offering of an eliminated model left the lineup. Added in 1.6.",
      "properties": {
        "values": {
          "items": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "string"
              }
            ]
          },
          "type": "array"
        },
        "offering": {
          "$ref": "#/$defs/DecisionOfferingRef"
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "records": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "condition": {
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "formula": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "warnings": {
          "description": "Assurance warnings for this row.",
          "items": {
            "pattern": "^[a-z0-9_]+$",
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "offering",
        "condition"
      ],
      "type": "object"
    },
    "DecisionOfferingRef": {
      "additionalProperties": false,
      "properties": {
        "model": {
          "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
          "type": "string"
        },
        "provider": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "region": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "api_model_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "router_slug": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "model"
      ],
      "type": "object"
    },
    "DecisionPlanAllowance": {
      "additionalProperties": false,
      "description": "A plan's published usage allowance; each part is null unless published. Added in 2.6.",
      "properties": {
        "relative_to": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "multiplier": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "window": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tokens": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "DecisionPlanCoverage": {
      "additionalProperties": false,
      "description": "Why a plan counts as covering a model. Added in 2.6.\n\n``family`` and ``quote`` are the family the plan page names and the page's\nown words; both are absent when the plan's ``models_covered`` names the\nmodel directly. ``resolves_to`` is every model the entry reaches, by\n``rule``.",
      "properties": {
        "family": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "quote": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "resolves_to": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "type": "array"
        },
        "rule": {
          "type": "string"
        }
      },
      "required": [
        "rule"
      ],
      "type": "object"
    },
    "DecisionPlanExclusion": {
      "additionalProperties": false,
      "description": "A subscription plan excluded because of its published availability.",
      "properties": {
        "plan": {
          "maxLength": 120,
          "minLength": 1,
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      },
      "required": [
        "plan",
        "reason"
      ],
      "type": "object"
    },
    "DecisionPlanPrice": {
      "additionalProperties": false,
      "description": "A plan's published list price for one billing period. Added in 2.6.",
      "properties": {
        "amount": {
          "minimum": 0,
          "type": "number"
        },
        "currency": {
          "const": "USD",
          "type": "string"
        },
        "period": {
          "enum": [
            "monthly",
            "annual"
          ],
          "type": "string"
        }
      },
      "required": [
        "amount",
        "currency",
        "period"
      ],
      "type": "object"
    },
    "DecisionPlanRoute": {
      "additionalProperties": false,
      "description": "A subscription plan that reaches a result on the spec's ``access``. Added in 2.6.\n\n``break_even_tasks_per_month`` is the plan's monthly price divided by this\nresult's pay-per-use cost per task, for ``access: coding_tool`` only, and\nnull when either is unknown. ``basis`` says how it was computed or why not.\nModelSpec never turns a plan price into a per-task cost.",
      "properties": {
        "plan": {
          "maxLength": 120,
          "minLength": 1,
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "surface": {
          "type": "string"
        },
        "price": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionPlanPrice"
            },
            {
              "type": "null"
            }
          ]
        },
        "price_monthly_usd": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "coverage": {
          "$ref": "#/$defs/DecisionPlanCoverage"
        },
        "allowance": {
          "$ref": "#/$defs/DecisionPlanAllowance"
        },
        "break_even_tasks_per_month": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "basis": {
          "type": "string"
        }
      },
      "required": [
        "plan",
        "name",
        "surface",
        "coverage",
        "basis"
      ],
      "type": "object"
    },
    "DecisionReading": {
      "additionalProperties": false,
      "description": "Reporting limits derived from a decision or its spec refusal (MODEL-284).\n\nEmpty lists are omitted. Identifiers refer to the answer, request fields,\nor estimated response fields; they never repeat a free-text task.",
      "properties": {
        "tied": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "type": "array"
        },
        "not_applied": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "estimates": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "do_not_claim": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "omitted": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "DecisionRefinementEstimate": {
      "additionalProperties": false,
      "description": "A refinement estimate nested in its parent domain. Added in 2.4 (MODEL-190).\n\n``evidence_count`` 0 means no refinement evidence: the value is the\nparent's estimate and the interval is wider by the refinement's spread.",
      "properties": {
        "key": {
          "pattern": "^[a-z][a-z0-9_]*/[a-z][a-z0-9_]*$",
          "type": "string"
        },
        "domain": {
          "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
          "type": "string"
        },
        "refinement": {
          "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "interval": {
          "maxItems": 2,
          "minItems": 2,
          "prefixItems": [
            {
              "type": "number"
            },
            {
              "type": "number"
            }
          ],
          "type": "array"
        },
        "evidence_count": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "key",
        "domain",
        "refinement",
        "value",
        "interval",
        "evidence_count"
      ],
      "type": "object"
    },
    "DecisionRefinementGain": {
      "additionalProperties": false,
      "description": "``gain`` for one refinement dimension. Added in 2.4 (MODEL-190).",
      "properties": {
        "dimension": {
          "pattern": "^-?[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
          "type": "string"
        },
        "refinement": {
          "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
          "type": "string"
        },
        "gain": {
          "type": "number"
        }
      },
      "required": [
        "dimension",
        "refinement",
        "gain"
      ],
      "type": "object"
    },
    "DecisionRelaxSingle": {
      "additionalProperties": false,
      "description": "Whether any one relaxable hard condition, removed alone, admits a model.\n\nAdded in 2.15 (MODEL-356). ``found`` lists those gates, most models first,\nthen spec order. ``none`` lists only relaxable gates: no one of them,\nremoved alone, admits a model. The model class and a requested capability\ndomain are never gates. ``together_admits`` counts the distinct models that\nqualify when every relaxable gate is removed at once, with the same reach\nkept. ``0`` means those gates are not what excludes everyone: the class, a\nrequested capability domain, or the reach is. ``question_admits`` reports\nwhether the class or a requested-domain condition alone would admit a\nmodel. No message: the status, the gates and those two facts are the whole\nstatement.",
      "properties": {
        "status": {
          "enum": [
            "found",
            "none"
          ],
          "type": "string"
        },
        "gates": {
          "items": {
            "$ref": "#/$defs/DecisionSingleGate"
          },
          "type": "array"
        },
        "together_admits": {
          "minimum": 0,
          "type": "integer"
        },
        "question_admits": {
          "type": "boolean"
        }
      },
      "required": [
        "status",
        "together_admits",
        "question_admits"
      ],
      "type": "object"
    },
    "DecisionRelaxation": {
      "additionalProperties": false,
      "description": "The smallest change to one numeric cap or floor that admits a model. Added in 1.5.\n\n``condition`` is the spec's condition; ``relaxed`` is the same facet and\ndirection at ``value``, in ``unit``, the nearest value any excluded\ncandidate has; ``admits`` counts the models that then qualify.",
      "properties": {
        "condition": {
          "type": "string"
        },
        "relaxed": {
          "type": "string"
        },
        "facet": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "admits": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "condition",
        "relaxed",
        "facet",
        "value",
        "admits"
      ],
      "type": "object"
    },
    "DecisionResult": {
      "additionalProperties": false,
      "properties": {
        "rank": {
          "minimum": 1,
          "type": "integer"
        },
        "offering": {
          "$ref": "#/$defs/DecisionOfferingRef"
        },
        "model": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "model_rank": {
          "anyOf": [
            {
              "minimum": 1,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "cost_per_task": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "harness": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9-]*@[0-9]+\\.[0-9]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "effort": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9_-]+$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "evidence": {
          "items": {
            "$ref": "#/$defs/DecisionDomainEvidence"
          },
          "type": "array"
        },
        "estimates": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/DecisionEstimate"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "refinement_estimates": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/DecisionRefinementEstimate"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "p_best": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "top3_stability": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "soft_penalty": {
          "default": 0.0,
          "minimum": 0,
          "type": "number"
        },
        "contributions": {
          "items": {
            "$ref": "#/$defs/DecisionContribution"
          },
          "type": "array"
        },
        "warnings": {
          "items": {
            "pattern": "^[a-z0-9_]+$",
            "type": "string"
          },
          "type": "array"
        },
        "plans": {
          "items": {
            "$ref": "#/$defs/DecisionPlanRoute"
          },
          "type": "array"
        }
      },
      "required": [
        "rank",
        "offering"
      ],
      "type": "object"
    },
    "DecisionSeparatedAnswer": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "separated",
          "type": "string"
        },
        "members": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "maxItems": 1,
          "minItems": 1,
          "type": "array"
        },
        "leader": {
          "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
          "type": "string"
        },
        "basis": {
          "type": "string"
        },
        "tie_breakers": {
          "$ref": "#/$defs/DecisionTieBreakers"
        },
        "deterministic_order": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "maxItems": 1,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "kind",
        "members",
        "leader",
        "basis",
        "tie_breakers",
        "deterministic_order"
      ],
      "type": "object"
    },
    "DecisionShownFact": {
      "additionalProperties": false,
      "properties": {
        "facet": {
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "integer"
            },
            {
              "type": "number"
            },
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "string"
            },
            {
              "items": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "integer"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "format": "date",
                    "type": "string"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ]
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "record_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "records": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "formula": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "source_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "citation": {
          "anyOf": [
            {
              "$ref": "#/$defs/DecisionFactCitation"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "facet"
      ],
      "type": "object"
    },
    "DecisionSingleGate": {
      "additionalProperties": false,
      "description": "One stated hard condition whose removal alone admits models. Added in 2.15.\n\n``condition`` is rendered the same way as ``relax``. ``admits`` counts the\ndistinct models that pass every other condition and the same reach.",
      "properties": {
        "condition": {
          "type": "string"
        },
        "admits": {
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "condition",
        "admits"
      ],
      "type": "object"
    },
    "DecisionTaskTokens": {
      "additionalProperties": false,
      "description": "How many tokens one task takes. ``offering.cost_per_task`` is priced from it.",
      "properties": {
        "input": {
          "minimum": 0,
          "type": "integer"
        },
        "output": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "input",
        "output"
      ],
      "type": "object"
    },
    "DecisionTaskTokensHint": {
      "additionalProperties": false,
      "description": "A per-task cost cap that fails only at the default task size. Added in 2.14.\n\nThe spec gave no ``task_tokens``, so ``offering.cost_per_task`` was priced\nat ``default``, and removing ``condition`` alone gives a feasible answer.\n``admits_at`` is the largest task, at ``default``'s input-to-output ratio,\nat which a model meets the cap. Set ``task_tokens`` to the real task's\nsize rather than copying ``admits_at`` (MODEL-316).",
      "properties": {
        "condition": {
          "type": "string"
        },
        "default": {
          "$ref": "#/$defs/DecisionTaskTokens"
        },
        "admits_at": {
          "$ref": "#/$defs/DecisionTaskTokens"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "condition",
        "default",
        "admits_at",
        "message"
      ],
      "type": "object"
    },
    "DecisionTieBreakers": {
      "additionalProperties": false,
      "properties": {
        "cheapest": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "open_weights": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "most_independently_measured": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "fastest": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "DecisionTiedAnswer": {
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "tied",
          "type": "string"
        },
        "members": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "minItems": 2,
          "type": "array"
        },
        "basis": {
          "type": "string"
        },
        "tie_breakers": {
          "$ref": "#/$defs/DecisionTieBreakers"
        },
        "deterministic_order": {
          "items": {
            "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
            "type": "string"
          },
          "minItems": 2,
          "type": "array"
        }
      },
      "required": [
        "kind",
        "members",
        "basis",
        "tie_breakers",
        "deterministic_order"
      ],
      "type": "object"
    },
    "DecisionTippingPoint": {
      "additionalProperties": false,
      "properties": {
        "description": {
          "type": "string"
        },
        "dimension": {
          "anyOf": [
            {
              "pattern": "^-?[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "threshold": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "new_top": {
          "anyOf": [
            {
              "pattern": "^[a-z0-9][a-z0-9._-]*/[a-z0-9][a-z0-9._-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "refinement": {
          "anyOf": [
            {
              "pattern": "^[a-z][a-z0-9_-]*(\\.[a-z0-9_-]+)*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "description"
      ],
      "type": "object"
    },
    "DecisionTruncated": {
      "additionalProperties": false,
      "description": "Qualifying rows omitted only because of the requested result limit. Added in 1.9.",
      "properties": {
        "offerings": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        },
        "models": {
          "default": 0,
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "DecisionWithEstate": {
      "additionalProperties": false,
      "description": "The same question answered from what the caller holds. Added in 2.3.",
      "properties": {
        "status": {
          "enum": [
            "answered",
            "partial",
            "no_feasible"
          ],
          "type": "string"
        },
        "answer": {
          "anyOf": [
            {
              "oneOf": [
                {
                  "$ref": "#/$defs/DecisionSeparatedAnswer"
                },
                {
                  "$ref": "#/$defs/DecisionTiedAnswer"
                }
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "results": {
          "items": {
            "$ref": "#/$defs/DecisionEstateResult"
          },
          "type": "array"
        },
        "may_qualify": {
          "items": {
            "$ref": "#/$defs/DecisionMayQualify"
          },
          "type": "array"
        },
        "truncated": {
          "$ref": "#/$defs/DecisionTruncated"
        },
        "gap": {
          "$ref": "#/$defs/DecisionEstateGap"
        },
        "gain": {
          "items": {
            "$ref": "#/$defs/DecisionGainItem"
          },
          "type": "array"
        },
        "warnings": {
          "items": {
            "pattern": "^[a-z0-9_]+$",
            "type": "string"
          },
          "type": "array"
        },
        "excluded_plans": {
          "items": {
            "$ref": "#/$defs/DecisionPlanExclusion"
          },
          "type": "array"
        }
      },
      "required": [
        "status",
        "gap"
      ],
      "type": "object"
    }
  }
}