{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/latitude-so/json-schema/latitude-so-current-agent-score-schema.json",
  "title": "CurrentAgentScore",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/latitude-so-agent-score-api-openapi.yml#/components/schemas/CurrentAgentScore",
  "type": "object",
  "properties": {
    "available": {
      "type": "boolean",
      "description": "Whether a score was published for today. `false` when a dimension did not meet its coverage or confidence floor; no earlier score is substituted."
    },
    "date": {
      "type": "string",
      "description": "UTC date the answer refers to, as `YYYY-MM-DD`."
    },
    "snapshot": {
      "allOf": [
        {
          "$ref": "#/$defs/AgentScoreSnapshot"
        },
        {
          "nullable": true,
          "description": "Today's score, or `null` when none was published."
        }
      ]
    }
  },
  "required": [
    "available",
    "date",
    "snapshot"
  ],
  "$defs": {
    "AgentScoreDimension": {
      "type": "object",
      "properties": {
        "score": {
          "type": "number",
          "description": "Dimension score from 0 to 100. Read it with the dimension's own meaning."
        },
        "interval": {
          "$ref": "#/$defs/AgentScoreInterval"
        }
      },
      "required": [
        "score",
        "interval"
      ],
      "description": "Share of comparable sessions expected to accomplish the user's task."
    },
    "AgentScoreDimensions": {
      "type": "object",
      "properties": {
        "outcome": {
          "$ref": "#/$defs/AgentScoreDimension"
        },
        "reliability": {
          "allOf": [
            {
              "$ref": "#/$defs/AgentScoreDimension"
            },
            {
              "description": "Chance the agent completes a reference run of 20 sessions without a terminal operational failure."
            }
          ]
        },
        "cost": {
          "allOf": [
            {
              "$ref": "#/$defs/AgentScoreDimension"
            },
            {
              "description": "Health of the agent's use of paid and token-bearing resources."
            }
          ]
        },
        "speed": {
          "allOf": [
            {
              "$ref": "#/$defs/AgentScoreDimension"
            },
            {
              "description": "Share of user-visible critical-path time that was necessary."
            }
          ]
        },
        "safety": {
          "allOf": [
            {
              "$ref": "#/$defs/AgentScoreDimension"
            },
            {
              "description": "Chance a reference run of 100 sessions contains no confirmed agent-caused harm."
            }
          ]
        }
      },
      "required": [
        "outcome",
        "reliability",
        "cost",
        "speed",
        "safety"
      ]
    },
    "AgentScoreInterval": {
      "type": "object",
      "properties": {
        "lower": {
          "type": "number",
          "description": "Lower bound of the 95% interval, on the same 0 to 100 scale."
        },
        "upper": {
          "type": "number",
          "description": "Upper bound of the 95% interval, on the same 0 to 100 scale."
        }
      },
      "required": [
        "lower",
        "upper"
      ]
    },
    "AgentScoreSnapshot": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "description": "UTC date the score was published for, as `YYYY-MM-DD`."
        },
        "score": {
          "type": "number",
          "description": "Agent Score from 0 to 100: the weighted mean of the five dimensions for this window."
        },
        "interval": {
          "$ref": "#/$defs/AgentScoreInterval"
        },
        "dimensions": {
          "$ref": "#/$defs/AgentScoreDimensions"
        },
        "scoringVersion": {
          "type": "string",
          "description": "Version of the formulas, prompts and frozen references that produced this score. Scores from different versions are not directly comparable."
        },
        "windowDays": {
          "type": "integer",
          "description": "Length in days of the rolling window this score covers."
        },
        "eligibleSessionCount": {
          "type": "integer",
          "description": "Production sessions in the window the score was computed over."
        },
        "policyCap": {
          "type": [
            "number",
            "null"
          ],
          "description": "Ceiling a safety policy rule applied to the score, or `null` when no rule applied."
        }
      },
      "required": [
        "date",
        "score",
        "interval",
        "dimensions",
        "scoringVersion",
        "windowDays",
        "eligibleSessionCount",
        "policyCap"
      ]
    }
  }
}