{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "schema": {
      "type": "string",
      "const": "skillflux-bench-run/v1"
    },
    "runId": {
      "type": "string",
      "pattern": "^\\d{8}-[0-9a-f]{4}$"
    },
    "methodologyVersion": {
      "type": "string",
      "pattern": "^\\d+$"
    },
    "status": {
      "type": "string",
      "enum": [
        "published",
        "superseded",
        "withdrawn"
      ]
    },
    "supersedes": {
      "type": [
        "string",
        "null"
      ]
    },
    "supersededBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "publishedAt": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "finishedAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "environment": {
      "type": "object",
      "properties": {
        "runner": {
          "type": "string",
          "const": "claude-code-headless"
        },
        "claudeCodeVersion": {
          "type": "string",
          "minLength": 1
        },
        "modelRequested": {
          "type": "string",
          "minLength": 1
        },
        "modelsResolved": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "os": {
          "type": "string"
        },
        "node": {
          "type": "string"
        },
        "image": {
          "type": [
            "string",
            "null"
          ]
        },
        "flags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "benchCommit": {
          "type": "string"
        }
      },
      "required": [
        "runner",
        "claudeCodeVersion",
        "modelRequested",
        "modelsResolved",
        "os",
        "node",
        "image",
        "flags",
        "benchCommit"
      ],
      "additionalProperties": false
    },
    "config": {
      "type": "object",
      "properties": {
        "repeats": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "seed": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "concurrency": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "repeats",
        "seed",
        "concurrency"
      ],
      "additionalProperties": false
    },
    "totals": {
      "type": "object",
      "properties": {
        "trials": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "costUsd": {
          "type": "number",
          "minimum": 0
        },
        "retries": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "trials",
        "costUsd",
        "retries"
      ],
      "additionalProperties": false
    },
    "skills": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "skillId": {
            "type": "string",
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "commitSha": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$"
          },
          "tasks": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "taskId": {
                  "type": "string",
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                },
                "taskVersion": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "taskSha256": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "positive",
                    "negative-control"
                  ]
                },
                "title": {
                  "type": "object",
                  "properties": {
                    "en": {
                      "type": "string",
                      "minLength": 1
                    },
                    "zh": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "en",
                    "zh"
                  ],
                  "additionalProperties": false
                },
                "prompt": {
                  "type": "string",
                  "minLength": 1
                },
                "checks": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "en": {
                        "type": "string",
                        "minLength": 1
                      },
                      "zh": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "en",
                      "zh"
                    ],
                    "additionalProperties": false
                  }
                },
                "arms": {
                  "type": "object",
                  "properties": {
                    "with": {
                      "type": "object",
                      "properties": {
                        "n": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "passes": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "passRate": {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "wilson95": {
                          "anyOf": [
                            {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "items": false,
                              "minItems": 2,
                              "maxItems": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "triggered": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "triggerRate": {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "triggerWilson95": {
                          "anyOf": [
                            {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "items": false,
                              "minItems": 2,
                              "maxItems": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "medianDurationMs": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "iqrDurationMs": {
                          "anyOf": [
                            {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "items": false,
                              "minItems": 2,
                              "maxItems": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "medianCostUsd": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "iqrCostUsd": {
                          "anyOf": [
                            {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "items": false,
                              "minItems": 2,
                              "maxItems": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "medianOutputTokens": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "excluded": {
                          "type": "object",
                          "properties": {
                            "timeout": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "invalid": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "infra": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "timeout",
                            "invalid",
                            "infra"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "n",
                        "passes",
                        "passRate",
                        "wilson95",
                        "triggered",
                        "triggerRate",
                        "triggerWilson95",
                        "medianDurationMs",
                        "iqrDurationMs",
                        "medianCostUsd",
                        "iqrCostUsd",
                        "medianOutputTokens",
                        "excluded"
                      ],
                      "additionalProperties": false
                    },
                    "without": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "n": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "passes": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "passRate": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "wilson95": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "prefixItems": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "items": false,
                                  "minItems": 2,
                                  "maxItems": 2
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "triggered": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "triggerRate": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "triggerWilson95": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "prefixItems": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "items": false,
                                  "minItems": 2,
                                  "maxItems": 2
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "medianDurationMs": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "iqrDurationMs": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "prefixItems": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "items": false,
                                  "minItems": 2,
                                  "maxItems": 2
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "medianCostUsd": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "iqrCostUsd": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "prefixItems": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "number"
                                    }
                                  ],
                                  "items": false,
                                  "minItems": 2,
                                  "maxItems": 2
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "medianOutputTokens": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "excluded": {
                              "type": "object",
                              "properties": {
                                "timeout": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "invalid": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "infra": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "timeout",
                                "invalid",
                                "infra"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "n",
                            "passes",
                            "passRate",
                            "wilson95",
                            "triggered",
                            "triggerRate",
                            "triggerWilson95",
                            "medianDurationMs",
                            "iqrDurationMs",
                            "medianCostUsd",
                            "iqrCostUsd",
                            "medianOutputTokens",
                            "excluded"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "with",
                    "without"
                  ],
                  "additionalProperties": false
                },
                "comparison": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "passRateDelta": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "newcombe95": {
                          "anyOf": [
                            {
                              "type": "array",
                              "prefixItems": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "number"
                                }
                              ],
                              "items": false,
                              "minItems": 2,
                              "maxItems": 2
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "verdict": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "improves",
                                "hurts",
                                "no-detectable-difference"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "passRateDelta",
                        "newcombe95",
                        "verdict"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "taskId",
                "taskVersion",
                "taskSha256",
                "kind",
                "title",
                "prompt",
                "checks",
                "arms",
                "comparison"
              ],
              "additionalProperties": false
            }
          },
          "pooled": {
            "type": "object",
            "properties": {
              "with": {
                "type": "object",
                "properties": {
                  "n": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "passes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "passRate": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "wilson95": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "triggered": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "triggerRate": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "triggerWilson95": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "medianDurationMs": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "iqrDurationMs": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "medianCostUsd": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "iqrCostUsd": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "medianOutputTokens": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "excluded": {
                    "type": "object",
                    "properties": {
                      "timeout": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "invalid": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "infra": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "timeout",
                      "invalid",
                      "infra"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "n",
                  "passes",
                  "passRate",
                  "wilson95",
                  "triggered",
                  "triggerRate",
                  "triggerWilson95",
                  "medianDurationMs",
                  "iqrDurationMs",
                  "medianCostUsd",
                  "iqrCostUsd",
                  "medianOutputTokens",
                  "excluded"
                ],
                "additionalProperties": false
              },
              "without": {
                "type": "object",
                "properties": {
                  "n": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "passes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "passRate": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "wilson95": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "triggered": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "triggerRate": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "triggerWilson95": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "medianDurationMs": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "iqrDurationMs": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "medianCostUsd": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "iqrCostUsd": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "medianOutputTokens": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "excluded": {
                    "type": "object",
                    "properties": {
                      "timeout": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "invalid": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "infra": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "timeout",
                      "invalid",
                      "infra"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "n",
                  "passes",
                  "passRate",
                  "wilson95",
                  "triggered",
                  "triggerRate",
                  "triggerWilson95",
                  "medianDurationMs",
                  "iqrDurationMs",
                  "medianCostUsd",
                  "iqrCostUsd",
                  "medianOutputTokens",
                  "excluded"
                ],
                "additionalProperties": false
              },
              "comparison": {
                "type": "object",
                "properties": {
                  "passRateDelta": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "newcombe95": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "verdict": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "improves",
                          "hurts",
                          "no-detectable-difference"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "passRateDelta",
                  "newcombe95",
                  "verdict"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "with",
              "without",
              "comparison"
            ],
            "additionalProperties": false
          },
          "falseTrigger": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "n": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "triggered": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "rate": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "wilson95": {
                    "anyOf": [
                      {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "number"
                          },
                          {
                            "type": "number"
                          }
                        ],
                        "items": false,
                        "minItems": 2,
                        "maxItems": 2
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "n",
                  "triggered",
                  "rate",
                  "wilson95"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "skillId",
          "commitSha",
          "tasks",
          "pooled",
          "falseTrigger"
        ],
        "additionalProperties": false
      }
    },
    "trials": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "skillId": {
            "type": "string",
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "taskId": {
            "type": "string",
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "arm": {
            "type": "string",
            "enum": [
              "with",
              "without"
            ]
          },
          "rep": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "timeout",
              "invalid",
              "infra"
            ]
          },
          "passed": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "assertions": {
            "type": "object",
            "properties": {
              "passed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "passed",
              "total"
            ],
            "additionalProperties": false
          },
          "triggered": {
            "type": "boolean"
          },
          "skillInvocations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "firstTriggerTurn": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "durationMs": {
            "type": "number",
            "minimum": 0
          },
          "durationApiMs": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "numTurns": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "costUsd": {
            "type": "number",
            "minimum": 0
          },
          "tokens": {
            "type": "object",
            "properties": {
              "input": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "output": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "cacheRead": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "cacheWrite": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "input",
              "output",
              "cacheRead",
              "cacheWrite"
            ],
            "additionalProperties": false
          },
          "transcriptSha256": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "skillId",
          "taskId",
          "arm",
          "rep",
          "status",
          "passed",
          "assertions",
          "triggered",
          "skillInvocations",
          "firstTriggerTurn",
          "durationMs",
          "durationApiMs",
          "numTurns",
          "costUsd",
          "tokens",
          "transcriptSha256"
        ],
        "additionalProperties": false
      }
    },
    "deviations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "artifacts": {
      "type": "object",
      "properties": {
        "transcriptsUrl": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "sha256": {
          "type": [
            "string",
            "null"
          ]
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "transcriptsUrl",
        "sha256"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "schema",
    "runId",
    "methodologyVersion",
    "status",
    "supersedes",
    "supersededBy",
    "publishedAt",
    "startedAt",
    "finishedAt",
    "environment",
    "config",
    "totals",
    "skills",
    "trials",
    "deviations",
    "artifacts"
  ],
  "additionalProperties": false
}
