{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/os-runtime-execution-plan.schema.json",
  "title": "OS Runtime Execution Plan",
  "description": "Execution plan showing how Wever Labs OS moves an agent run through supported rails, operating tools, credit settlement, result contracts, receipts, callbacks, exceptions, and replay.",
  "type": "object",
  "required": [
    "object_type",
    "plan_id",
    "requested_tool",
    "runtime_path",
    "control_points",
    "output_contract",
    "created_at"
  ],
  "additionalProperties": true,
  "properties": {
    "object_type": {
      "type": "string",
      "const": "os_runtime_execution_plan"
    },
    "plan_id": {
      "type": "string"
    },
    "requested_tool": {
      "type": "string"
    },
    "runtime_path": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "control_points": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "credit_policy": {
      "type": "object",
      "additionalProperties": true
    },
    "settlement_policy": {
      "type": "object",
      "additionalProperties": true
    },
    "output_contract": {
      "type": "object",
      "additionalProperties": true
    },
    "callback_policy": {
      "type": "object",
      "additionalProperties": true
    },
    "exception_policy": {
      "type": "object",
      "additionalProperties": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
