{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trustycap-com/json-schema/trustycap-com-build-route-schema.json",
  "title": "BuildRoute",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trustycap-com-openapi.yml#/components/schemas/BuildRoute",
  "type": "object",
  "properties": {
    "understood": {
      "type": "object",
      "properties": {
        "platform": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "kind": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name",
            "kind"
          ],
          "additionalProperties": false
        },
        "intent_shape": {
          "type": "string",
          "enum": [
            "business",
            "operation",
            "question"
          ]
        },
        "framework": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "already_handled": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "concern": {
            "type": "string"
          },
          "in_words": {
            "type": "string"
          },
          "by": {
            "type": "string",
            "enum": [
              "platform",
              "project"
            ]
          },
          "how": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "concern",
          "in_words",
          "by",
          "how"
        ],
        "additionalProperties": false
      }
    },
    "still_needed": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "concern": {
            "type": "string"
          },
          "in_words": {
            "type": "string"
          },
          "family": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "concern",
          "in_words"
        ],
        "additionalProperties": false
      }
    },
    "answered_by_native": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "concern": {
            "type": "string"
          },
          "in_words": {
            "type": "string"
          },
          "family": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "concern",
          "in_words"
        ],
        "additionalProperties": false
      },
      "description": "Concerns TrustyCap answers with finished device work rather than with a capability. A Native Kit is not somebody else's product, so it does not belong under not_ours."
    },
    "not_ours": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "concern": {
            "type": "string"
          },
          "in_words": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "enum": [
              "not_a_trustycap_product",
              "your_platform_already_covers_this_ground"
            ]
          },
          "family": {
            "type": [
              "string",
              "null"
            ]
          },
          "instead": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "concern",
          "in_words",
          "reason"
        ],
        "additionalProperties": false
      },
      "description": "Gaps TrustyCap will not fill, and which of the two honest reasons applies."
    },
    "refused": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "target": {
            "type": "string"
          },
          "because": {
            "type": "string"
          }
        },
        "required": [
          "target",
          "because"
        ],
        "additionalProperties": false
      }
    },
    "lead_with": {
      "type": "string",
      "enum": [
        "launch_kit",
        "capabilities",
        "native_kits",
        "production_fixes",
        "nothing_needed"
      ]
    },
    "launch_kits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "why": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "unit_cost_cents": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      }
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "alias": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "use_when": {
            "type": "string"
          },
          "for_concern": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      }
    },
    "native_kits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "headline": {
            "type": "string"
          },
          "platforms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      }
    },
    "production_fixes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "requirement": {
            "type": "string"
          },
          "classification": {
            "type": "string"
          }
        },
        "required": [
          "requirement",
          "classification"
        ],
        "additionalProperties": false
      }
    },
    "families_to_enable": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "work": {
      "type": "object",
      "properties": {
        "automatic": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "agent": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "human": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "automatic",
        "agent",
        "human"
      ],
      "additionalProperties": false,
      "description": "Who does what. The point of the design is to keep moving rows out of `human`; what is left there is consenting to spend money and holding the credential that authorizes it."
    },
    "verification": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "call": {
            "type": "string"
          },
          "expect": {
            "type": "string"
          }
        },
        "required": [
          "call",
          "expect"
        ],
        "additionalProperties": false
      }
    },
    "handoff": {
      "type": "string",
      "description": "A portable prompt for whichever coding agent the builder already uses."
    },
    "next_call": {
      "type": "string"
    },
    "boundaries": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "understood",
    "already_handled",
    "still_needed",
    "answered_by_native",
    "not_ours",
    "lead_with",
    "families_to_enable",
    "work"
  ],
  "additionalProperties": false
}