{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aspern-org/json-schema/aspern-org-registry-declaration-schema.json",
  "title": "RegistryDeclaration",
  "description": "A strategy declared before it runs. POST it once WITHOUT `signature` and the 422 hands back the exact bytes to sign and their digest, so a client never has to reimplement the format; POST it again with the signature to register.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aspern-org-attestation-api-openapi.yml#/components/schemas/RegistryDeclaration",
  "type": "object",
  "required": [
    "address",
    "chain",
    "venue"
  ],
  "properties": {
    "address": {
      "type": "string",
      "description": "The declaring address, lowercased on arrival."
    },
    "chain": {
      "type": "string"
    },
    "venue": {
      "type": "string"
    },
    "management": {
      "enum": [
        "agent",
        "human",
        "hybrid"
      ],
      "default": "agent",
      "description": "Anything else is read as `agent` rather than refused, because a declaration is the claim being recorded."
    },
    "name": {
      "type": "string",
      "maxLength": 120
    },
    "thesis": {
      "type": "string",
      "maxLength": 4000
    },
    "instruments": {
      "type": "array",
      "maxItems": 40,
      "items": {
        "type": "string"
      },
      "description": "Uppercased on arrival."
    },
    "maxLeverage": {
      "type": [
        "number",
        "null"
      ],
      "x-unit": "multiple"
    },
    "maxDrawdownPct": {
      "type": [
        "number",
        "null"
      ],
      "description": "A decimal fraction, not a percentage, despite the name it has carried since v0.1.",
      "x-unit": "decimal-fraction"
    },
    "strategyHash": {
      "type": [
        "string",
        "null"
      ]
    },
    "model": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 80
    },
    "modelVersion": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 80
    },
    "promptHash": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 80
    },
    "configHash": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 80
    },
    "codeRef": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 200
    },
    "dataSources": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500
    },
    "oversight": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500
    },
    "declaredOn": {
      "type": "string",
      "format": "date",
      "description": "Defaults to today's date where absent."
    },
    "signature": {
      "type": "string",
      "description": "personal_sign / EIP-191 over the text the 422 returns. Absent, the request is not an error: it is how a client asks for the bytes."
    }
  }
}