{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.ergoblockchain.org/agent-economy/developer-launch-kit.schema.v0.json",
  "title": "Ergo Agent Economy Developer Launch Kit API Response v0",
  "description": "Machine-readable launch instructions for Ergo's testnet-first Agent Economy surfaces. Mainnet remains audit-gated.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "ok",
    "type",
    "version",
    "status",
    "last_updated",
    "public_claim",
    "entrypoints",
    "five_minute_path",
    "api_recipes",
    "npm",
    "builder_kit",
    "guardrails",
    "open_gates"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "type": {
      "const": "ergo.agent_economy.developer_launch_kit.v0"
    },
    "version": {
      "const": "v0"
    },
    "status": {
      "enum": ["testnet_live_proof"]
    },
    "last_updated": {
      "type": "string",
      "format": "date"
    },
    "public_claim": {
      "type": "string",
      "minLength": 24
    },
    "entrypoints": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "start_page",
        "roadmap",
        "roadmap_api",
        "roadmap_schema",
        "human_page",
        "machine_api",
        "schema",
        "first_receipt",
        "first_receipt_api",
        "first_receipt_schema",
        "policy_check_schema",
        "ergo_connect",
        "ergo_connect_manifest",
        "ergo_connect_schema",
        "service_publish",
        "service_publish_api",
        "service_publish_schema",
        "provider_onboarding",
        "provider_onboarding_api",
        "provider_onboarding_schema",
        "reputation_graph",
        "reputation_graph_api",
        "reputation_graph_schema",
        "economic_mcp_tools",
        "economic_mcp_tools_api",
        "economic_mcp_tools_schema",
        "job_acceptance",
        "job_acceptance_api",
        "job_acceptance_schema",
        "job_quote",
        "job_quote_api",
        "job_quote_schema",
        "agent_host",
        "buildonergo_kit",
        "live_hub",
        "discovery",
        "discovery_api",
        "discovery_schema",
        "accord_provider_descriptor",
        "openapi",
        "proof_explorer",
        "proof_explorer_api",
        "proof_explorer_schema",
        "developer_services",
        "developer_services_api",
        "developer_tools_api",
        "review_pack",
        "release_watchlist",
        "current_release",
        "release_attestation_2026_05_23"
      ],
      "properties": {
        "start_page": { "type": "string", "format": "uri" },
        "roadmap": { "type": "string", "format": "uri" },
        "roadmap_api": { "type": "string", "format": "uri" },
        "roadmap_schema": { "type": "string", "format": "uri" },
        "human_page": { "type": "string", "format": "uri" },
        "machine_api": { "type": "string", "format": "uri" },
        "schema": { "type": "string", "format": "uri" },
        "first_receipt": { "type": "string", "format": "uri" },
        "first_receipt_api": { "type": "string", "format": "uri" },
        "first_receipt_schema": { "type": "string", "format": "uri" },
        "policy_check_schema": { "type": "string", "format": "uri" },
        "ergo_connect": { "type": "string", "format": "uri" },
        "ergo_connect_manifest": { "type": "string", "format": "uri" },
        "ergo_connect_schema": { "type": "string", "format": "uri" },
        "service_publish": { "type": "string", "format": "uri" },
        "service_publish_api": { "type": "string", "format": "uri" },
        "service_publish_schema": { "type": "string", "format": "uri" },
        "provider_onboarding": { "type": "string", "format": "uri" },
        "provider_onboarding_api": { "type": "string", "format": "uri" },
        "provider_onboarding_schema": { "type": "string", "format": "uri" },
        "reputation_graph": { "type": "string", "format": "uri" },
        "reputation_graph_api": { "type": "string", "format": "uri" },
        "reputation_graph_schema": { "type": "string", "format": "uri" },
        "economic_mcp_tools": { "type": "string", "format": "uri" },
        "economic_mcp_tools_api": { "type": "string", "format": "uri" },
        "economic_mcp_tools_schema": { "type": "string", "format": "uri" },
        "job_acceptance": { "type": "string", "format": "uri" },
        "job_acceptance_api": { "type": "string", "format": "uri" },
        "job_acceptance_schema": { "type": "string", "format": "uri" },
        "job_quote": { "type": "string", "format": "uri" },
        "job_quote_api": { "type": "string", "format": "uri" },
        "job_quote_schema": { "type": "string", "format": "uri" },
        "agent_host": { "type": "string", "format": "uri" },
        "buildonergo_kit": { "type": "string", "format": "uri" },
        "live_hub": { "type": "string", "format": "uri" },
        "discovery": { "type": "string", "format": "uri" },
        "discovery_api": { "type": "string", "format": "uri" },
        "discovery_schema": { "type": "string", "format": "uri" },
        "accord_provider_descriptor": { "type": "string", "format": "uri" },
        "openapi": { "type": "string", "format": "uri" },
        "proof_explorer": { "type": "string", "format": "uri" },
        "proof_explorer_api": { "type": "string", "format": "uri" },
        "proof_explorer_schema": { "type": "string", "format": "uri" },
        "developer_services": { "type": "string", "format": "uri" },
        "developer_services_api": { "type": "string", "format": "uri" },
        "developer_tools_api": { "type": "string", "format": "uri" },
        "review_pack": { "type": "string", "format": "uri" },
        "release_watchlist": { "type": "string", "format": "uri" },
        "current_release": { "type": "string", "format": "uri" },
        "release_attestation_2026_05_23": { "type": "string", "format": "uri" }
      }
    },
    "five_minute_path": {
      "type": "array",
      "minItems": 5,
      "items": { "$ref": "#/$defs/step" }
    },
    "api_recipes": {
      "type": "array",
      "minItems": 5,
      "items": { "$ref": "#/$defs/apiRecipe" }
    },
    "npm": {
      "type": "object",
      "additionalProperties": false,
      "required": ["package", "version", "install", "surfaces"],
      "properties": {
        "package": {
          "const": "@ergoblockchain/sage-widget"
        },
        "version": {
          "type": "string",
          "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
        },
        "install": {
          "type": "string",
          "minLength": 16
        },
        "surfaces": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 8
          }
        }
      }
    },
    "builder_kit": {
      "type": "object",
      "additionalProperties": false,
      "required": ["repo", "package", "status", "install", "commands", "surfaces"],
      "properties": {
        "repo": { "type": "string", "format": "uri" },
        "package": { "const": "@buildonergo/agent-economy-kit" },
        "status": { "type": "string", "minLength": 6 },
        "install": { "type": "string", "minLength": 12 },
        "commands": {
          "type": "array",
          "minItems": 3,
          "items": { "type": "string", "minLength": 8 }
        },
        "surfaces": {
          "type": "array",
          "minItems": 3,
          "items": { "type": "string", "minLength": 8 }
        }
      }
    },
    "guardrails": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 16
      }
    },
    "open_gates": {
      "type": "array",
      "minItems": 2,
      "items": { "$ref": "#/$defs/gate" }
    }
  },
  "$defs": {
    "step": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "label", "href", "goal", "expected"],
      "properties": {
        "id": { "type": "string", "minLength": 3 },
        "label": { "type": "string", "minLength": 3 },
        "href": { "type": "string", "format": "uri" },
        "goal": { "type": "string", "minLength": 16 },
        "expected": { "type": "string", "minLength": 8 }
      }
    },
    "apiRecipe": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "label", "method", "url", "curl", "checks"],
      "properties": {
        "id": { "type": "string", "minLength": 3 },
        "label": { "type": "string", "minLength": 3 },
        "method": { "enum": ["GET", "POST"] },
        "url": { "type": "string", "format": "uri" },
        "curl": { "type": "string", "minLength": 12 },
        "checks": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "string",
            "minLength": 2
          }
        }
      }
    },
    "gate": {
      "type": "object",
      "additionalProperties": false,
      "required": ["id", "label", "owner", "href"],
      "properties": {
        "id": { "type": "string", "minLength": 3 },
        "label": { "type": "string", "minLength": 3 },
        "owner": { "type": "string", "minLength": 3 },
        "href": { "type": "string", "format": "uri" }
      }
    }
  }
}
