{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orionlabsone-cc/json-schema/orionlabsone-cc-report-schema.json",
  "title": "Report",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orionlabsone-cc-openapi.json#/components/schemas/Report",
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "format": "date"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "height": {
      "type": "integer"
    },
    "network": {
      "type": "string"
    },
    "narrator": {
      "type": "string",
      "description": "Which model wrote the narrative"
    },
    "narrative": {
      "type": "string",
      "description": "The full daily brief as Markdown"
    },
    "snapshot": {
      "$ref": "#/$defs/Snapshot"
    },
    "signals": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Signal"
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "total_signals": {
          "type": "integer"
        },
        "critical": {
          "type": "integer"
        },
        "notable": {
          "type": "integer"
        },
        "info": {
          "type": "integer"
        }
      }
    },
    "provenance": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "format": "uri"
      },
      "description": "Metric name → URL of the exact source it was read from"
    }
  },
  "$defs": {
    "Signal": {
      "type": "object",
      "description": "One anomaly/health signal. `value` is the observation, `baseline` the rolling norm it is compared against.",
      "properties": {
        "type": {
          "type": "string"
        },
        "severity": {
          "type": "string",
          "enum": [
            "info",
            "notable",
            "critical"
          ]
        },
        "title": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        },
        "metric": {
          "type": "string"
        },
        "value": {
          "type": "number"
        },
        "baseline": {
          "type": "number"
        },
        "source": {
          "type": "string",
          "description": "Which upstream source produced the underlying data"
        }
      }
    },
    "Snapshot": {
      "type": "object",
      "description": "Network metrics at report time. NOTE: bonded_ratio is bonded vs stakeable tokens; bonded_ratio_supply is bonded vs TOTAL supply — cite the latter for 'X% of supply is staked'.",
      "properties": {
        "height": {
          "type": "integer"
        },
        "total_fee_tia": {
          "type": "number"
        },
        "total_blobs_tb": {
          "type": "number"
        },
        "total_tx": {
          "type": "integer"
        },
        "total_validators": {
          "type": "integer",
          "description": "Registered validators incl. jailed/inactive"
        },
        "active_validators": {
          "type": "integer",
          "description": "Consensus set size"
        },
        "tia_price": {
          "type": "number"
        },
        "bonded_ratio": {
          "type": "number"
        },
        "bonded_ratio_supply": {
          "type": "number"
        },
        "nakamoto_halting": {
          "type": "integer"
        },
        "jail_count": {
          "type": "integer"
        }
      }
    }
  }
}