{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudworldmodel-ai/json-schema/cloudworldmodel-ai-typical-accuracy-holdout-schema.json",
  "title": "TypicalAccuracyHoldout",
  "description": "Canonical AWS GET only. Frozen, independently measured typical-weight campaign scored against engine 1.2.3 pre-measurement predictions. beforeFit is preserved beside the independent afterFit 300 RPS holdout. Never combine with the lean overallScore.\n",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudworldmodel-ai-openapi.yml#/components/schemas/TypicalAccuracyHoldout",
  "type": "object",
  "required": [
    "appWeight",
    "source",
    "campaignId",
    "measurementCommit",
    "reportUrl",
    "summaryUrl",
    "scoresUrl",
    "predictionsUrl",
    "scope",
    "beforeFit",
    "afterFit",
    "dayAndRegionHoldouts",
    "extrapolatedDiagnostic",
    "context"
  ],
  "properties": {
    "appWeight": {
      "type": "string",
      "const": "typical"
    },
    "source": {
      "type": "string",
      "const": "owned_cwm_bench"
    },
    "campaignId": {
      "type": "string"
    },
    "measurementCommit": {
      "type": "string"
    },
    "reportUrl": {
      "type": "string",
      "format": "uri"
    },
    "summaryUrl": {
      "type": "string",
      "format": "uri"
    },
    "scoresUrl": {
      "type": "string",
      "format": "uri"
    },
    "predictionsUrl": {
      "type": "string",
      "format": "uri"
    },
    "scope": {
      "type": "object",
      "required": [
        "campaigns",
        "days",
        "region",
        "attemptsPerRung",
        "engineVersion",
        "seed",
        "predictionStep",
        "predictionsFrozenBeforeMeasurement",
        "measuredCost",
        "topology"
      ],
      "properties": {
        "campaigns": {
          "type": "integer"
        },
        "days": {
          "type": "integer"
        },
        "region": {
          "type": "string"
        },
        "attemptsPerRung": {
          "type": "integer"
        },
        "engineVersion": {
          "type": "string"
        },
        "seed": {
          "type": "integer"
        },
        "predictionStep": {
          "type": "integer"
        },
        "predictionsFrozenBeforeMeasurement": {
          "type": "boolean",
          "const": true
        },
        "measuredCost": {
          "type": "boolean",
          "const": false
        },
        "topology": {
          "type": "string"
        }
      }
    },
    "beforeFit": {
      "type": "object",
      "required": [
        "targetRps",
        "split",
        "score",
        "scoreWithoutCost",
        "metrics",
        "unweightedP99",
        "throughputBasis",
        "costBasis",
        "steadyWindowAlternative"
      ],
      "properties": {
        "targetRps": {
          "type": "integer"
        },
        "split": {
          "type": "string",
          "const": "holdout"
        },
        "score": {
          "type": "number"
        },
        "scoreWithoutCost": {
          "type": "number"
        },
        "metrics": {
          "type": "array",
          "description": "Score-source precision for measured values; displayed rounding and weighted contributions do not replace the frozen total.",
          "items": {
            "type": "object",
            "required": [
              "metric",
              "label",
              "unit",
              "predicted",
              "measured",
              "measuredSource",
              "score",
              "weight",
              "weightedContribution"
            ],
            "properties": {
              "metric": {
                "type": "string",
                "enum": [
                  "p50",
                  "p95",
                  "appCpu",
                  "throughput",
                  "errorRate",
                  "cost"
                ]
              },
              "label": {
                "type": "string"
              },
              "unit": {
                "type": "string",
                "enum": [
                  "ms",
                  "%",
                  "RPS",
                  "USD/hour"
                ]
              },
              "predicted": {
                "type": "number"
              },
              "measured": {
                "type": "number"
              },
              "measuredSource": {
                "type": "string",
                "enum": [
                  "owned_measurement",
                  "list_price_reference"
                ]
              },
              "score": {
                "type": "number"
              },
              "weight": {
                "type": "number"
              },
              "weightedContribution": {
                "type": "number"
              }
            }
          }
        },
        "unweightedP99": {
          "type": "object",
          "required": [
            "predicted",
            "measured",
            "unit",
            "score"
          ],
          "properties": {
            "predicted": {
              "type": "number"
            },
            "measured": {
              "type": "number"
            },
            "unit": {
              "type": "string",
              "const": "ms"
            },
            "score": {
              "type": "number"
            }
          }
        },
        "throughputBasis": {
          "type": "string",
          "description": "Whole-run measured goodput versus point-rate prediction."
        },
        "costBasis": {
          "type": "string",
          "description": "Cost was not measured; reference is list price, not a bill."
        },
        "steadyWindowAlternative": {
          "type": "object",
          "description": "Optional diagnostic, not the scored holdout.",
          "required": [
            "scored",
            "throughputRps",
            "throughputScore",
            "totalScore"
          ],
          "properties": {
            "scored": {
              "type": "boolean",
              "const": false
            },
            "throughputRps": {
              "type": "number"
            },
            "throughputScore": {
              "type": "number"
            },
            "totalScore": {
              "type": "number"
            }
          }
        }
      }
    },
    "afterFit": {
      "type": "object",
      "description": "Frozen step-6 owned typical 300 RPS prediction scored with the same measured references and page methodology. The fit uses only 20/100/200 RPS; 300 is an independent holdout and 500 diagnostic only.\n",
      "required": [
        "targetRps",
        "split",
        "engineVersion",
        "calibrationId",
        "fitRungs",
        "score",
        "scoreWithoutCost",
        "metrics",
        "throughputBasis",
        "costBasis"
      ],
      "properties": {
        "targetRps": {
          "type": "integer",
          "const": 300
        },
        "split": {
          "type": "string",
          "const": "independent holdout"
        },
        "engineVersion": {
          "type": "string"
        },
        "calibrationId": {
          "type": "string",
          "description": "Campaign typical-v1-20260927c and full measurement commit 6aa574d7ff9d3080b88b221bcd59f7d218ae37f0."
        },
        "fitRungs": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "typical-fit-20",
              "typical-fit-100",
              "typical-fit-200"
            ]
          }
        },
        "score": {
          "type": "number"
        },
        "scoreWithoutCost": {
          "type": "number"
        },
        "metrics": {
          "$ref": "#/$defs/metrics"
        },
        "throughputBasis": {
          "type": "string"
        },
        "costBasis": {
          "type": "string",
          "description": "List price, not measured; post-fit scored prediction excludes egress unlike the historical before-fit prediction."
        }
      }
    },
    "dayAndRegionHoldouts": {
      "type": "object",
      "description": "Supplemental observed campaign results; these do not replace or change the original scored afterFit holdout.",
      "required": [
        "campaignId",
        "reportUrl",
        "comparisonBasis",
        "original",
        "observed",
        "repeatability100Rps"
      ],
      "properties": {
        "campaignId": {
          "type": "string",
          "const": "typical-holdouts-v1-20261006"
        },
        "reportUrl": {
          "type": "string",
          "format": "uri"
        },
        "comparisonBasis": {
          "type": "string",
          "const": "page cost basis"
        },
        "original": {
          "type": "object",
          "required": [
            "campaignId",
            "targetRps",
            "score",
            "scoreWithoutCost",
            "p95Ms"
          ],
          "properties": {
            "campaignId": {
              "type": "string",
              "const": "typical-v1-20260927c"
            },
            "targetRps": {
              "type": "integer",
              "const": 300
            },
            "score": {
              "type": "number"
            },
            "scoreWithoutCost": {
              "type": "number"
            },
            "p95Ms": {
              "type": "number"
            }
          }
        },
        "observed": {
          "type": "array",
          "minItems": 2,
          "maxItems": 2,
          "description": "Later-day and second-region observed results, kept separate from the original afterFit prediction.",
          "items": {
            "type": "object",
            "required": [
              "id",
              "label",
              "region",
              "targetRps",
              "score",
              "scoreWithoutCost",
              "p95Ms"
            ],
            "properties": {
              "id": {
                "type": "string",
                "enum": [
                  "later-day",
                  "second-region"
                ]
              },
              "label": {
                "type": "string"
              },
              "region": {
                "type": "string",
                "enum": [
                  "us-east-2",
                  "us-west-2"
                ]
              },
              "targetRps": {
                "type": "integer",
                "const": 300
              },
              "score": {
                "type": "number"
              },
              "scoreWithoutCost": {
                "type": "number"
              },
              "p95Ms": {
                "type": "number"
              }
            }
          }
        },
        "repeatability100Rps": {
          "type": "object",
          "required": [
            "targetRps",
            "scores"
          ],
          "properties": {
            "targetRps": {
              "type": "integer",
              "const": 100
            },
            "scores": {
              "type": "array",
              "minItems": 2,
              "maxItems": 2,
              "items": {
                "type": "number"
              }
            }
          }
        }
      }
    },
    "extrapolatedDiagnostic": {
      "type": "object",
      "description": "Compatibility property name for the 500 RPS owned-fit prediction. The fit uses 20, 100, and 200 RPS, is validated at the 300 RPS holdout, and is compared with a separate measured 500 RPS diagnostic run. This comparison is excluded from headline accuracy and is not a validated saturation finding. Neither 300 nor 500 RPS is fit data.\n",
      "required": [
        "targetRps",
        "label",
        "engineVersion",
        "calibrationId",
        "fitRungs",
        "score",
        "scoreWithoutCost",
        "metrics",
        "throughputBasis",
        "costBasis"
      ],
      "properties": {
        "targetRps": {
          "type": "integer",
          "const": 500
        },
        "label": {
          "type": "string",
          "const": "diagnostic extrapolation beyond the calibrated and validated range (fit at 20, 100, and 200 RPS; validated at 300 RPS), compared with a measured 500 RPS diagnostic run; excluded from headline accuracy and not a validated saturation finding"
        },
        "engineVersion": {
          "type": "string"
        },
        "calibrationId": {
          "type": "string"
        },
        "fitRungs": {
          "type": "array",
          "minItems": 3,
          "maxItems": 3,
          "description": "Existing owned typical fit data only; 500 RPS is not a fit rung.",
          "items": {
            "type": "string",
            "enum": [
              "typical-fit-20",
              "typical-fit-100",
              "typical-fit-200"
            ]
          }
        },
        "score": {
          "type": "number"
        },
        "scoreWithoutCost": {
          "type": "number"
        },
        "metrics": {
          "$ref": "#/$defs/metrics"
        },
        "throughputBasis": {
          "type": "string"
        },
        "costBasis": {
          "type": "string",
          "description": "No-egress public list-price reference, not a measured bill."
        }
      }
    },
    "context": {
      "type": "array",
      "description": "Fit rungs are not independent holdouts; saturation is diagnostic only.",
      "items": {
        "type": "object",
        "required": [
          "rung",
          "role",
          "score",
          "scoreWithoutCost"
        ],
        "properties": {
          "rung": {
            "type": "string",
            "enum": [
              "fit-20",
              "fit-100",
              "fit-200",
              "saturation-500"
            ]
          },
          "role": {
            "type": "string",
            "enum": [
              "fit_data_not_holdout",
              "diagnostic_only"
            ]
          },
          "score": {
            "type": "number"
          },
          "scoreWithoutCost": {
            "type": "number"
          }
        }
      }
    }
  }
}