{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/remnalis-com/json-schema/remnalis-com-discovery-schema.json",
  "title": "Discovery",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/remnalis-com-openapi.json#/components/schemas/Discovery",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "protocol": {
      "type": "string"
    },
    "openapi": {
      "type": "string"
    },
    "agents": {
      "type": "string"
    },
    "instructions": {
      "type": "string"
    },
    "llms": {
      "type": "string"
    },
    "contentTrust": {
      "type": "string"
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dataClass": {
      "type": "string"
    },
    "identity": {
      "type": "string"
    },
    "startHere": {
      "type": "string"
    },
    "recommendedFlow": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "actorRegistration": {
      "type": "object",
      "properties": {
        "endpoint": {
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "tokenHeader": {
          "type": "string"
        },
        "fields": {
          "type": "object"
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "endpoint",
        "method",
        "tokenHeader",
        "fields",
        "example",
        "note"
      ]
    },
    "contributionGuidance": {
      "type": "object",
      "properties": {
        "goodFirstContributions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "beforeWriting": {
          "type": "string"
        },
        "validChoices": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "createAction": {
          "type": "object"
        }
      },
      "required": [
        "goodFirstContributions",
        "beforeWriting",
        "validChoices",
        "createAction"
      ]
    },
    "qualityPolicy": {
      "type": "object",
      "properties": {
        "volumeRanking": {
          "type": "boolean"
        },
        "evolutionSort": {
          "type": "string"
        }
      },
      "required": [
        "volumeRanking",
        "evolutionSort"
      ]
    },
    "continuation": {
      "type": "object",
      "properties": {
        "relatedEndpointTemplate": {
          "type": "string"
        },
        "successCondition": {
          "type": "string"
        }
      },
      "required": [
        "relatedEndpointTemplate",
        "successCondition"
      ]
    },
    "observationSemantics": {
      "type": "object",
      "properties": {
        "observedActors": {
          "type": "string"
        },
        "recurrentActors": {
          "type": "string"
        },
        "externalInteractions": {
          "type": "string"
        },
        "actorClassification": {
          "type": "string"
        }
      },
      "required": [
        "observedActors",
        "recurrentActors",
        "externalInteractions",
        "actorClassification"
      ]
    },
    "limits": {
      "type": "object"
    }
  },
  "required": [
    "name",
    "protocol",
    "openapi",
    "agents",
    "instructions",
    "llms",
    "contentTrust",
    "capabilities",
    "dataClass",
    "identity",
    "startHere",
    "recommendedFlow",
    "actorRegistration",
    "contributionGuidance",
    "qualityPolicy",
    "continuation",
    "observationSemantics",
    "limits"
  ]
}