{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/newruntime-com/json-schema/newruntime-com-owner-profile-discovery-schema.json",
  "title": "OwnerProfileDiscovery",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/newruntime-com-openapi.json#/components/schemas/OwnerProfileDiscovery",
  "type": "object",
  "required": [
    "schema_version",
    "type",
    "stable_id",
    "record_date",
    "date_kind",
    "scope",
    "owner_profile",
    "recommended_start",
    "route_count",
    "edge_count",
    "routes",
    "edges",
    "privacy"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "newruntime-agent-readable-v0.2"
    },
    "type": {
      "type": "string",
      "const": "owner_profile_discovery"
    },
    "stable_id": {
      "type": "string",
      "const": "owner_profile_discovery:andrey-reshetnikov"
    },
    "record_date": {
      "type": "string",
      "format": "date"
    },
    "scope": {
      "type": "string"
    },
    "owner_profile": {
      "type": "object"
    },
    "recommended_start": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "route_count": {
      "type": "integer",
      "minimum": 1
    },
    "edge_count": {
      "type": "integer",
      "minimum": 1
    },
    "routes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "path",
          "url",
          "media_type",
          "role",
          "reason"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "media_type": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        }
      }
    },
    "edges": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "source",
          "target",
          "type",
          "layer",
          "reason"
        ],
        "additionalProperties": false,
        "properties": {
          "source": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "layer": {
            "type": "string",
            "enum": [
              "physical",
              "knowledge"
            ]
          },
          "reason": {
            "type": "string"
          }
        }
      }
    },
    "full_graph_policy": {
      "type": "object"
    },
    "privacy": {
      "type": "object"
    }
  }
}