{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/session-exchange-com/json-schema/session-exchange-com-faithfulness-request-schema.json",
  "title": "FaithfulnessRequest",
  "description": "A held-out model-faithfulness reading (environment-model v0.1 S4).\n`scope` is a process id, or '_model' for the env-wide model. `score` ∈ [0,1]\nis the held-out agreement with independent ground truth.\n\nNOTE (Phase 1, 1a): when a governed FaithfulnessSpec exists for (env, scope)\nthe collector RECOMPUTES the reading and IGNORES `score`/`threshold` here — they\nare retained only for the legacy (no-spec) path and are deprecated.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/session-exchange-com-openapi.json#/components/schemas/FaithfulnessRequest",
  "properties": {
    "score": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Score"
    },
    "threshold": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Threshold",
      "default": 0.0
    },
    "scope": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Scope",
      "default": "_model"
    },
    "n_test": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "N Test"
    },
    "held_out": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Held Out"
    },
    "ground_truth_event_types": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Ground Truth Event Types"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Note"
    }
  },
  "type": "object",
  "required": [
    "score"
  ]
}