{
  "openapi": "3.1.2",
  "info": {
    "title": "WorldFuzz local task API",
    "version": "1.0.0",
    "description": "M2 local API. Successful responses are validated before delivery; plans pin versioned entities and policy decisions."
  },
  "paths": {
    "/v1/goals/run": {
      "post": {
        "operationId": "run_goal",
        "description": "Compile, prepare, execute and read one typed goal through scoped service tools. Same key resumes the same logical run. Waiting is not task failure. Campaigns require the campaign tools.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                "needs_information",
                                "waiting",
                                "terminal"
                              ]
                            },
                            "missing_parameters": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "run_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "run": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": true
                            },
                            "result": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": true
                            },
                            "report": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": true
                            },
                            "artifacts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "export_skipped": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          },
                          "required": [
                            "status",
                            "missing_parameters",
                            "run_id",
                            "run",
                            "result",
                            "report",
                            "artifacts",
                            "export_skipped"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "goal": {
                    "type": "object",
                    "properties": {
                      "operation": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "profile": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "parameters": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "case_indices": {
                            "description": "Zero-based Moving AI case indices (0 through 8). Index N selects canonical resource movingai:N, not ordinal N+1. Use find_resources to inspect the pinned case; movingai:8 means case_indices [8]."
                          }
                        }
                      },
                      "workflow_kind": {
                        "enum": [
                          "single_operation",
                          "campaign"
                        ]
                      },
                      "max_seconds": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 180
                      },
                      "resource_limits": {
                        "type": "object",
                        "properties": {
                          "cpu_seconds": {
                            "type": "number",
                            "minimum": 0.1,
                            "maximum": 180
                          },
                          "memory_bytes": {
                            "type": "integer",
                            "minimum": 67108864,
                            "maximum": 2147483648
                          },
                          "artifact_bytes": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 134217728
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      },
                      "required_runner_capabilities": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "maxItems": 16
                      },
                      "verification": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "integrity",
                              "metric_recompute",
                              "replay"
                            ]
                          },
                          "protocol": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [],
                    "additionalProperties": false
                  },
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "resource_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "description": "Exact resource ID returned by find_resources. Moving AI uses zero-based movingai:N; movingai:8 selects case_index 8. Explicit parameters must agree with this resource."
                  },
                  "wait_seconds": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 30
                  },
                  "include_artifacts": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "goal",
                  "idempotency_key"
                ],
                "additionalProperties": false
              },
              "example": {
                "goal": {
                  "operation": "solve_navigation",
                  "profile": "movingai.octile.v1",
                  "parameters": {
                    "case_indices": [
                      0
                    ]
                  },
                  "max_seconds": 20
                },
                "idempotency_key": "published-case-0",
                "wait_seconds": 20,
                "include_artifacts": true
              }
            }
          }
        }
      }
    },
    "/v1/operations/describe": {
      "post": {
        "operationId": "describe_operation",
        "description": "Describe one callable tool with exact input/output schemas. Adapter operations are parameters of compile_goal, not MCP tool names.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "namespace": {
                              "const": "service_tool"
                            },
                            "input_schema": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "output_schema": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 4096
                            }
                          },
                          "required": [
                            "name",
                            "namespace",
                            "input_schema",
                            "output_schema",
                            "description"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "description": "Bare service tool name from tools/list, e.g. get_result_report. Do not include the MCP server name or an adapter operation."
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "compile_goal"
              }
            }
          }
        }
      }
    },
    "/v1/results/{result_id}/artifact-json": {
      "post": {
        "operationId": "get_artifact_json",
        "description": "Read a hash-checked JSON artifact as nanoseconds-decimal.v1 without modifying original bytes. Not JSONL or binary export.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "result_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "original_sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "representation_sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "representation": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "content": {
                              "type": "object",
                              "additionalProperties": true
                            }
                          },
                          "required": [
                            "result_id",
                            "name",
                            "original_sha256",
                            "representation_sha256",
                            "representation",
                            "content"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "result_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "sensor-recording-inventory.json"
              }
            }
          }
        }
      }
    },
    "/v1/workspace/usage": {
      "get": {
        "operationId": "get_workspace_usage",
        "description": "Read quota limits, reservations, measured phases and explicit unknown consumption.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "workspace_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "version": {
                              "type": "integer"
                            },
                            "limits": {
                              "type": "object",
                              "properties": {
                                "max_jobs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 100000
                                },
                                "cpu_seconds": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "wall_seconds": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 172800
                                },
                                "artifact_bytes": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 1073741824
                                },
                                "active_memory_bytes": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 4294967296
                                },
                                "model_calls": {
                                  "const": 0
                                },
                                "device_calls": {
                                  "const": 0
                                }
                              },
                              "required": [
                                "max_jobs",
                                "cpu_seconds",
                                "wall_seconds",
                                "artifact_bytes",
                                "active_memory_bytes",
                                "model_calls",
                                "device_calls"
                              ],
                              "additionalProperties": false
                            },
                            "available": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "committed": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "measured": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "conservative_unknown_holds": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "unknown": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "reservations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "cost_usd": {
                              "const": null
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "workspace_id",
                            "version",
                            "limits",
                            "available",
                            "committed",
                            "measured",
                            "conservative_unknown_holds",
                            "unknown",
                            "reservations",
                            "cost_usd",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ]
      }
    },
    "/v1/workspace/quota": {
      "post": {
        "operationId": "set_workspace_quota",
        "description": "Update a workspace lifetime quota with optimistic version matching; no usage reset.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "workspace_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "version": {
                              "type": "integer"
                            },
                            "limits": {
                              "type": "object",
                              "properties": {
                                "max_jobs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 100000
                                },
                                "cpu_seconds": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 86400
                                },
                                "wall_seconds": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 172800
                                },
                                "artifact_bytes": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 1073741824
                                },
                                "active_memory_bytes": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 4294967296
                                },
                                "model_calls": {
                                  "const": 0
                                },
                                "device_calls": {
                                  "const": 0
                                }
                              },
                              "required": [
                                "max_jobs",
                                "cpu_seconds",
                                "wall_seconds",
                                "artifact_bytes",
                                "active_memory_bytes",
                                "model_calls",
                                "device_calls"
                              ],
                              "additionalProperties": false
                            },
                            "available": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "committed": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "measured": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "conservative_unknown_holds": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "unknown": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "reservations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "cost_usd": {
                              "const": null
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "workspace_id",
                            "version",
                            "limits",
                            "available",
                            "committed",
                            "measured",
                            "conservative_unknown_holds",
                            "unknown",
                            "reservations",
                            "cost_usd",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "limits": {
                    "type": "object",
                    "properties": {
                      "max_jobs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100000
                      },
                      "cpu_seconds": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 86400
                      },
                      "wall_seconds": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 172800
                      },
                      "artifact_bytes": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 1073741824
                      },
                      "active_memory_bytes": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 4294967296
                      },
                      "model_calls": {
                        "const": 0
                      },
                      "device_calls": {
                        "const": 0
                      }
                    },
                    "required": [
                      "max_jobs",
                      "cpu_seconds",
                      "wall_seconds",
                      "artifact_bytes",
                      "active_memory_bytes",
                      "model_calls",
                      "device_calls"
                    ],
                    "additionalProperties": false
                  },
                  "expected_version": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "required": [
                  "limits",
                  "expected_version"
                ],
                "additionalProperties": false
              },
              "example": {
                "limits": {
                  "max_jobs": 10,
                  "cpu_seconds": 300,
                  "wall_seconds": 600,
                  "artifact_bytes": 16777216,
                  "active_memory_bytes": 536870912,
                  "model_calls": 0,
                  "device_calls": 0
                },
                "expected_version": 1
              }
            }
          }
        }
      }
    },
    "/v1/metrics": {
      "get": {
        "operationId": "get_service_metrics",
        "description": "Read persisted service counters scoped to this workspace.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "workspace_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "requests": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "runs": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "retained_out_runs": {
                              "type": "integer"
                            },
                            "attempts_with_unknown_tail": {
                              "type": "integer"
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "workspace_id",
                            "requests",
                            "runs",
                            "retained_out_runs",
                            "attempts_with_unknown_tail",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ]
      }
    },
    "/v1/runs/{run_id}/audit": {
      "get": {
        "operationId": "get_run_audit",
        "description": "Read durable run transitions, attempt history and retention state.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "run_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "events": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "attempts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "entries": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "retention": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": true
                            }
                          },
                          "required": [
                            "run_id",
                            "events",
                            "attempts",
                            "entries",
                            "retention"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/backups": {
      "post": {
        "operationId": "create_backup",
        "description": "Freeze metadata, history and registered blobs after run reconciliation.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "backup_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "manifest_sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "files": {
                              "type": "integer"
                            },
                            "bytes": {
                              "type": "integer"
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "backup_id",
                            "manifest_sha256",
                            "files",
                            "bytes",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "max_mib": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1024
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              "example": {
                "max_mib": 256
              }
            }
          }
        }
      }
    },
    "/v1/backups/restore": {
      "post": {
        "operationId": "restore_backup",
        "description": "Restore an owned backup to a separate copy; never overwrite the active catalog.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "restore_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "workspace_id": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "database": {
                              "type": "string",
                              "maxLength": 4096
                            },
                            "artifact_root": {
                              "type": "string",
                              "maxLength": 4096
                            },
                            "files_verified": {
                              "type": "integer"
                            },
                            "jobs_restarted": {
                              "const": 0
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "restore_id",
                            "workspace_id",
                            "database",
                            "artifact_root",
                            "files_verified",
                            "jobs_restarted",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "backup_id": {
                    "type": "string",
                    "pattern": "[a-f0-9]{32}"
                  },
                  "max_mib": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1024
                  }
                },
                "required": [
                  "backup_id"
                ],
                "additionalProperties": false
              },
              "example": {
                "backup_id": "0123456789abcdef0123456789abcdef",
                "max_mib": 256
              }
            }
          }
        }
      }
    },
    "/v1/retention": {
      "post": {
        "operationId": "apply_retention",
        "description": "Preview or delete selected old terminal artifacts; retain history and protect suites/campaigns.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "run_ids": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              }
                            },
                            "deleted_files": {
                              "type": "integer"
                            },
                            "dry_run": {
                              "type": "boolean"
                            },
                            "state": {
                              "enum": [
                                "preview",
                                "complete"
                              ]
                            }
                          },
                          "required": [
                            "run_ids",
                            "deleted_files",
                            "dry_run",
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "run_ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "minItems": 1,
                    "maxItems": 25
                  },
                  "before": {
                    "type": "number",
                    "minimum": 0
                  },
                  "dry_run": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "run_ids",
                  "before"
                ],
                "additionalProperties": false
              },
              "example": {
                "run_ids": [
                  "replace-with-run-id"
                ],
                "before": 1789171200,
                "dry_run": true
              }
            }
          }
        }
      }
    },
    "/v1/organization/login": {
      "post": {
        "operationId": "organization_login",
        "description": "Authenticate a provisioned local organization principal and issue a workspace-scoped token.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "token": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "workspace_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "principal_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "expires_at": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "token",
                            "workspace_id",
                            "principal_id",
                            "expires_at"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organization": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "principal": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "password": {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 1024
                  },
                  "workspace": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "operations": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "ttl_seconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 86400
                  }
                },
                "required": [
                  "organization",
                  "principal",
                  "password",
                  "workspace",
                  "operations"
                ],
                "additionalProperties": false
              },
              "example": {
                "organization": "demo-org",
                "principal": "demo-user",
                "workspace": "demo-workspace",
                "password": "<supply-through-local-protected-input>",
                "operations": [
                  "get_capabilities"
                ],
                "ttl_seconds": 3600
              }
            }
          }
        }
      }
    },
    "/v1/webhooks": {
      "post": {
        "operationId": "create_webhook",
        "description": "Create a workspace-local authenticated pull outbox; no external sending.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "webhook_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "delivery": {
                              "const": "authenticated_pull"
                            },
                            "external_delivery": {
                              "const": false
                            }
                          },
                          "required": [
                            "webhook_id",
                            "name",
                            "delivery",
                            "external_delivery"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "local-events"
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/read": {
      "post": {
        "operationId": "read_webhook",
        "description": "Read authorized durable run events from a workspace-local webhook outbox.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "webhook_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "events": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "next_cursor": {
                              "type": "integer"
                            },
                            "delivery": {
                              "const": "authenticated_pull"
                            },
                            "external_delivery": {
                              "const": false
                            }
                          },
                          "required": [
                            "webhook_id",
                            "events",
                            "next_cursor",
                            "delivery",
                            "external_delivery"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "webhook_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "after": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "required": [
                  "webhook_id"
                ],
                "additionalProperties": false
              },
              "example": {
                "webhook_id": "replace-with-webhook-id",
                "after": 0,
                "limit": 25
              }
            }
          }
        }
      }
    },
    "/v1/capabilities": {
      "get": {
        "operationId": "get_capabilities",
        "description": "Discover exact supported profiles, operations and local execution limits.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "profiles": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "adapters": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "operations": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "limits": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "schema_version": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "deployment": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "unsupported": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "discovery": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "evidence_rules": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 4096
                              }
                            }
                          },
                          "required": [
                            "profiles",
                            "adapters",
                            "operations",
                            "limits",
                            "schema_version",
                            "deployment",
                            "unsupported"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ]
      }
    },
    "/v1/resources/search": {
      "post": {
        "operationId": "find_resources",
        "description": "Find included tasks and stored episodes; returns a bounded page, not episode arrays.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "matches": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "next_cursor": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "total": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "profiles": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          },
                          "required": [
                            "matches",
                            "next_cursor",
                            "total",
                            "profiles"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "cursor": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              "example": {
                "profile": "movingai.octile.v1",
                "limit": 10,
                "cursor": 0
              }
            }
          }
        }
      }
    },
    "/v1/goals/compile": {
      "post": {
        "operationId": "compile_goal",
        "description": "Compile a structured goal into an authorized typed plan. Provider contract mode makes zero model calls.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "ready",
                                "needs_information"
                              ]
                            },
                            "missing_parameters": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "typed_request": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": true
                            },
                            "prepared_plan": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": true
                            },
                            "provider": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "provider_calls": {
                              "const": 0
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "status",
                            "missing_parameters",
                            "typed_request",
                            "prepared_plan",
                            "provider",
                            "provider_calls",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "goal": {
                    "type": "object",
                    "properties": {
                      "operation": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "profile": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "parameters": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "case_indices": {
                            "description": "Zero-based Moving AI case indices (0 through 8). Index N selects canonical resource movingai:N, not ordinal N+1. Use find_resources to inspect the pinned case; movingai:8 means case_indices [8]."
                          }
                        }
                      },
                      "workflow_kind": {
                        "enum": [
                          "single_operation",
                          "campaign"
                        ]
                      },
                      "max_seconds": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 180
                      },
                      "resource_limits": {
                        "type": "object",
                        "properties": {
                          "cpu_seconds": {
                            "type": "number",
                            "minimum": 0.1,
                            "maximum": 180
                          },
                          "memory_bytes": {
                            "type": "integer",
                            "minimum": 67108864,
                            "maximum": 2147483648
                          },
                          "artifact_bytes": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 134217728
                          }
                        },
                        "required": [],
                        "additionalProperties": false
                      },
                      "required_runner_capabilities": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "maxItems": 16
                      },
                      "verification": {
                        "type": "object",
                        "properties": {
                          "mode": {
                            "type": "string",
                            "enum": [
                              "integrity",
                              "metric_recompute",
                              "replay"
                            ]
                          },
                          "protocol": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          }
                        },
                        "required": [
                          "mode"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [],
                    "additionalProperties": false
                  },
                  "provider_mode": {
                    "type": "string",
                    "enum": [
                      "disabled",
                      "contract_only"
                    ]
                  }
                },
                "required": [
                  "goal"
                ],
                "additionalProperties": false
              },
              "example": {
                "goal": {
                  "operation": "solve_navigation",
                  "profile": "movingai.octile.v1",
                  "parameters": {
                    "case_indices": [
                      0
                    ],
                    "max_cases": 1,
                    "algorithm": "astar"
                  },
                  "max_seconds": 30
                },
                "provider_mode": "disabled"
              }
            }
          }
        }
      }
    },
    "/v1/campaigns": {
      "post": {
        "operationId": "create_campaign",
        "description": "Freeze a bounded campaign, allowed mutations, immutable criteria, typed case plans and total budget.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "campaign_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "campaign": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "status": {
                              "const": "prepared"
                            },
                            "attempts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "campaign_id",
                            "campaign",
                            "status",
                            "attempts",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "cases": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "case_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "goal": {
                          "type": "object",
                          "properties": {
                            "operation": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "profile": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "parameters": {
                              "type": "object",
                              "additionalProperties": true,
                              "properties": {
                                "case_indices": {
                                  "description": "Zero-based Moving AI case indices (0 through 8). Index N selects canonical resource movingai:N, not ordinal N+1. Use find_resources to inspect the pinned case; movingai:8 means case_indices [8]."
                                }
                              }
                            },
                            "workflow_kind": {
                              "enum": [
                                "single_operation",
                                "campaign"
                              ]
                            },
                            "max_seconds": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 180
                            },
                            "resource_limits": {
                              "type": "object",
                              "properties": {
                                "cpu_seconds": {
                                  "type": "number",
                                  "minimum": 0.1,
                                  "maximum": 180
                                },
                                "memory_bytes": {
                                  "type": "integer",
                                  "minimum": 67108864,
                                  "maximum": 2147483648
                                },
                                "artifact_bytes": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 134217728
                                }
                              },
                              "required": [],
                              "additionalProperties": false
                            },
                            "required_runner_capabilities": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "maxItems": 16
                            },
                            "verification": {
                              "type": "object",
                              "properties": {
                                "mode": {
                                  "type": "string",
                                  "enum": [
                                    "integrity",
                                    "metric_recompute",
                                    "replay"
                                  ]
                                },
                                "protocol": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                }
                              },
                              "required": [
                                "mode"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [],
                          "additionalProperties": false
                        },
                        "origin": {
                          "type": "string",
                          "enum": [
                            "published",
                            "derived"
                          ]
                        },
                        "parent_case_id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "mutations": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              "value": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              }
                            },
                            "required": [
                              "path",
                              "value"
                            ],
                            "additionalProperties": false
                          },
                          "maxItems": 16
                        }
                      },
                      "required": [
                        "case_id",
                        "goal",
                        "origin"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 1,
                    "maxItems": 16
                  },
                  "allowed_mutations": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "maxItems": 32
                  },
                  "immutable_criteria": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "minItems": 1,
                    "maxItems": 32
                  },
                  "budget": {
                    "type": "object",
                    "properties": {
                      "max_cases": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 16
                      },
                      "max_attempts": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 32
                      },
                      "cpu_seconds": {
                        "type": "number",
                        "minimum": 0.1,
                        "maximum": 2880
                      },
                      "wall_seconds": {
                        "type": "number",
                        "minimum": 0.1,
                        "maximum": 2880
                      },
                      "artifact_bytes": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 536870912
                      }
                    },
                    "required": [
                      "max_cases",
                      "max_attempts",
                      "cpu_seconds",
                      "wall_seconds",
                      "artifact_bytes"
                    ],
                    "additionalProperties": false
                  },
                  "reduction": {
                    "type": "string",
                    "enum": [
                      "exact_typed_request"
                    ]
                  }
                },
                "required": [
                  "name",
                  "cases",
                  "allowed_mutations",
                  "immutable_criteria",
                  "budget"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "Bounded published checks",
                "cases": [
                  {
                    "case_id": "nav-0",
                    "origin": "published",
                    "goal": {
                      "operation": "solve_navigation",
                      "profile": "movingai.octile.v1",
                      "parameters": {
                        "case_indices": [
                          0
                        ],
                        "max_cases": 1,
                        "algorithm": "astar"
                      }
                    }
                  }
                ],
                "allowed_mutations": [
                  "goal.parameters.algorithm"
                ],
                "immutable_criteria": [
                  "published source",
                  "verification protocol"
                ],
                "budget": {
                  "max_cases": 2,
                  "max_attempts": 2,
                  "cpu_seconds": 60,
                  "wall_seconds": 60,
                  "artifact_bytes": 2097152
                }
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{campaign_id}/cases/{case_id}/runs": {
      "post": {
        "operationId": "launch_campaign_case",
        "description": "Start one campaign case as an ordinary durable job under the campaign budget.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "campaign_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "case_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "run": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "idempotent_replay": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "campaign_id",
                            "case_id",
                            "run",
                            "idempotent_replay"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "in": "path",
            "name": "case_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "retry_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "retry_key"
                ],
                "additionalProperties": false
              },
              "example": {
                "retry_key": "nav-0-attempt-1"
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{campaign_id}": {
      "get": {
        "operationId": "get_campaign",
        "description": "Read the immutable campaign, attempts and final report.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "campaign_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "campaign": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "prepared",
                                "running",
                                "ready_to_finalize",
                                "finalized"
                              ]
                            },
                            "attempts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "report": {
                              "type": [
                                "object",
                                "null"
                              ],
                              "additionalProperties": true
                            }
                          },
                          "required": [
                            "campaign_id",
                            "campaign",
                            "status",
                            "attempts",
                            "report"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/campaigns/{campaign_id}/finalize": {
      "post": {
        "operationId": "finalize_campaign",
        "description": "Reduce terminal case results and freeze the complete phase/attempt ledger.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/verified-results/search": {
      "post": {
        "operationId": "find_verified_results",
        "description": "Find authorized verified results compatible with an exact dataset generation; never auto-include.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "matches": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "next_cursor": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "total": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "automatic_inclusion": {
                              "const": false
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "matches",
                            "next_cursor",
                            "total",
                            "automatic_inclusion",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "operation": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "dataset_result_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "purpose": {
                    "type": "string",
                    "enum": [
                      "training",
                      "evaluation"
                    ]
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "cursor": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": [
                  "profile",
                  "operation"
                ],
                "additionalProperties": false
              },
              "example": {
                "profile": "movingai.octile.v1",
                "operation": "solve_navigation",
                "dataset_result_id": "replace-with-dataset-run-id",
                "purpose": "evaluation",
                "limit": 25,
                "cursor": 0
              }
            }
          }
        }
      }
    },
    "/v1/suites": {
      "post": {
        "operationId": "create_suite",
        "description": "Explicitly include unique compatible verified results in an immutable dataset-linked suite.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "purpose": {
                    "type": "string",
                    "enum": [
                      "training",
                      "evaluation"
                    ]
                  },
                  "selected_result_ids": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "dataset_result_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "name",
                  "purpose",
                  "selected_result_ids",
                  "dataset_result_id"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "Verified navigation suite",
                "purpose": "evaluation",
                "selected_result_ids": [
                  "replace-with-verified-run-id"
                ],
                "dataset_result_id": "replace-with-dataset-run-id"
              }
            }
          }
        }
      }
    },
    "/v1/suites/{suite_id}": {
      "get": {
        "operationId": "get_suite",
        "description": "Read and revalidate an immutable task/run/evidence/dataset suite.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "suite_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/assets": {
      "post": {
        "operationId": "register_asset",
        "description": "Register timestamped XYZ prediction/reference tracks, already in the same frame and metres. Does not control a device.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "asset_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "evidence": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "label_origin": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "control_actions_present": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "asset_id",
                            "sha256",
                            "evidence",
                            "label_origin",
                            "control_actions_present"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "source_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "data_license": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "code_license": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "frame": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "units": {
                    "type": "string",
                    "enum": [
                      "m"
                    ]
                  },
                  "prediction": {
                    "type": "array",
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 4,
                      "maxItems": 4
                    },
                    "minItems": 2,
                    "maxItems": 10000
                  },
                  "reference": {
                    "type": "array",
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 4,
                      "maxItems": 4
                    },
                    "minItems": 2,
                    "maxItems": 10000
                  }
                },
                "required": [
                  "name",
                  "source_url",
                  "data_license",
                  "code_license",
                  "frame",
                  "units",
                  "prediction",
                  "reference"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "Authored trajectory fixture",
                "source_url": "urn:example:trajectory",
                "data_license": "private test data",
                "code_license": "MIT",
                "frame": "world",
                "units": "m",
                "prediction": [
                  [
                    0,
                    0,
                    0,
                    0
                  ],
                  [
                    1,
                    1,
                    0,
                    0
                  ]
                ],
                "reference": [
                  [
                    0,
                    0,
                    0,
                    0
                  ],
                  [
                    1,
                    1,
                    0,
                    0
                  ]
                ]
              }
            }
          }
        }
      }
    },
    "/v1/assets/{asset_id}": {
      "get": {
        "operationId": "get_asset",
        "description": "Read an integrity-checked registered sensor asset including source provenance and preserved input text.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "asset_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "asset": {
                              "type": "object",
                              "additionalProperties": true,
                              "properties": {
                                "recording": {
                                  "type": "object",
                                  "additionalProperties": true,
                                  "properties": {
                                    "messages": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": true,
                                        "properties": {
                                          "log_time_ns": {
                                            "type": "string",
                                            "pattern": "-?(0|[1-9][0-9]*)",
                                            "maxLength": 40
                                          },
                                          "publish_time_ns": {
                                            "type": "string",
                                            "pattern": "-?(0|[1-9][0-9]*)",
                                            "maxLength": 40
                                          }
                                        }
                                      }
                                    },
                                    "returned_messages": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": true,
                                        "properties": {
                                          "log_time_ns": {
                                            "type": "string",
                                            "pattern": "-?(0|[1-9][0-9]*)",
                                            "maxLength": 40
                                          },
                                          "publish_time_ns": {
                                            "type": "string",
                                            "pattern": "-?(0|[1-9][0-9]*)",
                                            "maxLength": 40
                                          }
                                        }
                                      }
                                    },
                                    "time_range_ns": {
                                      "type": "object",
                                      "additionalProperties": true,
                                      "properties": {
                                        "first_log": {
                                          "type": "string",
                                          "pattern": "-?(0|[1-9][0-9]*)",
                                          "maxLength": 40
                                        },
                                        "last_log": {
                                          "type": "string",
                                          "pattern": "-?(0|[1-9][0-9]*)",
                                          "maxLength": 40
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "required": [
                            "asset_id",
                            "sha256",
                            "asset"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "asset_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/trajectory-assets": {
      "post": {
        "operationId": "register_trajectory",
        "description": "Import two TUM-format UTF-8 trajectories with exact matching timestamps. Preserves source text and hashes; evaluates XYZ only, no frame alignment or device control.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "asset_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "evidence": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "label_origin": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "control_actions_present": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "asset_id",
                            "sha256",
                            "evidence",
                            "label_origin",
                            "control_actions_present"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "source_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "data_license": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "code_license": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "frame": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "units": {
                    "type": "string",
                    "enum": [
                      "m"
                    ]
                  },
                  "format": {
                    "type": "string",
                    "enum": [
                      "tum.v1"
                    ]
                  },
                  "prediction_text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500000
                  },
                  "reference_text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500000
                  }
                },
                "required": [
                  "name",
                  "source_url",
                  "data_license",
                  "code_license",
                  "frame",
                  "units",
                  "format",
                  "prediction_text",
                  "reference_text"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "Authored TUM fixture",
                "source_url": "urn:example:tum",
                "data_license": "private test data",
                "code_license": "MIT",
                "frame": "world",
                "units": "m",
                "format": "tum.v1",
                "prediction_text": "0 0 0 0 0 0 0 1\n1 1 0 0 0 0 0 1",
                "reference_text": "0 0 0 0 0 0 0 1\n1 1 0 0 0 0 0 1"
              }
            }
          }
        }
      }
    },
    "/v1/sensor-recordings": {
      "post": {
        "operationId": "register_sensor_recording",
        "description": "Register a bounded ROS 1 or ROS 2 MCAP recording. Preserves exact bytes, timestamps, schemas, units and the declared frame; does not infer commands or flight outcomes.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "asset_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "evidence": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "label_origin": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "control_actions_present": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "asset_id",
                            "sha256",
                            "evidence",
                            "label_origin",
                            "control_actions_present"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "source_url": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "source_revision": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "data_license": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "code_license": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "platform": {
                    "type": "string",
                    "enum": [
                      "aerial",
                      "ground",
                      "manipulator",
                      "unknown"
                    ]
                  },
                  "frame": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "units": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "minItems": 1,
                    "maxItems": 16
                  },
                  "ros_version": {
                    "type": "string",
                    "enum": [
                      "ros1",
                      "ros2"
                    ]
                  },
                  "mcap_base64": {
                    "type": "string",
                    "minLength": 12,
                    "maxLength": 2800000
                  }
                },
                "required": [
                  "name",
                  "source_url",
                  "source_revision",
                  "data_license",
                  "code_license",
                  "platform",
                  "frame",
                  "units",
                  "ros_version",
                  "mcap_base64"
                ],
                "additionalProperties": false
              },
              "example": {
                "name": "Published ROS 2 recording",
                "source_url": "https://example.invalid/source",
                "source_revision": "replace-with-pinned-revision",
                "data_license": "replace-with-source-license",
                "code_license": "MIT",
                "platform": "aerial",
                "frame": "replace-with-declared-frame",
                "units": [
                  "m",
                  "s"
                ],
                "ros_version": "ros2",
                "mcap_base64": "replace-with-base64-mcap"
              }
            }
          }
        }
      }
    },
    "/v1/plans": {
      "post": {
        "operationId": "prepare_plan",
        "description": "Validate compatibility and freeze inputs, code identity and budget before any computation.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "plan_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "plan_digest": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "compatibility": {
                              "const": "compatible"
                            },
                            "plan": {
                              "type": "object",
                              "additionalProperties": true,
                              "properties": {
                                "preparation": {
                                  "type": "object",
                                  "properties": {
                                    "stage": {
                                      "const": "prepared"
                                    },
                                    "execution_started": {
                                      "const": false
                                    },
                                    "run_id": {
                                      "const": null
                                    },
                                    "run": {
                                      "const": null
                                    },
                                    "result_id": {
                                      "const": null
                                    },
                                    "export_artifact_created": {
                                      "const": false
                                    }
                                  },
                                  "required": [
                                    "stage",
                                    "execution_started",
                                    "run_id",
                                    "run",
                                    "result_id",
                                    "export_artifact_created"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "preparation"
                              ]
                            },
                            "run_plan": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "$id": "urn:worldfuzz:entity:RunPlan:1.0.0",
                              "$defs": {
                                "ref": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "version": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "parameter": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          },
                                          "minItems": 0,
                                          "maxItems": 10000
                                        }
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "wall_seconds": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "cpu_seconds": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "memory_bytes": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "artifact_bytes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "model_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "device_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "wall_seconds",
                                    "cpu_seconds",
                                    "memory_bytes",
                                    "artifact_bytes",
                                    "model_calls",
                                    "device_calls"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "basis": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "value",
                                      "unit",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "type": "string",
                                        "enum": [
                                          "data",
                                          "code",
                                          "model",
                                          "scene"
                                        ]
                                      },
                                      "license": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "declared",
                                          "verified",
                                          "unknown",
                                          "conflict"
                                        ]
                                      },
                                      "allowed_uses": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "inspect",
                                            "evaluate",
                                            "train",
                                            "export",
                                            "redistribute"
                                          ]
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "evidence_urls": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "subject",
                                      "license",
                                      "status",
                                      "allowed_uses",
                                      "evidence_urls",
                                      "limitations"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 4,
                                  "maxItems": 10000
                                },
                                "signal": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "dtype": {
                                      "type": "string",
                                      "enum": [
                                        "float32",
                                        "float64",
                                        "int32",
                                        "int64",
                                        "uint8",
                                        "bool",
                                        "text"
                                      ]
                                    },
                                    "shape": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "minItems": 0,
                                      "maxItems": 10000
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "frame": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "semantic": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    "rate_hz": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "dtype",
                                    "shape",
                                    "unit",
                                    "frame",
                                    "semantic",
                                    "rate_hz"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "properties": {
                                "entity_type": {
                                  "const": "RunPlan"
                                },
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "plan_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "digest": {
                                  "type": "string",
                                  "pattern": "^[0-9a-f]{64}$"
                                },
                                "task_ref": {
                                  "$ref": "#/$defs/ref"
                                },
                                "input_versions": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "steps": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "step_id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "procedure_ref": {
                                        "$ref": "#/$defs/ref"
                                      },
                                      "depends_on": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "parameters": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/$defs/parameter"
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "step_id",
                                      "procedure_ref",
                                      "depends_on",
                                      "parameters"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "runner_requirements": {
                                  "type": "object",
                                  "properties": {
                                    "execution_mode": {
                                      "type": "string",
                                      "enum": [
                                        "metadata_inspection",
                                        "offline_evaluation",
                                        "observation_replay",
                                        "closed_loop_simulation",
                                        "external_result_ingestion"
                                      ]
                                    },
                                    "profile_refs": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/$defs/ref"
                                      },
                                      "minItems": 1,
                                      "maxItems": 10000
                                    },
                                    "environment_ref": {
                                      "$ref": "#/$defs/ref"
                                    }
                                  },
                                  "required": [
                                    "execution_mode",
                                    "profile_refs",
                                    "environment_ref"
                                  ],
                                  "additionalProperties": false
                                },
                                "resource_limits": {
                                  "$ref": "#/$defs/limits"
                                },
                                "rights_decision": {
                                  "$ref": "#/$defs/ref"
                                },
                                "estimated_usage": {
                                  "$ref": "#/$defs/usage"
                                },
                                "expires_at": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "entity_type",
                                "schema_version",
                                "plan_id",
                                "digest",
                                "task_ref",
                                "input_versions",
                                "steps",
                                "runner_requirements",
                                "resource_limits",
                                "rights_decision",
                                "estimated_usage",
                                "expires_at"
                              ],
                              "additionalProperties": false
                            },
                            "compatibility_decision": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "$id": "urn:worldfuzz:entity:CompatibilityDecision:1.0.0",
                              "$defs": {
                                "ref": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "version": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "parameter": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          },
                                          "minItems": 0,
                                          "maxItems": 10000
                                        }
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "wall_seconds": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "cpu_seconds": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "memory_bytes": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "artifact_bytes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "model_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "device_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "wall_seconds",
                                    "cpu_seconds",
                                    "memory_bytes",
                                    "artifact_bytes",
                                    "model_calls",
                                    "device_calls"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "basis": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "value",
                                      "unit",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "type": "string",
                                        "enum": [
                                          "data",
                                          "code",
                                          "model",
                                          "scene"
                                        ]
                                      },
                                      "license": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "declared",
                                          "verified",
                                          "unknown",
                                          "conflict"
                                        ]
                                      },
                                      "allowed_uses": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "inspect",
                                            "evaluate",
                                            "train",
                                            "export",
                                            "redistribute"
                                          ]
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "evidence_urls": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "subject",
                                      "license",
                                      "status",
                                      "allowed_uses",
                                      "evidence_urls",
                                      "limitations"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 4,
                                  "maxItems": 10000
                                },
                                "signal": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "dtype": {
                                      "type": "string",
                                      "enum": [
                                        "float32",
                                        "float64",
                                        "int32",
                                        "int64",
                                        "uint8",
                                        "bool",
                                        "text"
                                      ]
                                    },
                                    "shape": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "minItems": 0,
                                      "maxItems": 10000
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "frame": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "semantic": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    "rate_hz": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "dtype",
                                    "shape",
                                    "unit",
                                    "frame",
                                    "semantic",
                                    "rate_hz"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "properties": {
                                "entity_type": {
                                  "const": "CompatibilityDecision"
                                },
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "decision_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "compatible",
                                    "incompatible",
                                    "needs_information"
                                  ]
                                },
                                "input_versions": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "matched_requirements": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "missing_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 4096
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "conflicts": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "expected": {
                                        "anyOf": [
                                          {
                                            "type": "null"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "number"
                                            },
                                            "minItems": 0,
                                            "maxItems": 10000
                                          }
                                        ]
                                      },
                                      "observed": {
                                        "anyOf": [
                                          {
                                            "type": "null"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "number"
                                            },
                                            "minItems": 0,
                                            "maxItems": 10000
                                          }
                                        ]
                                      },
                                      "reason": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "expected",
                                      "observed",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "evidence_refs": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "checked_at": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "entity_type",
                                "schema_version",
                                "decision_id",
                                "status",
                                "input_versions",
                                "matched_requirements",
                                "missing_fields",
                                "conflicts",
                                "evidence_refs",
                                "checked_at"
                              ],
                              "additionalProperties": false
                            },
                            "authorization": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "minItems": 1
                            }
                          },
                          "required": [
                            "plan_id",
                            "plan_digest",
                            "compatibility",
                            "plan",
                            "run_plan",
                            "compatibility_decision",
                            "authorization"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "operation": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "parameters": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "verification": {
                    "type": "object",
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "integrity",
                          "metric_recompute",
                          "replay"
                        ]
                      },
                      "protocol": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "additionalProperties": false
                  },
                  "required_runner_capabilities": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "maxItems": 16
                  },
                  "resource_limits": {
                    "type": "object",
                    "properties": {
                      "cpu_seconds": {
                        "type": "number",
                        "minimum": 0.1,
                        "maximum": 180
                      },
                      "memory_bytes": {
                        "type": "integer",
                        "minimum": 67108864,
                        "maximum": 2147483648
                      },
                      "artifact_bytes": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 134217728
                      }
                    },
                    "required": [],
                    "additionalProperties": false
                  },
                  "profile": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "algorithm": {
                    "type": "string",
                    "enum": [
                      "astar",
                      "dijkstra"
                    ]
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "domain": {
                        "type": "string",
                        "enum": [
                          "navigation",
                          "manipulation"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "split": {
                        "type": "string",
                        "enum": [
                          "train",
                          "validation",
                          "test"
                        ]
                      }
                    },
                    "required": [
                      "domain"
                    ],
                    "additionalProperties": false
                  },
                  "asset_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "episode_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "max_messages": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000
                  },
                  "seed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2147483647
                  },
                  "start_index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9999
                  },
                  "frame_count": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10
                  },
                  "stride": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "case_indices": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 8
                    },
                    "minItems": 1,
                    "maxItems": 9,
                    "description": "Zero-based Moving AI case indices (0 through 8). Index N selects canonical resource movingai:N, not ordinal N+1. Use find_resources to inspect the pinned case; movingai:8 means case_indices [8]."
                  },
                  "max_seconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 180
                  },
                  "max_cases": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9
                  },
                  "threshold_m": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10000
                  }
                },
                "required": [
                  "operation",
                  "profile"
                ],
                "additionalProperties": false
              },
              "example": {
                "operation": "solve_navigation",
                "profile": "movingai.octile.v1",
                "case_indices": [
                  0
                ],
                "max_seconds": 30
              }
            }
          }
        }
      }
    },
    "/v1/runs": {
      "post": {
        "operationId": "execute_plan",
        "description": "Start one durable local job using a prepared digest and idempotency key. Poll get_run. Zero provider calls.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "run_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "plan_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "running",
                                "cancel_requested",
                                "completed",
                                "failed",
                                "cancelled",
                                "budget_exhausted",
                                "incomplete"
                              ]
                            },
                            "progress": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "attempts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "created_at": {
                              "type": "number"
                            },
                            "updated_at": {
                              "type": "number"
                            },
                            "result_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "events": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "seq": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "at": {
                                    "type": "number"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "queued",
                                      "running",
                                      "cancel_requested",
                                      "completed",
                                      "failed",
                                      "cancelled",
                                      "budget_exhausted",
                                      "incomplete"
                                    ]
                                  }
                                },
                                "required": [
                                  "seq",
                                  "at",
                                  "status"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "run_id",
                            "plan_id",
                            "status",
                            "progress",
                            "created_at",
                            "updated_at",
                            "result_id",
                            "error",
                            "events"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "plan_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "plan_digest": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "plan_id",
                  "plan_digest",
                  "idempotency_key"
                ],
                "additionalProperties": false
              },
              "example": {
                "plan_id": "replace-with-plan-id",
                "plan_digest": "replace-with-plan-digest",
                "idempotency_key": "project-case-0-v1"
              }
            }
          }
        }
      }
    },
    "/v1/runs/{run_id}": {
      "get": {
        "operationId": "get_run",
        "description": "Read durable job status. Completion is separate from the task outcome.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "run_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "plan_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "running",
                                "cancel_requested",
                                "completed",
                                "failed",
                                "cancelled",
                                "budget_exhausted",
                                "incomplete"
                              ]
                            },
                            "progress": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "attempts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "created_at": {
                              "type": "number"
                            },
                            "updated_at": {
                              "type": "number"
                            },
                            "result_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "events": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "seq": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "at": {
                                    "type": "number"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "queued",
                                      "running",
                                      "cancel_requested",
                                      "completed",
                                      "failed",
                                      "cancelled",
                                      "budget_exhausted",
                                      "incomplete"
                                    ]
                                  }
                                },
                                "required": [
                                  "seq",
                                  "at",
                                  "status"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "run_id",
                            "plan_id",
                            "status",
                            "progress",
                            "created_at",
                            "updated_at",
                            "result_id",
                            "error",
                            "events"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/runs/{run_id}/budget": {
      "get": {
        "operationId": "get_budget",
        "description": "Read the atomic reservation, observed phase usage and explicitly unknown usage.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "reservation": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "$id": "urn:worldfuzz:entity:BudgetReservation:1.0.0",
                              "$defs": {
                                "ref": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "version": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "parameter": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          },
                                          "minItems": 0,
                                          "maxItems": 10000
                                        }
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "wall_seconds": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "cpu_seconds": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "memory_bytes": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "artifact_bytes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "model_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "device_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "wall_seconds",
                                    "cpu_seconds",
                                    "memory_bytes",
                                    "artifact_bytes",
                                    "model_calls",
                                    "device_calls"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "basis": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "value",
                                      "unit",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "type": "string",
                                        "enum": [
                                          "data",
                                          "code",
                                          "model",
                                          "scene"
                                        ]
                                      },
                                      "license": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "declared",
                                          "verified",
                                          "unknown",
                                          "conflict"
                                        ]
                                      },
                                      "allowed_uses": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "inspect",
                                            "evaluate",
                                            "train",
                                            "export",
                                            "redistribute"
                                          ]
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "evidence_urls": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "subject",
                                      "license",
                                      "status",
                                      "allowed_uses",
                                      "evidence_urls",
                                      "limitations"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 4,
                                  "maxItems": 10000
                                },
                                "signal": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "dtype": {
                                      "type": "string",
                                      "enum": [
                                        "float32",
                                        "float64",
                                        "int32",
                                        "int64",
                                        "uint8",
                                        "bool",
                                        "text"
                                      ]
                                    },
                                    "shape": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "minItems": 0,
                                      "maxItems": 10000
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "frame": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "semantic": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    "rate_hz": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "dtype",
                                    "shape",
                                    "unit",
                                    "frame",
                                    "semantic",
                                    "rate_hz"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "properties": {
                                "entity_type": {
                                  "const": "BudgetReservation"
                                },
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "reservation_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "workspace_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "plan_digest": {
                                  "type": "string",
                                  "pattern": "^[0-9a-f]{64}$"
                                },
                                "limits": {
                                  "$ref": "#/$defs/limits"
                                },
                                "estimated_usage": {
                                  "$ref": "#/$defs/usage"
                                },
                                "actual_usage": {
                                  "$ref": "#/$defs/usage"
                                },
                                "unknown_usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "reason": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "expires_at": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "state": {
                                  "type": "string",
                                  "enum": [
                                    "reserved",
                                    "consuming",
                                    "reconciling",
                                    "released",
                                    "expired"
                                  ]
                                }
                              },
                              "required": [
                                "entity_type",
                                "schema_version",
                                "reservation_id",
                                "workspace_id",
                                "plan_digest",
                                "limits",
                                "estimated_usage",
                                "actual_usage",
                                "unknown_usage",
                                "expires_at",
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "attempt_accounting": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "required": [
                            "reservation",
                            "attempt_accounting",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/runs/{run_id}/cancel": {
      "post": {
        "operationId": "cancel_run",
        "description": "Request cooperative cancellation; retains completed evidence.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "run_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "plan_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "running",
                                "cancel_requested",
                                "completed",
                                "failed",
                                "cancelled",
                                "budget_exhausted",
                                "incomplete"
                              ]
                            },
                            "progress": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "attempts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "created_at": {
                              "type": "number"
                            },
                            "updated_at": {
                              "type": "number"
                            },
                            "result_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "events": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "seq": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "at": {
                                    "type": "number"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "queued",
                                      "running",
                                      "cancel_requested",
                                      "completed",
                                      "failed",
                                      "cancelled",
                                      "budget_exhausted",
                                      "incomplete"
                                    ]
                                  }
                                },
                                "required": [
                                  "seq",
                                  "at",
                                  "status"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "run_id",
                            "plan_id",
                            "status",
                            "progress",
                            "created_at",
                            "updated_at",
                            "result_id",
                            "error",
                            "events"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/runs/{run_id}/reconcile": {
      "post": {
        "operationId": "reconcile_run",
        "description": "Reconcile an expired lease without replaying work; preserve attempts and partial evidence.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "run_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "plan_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "running",
                                "cancel_requested",
                                "completed",
                                "failed",
                                "cancelled",
                                "budget_exhausted",
                                "incomplete"
                              ]
                            },
                            "progress": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "attempts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "created_at": {
                              "type": "number"
                            },
                            "updated_at": {
                              "type": "number"
                            },
                            "result_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "events": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "seq": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "at": {
                                    "type": "number"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "queued",
                                      "running",
                                      "cancel_requested",
                                      "completed",
                                      "failed",
                                      "cancelled",
                                      "budget_exhausted",
                                      "incomplete"
                                    ]
                                  }
                                },
                                "required": [
                                  "seq",
                                  "at",
                                  "status"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "run_id",
                            "plan_id",
                            "status",
                            "progress",
                            "created_at",
                            "updated_at",
                            "result_id",
                            "error",
                            "events"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/runs/{run_id}/resume": {
      "post": {
        "operationId": "resume_run",
        "description": "Explicitly resume one incomplete logical job under a retry key; preserve previous attempts.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "run_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "plan_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "running",
                                "cancel_requested",
                                "completed",
                                "failed",
                                "cancelled",
                                "budget_exhausted",
                                "incomplete"
                              ]
                            },
                            "progress": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "attempts": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "created_at": {
                              "type": "number"
                            },
                            "updated_at": {
                              "type": "number"
                            },
                            "result_id": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "events": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "seq": {
                                    "type": "integer",
                                    "minimum": 0
                                  },
                                  "at": {
                                    "type": "number"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "queued",
                                      "running",
                                      "cancel_requested",
                                      "completed",
                                      "failed",
                                      "cancelled",
                                      "budget_exhausted",
                                      "incomplete"
                                    ]
                                  }
                                },
                                "required": [
                                  "seq",
                                  "at",
                                  "status"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "run_id",
                            "plan_id",
                            "status",
                            "progress",
                            "created_at",
                            "updated_at",
                            "result_id",
                            "error",
                            "events"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idempotency_key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "idempotency_key"
                ],
                "additionalProperties": false
              },
              "example": {
                "idempotency_key": "explicit-recovery-1"
              }
            }
          }
        }
      }
    },
    "/v1/results/{result_id}": {
      "get": {
        "operationId": "get_result",
        "description": "Read an integrity-checked result manifest, evidence and artifact references.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "result_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "result_sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "plan_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "result": {
                              "type": "object",
                              "properties": {
                                "runner": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "verification": {
                                  "type": "object",
                                  "properties": {
                                    "schema_version": {
                                      "const": "1.0.0"
                                    },
                                    "verification_id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    "requested_mode": {
                                      "type": "string",
                                      "enum": [
                                        "integrity",
                                        "metric_recompute"
                                      ]
                                    },
                                    "performed_checks": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "mode": {
                                            "type": "string",
                                            "enum": [
                                              "integrity",
                                              "metric_recompute"
                                            ]
                                          },
                                          "protocol": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 256
                                          },
                                          "status": {
                                            "const": "passed"
                                          }
                                        },
                                        "required": [
                                          "mode",
                                          "protocol",
                                          "status"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "minItems": 1
                                    },
                                    "proven_result": {
                                      "type": "string",
                                      "enum": [
                                        "not_evaluated",
                                        "no_violation_found",
                                        "violation_found"
                                      ]
                                    },
                                    "physics_replayed": {
                                      "const": false
                                    },
                                    "input_snapshot_sha256": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    "artifact_hashes": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 256
                                          },
                                          "sha256": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "sha256"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "scope": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "verifier_sha256": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    }
                                  },
                                  "required": [
                                    "schema_version",
                                    "verification_id",
                                    "requested_mode",
                                    "performed_checks",
                                    "proven_result",
                                    "physics_replayed",
                                    "input_snapshot_sha256",
                                    "artifact_hashes",
                                    "scope",
                                    "verifier_sha256"
                                  ],
                                  "additionalProperties": false
                                },
                                "schema_version": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "execution_status": {
                                  "type": "string",
                                  "enum": [
                                    "running",
                                    "completed",
                                    "failed",
                                    "cancelled",
                                    "budget_exhausted",
                                    "incomplete"
                                  ]
                                },
                                "provider_calls": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "records": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": true,
                                    "properties": {
                                      "messages": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": true,
                                          "properties": {
                                            "log_time_ns": {
                                              "type": "string",
                                              "pattern": "-?(0|[1-9][0-9]*)",
                                              "maxLength": 40
                                            },
                                            "publish_time_ns": {
                                              "type": "string",
                                              "pattern": "-?(0|[1-9][0-9]*)",
                                              "maxLength": 40
                                            }
                                          }
                                        }
                                      },
                                      "returned_messages": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": true,
                                          "properties": {
                                            "log_time_ns": {
                                              "type": "string",
                                              "pattern": "-?(0|[1-9][0-9]*)",
                                              "maxLength": 40
                                            },
                                            "publish_time_ns": {
                                              "type": "string",
                                              "pattern": "-?(0|[1-9][0-9]*)",
                                              "maxLength": 40
                                            }
                                          }
                                        }
                                      },
                                      "time_range_ns": {
                                        "type": "object",
                                        "additionalProperties": true,
                                        "properties": {
                                          "first_log": {
                                            "type": "string",
                                            "pattern": "-?(0|[1-9][0-9]*)",
                                            "maxLength": 40
                                          },
                                          "last_log": {
                                            "type": "string",
                                            "pattern": "-?(0|[1-9][0-9]*)",
                                            "maxLength": 40
                                          }
                                        }
                                      }
                                    }
                                  }
                                },
                                "artifacts": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": true
                                  }
                                },
                                "operation": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "elapsed_seconds": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "input_snapshot": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              },
                              "required": [
                                "schema_version",
                                "execution_status",
                                "provider_calls"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "result_id",
                            "result_sha256",
                            "plan_id",
                            "result"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "result_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/results/{result_id}/report": {
      "get": {
        "operationId": "get_result_report",
        "description": "Read the same scoped evidence verdict for UI, embed and CI, with JSON and JUnit. Rechecks current access.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "summary": {
                              "type": "object",
                              "properties": {
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "result_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "result_sha256": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                "profile": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "operation": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "execution_status": {
                                  "type": "string",
                                  "enum": [
                                    "queued",
                                    "running",
                                    "cancel_requested",
                                    "completed",
                                    "failed",
                                    "cancelled",
                                    "budget_exhausted",
                                    "incomplete"
                                  ]
                                },
                                "task_outcome": {
                                  "type": "string",
                                  "enum": [
                                    "not_evaluated",
                                    "no_violation_found",
                                    "violation_found"
                                  ]
                                },
                                "ci_status": {
                                  "enum": [
                                    "passed",
                                    "violation",
                                    "error",
                                    "incomplete"
                                  ]
                                },
                                "exit_code": {
                                  "type": "integer",
                                  "enum": [
                                    0,
                                    1,
                                    2,
                                    3
                                  ]
                                },
                                "required_check": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "performed_checks": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "mode": {
                                        "type": "string",
                                        "enum": [
                                          "integrity",
                                          "metric_recompute"
                                        ]
                                      },
                                      "protocol": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "status": {
                                        "const": "passed"
                                      }
                                    },
                                    "required": [
                                      "mode",
                                      "protocol",
                                      "status"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "verification_scope": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "physics_replayed": {
                                  "const": false
                                },
                                "recording": {
                                  "const": true
                                },
                                "meaning": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256,
                                  "description": "Short evidence statement. Moving AI lists canonical movingai:N and actual zero-based case_index. Dataset export is confirmed only after completed execution with existing hash-checked payload and manifest. Artifact references remain in get_result."
                                }
                              },
                              "required": [
                                "schema_version",
                                "result_id",
                                "result_sha256",
                                "profile",
                                "operation",
                                "execution_status",
                                "task_outcome",
                                "ci_status",
                                "exit_code",
                                "required_check",
                                "performed_checks",
                                "verification_scope",
                                "physics_replayed",
                                "recording",
                                "meaning"
                              ],
                              "additionalProperties": false
                            },
                            "junit_xml": {
                              "type": "string",
                              "maxLength": 65536
                            }
                          },
                          "required": [
                            "summary",
                            "junit_xml"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "result_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/webhooks/{webhook_id}/signed-events": {
      "post": {
        "operationId": "read_signed_webhook",
        "description": "Read workspace-bound HMAC signed run events. Pull only; no outbound delivery.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "webhook_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "events": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "delivery_id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "payload": {
                                    "type": "object",
                                    "properties": {
                                      "schema_version": {
                                        "const": "1.0.0"
                                      },
                                      "workspace_id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64
                                      },
                                      "webhook_id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64
                                      },
                                      "event": {
                                        "type": "object",
                                        "properties": {
                                          "seq": {
                                            "type": "integer",
                                            "minimum": 0
                                          },
                                          "at": {
                                            "type": "number"
                                          },
                                          "status": {
                                            "type": "string",
                                            "enum": [
                                              "queued",
                                              "running",
                                              "cancel_requested",
                                              "completed",
                                              "failed",
                                              "cancelled",
                                              "budget_exhausted",
                                              "incomplete"
                                            ]
                                          },
                                          "run_id": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64
                                          }
                                        },
                                        "required": [
                                          "seq",
                                          "at",
                                          "status",
                                          "run_id"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "schema_version",
                                      "workspace_id",
                                      "webhook_id",
                                      "event"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "signed_at": {
                                    "type": "integer"
                                  },
                                  "signature": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  }
                                },
                                "required": [
                                  "delivery_id",
                                  "payload",
                                  "signed_at",
                                  "signature"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "next_cursor": {
                              "type": "integer"
                            },
                            "delivery": {
                              "const": "authenticated_signed_pull"
                            },
                            "external_delivery": {
                              "const": false
                            }
                          },
                          "required": [
                            "webhook_id",
                            "events",
                            "next_cursor",
                            "delivery",
                            "external_delivery"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "webhook_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "after": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              "example": {
                "after": 0,
                "limit": 25
              }
            }
          }
        }
      }
    },
    "/v1/datasets/{result_id}": {
      "get": {
        "operationId": "get_dataset_generation",
        "description": "Read a verified DatasetManifest, immutable split and native-reader round-trip receipt.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "result_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "dataset_manifest": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "$id": "urn:worldfuzz:entity:DatasetManifest:1.0.0",
                              "$defs": {
                                "ref": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "version": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "parameter": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          },
                                          "minItems": 0,
                                          "maxItems": 10000
                                        }
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "wall_seconds": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "cpu_seconds": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "memory_bytes": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "artifact_bytes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "model_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "device_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "wall_seconds",
                                    "cpu_seconds",
                                    "memory_bytes",
                                    "artifact_bytes",
                                    "model_calls",
                                    "device_calls"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "basis": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "value",
                                      "unit",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "type": "string",
                                        "enum": [
                                          "data",
                                          "code",
                                          "model",
                                          "scene"
                                        ]
                                      },
                                      "license": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "declared",
                                          "verified",
                                          "unknown",
                                          "conflict"
                                        ]
                                      },
                                      "allowed_uses": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "inspect",
                                            "evaluate",
                                            "train",
                                            "export",
                                            "redistribute"
                                          ]
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "evidence_urls": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "subject",
                                      "license",
                                      "status",
                                      "allowed_uses",
                                      "evidence_urls",
                                      "limitations"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 4,
                                  "maxItems": 10000
                                },
                                "signal": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "dtype": {
                                      "type": "string",
                                      "enum": [
                                        "float32",
                                        "float64",
                                        "int32",
                                        "int64",
                                        "uint8",
                                        "bool",
                                        "text"
                                      ]
                                    },
                                    "shape": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "minItems": 0,
                                      "maxItems": 10000
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "frame": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "semantic": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    "rate_hz": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "dtype",
                                    "shape",
                                    "unit",
                                    "frame",
                                    "semantic",
                                    "rate_hz"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "properties": {
                                "entity_type": {
                                  "const": "DatasetManifest"
                                },
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "dataset_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "version": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "episode_refs": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "split_ref": {
                                  "$ref": "#/$defs/ref"
                                },
                                "filters": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/parameter"
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "transform_refs": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "$ref": "#/$defs/rights"
                                },
                                "target_schema": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 4096
                                },
                                "checksums": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "locator": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      },
                                      "sha256": {
                                        "type": "string",
                                        "pattern": "^[0-9a-f]{64}$"
                                      }
                                    },
                                    "required": [
                                      "locator",
                                      "sha256"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                }
                              },
                              "required": [
                                "entity_type",
                                "schema_version",
                                "dataset_id",
                                "version",
                                "episode_refs",
                                "split_ref",
                                "filters",
                                "transform_refs",
                                "rights",
                                "target_schema",
                                "checksums"
                              ],
                              "additionalProperties": false
                            },
                            "split_manifest": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "$id": "urn:worldfuzz:entity:SplitManifest:1.0.0",
                              "$defs": {
                                "ref": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "version": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "parameter": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          },
                                          "minItems": 0,
                                          "maxItems": 10000
                                        }
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "wall_seconds": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "cpu_seconds": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "memory_bytes": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "artifact_bytes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "model_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "device_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "wall_seconds",
                                    "cpu_seconds",
                                    "memory_bytes",
                                    "artifact_bytes",
                                    "model_calls",
                                    "device_calls"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "basis": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "value",
                                      "unit",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "type": "string",
                                        "enum": [
                                          "data",
                                          "code",
                                          "model",
                                          "scene"
                                        ]
                                      },
                                      "license": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "declared",
                                          "verified",
                                          "unknown",
                                          "conflict"
                                        ]
                                      },
                                      "allowed_uses": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "inspect",
                                            "evaluate",
                                            "train",
                                            "export",
                                            "redistribute"
                                          ]
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "evidence_urls": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "subject",
                                      "license",
                                      "status",
                                      "allowed_uses",
                                      "evidence_urls",
                                      "limitations"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 4,
                                  "maxItems": 10000
                                },
                                "signal": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "dtype": {
                                      "type": "string",
                                      "enum": [
                                        "float32",
                                        "float64",
                                        "int32",
                                        "int64",
                                        "uint8",
                                        "bool",
                                        "text"
                                      ]
                                    },
                                    "shape": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "minItems": 0,
                                      "maxItems": 10000
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "frame": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "semantic": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    "rate_hz": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "dtype",
                                    "shape",
                                    "unit",
                                    "frame",
                                    "semantic",
                                    "rate_hz"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "properties": {
                                "entity_type": {
                                  "const": "SplitManifest"
                                },
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "split_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "version": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "grouping_rule": {
                                  "$ref": "#/$defs/ref"
                                },
                                "group_assignments": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "group_id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "split": {
                                        "type": "string",
                                        "enum": [
                                          "train",
                                          "validation",
                                          "test",
                                          "excluded"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "group_id",
                                      "split"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "source_lineage": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "seed_or_rule": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 4096
                                },
                                "heldout_policy": {
                                  "type": "object",
                                  "properties": {
                                    "training_allowed": {
                                      "type": "boolean"
                                    },
                                    "automatic_reassignment": {
                                      "const": false
                                    },
                                    "description": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    }
                                  },
                                  "required": [
                                    "training_allowed",
                                    "automatic_reassignment",
                                    "description"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "entity_type",
                                "schema_version",
                                "split_id",
                                "version",
                                "grouping_rule",
                                "group_assignments",
                                "source_lineage",
                                "seed_or_rule",
                                "heldout_policy"
                              ],
                              "additionalProperties": false
                            },
                            "roundtrip": {
                              "type": "object",
                              "additionalProperties": true
                            }
                          },
                          "required": [
                            "result_id",
                            "dataset_manifest",
                            "split_manifest",
                            "roundtrip"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "result_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ]
      }
    },
    "/v1/results/{result_id}/verify": {
      "post": {
        "operationId": "verify_run_result",
        "description": "Independently check stored bytes or supported offline metrics; never imply physical replay.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "schema_version": {
                              "const": "1.0.0"
                            },
                            "verification_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "requested_mode": {
                              "type": "string",
                              "enum": [
                                "integrity",
                                "metric_recompute"
                              ]
                            },
                            "performed_checks": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "mode": {
                                    "type": "string",
                                    "enum": [
                                      "integrity",
                                      "metric_recompute"
                                    ]
                                  },
                                  "protocol": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  },
                                  "status": {
                                    "const": "passed"
                                  }
                                },
                                "required": [
                                  "mode",
                                  "protocol",
                                  "status"
                                ],
                                "additionalProperties": false
                              },
                              "minItems": 1
                            },
                            "proven_result": {
                              "type": "string",
                              "enum": [
                                "not_evaluated",
                                "no_violation_found",
                                "violation_found"
                              ]
                            },
                            "physics_replayed": {
                              "const": false
                            },
                            "input_snapshot_sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "artifact_hashes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  },
                                  "sha256": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  }
                                },
                                "required": [
                                  "name",
                                  "sha256"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "verifier_sha256": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            }
                          },
                          "required": [
                            "schema_version",
                            "verification_id",
                            "requested_mode",
                            "performed_checks",
                            "proven_result",
                            "physics_replayed",
                            "input_snapshot_sha256",
                            "artifact_hashes",
                            "scope",
                            "verifier_sha256"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "result_id",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "integrity",
                      "metric_recompute",
                      "replay"
                    ]
                  },
                  "protocol": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [],
                "additionalProperties": false
              },
              "example": {
                "mode": "integrity"
              }
            }
          }
        }
      }
    },
    "/v1/comparisons/query": {
      "post": {
        "operationId": "compare_results",
        "description": "Compare completed results only when their task inputs and evaluation protocol match.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "left_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "right_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "comparable": {
                              "type": "boolean"
                            },
                            "same_records": {
                              "type": "boolean"
                            },
                            "scope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "equivalent_outcomes": {
                              "type": "boolean"
                            },
                            "summary": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "protocol": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "paired_results": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            },
                            "coverage": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "procedures": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          },
                          "required": [
                            "left_id",
                            "right_id",
                            "comparable",
                            "same_records",
                            "scope"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "left_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "right_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "repeat",
                      "algorithms"
                    ]
                  }
                },
                "required": [
                  "left_id",
                  "right_id"
                ],
                "additionalProperties": false
              },
              "example": {
                "left_id": "replace-with-left-run-id",
                "right_id": "replace-with-right-run-id",
                "mode": "repeat"
              }
            }
          }
        }
      }
    },
    "/v1/verification-plans": {
      "post": {
        "operationId": "verify_result",
        "description": "Recompute stored episode checks in a new run plan. Does not claim physics replay.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "plan_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "plan_digest": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "compatibility": {
                              "const": "compatible"
                            },
                            "plan": {
                              "type": "object",
                              "additionalProperties": true,
                              "properties": {
                                "preparation": {
                                  "type": "object",
                                  "properties": {
                                    "stage": {
                                      "const": "prepared"
                                    },
                                    "execution_started": {
                                      "const": false
                                    },
                                    "run_id": {
                                      "const": null
                                    },
                                    "run": {
                                      "const": null
                                    },
                                    "result_id": {
                                      "const": null
                                    },
                                    "export_artifact_created": {
                                      "const": false
                                    }
                                  },
                                  "required": [
                                    "stage",
                                    "execution_started",
                                    "run_id",
                                    "run",
                                    "result_id",
                                    "export_artifact_created"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "preparation"
                              ]
                            },
                            "run_plan": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "$id": "urn:worldfuzz:entity:RunPlan:1.0.0",
                              "$defs": {
                                "ref": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "version": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "parameter": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          },
                                          "minItems": 0,
                                          "maxItems": 10000
                                        }
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "wall_seconds": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "cpu_seconds": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "memory_bytes": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "artifact_bytes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "model_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "device_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "wall_seconds",
                                    "cpu_seconds",
                                    "memory_bytes",
                                    "artifact_bytes",
                                    "model_calls",
                                    "device_calls"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "basis": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "value",
                                      "unit",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "type": "string",
                                        "enum": [
                                          "data",
                                          "code",
                                          "model",
                                          "scene"
                                        ]
                                      },
                                      "license": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "declared",
                                          "verified",
                                          "unknown",
                                          "conflict"
                                        ]
                                      },
                                      "allowed_uses": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "inspect",
                                            "evaluate",
                                            "train",
                                            "export",
                                            "redistribute"
                                          ]
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "evidence_urls": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "subject",
                                      "license",
                                      "status",
                                      "allowed_uses",
                                      "evidence_urls",
                                      "limitations"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 4,
                                  "maxItems": 10000
                                },
                                "signal": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "dtype": {
                                      "type": "string",
                                      "enum": [
                                        "float32",
                                        "float64",
                                        "int32",
                                        "int64",
                                        "uint8",
                                        "bool",
                                        "text"
                                      ]
                                    },
                                    "shape": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "minItems": 0,
                                      "maxItems": 10000
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "frame": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "semantic": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    "rate_hz": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "dtype",
                                    "shape",
                                    "unit",
                                    "frame",
                                    "semantic",
                                    "rate_hz"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "properties": {
                                "entity_type": {
                                  "const": "RunPlan"
                                },
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "plan_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "digest": {
                                  "type": "string",
                                  "pattern": "^[0-9a-f]{64}$"
                                },
                                "task_ref": {
                                  "$ref": "#/$defs/ref"
                                },
                                "input_versions": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "steps": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "step_id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "procedure_ref": {
                                        "$ref": "#/$defs/ref"
                                      },
                                      "depends_on": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "parameters": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/$defs/parameter"
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "step_id",
                                      "procedure_ref",
                                      "depends_on",
                                      "parameters"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "runner_requirements": {
                                  "type": "object",
                                  "properties": {
                                    "execution_mode": {
                                      "type": "string",
                                      "enum": [
                                        "metadata_inspection",
                                        "offline_evaluation",
                                        "observation_replay",
                                        "closed_loop_simulation",
                                        "external_result_ingestion"
                                      ]
                                    },
                                    "profile_refs": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/$defs/ref"
                                      },
                                      "minItems": 1,
                                      "maxItems": 10000
                                    },
                                    "environment_ref": {
                                      "$ref": "#/$defs/ref"
                                    }
                                  },
                                  "required": [
                                    "execution_mode",
                                    "profile_refs",
                                    "environment_ref"
                                  ],
                                  "additionalProperties": false
                                },
                                "resource_limits": {
                                  "$ref": "#/$defs/limits"
                                },
                                "rights_decision": {
                                  "$ref": "#/$defs/ref"
                                },
                                "estimated_usage": {
                                  "$ref": "#/$defs/usage"
                                },
                                "expires_at": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "entity_type",
                                "schema_version",
                                "plan_id",
                                "digest",
                                "task_ref",
                                "input_versions",
                                "steps",
                                "runner_requirements",
                                "resource_limits",
                                "rights_decision",
                                "estimated_usage",
                                "expires_at"
                              ],
                              "additionalProperties": false
                            },
                            "compatibility_decision": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "$id": "urn:worldfuzz:entity:CompatibilityDecision:1.0.0",
                              "$defs": {
                                "ref": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "version": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "parameter": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          },
                                          "minItems": 0,
                                          "maxItems": 10000
                                        }
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "wall_seconds": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "cpu_seconds": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "memory_bytes": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "artifact_bytes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "model_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "device_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "wall_seconds",
                                    "cpu_seconds",
                                    "memory_bytes",
                                    "artifact_bytes",
                                    "model_calls",
                                    "device_calls"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "basis": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "value",
                                      "unit",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "type": "string",
                                        "enum": [
                                          "data",
                                          "code",
                                          "model",
                                          "scene"
                                        ]
                                      },
                                      "license": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "declared",
                                          "verified",
                                          "unknown",
                                          "conflict"
                                        ]
                                      },
                                      "allowed_uses": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "inspect",
                                            "evaluate",
                                            "train",
                                            "export",
                                            "redistribute"
                                          ]
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "evidence_urls": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "subject",
                                      "license",
                                      "status",
                                      "allowed_uses",
                                      "evidence_urls",
                                      "limitations"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 4,
                                  "maxItems": 10000
                                },
                                "signal": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "dtype": {
                                      "type": "string",
                                      "enum": [
                                        "float32",
                                        "float64",
                                        "int32",
                                        "int64",
                                        "uint8",
                                        "bool",
                                        "text"
                                      ]
                                    },
                                    "shape": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "minItems": 0,
                                      "maxItems": 10000
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "frame": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "semantic": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    "rate_hz": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "dtype",
                                    "shape",
                                    "unit",
                                    "frame",
                                    "semantic",
                                    "rate_hz"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "properties": {
                                "entity_type": {
                                  "const": "CompatibilityDecision"
                                },
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "decision_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "compatible",
                                    "incompatible",
                                    "needs_information"
                                  ]
                                },
                                "input_versions": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "matched_requirements": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "missing_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 4096
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "conflicts": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "expected": {
                                        "anyOf": [
                                          {
                                            "type": "null"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "number"
                                            },
                                            "minItems": 0,
                                            "maxItems": 10000
                                          }
                                        ]
                                      },
                                      "observed": {
                                        "anyOf": [
                                          {
                                            "type": "null"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "number"
                                            },
                                            "minItems": 0,
                                            "maxItems": 10000
                                          }
                                        ]
                                      },
                                      "reason": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "expected",
                                      "observed",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "evidence_refs": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "checked_at": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "entity_type",
                                "schema_version",
                                "decision_id",
                                "status",
                                "input_versions",
                                "matched_requirements",
                                "missing_fields",
                                "conflicts",
                                "evidence_refs",
                                "checked_at"
                              ],
                              "additionalProperties": false
                            },
                            "authorization": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "minItems": 1
                            }
                          },
                          "required": [
                            "plan_id",
                            "plan_digest",
                            "compatibility",
                            "plan",
                            "run_plan",
                            "compatibility_decision",
                            "authorization"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "domain": {
                        "type": "string",
                        "enum": [
                          "navigation",
                          "manipulation"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "split": {
                        "type": "string",
                        "enum": [
                          "train",
                          "validation",
                          "test"
                        ]
                      }
                    },
                    "required": [
                      "domain"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "profile",
                  "filters"
                ],
                "additionalProperties": false
              },
              "example": {
                "profile": "movingai.octile.v1",
                "filters": {
                  "domain": "navigation"
                }
              }
            }
          }
        }
      }
    },
    "/v1/export-plans": {
      "post": {
        "operationId": "export_result",
        "description": "Prepare only: freeze a provenance-preserving dataset export plan with immutable group splits. Execution has NOT started; there is no run or export artifact. Execute the returned plan with execute_plan, or use run_goal with goal.operation export_dataset and explicit budgets. Confirm export only from a completed run and its existing hash-checked artifacts.",
        "responses": {
          "200": {
            "description": "Validated structured operation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "request_id",
                    "status",
                    "data",
                    "limitations",
                    "next_actions"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "request_id": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "ok",
                        "error"
                      ]
                    },
                    "data": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "plan_id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "plan_digest": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "compatibility": {
                              "const": "compatible"
                            },
                            "plan": {
                              "type": "object",
                              "additionalProperties": true,
                              "properties": {
                                "preparation": {
                                  "type": "object",
                                  "properties": {
                                    "stage": {
                                      "const": "prepared"
                                    },
                                    "execution_started": {
                                      "const": false
                                    },
                                    "run_id": {
                                      "const": null
                                    },
                                    "run": {
                                      "const": null
                                    },
                                    "result_id": {
                                      "const": null
                                    },
                                    "export_artifact_created": {
                                      "const": false
                                    }
                                  },
                                  "required": [
                                    "stage",
                                    "execution_started",
                                    "run_id",
                                    "run",
                                    "result_id",
                                    "export_artifact_created"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "preparation"
                              ]
                            },
                            "run_plan": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "$id": "urn:worldfuzz:entity:RunPlan:1.0.0",
                              "$defs": {
                                "ref": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "version": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "parameter": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          },
                                          "minItems": 0,
                                          "maxItems": 10000
                                        }
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "wall_seconds": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "cpu_seconds": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "memory_bytes": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "artifact_bytes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "model_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "device_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "wall_seconds",
                                    "cpu_seconds",
                                    "memory_bytes",
                                    "artifact_bytes",
                                    "model_calls",
                                    "device_calls"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "basis": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "value",
                                      "unit",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "type": "string",
                                        "enum": [
                                          "data",
                                          "code",
                                          "model",
                                          "scene"
                                        ]
                                      },
                                      "license": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "declared",
                                          "verified",
                                          "unknown",
                                          "conflict"
                                        ]
                                      },
                                      "allowed_uses": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "inspect",
                                            "evaluate",
                                            "train",
                                            "export",
                                            "redistribute"
                                          ]
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "evidence_urls": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "subject",
                                      "license",
                                      "status",
                                      "allowed_uses",
                                      "evidence_urls",
                                      "limitations"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 4,
                                  "maxItems": 10000
                                },
                                "signal": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "dtype": {
                                      "type": "string",
                                      "enum": [
                                        "float32",
                                        "float64",
                                        "int32",
                                        "int64",
                                        "uint8",
                                        "bool",
                                        "text"
                                      ]
                                    },
                                    "shape": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "minItems": 0,
                                      "maxItems": 10000
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "frame": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "semantic": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    "rate_hz": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "dtype",
                                    "shape",
                                    "unit",
                                    "frame",
                                    "semantic",
                                    "rate_hz"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "properties": {
                                "entity_type": {
                                  "const": "RunPlan"
                                },
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "plan_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "digest": {
                                  "type": "string",
                                  "pattern": "^[0-9a-f]{64}$"
                                },
                                "task_ref": {
                                  "$ref": "#/$defs/ref"
                                },
                                "input_versions": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "steps": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "step_id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "procedure_ref": {
                                        "$ref": "#/$defs/ref"
                                      },
                                      "depends_on": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "parameters": {
                                        "type": "array",
                                        "items": {
                                          "$ref": "#/$defs/parameter"
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "step_id",
                                      "procedure_ref",
                                      "depends_on",
                                      "parameters"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "runner_requirements": {
                                  "type": "object",
                                  "properties": {
                                    "execution_mode": {
                                      "type": "string",
                                      "enum": [
                                        "metadata_inspection",
                                        "offline_evaluation",
                                        "observation_replay",
                                        "closed_loop_simulation",
                                        "external_result_ingestion"
                                      ]
                                    },
                                    "profile_refs": {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/$defs/ref"
                                      },
                                      "minItems": 1,
                                      "maxItems": 10000
                                    },
                                    "environment_ref": {
                                      "$ref": "#/$defs/ref"
                                    }
                                  },
                                  "required": [
                                    "execution_mode",
                                    "profile_refs",
                                    "environment_ref"
                                  ],
                                  "additionalProperties": false
                                },
                                "resource_limits": {
                                  "$ref": "#/$defs/limits"
                                },
                                "rights_decision": {
                                  "$ref": "#/$defs/ref"
                                },
                                "estimated_usage": {
                                  "$ref": "#/$defs/usage"
                                },
                                "expires_at": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "entity_type",
                                "schema_version",
                                "plan_id",
                                "digest",
                                "task_ref",
                                "input_versions",
                                "steps",
                                "runner_requirements",
                                "resource_limits",
                                "rights_decision",
                                "estimated_usage",
                                "expires_at"
                              ],
                              "additionalProperties": false
                            },
                            "compatibility_decision": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "$id": "urn:worldfuzz:entity:CompatibilityDecision:1.0.0",
                              "$defs": {
                                "ref": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "version": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "parameter": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "value": {
                                      "anyOf": [
                                        {
                                          "type": "null"
                                        },
                                        {
                                          "type": "boolean"
                                        },
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          },
                                          "minItems": 0,
                                          "maxItems": 10000
                                        }
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "value",
                                    "unit"
                                  ],
                                  "additionalProperties": false
                                },
                                "limits": {
                                  "type": "object",
                                  "properties": {
                                    "wall_seconds": {
                                      "type": "number",
                                      "minimum": 0
                                    },
                                    "cpu_seconds": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "memory_bytes": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "artifact_bytes": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "model_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "device_calls": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  },
                                  "required": [
                                    "wall_seconds",
                                    "cpu_seconds",
                                    "memory_bytes",
                                    "artifact_bytes",
                                    "model_calls",
                                    "device_calls"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "phase": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "resource": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unit": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "basis": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "phase",
                                      "resource",
                                      "value",
                                      "unit",
                                      "basis"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "rights": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "subject": {
                                        "type": "string",
                                        "enum": [
                                          "data",
                                          "code",
                                          "model",
                                          "scene"
                                        ]
                                      },
                                      "license": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "declared",
                                          "verified",
                                          "unknown",
                                          "conflict"
                                        ]
                                      },
                                      "allowed_uses": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "enum": [
                                            "inspect",
                                            "evaluate",
                                            "train",
                                            "export",
                                            "redistribute"
                                          ]
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "evidence_urls": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      },
                                      "limitations": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 4096
                                        },
                                        "minItems": 0,
                                        "maxItems": 10000
                                      }
                                    },
                                    "required": [
                                      "subject",
                                      "license",
                                      "status",
                                      "allowed_uses",
                                      "evidence_urls",
                                      "limitations"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 4,
                                  "maxItems": 10000
                                },
                                "signal": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 256
                                    },
                                    "dtype": {
                                      "type": "string",
                                      "enum": [
                                        "float32",
                                        "float64",
                                        "int32",
                                        "int64",
                                        "uint8",
                                        "bool",
                                        "text"
                                      ]
                                    },
                                    "shape": {
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1
                                      },
                                      "minItems": 0,
                                      "maxItems": 10000
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "frame": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 256
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "semantic": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 4096
                                    },
                                    "rate_hz": {
                                      "anyOf": [
                                        {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "dtype",
                                    "shape",
                                    "unit",
                                    "frame",
                                    "semantic",
                                    "rate_hz"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "properties": {
                                "entity_type": {
                                  "const": "CompatibilityDecision"
                                },
                                "schema_version": {
                                  "const": "1.0.0"
                                },
                                "decision_id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "compatible",
                                    "incompatible",
                                    "needs_information"
                                  ]
                                },
                                "input_versions": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 1,
                                  "maxItems": 10000
                                },
                                "matched_requirements": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "missing_fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 4096
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "conflicts": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "field": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 256
                                      },
                                      "expected": {
                                        "anyOf": [
                                          {
                                            "type": "null"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "number"
                                            },
                                            "minItems": 0,
                                            "maxItems": 10000
                                          }
                                        ]
                                      },
                                      "observed": {
                                        "anyOf": [
                                          {
                                            "type": "null"
                                          },
                                          {
                                            "type": "boolean"
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 4096
                                          },
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "number"
                                            },
                                            "minItems": 0,
                                            "maxItems": 10000
                                          }
                                        ]
                                      },
                                      "reason": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 4096
                                      }
                                    },
                                    "required": [
                                      "field",
                                      "expected",
                                      "observed",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "evidence_refs": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/$defs/ref"
                                  },
                                  "minItems": 0,
                                  "maxItems": 10000
                                },
                                "checked_at": {
                                  "type": "number",
                                  "minimum": 0
                                }
                              },
                              "required": [
                                "entity_type",
                                "schema_version",
                                "decision_id",
                                "status",
                                "input_versions",
                                "matched_requirements",
                                "missing_fields",
                                "conflicts",
                                "evidence_refs",
                                "checked_at"
                              ],
                              "additionalProperties": false
                            },
                            "authorization": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "minItems": 1
                            }
                          },
                          "required": [
                            "plan_id",
                            "plan_digest",
                            "compatibility",
                            "plan",
                            "run_plan",
                            "compatibility_decision",
                            "authorization"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "maxProperties": 0
                        }
                      ]
                    },
                    "limitations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "next_actions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "data_representation": {
                      "type": "object",
                      "properties": {
                        "version": {
                          "const": "nanoseconds-decimal.v1"
                        },
                        "encoding": {
                          "const": "base10_integer_string"
                        },
                        "unit": {
                          "const": "ns"
                        },
                        "hash_scope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "version",
                        "encoding",
                        "unit",
                        "hash_scope"
                      ],
                      "additionalProperties": false
                    },
                    "error": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured domain or schema error"
          },
          "401": {
            "description": "Missing local bearer token"
          },
          "403": {
            "description": "Policy grant denied or revoked"
          }
        },
        "security": [
          {
            "LocalBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "profile": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "domain": {
                        "type": "string",
                        "enum": [
                          "navigation",
                          "manipulation"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "split": {
                        "type": "string",
                        "enum": [
                          "train",
                          "validation",
                          "test"
                        ]
                      }
                    },
                    "required": [
                      "domain"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "profile",
                  "filters"
                ],
                "additionalProperties": false
              },
              "example": {
                "profile": "movingai.octile.v1",
                "filters": {
                  "domain": "navigation"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "LocalBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "SourceFamily": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:SourceFamily:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "SourceFamily"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "family_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "canonical_sources": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "lineage": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "domain": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "navigation",
                "manipulation",
                "aerial",
                "sensors",
                "composite"
              ]
            },
            "minItems": 1,
            "maxItems": 10000
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "family_id",
          "name",
          "canonical_sources",
          "lineage",
          "domain"
        ],
        "additionalProperties": false
      },
      "AssetVersion": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:AssetVersion:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "AssetVersion"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "asset_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "family_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "source_locator": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "observed_hash_or_null": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "size_or_null": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "access_status": {
            "type": "string",
            "enum": [
              "documentation_only",
              "available",
              "file_verified",
              "restricted",
              "unavailable"
            ]
          },
          "rights": {
            "$ref": "#/$defs/rights"
          },
          "observed_at": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "asset_id",
          "version",
          "family_id",
          "source_locator",
          "observed_hash_or_null",
          "size_or_null",
          "access_status",
          "rights",
          "observed_at"
        ],
        "additionalProperties": false
      },
      "EmbodimentProfile": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:EmbodimentProfile:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "EmbodimentProfile"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "profile_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "components": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "component_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "kind": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                }
              },
              "required": [
                "component_id",
                "kind"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "state_schema": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/signal"
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "action_schema": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/signal"
                },
                "minItems": 1,
                "maxItems": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "observation_schema": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/signal"
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "frames": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "frame_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "parent": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "convention": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "frame_id",
                "parent",
                "convention"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "units": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "time_model": {
            "type": "object",
            "properties": {
              "unit": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "clock": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "synchronization": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              }
            },
            "required": [
              "unit",
              "clock",
              "synchronization"
            ],
            "additionalProperties": false
          },
          "unknown_fields": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "minItems": 0,
            "maxItems": 10000
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "profile_id",
          "version",
          "components",
          "state_schema",
          "action_schema",
          "observation_schema",
          "frames",
          "units",
          "time_model",
          "unknown_fields"
        ],
        "additionalProperties": false
      },
      "TaskSpec": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:TaskSpec:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "TaskSpec"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "task_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "profile_constraints": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "input_refs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "objective": {
            "type": "object",
            "properties": {
              "template": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "parameters": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/parameter"
                },
                "minItems": 0,
                "maxItems": 10000
              }
            },
            "required": [
              "template",
              "parameters"
            ],
            "additionalProperties": false
          },
          "criteria": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "criterion_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "metric": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "operator": {
                  "type": "string",
                  "enum": [
                    "eq",
                    "le",
                    "ge"
                  ]
                },
                "target": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 0,
                      "maxItems": 10000
                    }
                  ]
                },
                "unit": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "protocol_ref": {
                  "$ref": "#/$defs/ref"
                }
              },
              "required": [
                "criterion_id",
                "metric",
                "operator",
                "target",
                "unit",
                "protocol_ref"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "execution_mode": {
            "type": "string",
            "enum": [
              "metadata_inspection",
              "offline_evaluation",
              "observation_replay",
              "closed_loop_simulation",
              "external_result_ingestion"
            ]
          },
          "allowed_variations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "values": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "number"
                        },
                        "minItems": 0,
                        "maxItems": 10000
                      }
                    ]
                  },
                  "minItems": 1,
                  "maxItems": 10000
                }
              },
              "required": [
                "field",
                "values"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "required_evidence": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "integrity",
                "metric_recompute",
                "simulation_replay",
                "physical_measurement",
                "source_label"
              ]
            },
            "minItems": 1,
            "maxItems": 10000
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "task_id",
          "version",
          "profile_constraints",
          "input_refs",
          "objective",
          "criteria",
          "execution_mode",
          "allowed_variations",
          "required_evidence"
        ],
        "additionalProperties": false
      },
      "ProcedureVersion": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:ProcedureVersion:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "ProcedureVersion"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "procedure_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "adapter_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "input_schema_ref": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "output_schema_ref": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "environment_lock": {
            "type": "object",
            "properties": {
              "runtime": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dependencies": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "sha256": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^[0-9a-f]{64}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "version",
                    "sha256"
                  ],
                  "additionalProperties": false
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "image_digest": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^sha256:[0-9a-f]{64}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unresolved": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                },
                "minItems": 0,
                "maxItems": 10000
              }
            },
            "required": [
              "runtime",
              "dependencies",
              "image_digest",
              "unresolved"
            ],
            "additionalProperties": false
          },
          "resource_profile": {
            "$ref": "#/$defs/limits"
          },
          "verification_method": {
            "$ref": "#/$defs/ref"
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "procedure_id",
          "version",
          "adapter_id",
          "input_schema_ref",
          "output_schema_ref",
          "environment_lock",
          "resource_profile",
          "verification_method"
        ],
        "additionalProperties": false
      },
      "Episode": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:Episode:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "Episode"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "episode_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "asset_ref": {
            "$ref": "#/$defs/ref"
          },
          "profile_ref": {
            "$ref": "#/$defs/ref"
          },
          "source_episode_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "payload_ref": {
            "type": "object",
            "properties": {
              "locator": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "sha256": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "bytes": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "locator",
              "sha256",
              "bytes"
            ],
            "additionalProperties": false
          },
          "group_refs": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "outcome_sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "criterion_ref": {
                  "$ref": "#/$defs/ref"
                },
                "label": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 0,
                      "maxItems": 10000
                    }
                  ]
                },
                "origin": {
                  "type": "string",
                  "enum": [
                    "publisher",
                    "simulation",
                    "physical",
                    "unknown"
                  ]
                },
                "evidence_refs": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/ref"
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "criterion_ref",
                "label",
                "origin",
                "evidence_refs"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "episode_id",
          "asset_ref",
          "profile_ref",
          "source_episode_id",
          "payload_ref",
          "group_refs",
          "outcome_sources"
        ],
        "additionalProperties": false
      },
      "CompatibilityDecision": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:CompatibilityDecision:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "CompatibilityDecision"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "decision_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "status": {
            "type": "string",
            "enum": [
              "compatible",
              "incompatible",
              "needs_information"
            ]
          },
          "input_versions": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "matched_requirements": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "missing_fields": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "conflicts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "expected": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 0,
                      "maxItems": 10000
                    }
                  ]
                },
                "observed": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 0,
                      "maxItems": 10000
                    }
                  ]
                },
                "reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "field",
                "expected",
                "observed",
                "reason"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "evidence_refs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "checked_at": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "decision_id",
          "status",
          "input_versions",
          "matched_requirements",
          "missing_fields",
          "conflicts",
          "evidence_refs",
          "checked_at"
        ],
        "additionalProperties": false
      },
      "RunPlan": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:RunPlan:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "RunPlan"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "plan_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "task_ref": {
            "$ref": "#/$defs/ref"
          },
          "input_versions": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "procedure_ref": {
                  "$ref": "#/$defs/ref"
                },
                "depends_on": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "parameters": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/parameter"
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "step_id",
                "procedure_ref",
                "depends_on",
                "parameters"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "runner_requirements": {
            "type": "object",
            "properties": {
              "execution_mode": {
                "type": "string",
                "enum": [
                  "metadata_inspection",
                  "offline_evaluation",
                  "observation_replay",
                  "closed_loop_simulation",
                  "external_result_ingestion"
                ]
              },
              "profile_refs": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/ref"
                },
                "minItems": 1,
                "maxItems": 10000
              },
              "environment_ref": {
                "$ref": "#/$defs/ref"
              }
            },
            "required": [
              "execution_mode",
              "profile_refs",
              "environment_ref"
            ],
            "additionalProperties": false
          },
          "resource_limits": {
            "$ref": "#/$defs/limits"
          },
          "rights_decision": {
            "$ref": "#/$defs/ref"
          },
          "estimated_usage": {
            "$ref": "#/$defs/usage"
          },
          "expires_at": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "plan_id",
          "digest",
          "task_ref",
          "input_versions",
          "steps",
          "runner_requirements",
          "resource_limits",
          "rights_decision",
          "estimated_usage",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "Run": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:Run:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "Run"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "run_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "plan_digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "workspace_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "cancel_requested",
              "completed",
              "failed",
              "cancelled",
              "budget_exhausted",
              "incomplete"
            ]
          },
          "attempts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attempt_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "status": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "started_at": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "finished_at": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "error": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "attempt_id",
                "status",
                "started_at",
                "finished_at",
                "error"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "usage": {
            "$ref": "#/$defs/usage"
          },
          "event_cursor": {
            "type": "integer",
            "minimum": 0
          },
          "artifact_refs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "started_at": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "finished_at": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "run_id",
          "plan_digest",
          "workspace_id",
          "status",
          "attempts",
          "usage",
          "event_cursor",
          "artifact_refs",
          "started_at",
          "finished_at"
        ],
        "additionalProperties": false
      },
      "Evidence": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:Evidence:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "Evidence"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "evidence_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "kind": {
            "type": "string",
            "enum": [
              "integrity",
              "metric_recompute",
              "simulation_replay",
              "physical_measurement",
              "source_label"
            ]
          },
          "scope": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "input_hashes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "input_ref": {
                  "$ref": "#/$defs/ref"
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                }
              },
              "required": [
                "input_ref",
                "sha256"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "procedure_ref": {
            "$ref": "#/$defs/ref"
          },
          "issuer": {
            "type": "object",
            "properties": {
              "identity": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "kind": {
                "type": "string",
                "enum": [
                  "local_verifier",
                  "publisher",
                  "physical_observer"
                ]
              }
            },
            "required": [
              "identity",
              "kind"
            ],
            "additionalProperties": false
          },
          "measured_values": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/parameter"
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "tolerances": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/parameter"
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "limitations": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "created_at": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "evidence_id",
          "kind",
          "scope",
          "input_hashes",
          "procedure_ref",
          "issuer",
          "measured_values",
          "tolerances",
          "limitations",
          "created_at"
        ],
        "additionalProperties": false
      },
      "Outcome": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:Outcome:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "Outcome"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "criterion_ref": {
            "$ref": "#/$defs/ref"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "pass",
              "fail",
              "unknown",
              "not_applicable"
            ]
          },
          "value": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "boolean"
              },
              {
                "type": "number"
              },
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              {
                "type": "array",
                "items": {
                  "type": "number"
                },
                "minItems": 0,
                "maxItems": 10000
              }
            ]
          },
          "unit": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              {
                "type": "null"
              }
            ]
          },
          "basis": {
            "type": "string",
            "enum": [
              "source_label",
              "integrity",
              "metric_recompute",
              "simulation_replay",
              "physical_measurement",
              "none"
            ]
          },
          "evidence_refs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "unknown_reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "criterion_ref",
          "verdict",
          "value",
          "unit",
          "basis",
          "evidence_refs",
          "unknown_reason"
        ],
        "additionalProperties": false
      },
      "Comparison": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:Comparison:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "Comparison"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "comparison_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "run_refs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 2,
            "maxItems": 10000
          },
          "protocol_ref": {
            "$ref": "#/$defs/ref"
          },
          "comparable": {
            "type": "boolean"
          },
          "mismatches": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "paired_results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "case_ref": {
                  "$ref": "#/$defs/ref"
                },
                "left": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 0,
                      "maxItems": 10000
                    }
                  ]
                },
                "right": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 0,
                      "maxItems": 10000
                    }
                  ]
                },
                "unit": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "case_ref",
                "left",
                "right",
                "unit"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "coverage": {
            "type": "object",
            "properties": {
              "requested": {
                "type": "integer",
                "minimum": 0
              },
              "paired": {
                "type": "integer",
                "minimum": 0
              },
              "missing": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "minItems": 0,
                "maxItems": 10000
              }
            },
            "required": [
              "requested",
              "paired",
              "missing"
            ],
            "additionalProperties": false
          },
          "selection_rule": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "comparison_id",
          "run_refs",
          "protocol_ref",
          "comparable",
          "mismatches",
          "paired_results",
          "coverage",
          "selection_rule"
        ],
        "additionalProperties": false
      },
      "SplitManifest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:SplitManifest:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "SplitManifest"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "split_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "grouping_rule": {
            "$ref": "#/$defs/ref"
          },
          "group_assignments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "group_id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "split": {
                  "type": "string",
                  "enum": [
                    "train",
                    "validation",
                    "test",
                    "excluded"
                  ]
                }
              },
              "required": [
                "group_id",
                "split"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "source_lineage": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "seed_or_rule": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "heldout_policy": {
            "type": "object",
            "properties": {
              "training_allowed": {
                "type": "boolean"
              },
              "automatic_reassignment": {
                "const": false
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              }
            },
            "required": [
              "training_allowed",
              "automatic_reassignment",
              "description"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "split_id",
          "version",
          "grouping_rule",
          "group_assignments",
          "source_lineage",
          "seed_or_rule",
          "heldout_policy"
        ],
        "additionalProperties": false
      },
      "DatasetManifest": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:DatasetManifest:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "DatasetManifest"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "dataset_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "episode_refs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "split_ref": {
            "$ref": "#/$defs/ref"
          },
          "filters": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/parameter"
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "transform_refs": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ref"
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "$ref": "#/$defs/rights"
          },
          "target_schema": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "checksums": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "locator": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                }
              },
              "required": [
                "locator",
                "sha256"
              ],
              "additionalProperties": false
            },
            "minItems": 1,
            "maxItems": 10000
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "dataset_id",
          "version",
          "episode_refs",
          "split_ref",
          "filters",
          "transform_refs",
          "rights",
          "target_schema",
          "checksums"
        ],
        "additionalProperties": false
      },
      "PolicyGrant": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:PolicyGrant:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "PolicyGrant"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "grant_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "workspace_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "principal": {
            "type": "object",
            "properties": {
              "principal_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "kind": {
                "type": "string",
                "enum": [
                  "user",
                  "service",
                  "agent"
                ]
              }
            },
            "required": [
              "principal_id",
              "kind"
            ],
            "additionalProperties": false
          },
          "allowed_actions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "inspect",
                "prepare",
                "execute",
                "cancel",
                "verify",
                "export",
                "train",
                "publish",
                "transfer"
              ]
            },
            "minItems": 1,
            "maxItems": 10000
          },
          "data_scopes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "asset_ref": {
                  "$ref": "#/$defs/ref"
                },
                "actions": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 1,
                  "maxItems": 10000
                }
              },
              "required": [
                "asset_ref",
                "actions"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "resource_limits": {
            "$ref": "#/$defs/limits"
          },
          "expires_at": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "grant_id",
          "workspace_id",
          "principal",
          "allowed_actions",
          "data_scopes",
          "resource_limits",
          "expires_at"
        ],
        "additionalProperties": false
      },
      "BudgetReservation": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "urn:worldfuzz:entity:BudgetReservation:1.0.0",
        "$defs": {
          "ref": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": [
              "id",
              "version"
            ],
            "additionalProperties": false
          },
          "parameter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "value": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    },
                    "minItems": 0,
                    "maxItems": 10000
                  }
                ]
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "limits": {
            "type": "object",
            "properties": {
              "wall_seconds": {
                "type": "number",
                "minimum": 0
              },
              "cpu_seconds": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "memory_bytes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "artifact_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "model_calls": {
                "type": "integer",
                "minimum": 0
              },
              "device_calls": {
                "type": "integer",
                "minimum": 0
              }
            },
            "required": [
              "wall_seconds",
              "cpu_seconds",
              "memory_bytes",
              "artifact_bytes",
              "model_calls",
              "device_calls"
            ],
            "additionalProperties": false
          },
          "usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "basis": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "value",
                "unit",
                "basis"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "rights": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "subject": {
                  "type": "string",
                  "enum": [
                    "data",
                    "code",
                    "model",
                    "scene"
                  ]
                },
                "license": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "declared",
                    "verified",
                    "unknown",
                    "conflict"
                  ]
                },
                "allowed_uses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "inspect",
                      "evaluate",
                      "train",
                      "export",
                      "redistribute"
                    ]
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "evidence_urls": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                },
                "limitations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4096
                  },
                  "minItems": 0,
                  "maxItems": 10000
                }
              },
              "required": [
                "subject",
                "license",
                "status",
                "allowed_uses",
                "evidence_urls",
                "limitations"
              ],
              "additionalProperties": false
            },
            "minItems": 4,
            "maxItems": 10000
          },
          "signal": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "dtype": {
                "type": "string",
                "enum": [
                  "float32",
                  "float64",
                  "int32",
                  "int64",
                  "uint8",
                  "bool",
                  "text"
                ]
              },
              "shape": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 0,
                "maxItems": 10000
              },
              "unit": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "frame": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "semantic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "rate_hz": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "dtype",
              "shape",
              "unit",
              "frame",
              "semantic",
              "rate_hz"
            ],
            "additionalProperties": false
          }
        },
        "type": "object",
        "properties": {
          "entity_type": {
            "const": "BudgetReservation"
          },
          "schema_version": {
            "const": "1.0.0"
          },
          "reservation_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "workspace_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "plan_digest": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "limits": {
            "$ref": "#/$defs/limits"
          },
          "estimated_usage": {
            "$ref": "#/$defs/usage"
          },
          "actual_usage": {
            "$ref": "#/$defs/usage"
          },
          "unknown_usage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "phase": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "resource": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "reason": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 4096
                }
              },
              "required": [
                "phase",
                "resource",
                "reason"
              ],
              "additionalProperties": false
            },
            "minItems": 0,
            "maxItems": 10000
          },
          "expires_at": {
            "type": "number",
            "minimum": 0
          },
          "state": {
            "type": "string",
            "enum": [
              "reserved",
              "consuming",
              "reconciling",
              "released",
              "expired"
            ]
          }
        },
        "required": [
          "entity_type",
          "schema_version",
          "reservation_id",
          "workspace_id",
          "plan_digest",
          "limits",
          "estimated_usage",
          "actual_usage",
          "unknown_usage",
          "expires_at",
          "state"
        ],
        "additionalProperties": false
      },
      "ExactNanoseconds": {
        "type": "string",
        "pattern": "-?(0|[1-9][0-9]*)",
        "maxLength": 40
      }
    }
  }
}
