{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/makerportal-ai/json-schema/makerportal-ai-solver-envelope-schema.json",
  "title": "SolverEnvelope",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/makerportal-ai-openapi.json#/components/schemas/SolverEnvelope",
  "type": "object",
  "required": [
    "inputs",
    "result",
    "provenance",
    "license"
  ],
  "properties": {
    "inputs": {
      "type": "object",
      "description": "The parsed inputs, echoed back with defaults filled in."
    },
    "result": {
      "type": "object",
      "description": "The solved analysis. Shape is per-endpoint; see the example."
    },
    "provenance": {
      "type": "object",
      "required": [
        "method",
        "canonicalUrl"
      ],
      "properties": {
        "method": {
          "type": "string",
          "description": "How the answer was computed, and what its inputs are."
        },
        "canonicalUrl": {
          "type": "string",
          "format": "uri",
          "description": "The published page for these exact inputs, or the lane hub when they are off-grid."
        }
      }
    },
    "license": {
      "type": "string",
      "enum": [
        "free-with-attribution"
      ]
    }
  }
}