{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-aperture-step-tokens-schema.json",
  "title": "ApertureStepTokens",
  "description": "Per-token training signals for one step, loaded lazily; arrays default to empty.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-aperture-api-openapi.yml#/components/schemas/ApertureStepTokens",
  "properties": {
    "tokens": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Tokens"
    },
    "token_strings": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Token Strings"
    },
    "logprobs": {
      "items": {
        "type": "number"
      },
      "type": "array",
      "title": "Logprobs"
    },
    "token_masks": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Token Masks"
    },
    "advantages": {
      "items": {
        "type": "number"
      },
      "type": "array",
      "title": "Advantages"
    },
    "training_logprobs": {
      "items": {
        "type": "number"
      },
      "type": "array",
      "title": "Training Logprobs"
    },
    "trainable_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trainable Status"
    }
  },
  "type": "object"
}