{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-sdk-find-runnable-schema.json",
  "title": "SdkFindRunnable",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-agents-api-openapi.yml#/components/schemas/SdkFindRunnable",
  "type": "object",
  "properties": {
    "oneAnswer": {
      "$ref": "#/$defs/OneAnswer"
    },
    "local": {
      "enum": [
        "found",
        "none_found",
        "checking"
      ]
    },
    "fallback": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "bay-run"
        },
        "labelled": {
          "const": true
        },
        "reason": {
          "type": "string"
        }
      },
      "required": [],
      "additionalProperties": true
    },
    "schemaVersion": {
      "type": "string"
    },
    "generatedAt": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "recommendation": {
      "anyOf": [
        {
          "$ref": "#/$defs/SdkRunnableCandidate"
        },
        {
          "type": "null"
        }
      ]
    },
    "alternatives": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SdkRunnableCandidate"
      }
    },
    "next_call": {
      "anyOf": [
        {
          "type": "object",
          "properties": {},
          "required": [],
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "deploymentPlan": {
      "anyOf": [
        {
          "$ref": "#/$defs/SdkDeploymentPlan"
        },
        {
          "type": "null"
        }
      ]
    },
    "executionAvailable": {
      "type": "boolean"
    },
    "commandsAvailable": {
      "type": "boolean"
    },
    "runTested": {
      "type": "boolean"
    },
    "runReady": {
      "type": "boolean"
    },
    "runReadyReasonCodes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "freshness": {
      "type": "object",
      "properties": {
        "degraded": {
          "type": "boolean"
        },
        "stale": {
          "type": "boolean"
        }
      },
      "required": [],
      "additionalProperties": true
    },
    "degraded": {
      "type": "boolean"
    },
    "stale": {
      "type": "boolean"
    }
  },
  "required": [
    "schemaVersion",
    "generatedAt"
  ],
  "additionalProperties": true,
  "$defs": {
    "OneAnswer": {
      "type": "object",
      "properties": {
        "schemaVersion": {
          "const": "hugging-bay.one-answer.v1"
        },
        "question": {
          "type": "object",
          "properties": {
            "task": {
              "type": "string"
            },
            "hardware": {
              "type": "object",
              "properties": {
                "memoryGb": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "deviceFamily": {
                  "type": "string"
                },
                "hardwareClass": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "os": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "note": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "required": [
                        "summary"
                      ],
                      "properties": {
                        "summary": {
                          "type": "string"
                        },
                        "downloadable": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "noteMessage": {
                  "type": "string",
                  "description": "Original route note, when a public qualification occupies note."
                }
              },
              "required": [
                "memoryGb",
                "deviceFamily",
                "hardwareClass",
                "os"
              ],
              "additionalProperties": false
            },
            "contextTokens": {
              "type": "number"
            },
            "commercial": {
              "type": "boolean"
            },
            "model": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "provenOnly": {
              "type": "boolean"
            },
            "note": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "required": [
                    "summary"
                  ],
                  "properties": {
                    "summary": {
                      "type": "string"
                    },
                    "downloadable": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            "noteMessage": {
              "type": "string",
              "description": "Original route note, when a public qualification occupies note."
            }
          },
          "required": [
            "task",
            "hardware",
            "contextTokens",
            "commercial",
            "model",
            "provenOnly"
          ],
          "additionalProperties": false
        },
        "snapshot": {
          "type": "object",
          "properties": {
            "at": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "note": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "required": [
                    "summary"
                  ],
                  "properties": {
                    "summary": {
                      "type": "string"
                    },
                    "downloadable": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            "noteMessage": {
              "type": "string",
              "description": "Original route note, when a public qualification occupies note."
            }
          },
          "required": [
            "at"
          ],
          "additionalProperties": false
        },
        "state": {
          "enum": [
            "ready",
            "checking",
            "unavailable",
            "no_fit",
            "blocked"
          ]
        },
        "exactFile": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "artifactId": {
                  "type": "string"
                },
                "repo": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "path": {
                  "type": "string"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "sizeBytes": {
                  "type": "integer",
                  "minimum": 1000000
                },
                "downloadUrl": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fit": {
                  "type": "object",
                  "properties": {
                    "verdict": {
                      "enum": [
                        "fits",
                        "too_large",
                        "unknown"
                      ]
                    },
                    "basis": {
                      "const": "file-size-estimate"
                    },
                    "memoryGb": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sizeBytes": {
                      "type": "number"
                    },
                    "maxFileSizeBytes": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "contextTokens": {
                      "type": "number"
                    },
                    "runtimeVerified": {
                      "const": false
                    },
                    "note": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "required": [
                            "summary"
                          ],
                          "properties": {
                            "summary": {
                              "type": "string"
                            },
                            "downloadable": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "noteMessage": {
                      "type": "string",
                      "description": "Original route note, when a public qualification occupies note."
                    }
                  },
                  "required": [
                    "verdict",
                    "basis",
                    "memoryGb",
                    "sizeBytes",
                    "maxFileSizeBytes",
                    "contextTokens",
                    "runtimeVerified"
                  ],
                  "additionalProperties": false
                },
                "serve": {
                  "type": "object",
                  "properties": {
                    "verdict": {
                      "enum": [
                        "ready",
                        "blocked",
                        "checking"
                      ]
                    },
                    "canDownload": {
                      "type": "boolean"
                    },
                    "checkedAt": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "evidenceUrl": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "note": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "required": [
                            "summary"
                          ],
                          "properties": {
                            "summary": {
                              "type": "string"
                            },
                            "downloadable": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "noteMessage": {
                      "type": "string",
                      "description": "Original route note, when a public qualification occupies note."
                    }
                  },
                  "required": [
                    "verdict",
                    "canDownload",
                    "checkedAt",
                    "evidenceUrl"
                  ],
                  "additionalProperties": false
                },
                "freshness": {
                  "type": "object",
                  "properties": {
                    "state": {
                      "enum": [
                        "current",
                        "stale",
                        "unknown"
                      ]
                    },
                    "checkedAt": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ageMs": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "note": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "required": [
                            "summary"
                          ],
                          "properties": {
                            "summary": {
                              "type": "string"
                            },
                            "downloadable": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "noteMessage": {
                      "type": "string",
                      "description": "Original route note, when a public qualification occupies note."
                    }
                  },
                  "required": [
                    "state",
                    "checkedAt",
                    "ageMs"
                  ],
                  "additionalProperties": false
                },
                "signature": {
                  "enum": [
                    "signed",
                    "unsigned",
                    "pending"
                  ]
                },
                "runReceipt": {
                  "anyOf": [
                    {
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "note": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "required": [
                        "summary"
                      ],
                      "properties": {
                        "summary": {
                          "type": "string"
                        },
                        "downloadable": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "noteMessage": {
                  "type": "string",
                  "description": "Original route note, when a public qualification occupies note."
                }
              },
              "required": [
                "artifactId",
                "repo",
                "path",
                "sha256",
                "sizeBytes",
                "downloadUrl",
                "fit",
                "serve",
                "freshness",
                "signature",
                "runReceipt",
                "license"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "sha256": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "fit": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "verdict": {
                  "enum": [
                    "fits",
                    "too_large",
                    "unknown"
                  ]
                },
                "basis": {
                  "const": "file-size-estimate"
                },
                "memoryGb": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sizeBytes": {
                  "type": "number"
                },
                "maxFileSizeBytes": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "contextTokens": {
                  "type": "number"
                },
                "runtimeVerified": {
                  "const": false
                },
                "note": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "required": [
                        "summary"
                      ],
                      "properties": {
                        "summary": {
                          "type": "string"
                        },
                        "downloadable": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "noteMessage": {
                  "type": "string",
                  "description": "Original route note, when a public qualification occupies note."
                }
              },
              "required": [
                "verdict",
                "basis",
                "memoryGb",
                "sizeBytes",
                "maxFileSizeBytes",
                "contextTokens",
                "runtimeVerified"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "serve": {
          "type": "object",
          "properties": {
            "verdict": {
              "enum": [
                "ready",
                "blocked",
                "checking"
              ]
            },
            "canDownload": {
              "type": "boolean"
            },
            "checkedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "evidenceUrl": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "note": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "required": [
                    "summary"
                  ],
                  "properties": {
                    "summary": {
                      "type": "string"
                    },
                    "downloadable": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            "noteMessage": {
              "type": "string",
              "description": "Original route note, when a public qualification occupies note."
            }
          },
          "required": [
            "verdict",
            "canDownload",
            "checkedAt",
            "evidenceUrl"
          ],
          "additionalProperties": false
        },
        "freshness": {
          "type": "object",
          "properties": {
            "state": {
              "enum": [
                "current",
                "stale",
                "unknown"
              ]
            },
            "checkedAt": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "ageMs": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            },
            "note": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "required": [
                    "summary"
                  ],
                  "properties": {
                    "summary": {
                      "type": "string"
                    },
                    "downloadable": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            "noteMessage": {
              "type": "string",
              "description": "Original route note, when a public qualification occupies note."
            }
          },
          "required": [
            "state",
            "checkedAt",
            "ageMs"
          ],
          "additionalProperties": false
        },
        "fallback": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "artifactId": {
                  "type": "string"
                },
                "repo": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "path": {
                  "type": "string"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                },
                "sizeBytes": {
                  "type": "integer",
                  "minimum": 1000000
                },
                "downloadUrl": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fit": {
                  "type": "object",
                  "properties": {
                    "verdict": {
                      "enum": [
                        "fits",
                        "too_large",
                        "unknown"
                      ]
                    },
                    "basis": {
                      "const": "file-size-estimate"
                    },
                    "memoryGb": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sizeBytes": {
                      "type": "number"
                    },
                    "maxFileSizeBytes": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "contextTokens": {
                      "type": "number"
                    },
                    "runtimeVerified": {
                      "const": false
                    },
                    "note": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "required": [
                            "summary"
                          ],
                          "properties": {
                            "summary": {
                              "type": "string"
                            },
                            "downloadable": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "noteMessage": {
                      "type": "string",
                      "description": "Original route note, when a public qualification occupies note."
                    }
                  },
                  "required": [
                    "verdict",
                    "basis",
                    "memoryGb",
                    "sizeBytes",
                    "maxFileSizeBytes",
                    "contextTokens",
                    "runtimeVerified"
                  ],
                  "additionalProperties": false
                },
                "serve": {
                  "type": "object",
                  "properties": {
                    "verdict": {
                      "enum": [
                        "ready",
                        "blocked",
                        "checking"
                      ]
                    },
                    "canDownload": {
                      "type": "boolean"
                    },
                    "checkedAt": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "evidenceUrl": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "note": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "required": [
                            "summary"
                          ],
                          "properties": {
                            "summary": {
                              "type": "string"
                            },
                            "downloadable": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "noteMessage": {
                      "type": "string",
                      "description": "Original route note, when a public qualification occupies note."
                    }
                  },
                  "required": [
                    "verdict",
                    "canDownload",
                    "checkedAt",
                    "evidenceUrl"
                  ],
                  "additionalProperties": false
                },
                "freshness": {
                  "type": "object",
                  "properties": {
                    "state": {
                      "enum": [
                        "current",
                        "stale",
                        "unknown"
                      ]
                    },
                    "checkedAt": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ageMs": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "note": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "object",
                          "required": [
                            "summary"
                          ],
                          "properties": {
                            "summary": {
                              "type": "string"
                            },
                            "downloadable": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    "noteMessage": {
                      "type": "string",
                      "description": "Original route note, when a public qualification occupies note."
                    }
                  },
                  "required": [
                    "state",
                    "checkedAt",
                    "ageMs"
                  ],
                  "additionalProperties": false
                },
                "signature": {
                  "enum": [
                    "signed",
                    "unsigned",
                    "pending"
                  ]
                },
                "runReceipt": {
                  "anyOf": [
                    {
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "note": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "required": [
                        "summary"
                      ],
                      "properties": {
                        "summary": {
                          "type": "string"
                        },
                        "downloadable": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "noteMessage": {
                  "type": "string",
                  "description": "Original route note, when a public qualification occupies note."
                }
              },
              "required": [
                "artifactId",
                "repo",
                "path",
                "sha256",
                "sizeBytes",
                "downloadUrl",
                "fit",
                "serve",
                "freshness",
                "signature",
                "runReceipt",
                "license"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "reason": {
          "type": "string"
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "required": [
                "summary"
              ],
              "properties": {
                "summary": {
                  "type": "string"
                },
                "downloadable": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "noteMessage": {
          "type": "string",
          "description": "Original route note, when a public qualification occupies note."
        }
      },
      "required": [
        "schemaVersion",
        "question",
        "snapshot",
        "state",
        "exactFile",
        "sha256",
        "fit",
        "serve",
        "freshness",
        "fallback",
        "reason"
      ],
      "additionalProperties": false
    },
    "ProofReceipt": {
      "type": "object",
      "properties": {
        "schemaVersion": {
          "const": "hugging-bay.proof-receipt.v1"
        },
        "artifactId": {
          "type": "string"
        },
        "file": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string"
            },
            "sha256": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            },
            "sizeBytes": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 1
            },
            "note": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "required": [
                    "summary"
                  ],
                  "properties": {
                    "summary": {
                      "type": "string"
                    },
                    "downloadable": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            "noteMessage": {
              "type": "string",
              "description": "Original route note, when a public qualification occupies note."
            }
          },
          "required": [
            "path",
            "sha256",
            "sizeBytes"
          ],
          "additionalProperties": false
        },
        "license": {
          "type": "string"
        },
        "evidenceDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "checks": {
          "type": "object",
          "properties": {
            "bytes": {
              "type": "object",
              "properties": {
                "status": {
                  "enum": [
                    "recorded",
                    "not-recorded"
                  ]
                },
                "checkedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "note": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "required": [
                        "summary"
                      ],
                      "properties": {
                        "summary": {
                          "type": "string"
                        },
                        "downloadable": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "noteMessage": {
                  "type": "string",
                  "description": "Original route note, when a public qualification occupies note."
                }
              },
              "required": [
                "status",
                "checkedAt"
              ],
              "additionalProperties": false
            },
            "run": {
              "type": "object",
              "properties": {
                "status": {
                  "enum": [
                    "recorded",
                    "not-recorded"
                  ]
                },
                "checkedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "device": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "runtime": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "note": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "required": [
                        "summary"
                      ],
                      "properties": {
                        "summary": {
                          "type": "string"
                        },
                        "downloadable": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "noteMessage": {
                  "type": "string",
                  "description": "Original route note, when a public qualification occupies note."
                }
              },
              "required": [
                "status",
                "checkedAt",
                "device",
                "runtime"
              ],
              "additionalProperties": false
            },
            "safety": {
              "type": "object",
              "properties": {
                "verdict": {
                  "const": "unknown"
                },
                "note": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "object",
                      "required": [
                        "summary"
                      ],
                      "properties": {
                        "summary": {
                          "type": "string"
                        },
                        "downloadable": {
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "noteMessage": {
                  "type": "string",
                  "description": "Original route note, when a public qualification occupies note."
                }
              },
              "required": [
                "verdict"
              ],
              "additionalProperties": false
            },
            "note": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "required": [
                    "summary"
                  ],
                  "properties": {
                    "summary": {
                      "type": "string"
                    },
                    "downloadable": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              ]
            },
            "noteMessage": {
              "type": "string",
              "description": "Original route note, when a public qualification occupies note."
            }
          },
          "required": [
            "bytes",
            "run",
            "safety"
          ],
          "additionalProperties": false
        },
        "proves": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "doesNotProve": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sentence": {
          "const": "This receipt records checks for this exact file; it does not prove safety or that it will run on your device."
        },
        "receiptUrl": {
          "type": "string",
          "format": "uri"
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "required": [
                "summary"
              ],
              "properties": {
                "summary": {
                  "type": "string"
                },
                "downloadable": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "noteMessage": {
          "type": "string",
          "description": "Original route note, when a public qualification occupies note."
        }
      },
      "required": [
        "schemaVersion",
        "artifactId",
        "file",
        "license",
        "evidenceDate",
        "checks",
        "proves",
        "doesNotProve",
        "sentence",
        "receiptUrl"
      ],
      "additionalProperties": false
    },
    "SdkDeploymentPlan": {
      "type": "object",
      "properties": {
        "serve_verdict": {
          "$ref": "#/$defs/ServeVerdict"
        },
        "schemaVersion": {
          "type": "string"
        },
        "available": {
          "type": "boolean"
        },
        "artifact": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "repo": {
              "type": "string"
            },
            "revision": {
              "type": [
                "string",
                "null"
              ]
            },
            "task": {
              "type": "string"
            },
            "licenseId": {
              "type": "string"
            }
          },
          "required": [],
          "additionalProperties": true
        },
        "files": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "serve_verdict": {
                "$ref": "#/$defs/ServeVerdict"
              },
              "signature_state": {
                "enum": [
                  "signed",
                  "unsigned",
                  "pending"
                ]
              },
              "path": {
                "type": "string"
              },
              "sha256": {
                "type": "string"
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 0
              },
              "proofReceipt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/ProofReceipt"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "downloadUrl": {
                "type": [
                  "string",
                  "boolean",
                  "null"
                ]
              },
              "format": {
                "type": "string"
              },
              "role": {
                "type": "string"
              }
            },
            "required": [
              "path",
              "sha256",
              "sizeBytes"
            ],
            "additionalProperties": true
          }
        },
        "totals": {
          "type": "object",
          "properties": {
            "hostedFileCount": {
              "type": "integer"
            },
            "totalBytes": {
              "type": "integer"
            }
          },
          "required": [],
          "additionalProperties": true
        },
        "runTested": {
          "type": "boolean"
        },
        "runKit": {
          "anyOf": [
            {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        },
        "runtimes": {
          "type": "object",
          "properties": {},
          "required": [],
          "additionalProperties": true
        },
        "verify": {
          "type": "object",
          "properties": {},
          "required": [],
          "additionalProperties": true
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [],
      "additionalProperties": true
    },
    "SdkRunnableCandidate": {
      "type": "object",
      "properties": {
        "serve_verdict": {
          "$ref": "#/$defs/ServeVerdict"
        },
        "role": {
          "enum": [
            "local",
            "fallback"
          ]
        },
        "fallback_for": {
          "const": "local"
        },
        "artifactId": {
          "type": "string"
        },
        "repo": {
          "type": "string"
        },
        "task": {
          "type": "string"
        },
        "slot": {
          "type": "string"
        },
        "executable": {
          "type": "boolean"
        },
        "executionAvailable": {
          "type": "boolean"
        },
        "commandsAvailable": {
          "type": "boolean"
        },
        "next_call": {
          "anyOf": [
            {
              "type": "object",
              "properties": {},
              "required": [],
              "additionalProperties": true
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [],
      "additionalProperties": true
    },
    "ServeVerdict": {
      "type": "object",
      "required": [
        "can_download",
        "bytes_verified",
        "signature",
        "freshness",
        "checked_at",
        "evidence_url"
      ],
      "properties": {
        "can_download": {
          "type": "boolean"
        },
        "bytes_verified": {
          "type": "boolean"
        },
        "signature": {
          "type": "string",
          "enum": [
            "signed",
            "unsigned",
            "pending"
          ]
        },
        "freshness": {
          "type": "string",
          "enum": [
            "current",
            "stale"
          ]
        },
        "checked_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "evidence_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "required": [
                "summary"
              ],
              "properties": {
                "summary": {
                  "type": "string"
                },
                "downloadable": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "noteMessage": {
          "type": "string",
          "description": "Original route note, when a public qualification occupies note."
        }
      },
      "additionalProperties": false
    }
  }
}