{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://bound-method.github.io/docs/reference/schemas/agent-context.schema.json",
  "title": "BOUND Agent Execution Context",
  "description": "Proposed machine-readable handoff context for an agent operating within an existing BOUND boundary.",
  "type": "object",
  "additionalProperties": false,
  "required": ["version", "mission", "boundary", "allowed_changes", "contracts", "acceptance", "verification", "authority"],
  "properties": {
    "version": { "type": "string", "minLength": 1 },
    "mission": { "type": "string", "minLength": 1 },
    "boundary": { "type": "string", "minLength": 1 },
    "owner": { "type": "string", "minLength": 1 },
    "allowed_changes": { "type": "array", "items": { "type": "string" } },
    "forbidden_changes": { "type": "array", "items": { "type": "string" } },
    "inputs": { "type": "array", "items": { "type": "string" } },
    "outputs": { "type": "array", "items": { "type": "string" } },
    "dependencies": { "type": "array", "items": { "type": "string" } },
    "contracts": { "type": "array", "items": { "type": "string" } },
    "constraints": { "type": "array", "items": { "type": "string" } },
    "forbidden_assumptions": { "type": "array", "items": { "type": "string" } },
    "acceptance": { "type": "array", "items": { "type": "string" } },
    "verification": { "type": "array", "items": { "type": "string" } },
    "authority": {
      "type": "object",
      "additionalProperties": false,
      "required": ["tools", "filesystem", "network", "credentials", "approval"],
      "properties": {
        "tools": { "type": "array", "items": { "type": "string" } },
        "filesystem": { "type": "array", "items": { "type": "string" } },
        "network": { "type": "array", "items": { "type": "string" } },
        "credentials": { "type": "array", "items": { "type": "string" } },
        "approval": { "type": "string", "minLength": 1 }
      }
    }
  }
}
