# Generated public contract; edit the source and localization catalog.
openapi: 3.1.0
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
info:
  title: OrbitSpace Workspaces and capabilities API
  version: 1.0.0
  description: Public v1 application contract for workspaces and capabilities. Protocol lifecycle and capability availability are documented in the integration guides.
servers:
  - url: https://api.orbitspace.dev
security:
  - bearerAuth: []
paths:
  /api/v1/agent-versions/{agent_version_id}/model-catalog:
    get:
      tags:
        - AgentService
      description: |-
        GetModelCatalog discovers the models and reasoning efforts currently
         advertised by the provider selected by an immutable Agent Version.
      operationId: AgentService_GetModelCatalog
      parameters:
        - name: agent_version_id
          in: path
          required: true
          schema:
            type: string
          description: Agent version id.
        - name: refresh
          in: query
          schema:
            type: boolean
          description: Refresh.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ModelCatalog"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get model catalog
  /api/v1/agent-versions/{agent_version_id}:probe-model-compatibility:
    post:
      tags:
        - AgentService
      description: |-
        ProbeModelCompatibility performs an explicit, bounded compatibility check
         against the provider route selected by an immutable Agent Version. The
         response contains capabilities only; provider output and credentials are
         never returned to the caller.
      operationId: AgentService_ProbeModelCompatibility
      parameters:
        - name: agent_version_id
          in: path
          required: true
          schema:
            type: string
          description: Agent version id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ProbeModelCompatibilityRequest"
        required: true
        description: Request body for probe model compatibility.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ModelCompatibilityReport"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Probe model compatibility
  /api/v1/agent-versions/{id}:
    get:
      tags:
        - AgentService
      operationId: AgentService_GetAgentVersion
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AgentVersion"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get Agent version
      description: Get Agent version.
  /api/v1/agents:
    get:
      tags:
        - AgentService
      operationId: AgentService_ListAgents
      parameters:
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: include_archived
          in: query
          schema:
            type: boolean
          description: Include archived.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAgentsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List agents
      description: List agents. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - AgentService
      operationId: AgentService_CreateAgent
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAgentRequest"
        required: true
        description: Request body for create agent.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Agent"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create Agent
      description: Create Agent. Supply the fields defined in the request schema.
  /api/v1/agents/{agent_id}/versions:
    get:
      tags:
        - AgentService
      operationId: AgentService_ListAgentVersions
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
          description: Agent id.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListAgentVersionsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List Agent versions
      description: List Agent versions. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - AgentService
      operationId: AgentService_CreateAgentVersion
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
          description: Agent id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateAgentVersionRequest"
        required: true
        description: Request body for create agent version.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AgentVersion"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create Agent version
      description: Create Agent version. Supply the fields defined in the request schema.
  /api/v1/agents/{id}:
    get:
      tags:
        - AgentService
      operationId: AgentService_GetAgent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Agent"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get Agent
      description: Get Agent.
  /api/v1/agents/{id}:archive:
    post:
      tags:
        - AgentService
      operationId: AgentService_ArchiveAgent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ArchiveAgentRequest"
        required: true
        description: Request body for archive agent.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Agent"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Archive Agent
      description: Archive Agent. Supply the fields defined in the request schema.
  /api/v1/agents/{id}:restore:
    post:
      tags:
        - AgentService
      operationId: AgentService_RestoreAgent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RestoreAgentRequest"
        required: true
        description: Request body for restore agent.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Agent"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Restore Agent
      description: Restore Agent. Supply the fields defined in the request schema.
  /api/v1/environment-versions/{id}:
    get:
      tags:
        - EnvironmentService
      operationId: EnvironmentService_GetEnvironmentVersion
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EnvironmentVersion"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get environment version
      description: Get environment version.
  /api/v1/environments:
    get:
      tags:
        - EnvironmentService
      operationId: EnvironmentService_ListEnvironments
      parameters:
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: include_archived
          in: query
          schema:
            type: boolean
          description: Include archived.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEnvironmentsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List environments
      description: List environments. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - EnvironmentService
      operationId: EnvironmentService_CreateEnvironment
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateEnvironmentRequest"
        required: true
        description: Request body for create environment.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AgentEnvironment"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create environment
      description: Create environment. Supply the fields defined in the request schema.
  /api/v1/environments/{agent_environment_id}/versions:
    get:
      tags:
        - EnvironmentService
      operationId: EnvironmentService_ListEnvironmentVersions
      parameters:
        - name: agent_environment_id
          in: path
          required: true
          schema:
            type: string
          description: Agent environment id.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListEnvironmentVersionsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List environment versions
      description: List environment versions. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - EnvironmentService
      operationId: EnvironmentService_CreateEnvironmentVersion
      parameters:
        - name: agent_environment_id
          in: path
          required: true
          schema:
            type: string
          description: Agent environment id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateEnvironmentVersionRequest"
        required: true
        description: Request body for create environment version.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EnvironmentVersion"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create environment version
      description: Create environment version. Supply the fields defined in the request schema.
  /api/v1/environments/{id}:
    get:
      tags:
        - EnvironmentService
      operationId: EnvironmentService_GetEnvironment
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AgentEnvironment"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get environment
      description: Get environment.
  /api/v1/environments/{id}:archive:
    post:
      tags:
        - EnvironmentService
      operationId: EnvironmentService_ArchiveEnvironment
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ArchiveEnvironmentRequest"
        required: true
        description: Request body for archive environment.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AgentEnvironment"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Archive environment
      description: Archive environment. Supply the fields defined in the request schema.
  /api/v1/environments/{id}:restore:
    post:
      tags:
        - EnvironmentService
      operationId: EnvironmentService_RestoreEnvironment
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RestoreEnvironmentRequest"
        required: true
        description: Request body for restore environment.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AgentEnvironment"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Restore environment
      description: Restore environment. Supply the fields defined in the request schema.
  /api/v1/execution-engines:
    get:
      tags:
        - AgentService
      description: |-
        Deployment-owned execution admission, shared by all replicas. Historical
         Agent Versions remain readable even when their engine is disabled.
      operationId: AgentService_GetExecutionEnginePolicy
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ExecutionEnginePolicy"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get execution engine policy
  /api/v1/memories:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_ListMemories
      parameters:
        - name: scope
          in: query
          schema:
            enum:
              - MEMORY_SCOPE_UNSPECIFIED
              - MEMORY_SCOPE_TENANT
              - MEMORY_SCOPE_AGENT
              - MEMORY_SCOPE_WORKSPACE
              - MEMORY_SCOPE_TASK
            type: string
            format: enum
            description: Scope.
            x-enum-descriptions:
              MEMORY_SCOPE_UNSPECIFIED: unspecified
              MEMORY_SCOPE_TENANT: tenant
              MEMORY_SCOPE_AGENT: Agent
              MEMORY_SCOPE_WORKSPACE: workspace
              MEMORY_SCOPE_TASK: task
          description: Scope.
        - name: agent_id
          in: query
          schema:
            type: string
          description: Agent id.
        - name: workspace_id
          in: query
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: task_id
          in: query
          schema:
            type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        - name: kind
          in: query
          schema:
            enum:
              - MEMORY_KIND_UNSPECIFIED
              - MEMORY_KIND_NOTE
              - MEMORY_KIND_EPISODIC
            type: string
            format: enum
            description: Kind.
            x-enum-descriptions:
              MEMORY_KIND_UNSPECIFIED: unspecified
              MEMORY_KIND_NOTE: note
              MEMORY_KIND_EPISODIC: episodic
          description: Kind.
        - name: include_suspicious
          in: query
          schema:
            type: boolean
          description: Include suspicious.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: execution.run_id
          in: query
          schema:
            type: string
          description: Execution run id.
        - name: execution.worker_id
          in: query
          schema:
            type: string
          description: Execution worker id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMemoriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List memories
      description: List memories. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - MemoryService
      operationId: MemoryService_CreateMemory
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMemoryRequest"
        required: true
        description: Request body for create memory.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Memory"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create memory
      description: Create memory. Supply the fields defined in the request schema.
  /api/v1/memories/{id}:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_GetMemory
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
        - name: execution.run_id
          in: query
          schema:
            type: string
          description: Execution run id.
        - name: execution.worker_id
          in: query
          schema:
            type: string
          description: Execution worker id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Memory"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get memory
      description: Get memory.
    delete:
      tags:
        - MemoryService
      operationId: MemoryService_DeleteMemory
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
        - name: reason
          in: query
          schema:
            type: string
          description: Reason.
        - name: idempotency_key
          in: query
          schema:
            type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
        - name: execution.run_id
          in: query
          schema:
            type: string
          description: Execution run id.
        - name: execution.worker_id
          in: query
          schema:
            type: string
          description: Execution worker id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/DeleteMemoryResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Delete memory
      description: Delete memory.
  /api/v1/memories/{id}/content:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_GetMemoryContent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
        - name: content_digest
          in: query
          schema:
            type: string
          description: Content digest.
        - name: offset_bytes
          in: query
          schema:
            type: string
          description: Offset bytes.
        - name: max_bytes
          in: query
          schema:
            type: integer
            format: int32
          description: Max bytes.
        - name: execution.run_id
          in: query
          schema:
            type: string
          description: Execution run id.
        - name: execution.worker_id
          in: query
          schema:
            type: string
          description: Execution worker id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryContentPage"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get memory content
      description: Get memory content.
  /api/v1/memories/{id}/head:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_GetMemoryRevisionHead
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
        - name: execution.run_id
          in: query
          schema:
            type: string
          description: Execution run id.
        - name: execution.worker_id
          in: query
          schema:
            type: string
          description: Execution worker id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Memory"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get memory revision head
      description: Get memory revision head.
  /api/v1/memories/{id}/revisions:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_ListMemoryRevisions
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
        - name: include_suspicious
          in: query
          schema:
            type: boolean
          description: Include suspicious.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: execution.run_id
          in: query
          schema:
            type: string
          description: Execution run id.
        - name: execution.worker_id
          in: query
          schema:
            type: string
          description: Execution worker id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMemoriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List memory revisions
      description: List memory revisions. Use the declared pagination parameters to continue through results.
  /api/v1/memories/{id}:revise:
    post:
      tags:
        - MemoryService
      operationId: MemoryService_ReviseMemory
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReviseMemoryRequest"
        required: true
        description: Request body for revise memory.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Memory"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Revise memory
      description: Revise memory. Supply the fields defined in the request schema.
  /api/v1/memories:search:
    post:
      tags:
        - MemoryService
      operationId: MemoryService_SearchMemories
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SearchMemoriesRequest"
        required: true
        description: Request body for search memories.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SearchMemoriesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Search memories
      description: Search memories. Supply the fields defined in the request schema.
  /api/v1/memories:search-index:
    post:
      tags:
        - MemoryService
      operationId: MemoryService_SearchMemoryIndex
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SearchMemoryIndexRequest"
        required: true
        description: Request body for search memory index.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/SearchMemoryIndexResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Search memory index
      description: Search memory index. Supply the fields defined in the request schema.
  /api/v1/memory-candidates:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_ListMemoryCandidates
      parameters:
        - name: status
          in: query
          schema:
            type: string
          description: Status.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMemoryCandidatesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List memory candidates
      description: List memory candidates. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - MemoryService
      operationId: MemoryService_ProposeMemoryCandidate
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ProposeMemoryCandidateRequest"
        required: true
        description: Request body for propose memory candidate.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryCandidate"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Propose memory candidate
      description: Propose memory content for review. A candidate is distinct from published shared memory; publication follows the configured review and authorization policy.
  /api/v1/memory-candidates/{id}:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_GetMemoryCandidate
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
        - name: execution.run_id
          in: query
          schema:
            type: string
          description: Execution run id.
        - name: execution.worker_id
          in: query
          schema:
            type: string
          description: Execution worker id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryCandidate"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get memory candidate
      description: Get memory candidate.
  /api/v1/memory-candidates/{id}/agent-review:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_GetMemoryAgentReview
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryAgentReview"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get memory Agent review
      description: Get memory Agent review.
  /api/v1/memory-candidates/{id}:assign-review:
    post:
      tags:
        - MemoryService
      operationId: MemoryService_AssignMemoryAgentReview
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AssignMemoryAgentReviewRequest"
        required: true
        description: Request body for assign memory agent review.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryAgentReview"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Assign memory Agent review
      description: Assign memory Agent review. Supply the fields defined in the request schema.
  /api/v1/memory-candidates/{id}:cancel-review:
    post:
      tags:
        - MemoryService
      operationId: MemoryService_CancelMemoryAgentReview
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CancelMemoryAgentReviewRequest"
        required: true
        description: Request body for cancel memory agent review.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryAgentReview"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Cancel memory Agent review
      description: Cancel memory Agent review. Supply the fields defined in the request schema.
  /api/v1/memory-candidates/{id}:review:
    post:
      tags:
        - MemoryService
      operationId: MemoryService_ReviewMemoryCandidate
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReviewMemoryCandidateRequest"
        required: true
        description: Request body for review memory candidate.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryCandidate"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Review memory candidate
      description: Review memory candidate. Supply the fields defined in the request schema.
  /api/v1/memory-index-head:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_GetMemoryIndexHead
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryIndexHead"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get memory index head
      description: Get memory index head.
  /api/v1/memory-index-head:activate:
    post:
      tags:
        - MemoryService
      operationId: MemoryService_ActivateMemoryIndex
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ActivateMemoryIndexRequest"
        required: true
        description: Request body for activate memory index.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryIndexHead"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Activate memory index
      description: Activate memory index. Supply the fields defined in the request schema.
  /api/v1/memory-indexes:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_ListMemoryIndexMigrations
      parameters:
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListMemoryIndexMigrationsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List memory index migrations
      description: List memory index migrations. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - MemoryService
      operationId: MemoryService_CreateMemoryIndexMigration
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateMemoryIndexMigrationRequest"
        required: true
        description: Request body for create memory index migration.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryIndexGeneration"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create memory index migration
      description: Create memory index migration. Supply the fields defined in the request schema.
  /api/v1/memory-indexes/{id}:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_GetMemoryIndexMigration
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryIndexGeneration"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get memory index migration
      description: Get memory index migration.
  /api/v1/memory-indexes/{id}:cancel:
    post:
      tags:
        - MemoryService
      operationId: MemoryService_CancelMemoryIndexMigration
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CancelMemoryIndexMigrationRequest"
        required: true
        description: Request body for cancel memory index migration.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryIndexGeneration"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Cancel memory index migration
      description: Cancel memory index migration. Supply the fields defined in the request schema.
  /api/v1/memory-indexes/{id}:retry:
    post:
      tags:
        - MemoryService
      operationId: MemoryService_RetryMemoryIndexMigration
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RetryMemoryIndexMigrationRequest"
        required: true
        description: Request body for retry memory index migration.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryIndexGeneration"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Retry memory index migration
      description: Retry memory index migration. Supply the fields defined in the request schema.
  /api/v1/memory-runtime-policy:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_GetMemoryRuntimePolicy
      parameters:
        - name: scope
          in: query
          schema:
            enum:
              - MEMORY_SCOPE_UNSPECIFIED
              - MEMORY_SCOPE_TENANT
              - MEMORY_SCOPE_AGENT
              - MEMORY_SCOPE_WORKSPACE
              - MEMORY_SCOPE_TASK
            type: string
            format: enum
            description: Scope.
            x-enum-descriptions:
              MEMORY_SCOPE_UNSPECIFIED: unspecified
              MEMORY_SCOPE_TENANT: tenant
              MEMORY_SCOPE_AGENT: Agent
              MEMORY_SCOPE_WORKSPACE: workspace
              MEMORY_SCOPE_TASK: task
          description: Scope.
        - name: resource_id
          in: query
          schema:
            type: string
          description: Resource id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryRuntimePolicy"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get memory Runtime policy
      description: Get memory Runtime policy.
    put:
      tags:
        - MemoryService
      operationId: MemoryService_SetMemoryRuntimePolicy
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SetMemoryRuntimePolicyRequest"
        required: true
        description: Request body for set memory runtime policy.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MemoryRuntimePolicy"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Set memory Runtime policy
      description: Set memory Runtime policy. Supply the fields defined in the request schema.
  /api/v1/memory-runtime-policy/effective:
    get:
      tags:
        - MemoryService
      operationId: MemoryService_GetEffectiveMemoryRuntimePolicy
      parameters:
        - name: execution.run_id
          in: query
          schema:
            type: string
          description: Execution run id.
        - name: execution.worker_id
          in: query
          schema:
            type: string
          description: Execution worker id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/EffectiveMemoryRuntimePolicy"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get effective memory Runtime policy
      description: Get effective memory Runtime policy.
  /api/v1/registry/bundles:import:
    post:
      tags:
        - RegistryService
      operationId: RegistryService_ImportRegistryBundle
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ImportRegistryBundleRequest"
        required: true
        description: Request body for import registry bundle.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RegistryBundleResult"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Import registry bundle
      description: Import registry bundle. Supply the fields defined in the request schema.
  /api/v1/registry/bundles:validate:
    post:
      tags:
        - RegistryService
      operationId: RegistryService_ValidateRegistryBundle
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ValidateRegistryBundleRequest"
        required: true
        description: Request body for validate registry bundle.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RegistryBundleResult"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Validate registry bundle
      description: Validate registry bundle. Supply the fields defined in the request schema.
  /api/v1/registry/model-policies:resolve:
    post:
      tags:
        - RegistryService
      operationId: RegistryService_ResolveModelPolicy
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ResolveModelPolicyRequest"
        required: true
        description: Request body for resolve model policy.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResolvedModelRoute"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Resolve model policy
      description: Resolve model policy. Supply the fields defined in the request schema.
  /api/v1/registry/model-providers/{registry_version_id}/health:
    get:
      tags:
        - RegistryService
      operationId: RegistryService_GetModelProviderHealth
      parameters:
        - name: registry_version_id
          in: path
          required: true
          schema:
            type: string
          description: Registry version id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ModelProviderHealth"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get model provider health
      description: Get model provider health.
  /api/v1/registry/resources:
    get:
      tags:
        - RegistryService
      operationId: RegistryService_ListRegistryResources
      parameters:
        - name: kind
          in: query
          schema:
            enum:
              - REGISTRY_KIND_UNSPECIFIED
              - REGISTRY_KIND_KNOWLEDGE
              - REGISTRY_KIND_TOOL
              - REGISTRY_KIND_WORKFLOW
              - REGISTRY_KIND_EVALUATOR
              - REGISTRY_KIND_CAPABILITY
              - REGISTRY_KIND_RUNTIME_PROFILE
              - REGISTRY_KIND_MODEL_PROVIDER
              - REGISTRY_KIND_MODEL_POLICY
              - REGISTRY_KIND_SKILL
              - REGISTRY_KIND_MCP_SERVER
            type: string
            format: enum
            description: Kind.
            x-enum-descriptions:
              REGISTRY_KIND_UNSPECIFIED: unspecified
              REGISTRY_KIND_KNOWLEDGE: knowledge
              REGISTRY_KIND_TOOL: tool
              REGISTRY_KIND_WORKFLOW: workflow
              REGISTRY_KIND_EVALUATOR: evaluator
              REGISTRY_KIND_CAPABILITY: capability
              REGISTRY_KIND_RUNTIME_PROFILE: Runtime profile
              REGISTRY_KIND_MODEL_PROVIDER: model provider
              REGISTRY_KIND_MODEL_POLICY: model policy
              REGISTRY_KIND_SKILL: Skill
              REGISTRY_KIND_MCP_SERVER: MCP server
          description: Kind.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: include_archived
          in: query
          schema:
            type: boolean
          description: Include archived.
        - name: include_global
          in: query
          schema:
            type: boolean
          description: Include global.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRegistryResourcesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List registry resources
      description: List registry resources. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - RegistryService
      operationId: RegistryService_CreateRegistryResource
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateRegistryResourceRequest"
        required: true
        description: Request body for create registry resource.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RegistryResource"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create registry resource
      description: Create registry resource. Supply the fields defined in the request schema.
  /api/v1/registry/resources/{id}:
    get:
      tags:
        - RegistryService
      operationId: RegistryService_GetRegistryResource
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RegistryResource"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get registry resource
      description: Get registry resource.
  /api/v1/registry/resources/{id}:archive:
    post:
      tags:
        - RegistryService
      operationId: RegistryService_ArchiveRegistryResource
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ArchiveRegistryResourceRequest"
        required: true
        description: Request body for archive registry resource.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RegistryResource"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Archive registry resource
      description: Archive registry resource. Supply the fields defined in the request schema.
  /api/v1/registry/resources/{id}:restore:
    post:
      tags:
        - RegistryService
      operationId: RegistryService_RestoreRegistryResource
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RestoreRegistryResourceRequest"
        required: true
        description: Request body for restore registry resource.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RegistryResource"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Restore registry resource
      description: Restore registry resource. Supply the fields defined in the request schema.
  /api/v1/registry/resources/{registry_resource_id}/versions:
    get:
      tags:
        - RegistryService
      operationId: RegistryService_ListRegistryVersions
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: Registry resource id.
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListRegistryVersionsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List registry versions
      description: List registry versions. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - RegistryService
      operationId: RegistryService_PublishRegistryVersion
      parameters:
        - name: registry_resource_id
          in: path
          required: true
          schema:
            type: string
          description: Registry resource id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PublishRegistryVersionRequest"
        required: true
        description: Request body for publish registry version.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RegistryVersion"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Publish registry version
      description: Publish registry version. Supply the fields defined in the request schema.
  /api/v1/registry/versions/{id}:
    get:
      tags:
        - RegistryService
      operationId: RegistryService_GetRegistryVersion
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RegistryVersion"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get registry version
      description: Get registry version.
  /api/v1/registry:resolve:
    post:
      tags:
        - RegistryService
      operationId: RegistryService_ResolveRegistryReference
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ResolveRegistryReferenceRequest"
        required: true
        description: Request body for resolve registry reference.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResolvedRegistryReference"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Resolve registry reference
      description: Resolve registry reference. Supply the fields defined in the request schema.
  /api/v1/skills:package:
    post:
      tags:
        - RegistryService
      description: |-
        Packages regular files into a validated tenant Skill bundle without
         installing or executing them. Publication uses the existing Registry import.
      operationId: RegistryService_PackageSkillBundle
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PackageSkillBundleRequest"
        required: true
        description: Request body for package skill bundle.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PackageSkillBundleResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Package Skill bundle
  /api/v1/workspaces:
    get:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_ListWorkspaces
      parameters:
        - name: page_size
          in: query
          schema:
            type: integer
            format: int32
          description: Requested page size, subject to the endpoint limits.
        - name: page_token
          in: query
          schema:
            type: string
          description: Opaque pagination token returned by the previous page. Do not construct or modify it.
        - name: include_archived
          in: query
          schema:
            type: boolean
          description: Include archived.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkspacesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List workspaces
      description: List workspaces. Use the declared pagination parameters to continue through results.
    post:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_CreateWorkspace
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkspaceRequest"
        required: true
        description: Request body for create workspace.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Workspace"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create workspace
      description: Create the persistent collaboration and access context for work. Repository bindings and per-task worktrees are separate resources; a new Task does not imply a new Workspace.
  /api/v1/workspaces/{id}:
    get:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_GetWorkspace
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Workspace"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get workspace
      description: Get workspace.
    patch:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_UpdateWorkspace
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateWorkspaceRequest"
        required: true
        description: Request body for update workspace.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Workspace"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Update workspace
      description: Update workspace. Supply the fields defined in the request schema.
  /api/v1/workspaces/{id}:archive:
    post:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_ArchiveWorkspace
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ArchiveWorkspaceRequest"
        required: true
        description: Request body for archive workspace.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Workspace"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Archive workspace
      description: Archive workspace. Supply the fields defined in the request schema.
  /api/v1/workspaces/{id}:restore:
    post:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_RestoreWorkspace
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RestoreWorkspaceRequest"
        required: true
        description: Request body for restore workspace.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Workspace"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Restore workspace
      description: Restore workspace. Supply the fields defined in the request schema.
  /api/v1/workspaces/{source_workspace_id}/delegation-participants:
    get:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_ListWorkspaceDelegationParticipants
      parameters:
        - name: source_workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Source workspace id.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkspaceDelegationParticipantsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List workspace delegation participants
      description: List workspace delegation participants.
  /api/v1/workspaces/{target_workspace_id}/delegation-grants:
    get:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_ListWorkspaceDelegationGrants
      parameters:
        - name: target_workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Target workspace id.
        - name: include_revoked
          in: query
          schema:
            type: boolean
          description: Include revoked.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkspaceDelegationGrantsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List workspace delegation grants
      description: List workspace delegation grants.
    post:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_CreateWorkspaceDelegationGrant
      parameters:
        - name: target_workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Target workspace id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorkspaceDelegationGrantRequest"
        required: true
        description: Request body for create workspace delegation grant.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceDelegationGrant"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create workspace delegation grant
      description: Create workspace delegation grant. Supply the fields defined in the request schema.
  /api/v1/workspaces/{target_workspace_id}/delegation-grants/{id}:revoke:
    post:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_RevokeWorkspaceDelegationGrant
      parameters:
        - name: target_workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Target workspace id.
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RevokeWorkspaceDelegationGrantRequest"
        required: true
        description: Request body for revoke workspace delegation grant.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceDelegationGrant"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Revoke workspace delegation grant
      description: Revoke workspace delegation grant. Supply the fields defined in the request schema.
  /api/v1/workspaces/{workspace_id}/agents:
    get:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_ListWorkspaceAgents
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: include_removed
          in: query
          schema:
            type: boolean
          description: Include removed.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorkspaceAgentsResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List workspace agents
      description: List workspace agents.
    post:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_AddWorkspaceAgent
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AddWorkspaceAgentRequest"
        required: true
        description: Request body for add workspace agent.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceAgentBinding"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Add workspace Agent
      description: Add workspace Agent. Supply the fields defined in the request schema.
  /api/v1/workspaces/{workspace_id}/agents/{id}:remove:
    post:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_RemoveWorkspaceAgent
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RemoveWorkspaceAgentRequest"
        required: true
        description: Request body for remove workspace agent.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/WorkspaceAgentBinding"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Remove workspace Agent
      description: Remove workspace Agent. Supply the fields defined in the request schema.
  /api/v1/workspaces/{workspace_id}/worktrees:
    get:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_ListWorktrees
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: include_closed
          in: query
          schema:
            type: boolean
          description: Include closed.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ListWorktreesResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: List worktrees
      description: List worktrees.
    post:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_CreateWorktree
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateWorktreeRequest"
        required: true
        description: Request body for create worktree.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Worktree"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Create worktree
      description: Create worktree. Supply the fields defined in the request schema.
  /api/v1/workspaces/{workspace_id}/worktrees/{id}:
    get:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_GetWorktree
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Identifier of the resource addressed by this schema or URL.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Worktree"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Get worktree
      description: Get worktree.
  /api/v1/workspaces/{workspace_id}/worktrees/{source_worktree_id}:merge:
    post:
      tags:
        - WorkspaceService
      operationId: WorkspaceService_MergeWorktree
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        - name: source_worktree_id
          in: path
          required: true
          schema:
            type: string
          description: Source worktree id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/MergeWorktreeRequest"
        required: true
        description: Request body for merge worktree.
      responses:
        "200":
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/MergeWorktreeResponse"
        default:
          description: RFC 9457 Problem Details.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      summary: Merge worktree
      description: Request a worktree merge using the declared target and conflict options. Review the resulting merge state rather than treating an accepted request as a conflict-free merge.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
  schemas:
    ActivateMemoryIndexRequest:
      type: object
      properties:
        generation_id:
          type: string
          description: Empty returns to original lexical vectors only when every live record has them.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
      description: Activate memory index request.
    AddWorkspaceAgentRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        agent_version_id:
          type: string
          description: Agent version id.
        environment_version_id:
          type: string
          description: Environment version id.
        role:
          type: string
          description: Role.
        model_config:
          $ref: "#/components/schemas/ModelInvocationConfig"
          description: Model config.
        key:
          type: string
          description: Key.
        default_coordinator:
          type: boolean
          description: Default coordinator.
      description: Add workspace Agent request.
    Agent:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        name:
          type: string
          description: Name.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        archived_at:
          type: string
          format: date-time
          description: Archived at as an RFC 3339 timestamp.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Agent representation.
    AgentEnvironment:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        archived_at:
          type: string
          format: date-time
          description: Archived at as an RFC 3339 timestamp.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Agent environment representation.
    AgentVersion:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        agent_id:
          type: string
          description: Agent id.
        version:
          type: integer
          format: int32
          description: Version.
        instructions:
          type: string
          description: Instructions.
        model_profile:
          $ref: "#/components/schemas/ModelProfile"
          description: Model profile.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        content_digest:
          type: string
          description: Content digest.
        model_policy_ref:
          type: string
          description: Model policy ref.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Agent version representation.
    ArchiveAgentRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Archive Agent request.
    ArchiveEnvironmentRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Archive environment request.
    ArchiveRegistryResourceRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Archive registry resource request.
    ArchiveWorkspaceRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Archive workspace request.
    AssignMemoryAgentReviewRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        policy:
          $ref: "#/components/schemas/MemoryAgentReviewPolicy"
          description: Policy.
        allow_publication:
          type: boolean
          description: Explicit durable consent to publish if this independent review approves.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
      description: Assign memory Agent review request.
    CancelMemoryAgentReviewRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Cancel memory Agent review request.
    CancelMemoryIndexMigrationRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Cancel memory index migration request.
    CreateAgentRequest:
      type: object
      properties:
        name:
          type: string
          description: Name.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Create Agent request.
    CreateAgentVersionRequest:
      type: object
      properties:
        agent_id:
          type: string
          description: Agent id.
        version:
          type: integer
          format: int32
          description: Version.
        instructions:
          type: string
          description: Instructions.
        model_profile:
          $ref: "#/components/schemas/ModelProfile"
          description: Model profile.
        model_policy_ref:
          type: string
          description: Model policy ref.
      description: Create Agent version request.
    CreateEnvironmentRequest:
      type: object
      properties:
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Create environment request.
    CreateEnvironmentVersionRequest:
      type: object
      properties:
        agent_environment_id:
          type: string
          description: Agent environment id.
        version:
          type: string
          description: Version.
        manifest:
          $ref: "#/components/schemas/EnvironmentManifest"
          description: Manifest.
        manifest_yaml:
          type: string
          description: |-
            Raw orbitspace.dev/v1alpha1 YAML or JSON manifest. Console delivery imports
             use this field so the original protocol file can be validated server-side.
      description: Create environment version request.
    CreateMemoryIndexMigrationRequest:
      type: object
      properties:
        recipe:
          $ref: "#/components/schemas/MemoryEmbeddingRecipe"
          description: Recipe.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
      description: Create memory index migration request.
    CreateMemoryRequest:
      type: object
      properties:
        memory_id:
          type: string
          description: Memory id.
        scope:
          enum:
            - MEMORY_SCOPE_UNSPECIFIED
            - MEMORY_SCOPE_TENANT
            - MEMORY_SCOPE_AGENT
            - MEMORY_SCOPE_WORKSPACE
            - MEMORY_SCOPE_TASK
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            MEMORY_SCOPE_UNSPECIFIED: unspecified
            MEMORY_SCOPE_TENANT: tenant
            MEMORY_SCOPE_AGENT: Agent
            MEMORY_SCOPE_WORKSPACE: workspace
            MEMORY_SCOPE_TASK: task
        agent_id:
          type: string
          description: Agent id.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        kind:
          enum:
            - MEMORY_KIND_UNSPECIFIED
            - MEMORY_KIND_NOTE
            - MEMORY_KIND_EPISODIC
          type: string
          format: enum
          description: Kind.
          x-enum-descriptions:
            MEMORY_KIND_UNSPECIFIED: unspecified
            MEMORY_KIND_NOTE: note
            MEMORY_KIND_EPISODIC: episodic
        content:
          type: string
          description: Content.
        metadata:
          type: object
          description: Metadata.
        provenance:
          $ref: "#/components/schemas/MemoryProvenance"
          description: Provenance.
        consent_basis:
          enum:
            - MEMORY_CONSENT_BASIS_UNSPECIFIED
            - MEMORY_CONSENT_BASIS_EXPLICIT
            - MEMORY_CONSENT_BASIS_TASK_EXECUTION
            - MEMORY_CONSENT_BASIS_IMPORTED
          type: string
          format: enum
          description: Consent basis.
          x-enum-descriptions:
            MEMORY_CONSENT_BASIS_UNSPECIFIED: unspecified
            MEMORY_CONSENT_BASIS_EXPLICIT: explicit
            MEMORY_CONSENT_BASIS_TASK_EXECUTION: task execution
            MEMORY_CONSENT_BASIS_IMPORTED: imported
        retention_until:
          type: string
          format: date-time
          description: Retention until as an RFC 3339 timestamp.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
        policy_scope_id:
          type: string
          description: Policy scope id.
        execution:
          $ref: "#/components/schemas/MemoryExecution"
          description: Execution.
      description: Create memory request.
    CreateRegistryResourceRequest:
      type: object
      properties:
        kind:
          enum:
            - REGISTRY_KIND_UNSPECIFIED
            - REGISTRY_KIND_KNOWLEDGE
            - REGISTRY_KIND_TOOL
            - REGISTRY_KIND_WORKFLOW
            - REGISTRY_KIND_EVALUATOR
            - REGISTRY_KIND_CAPABILITY
            - REGISTRY_KIND_RUNTIME_PROFILE
            - REGISTRY_KIND_MODEL_PROVIDER
            - REGISTRY_KIND_MODEL_POLICY
            - REGISTRY_KIND_SKILL
            - REGISTRY_KIND_MCP_SERVER
          type: string
          format: enum
          description: Kind.
          x-enum-descriptions:
            REGISTRY_KIND_UNSPECIFIED: unspecified
            REGISTRY_KIND_KNOWLEDGE: knowledge
            REGISTRY_KIND_TOOL: tool
            REGISTRY_KIND_WORKFLOW: workflow
            REGISTRY_KIND_EVALUATOR: evaluator
            REGISTRY_KIND_CAPABILITY: capability
            REGISTRY_KIND_RUNTIME_PROFILE: Runtime profile
            REGISTRY_KIND_MODEL_PROVIDER: model provider
            REGISTRY_KIND_MODEL_POLICY: model policy
            REGISTRY_KIND_SKILL: Skill
            REGISTRY_KIND_MCP_SERVER: MCP server
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        scope:
          enum:
            - REGISTRY_SCOPE_UNSPECIFIED
            - REGISTRY_SCOPE_TENANT
            - REGISTRY_SCOPE_GLOBAL
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            REGISTRY_SCOPE_UNSPECIFIED: unspecified
            REGISTRY_SCOPE_TENANT: tenant
            REGISTRY_SCOPE_GLOBAL: global
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Create registry resource request.
    CreateWorkspaceDelegationGrantRequest:
      type: object
      properties:
        target_workspace_id:
          type: string
          description: Target workspace id.
        source_workspace_id:
          type: string
          description: Source workspace id.
        target_workspace_agent_binding_id:
          type: string
          description: Target workspace agent binding id.
        max_depth:
          type: integer
          format: int32
          description: Max depth.
        token_budget:
          type: string
          description: Token budget.
        cost_budget_microunits:
          type: string
          description: Cost budget microunits.
        compute_budget_ms:
          type: string
          description: Compute budget ms.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
        cost_budget_currency:
          type: string
          description: Cost budget currency.
      description: Create workspace delegation grant request.
    CreateWorkspaceRequest:
      type: object
      properties:
        policy_scope_id:
          type: string
          description: Policy scope id.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
      description: Create workspace request.
    CreateWorktreeRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        key:
          type: string
          description: Key.
        name:
          type: string
          description: Name.
        base_worktree_id:
          type: string
          description: Base worktree id.
      description: Create worktree request.
    DeleteMemoryResponse:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        deleted_at:
          type: string
          format: date-time
          description: Deleted at as an RFC 3339 timestamp.
      description: Delete memory response.
    EffectiveMemoryRuntimePolicy:
      type: object
      properties:
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        agent_id:
          type: string
          description: Agent id.
        use_scopes:
          type: array
          items:
            enum:
              - MEMORY_SCOPE_UNSPECIFIED
              - MEMORY_SCOPE_TENANT
              - MEMORY_SCOPE_AGENT
              - MEMORY_SCOPE_WORKSPACE
              - MEMORY_SCOPE_TASK
            type: string
            format: enum
            description: Use scopes.
            x-enum-descriptions:
              MEMORY_SCOPE_UNSPECIFIED: unspecified
              MEMORY_SCOPE_TENANT: tenant
              MEMORY_SCOPE_AGENT: Agent
              MEMORY_SCOPE_WORKSPACE: workspace
              MEMORY_SCOPE_TASK: task
          description: Use scopes list.
        contribute_scopes:
          type: array
          items:
            enum:
              - MEMORY_SCOPE_UNSPECIFIED
              - MEMORY_SCOPE_TENANT
              - MEMORY_SCOPE_AGENT
              - MEMORY_SCOPE_WORKSPACE
              - MEMORY_SCOPE_TASK
            type: string
            format: enum
            description: Contribute scopes.
            x-enum-descriptions:
              MEMORY_SCOPE_UNSPECIFIED: unspecified
              MEMORY_SCOPE_TENANT: tenant
              MEMORY_SCOPE_AGENT: Agent
              MEMORY_SCOPE_WORKSPACE: workspace
              MEMORY_SCOPE_TASK: task
          description: Contribute scopes list.
        sources:
          type: array
          items:
            $ref: "#/components/schemas/MemoryRuntimePolicy"
          description: Sources list.
      description: Effective memory runtime policy representation.
    EnvironmentManifest:
      type: object
      properties:
        api_version:
          type: string
          description: Api version.
        domain:
          type: string
          description: Domain.
        instructions:
          type: string
          description: Instructions.
        instructions_ref:
          type: string
          description: Instructions ref.
        knowledge_refs:
          type: array
          items:
            type: string
          description: Knowledge refs list.
        tool_bindings:
          type: array
          items:
            type: string
          description: Tool bindings list.
        runtime:
          $ref: "#/components/schemas/EnvironmentRuntimeSpec"
          description: Runtime configuration.
        capability_refs:
          type: array
          items:
            type: string
          description: Capability refs list.
        resource_types:
          type: array
          items:
            type: string
          description: Resource types list.
        policy_profile_id:
          type: string
          description: Policy profile id.
        workflow_refs:
          type: array
          items:
            type: string
          description: Workflow refs list.
        evaluator_refs:
          type: array
          items:
            type: string
          description: Evaluator refs list.
        workspace_snapshot:
          $ref: "#/components/schemas/WorkspaceSnapshotPolicy"
          description: Workspace snapshot.
        secret_refs:
          type: array
          items:
            type: string
          description: |-
            Secret references this Environment may resolve while executing a Run.
             Values remain opaque; the manifest never contains secret material.
        skill_refs:
          type: array
          items:
            type: string
          description: Exact immutable Skill references. Bodies/resources are loaded on demand.
      description: Environment manifest representation.
    EnvironmentRuntimeSpec:
      type: object
      properties:
        profile_id:
          type: string
          description: Profile id.
        image:
          type: string
          description: Image.
        packages:
          type: array
          items:
            type: string
          description: Packages list.
        constraints:
          type: object
          additionalProperties:
            type: string
          description: Constraints map.
      description: Environment runtime spec representation.
    EnvironmentVersion:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        agent_environment_id:
          type: string
          description: Agent environment id.
        version:
          type: string
          description: Version.
        schema_version:
          type: string
          description: Schema version.
        content_digest:
          type: string
          description: Content digest.
        manifest:
          $ref: "#/components/schemas/EnvironmentManifest"
          description: Manifest.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        resolution_graph:
          type: array
          items:
            $ref: "#/components/schemas/ResolvedRegistryReference"
          description: Resolution graph list.
        aggregate_digest:
          type: string
          description: Aggregate digest.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Environment version representation.
    ExecutionEnginePolicy:
      type: object
      properties:
        revision:
          type: string
          description: Revision.
        default_engine:
          type: string
          description: Default engine.
        enabled_engines:
          type: array
          items:
            type: string
          description: Enabled engines list.
        content_digest:
          type: string
          description: Content digest.
      description: Execution engine policy representation.
    ImportRegistryBundleRequest:
      type: object
      properties:
        bundle_json:
          type: string
          description: |-
            Original JSON is retained as text so signature normalization never loses
             integer precision through google.protobuf.Struct's double representation.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Import registry bundle request.
    ListAgentVersionsResponse:
      type: object
      properties:
        versions:
          type: array
          items:
            $ref: "#/components/schemas/AgentVersion"
          description: Versions list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List Agent versions response.
    ListAgentsResponse:
      type: object
      properties:
        agents:
          type: array
          items:
            $ref: "#/components/schemas/Agent"
          description: Agents list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List agents response.
    ListEnvironmentVersionsResponse:
      type: object
      properties:
        versions:
          type: array
          items:
            $ref: "#/components/schemas/EnvironmentVersion"
          description: Versions list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List environment versions response.
    ListEnvironmentsResponse:
      type: object
      properties:
        environments:
          type: array
          items:
            $ref: "#/components/schemas/AgentEnvironment"
          description: Environments list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List environments response.
    ListMemoriesResponse:
      type: object
      properties:
        memories:
          type: array
          items:
            $ref: "#/components/schemas/Memory"
          description: Memories list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List memories response.
    ListMemoryCandidatesResponse:
      type: object
      properties:
        candidates:
          type: array
          items:
            $ref: "#/components/schemas/MemoryCandidate"
          description: Candidates list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List memory candidates response.
    ListMemoryIndexMigrationsResponse:
      type: object
      properties:
        generations:
          type: array
          items:
            $ref: "#/components/schemas/MemoryIndexGeneration"
          description: Generations list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List memory index migrations response.
    ListRegistryResourcesResponse:
      type: object
      properties:
        resources:
          type: array
          items:
            $ref: "#/components/schemas/RegistryResource"
          description: Resources list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List registry resources response.
    ListRegistryVersionsResponse:
      type: object
      properties:
        versions:
          type: array
          items:
            $ref: "#/components/schemas/RegistryVersion"
          description: Versions list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List registry versions response.
    ListWorkspaceAgentsResponse:
      type: object
      properties:
        bindings:
          type: array
          items:
            $ref: "#/components/schemas/WorkspaceAgentBinding"
          description: Bindings list.
      description: List workspace agents response.
    ListWorkspaceDelegationGrantsResponse:
      type: object
      properties:
        grants:
          type: array
          items:
            $ref: "#/components/schemas/WorkspaceDelegationGrant"
          description: Grants list.
      description: List workspace delegation grants response.
    ListWorkspaceDelegationParticipantsResponse:
      type: object
      properties:
        participants:
          type: array
          items:
            $ref: "#/components/schemas/WorkspaceDelegationParticipant"
          description: Participants list.
      description: List workspace delegation participants response.
    ListWorkspacesResponse:
      type: object
      properties:
        workspaces:
          type: array
          items:
            $ref: "#/components/schemas/Workspace"
          description: Workspaces list.
        next_page_token:
          type: string
          description: Pagination token for the next page. An empty value indicates there is no next page.
      description: List workspaces response.
    ListWorktreesResponse:
      type: object
      properties:
        worktrees:
          type: array
          items:
            $ref: "#/components/schemas/Worktree"
          description: Worktrees list.
      description: List worktrees response.
    Memory:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        scope:
          enum:
            - MEMORY_SCOPE_UNSPECIFIED
            - MEMORY_SCOPE_TENANT
            - MEMORY_SCOPE_AGENT
            - MEMORY_SCOPE_WORKSPACE
            - MEMORY_SCOPE_TASK
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            MEMORY_SCOPE_UNSPECIFIED: unspecified
            MEMORY_SCOPE_TENANT: tenant
            MEMORY_SCOPE_AGENT: Agent
            MEMORY_SCOPE_WORKSPACE: workspace
            MEMORY_SCOPE_TASK: task
        agent_id:
          type: string
          description: Agent id.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        kind:
          enum:
            - MEMORY_KIND_UNSPECIFIED
            - MEMORY_KIND_NOTE
            - MEMORY_KIND_EPISODIC
          type: string
          format: enum
          description: Kind.
          x-enum-descriptions:
            MEMORY_KIND_UNSPECIFIED: unspecified
            MEMORY_KIND_NOTE: note
            MEMORY_KIND_EPISODIC: episodic
        content:
          type: string
          description: Content.
        metadata:
          type: object
          description: Metadata.
        provenance:
          $ref: "#/components/schemas/MemoryProvenance"
          description: Provenance.
        consent_basis:
          enum:
            - MEMORY_CONSENT_BASIS_UNSPECIFIED
            - MEMORY_CONSENT_BASIS_EXPLICIT
            - MEMORY_CONSENT_BASIS_TASK_EXECUTION
            - MEMORY_CONSENT_BASIS_IMPORTED
          type: string
          format: enum
          description: Consent basis.
          x-enum-descriptions:
            MEMORY_CONSENT_BASIS_UNSPECIFIED: unspecified
            MEMORY_CONSENT_BASIS_EXPLICIT: explicit
            MEMORY_CONSENT_BASIS_TASK_EXECUTION: task execution
            MEMORY_CONSENT_BASIS_IMPORTED: imported
        safety_status:
          enum:
            - MEMORY_SAFETY_STATUS_UNSPECIFIED
            - MEMORY_SAFETY_STATUS_ACCEPTED
            - MEMORY_SAFETY_STATUS_SUSPICIOUS
          type: string
          format: enum
          description: Safety status.
          x-enum-descriptions:
            MEMORY_SAFETY_STATUS_UNSPECIFIED: unspecified
            MEMORY_SAFETY_STATUS_ACCEPTED: accepted
            MEMORY_SAFETY_STATUS_SUSPICIOUS: suspicious
        safety_reasons:
          type: array
          items:
            type: string
          description: Safety reasons list.
        embedding_provider:
          type: string
          description: Embedding provider.
        embedding_model:
          type: string
          description: Embedding model.
        retention_until:
          type: string
          format: date-time
          description: Retention until as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        policy_scope_id:
          type: string
          description: Policy scope id.
        content_digest:
          type: string
          description: Content digest.
        embedding_dimensions:
          type: integer
          format: int32
          description: Embedding dimensions.
        revision_series_id:
          type: string
          description: Revision series id.
        revision:
          type: string
          description: Revision.
        previous_memory_id:
          type: string
          description: Previous memory id.
        revision_reason:
          type: string
          description: Revision reason.
        superseded_at:
          type: string
          format: date-time
          description: Superseded at as an RFC 3339 timestamp.
      description: Memory representation.
    MemoryAgentReview:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        candidate_id:
          type: string
          description: Candidate id.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        agent_id:
          type: string
          description: Agent id.
        authorized_by:
          type: string
          description: Authorized by.
        status:
          type: string
          description: Status.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        allow_publication:
          type: boolean
          description: Allow publication.
        decision:
          type: string
          description: Decision.
        evaluation:
          type: object
          description: Evaluation.
        usage:
          type: object
          description: Usage.
        error_code:
          type: string
          description: Error code.
        deadline_at:
          type: string
          format: date-time
          description: Deadline at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Memory agent review representation.
    MemoryAgentReviewPolicy:
      type: object
      properties:
        agent_version_id:
          type: string
          description: Agent version id.
        environment_version_id:
          type: string
          description: Environment version id.
        token_budget:
          type: string
          description: Token budget.
        cost_budget_microunits:
          type: string
          description: Cost budget microunits.
        compute_budget_ms:
          type: string
          description: Compute budget ms.
        deadline_ms:
          type: string
          description: Deadline ms.
      description: Memory agent review policy representation.
    MemoryCandidate:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        created_by:
          type: string
          description: Created by.
        producer_agent_id:
          type: string
          description: Producer agent id.
        producer_task_id:
          type: string
          description: Producer task id.
        operation:
          type: string
          description: Operation.
        status:
          type: string
          description: Status.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        target:
          $ref: "#/components/schemas/MemoryCandidateTarget"
          description: Target.
        sources:
          type: array
          items:
            $ref: "#/components/schemas/MemorySourceReference"
          description: Sources list.
        content:
          type: string
          description: Content.
        metadata:
          type: object
          description: Metadata.
        reason:
          type: string
          description: Reason.
        content_digest:
          type: string
          description: Content digest.
        output_memory_id:
          type: string
          description: Output memory id.
        reviewed_by:
          type: string
          description: Reviewed by.
        review_reason:
          type: string
          description: Review reason.
        reviewed_at:
          type: string
          format: date-time
          description: Reviewed at as an RFC 3339 timestamp.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        error_code:
          type: string
          description: Error code.
        attempts:
          type: integer
          format: int32
          description: Attempts.
        completion_evidence:
          type: object
          description: Service-derived source identities/digests, without source text or signed URLs.
        extraction_usage:
          type: object
          description: Bytes and compute time are not token estimates. The v1 adapter calls no model.
      description: Proposed memory awaiting the configured review and publication process; not yet equivalent to published shared memory.
    MemoryCandidateTarget:
      type: object
      properties:
        scope:
          enum:
            - MEMORY_SCOPE_UNSPECIFIED
            - MEMORY_SCOPE_TENANT
            - MEMORY_SCOPE_AGENT
            - MEMORY_SCOPE_WORKSPACE
            - MEMORY_SCOPE_TASK
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            MEMORY_SCOPE_UNSPECIFIED: unspecified
            MEMORY_SCOPE_TENANT: tenant
            MEMORY_SCOPE_AGENT: Agent
            MEMORY_SCOPE_WORKSPACE: workspace
            MEMORY_SCOPE_TASK: task
        agent_id:
          type: string
          description: Agent id.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        kind:
          enum:
            - MEMORY_KIND_UNSPECIFIED
            - MEMORY_KIND_NOTE
            - MEMORY_KIND_EPISODIC
          type: string
          format: enum
          description: Kind.
          x-enum-descriptions:
            MEMORY_KIND_UNSPECIFIED: unspecified
            MEMORY_KIND_NOTE: note
            MEMORY_KIND_EPISODIC: episodic
        series_id:
          type: string
          description: Series id.
        expected_revision:
          type: string
          description: Expected revision.
        retention_until:
          type: string
          format: date-time
          description: Retention until as an RFC 3339 timestamp.
      description: Memory candidate target representation.
    MemoryContentPage:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        content_digest:
          type: string
          description: Content digest.
        content:
          type: string
          description: Content.
        offset_bytes:
          type: string
          description: Offset bytes.
        next_offset_bytes:
          type: string
          description: Next offset bytes.
        total_bytes:
          type: string
          description: Total bytes.
        eof:
          type: boolean
          description: Eof.
      description: Memory content page representation.
    MemoryEmbeddingRecipe:
      type: object
      properties:
        provider:
          type: string
          description: Provider.
        model:
          type: string
          description: Model.
        dimensions:
          type: integer
          format: int32
          description: Dimensions.
        chunk_recipe:
          type: string
          description: Chunk recipe.
      description: Memory embedding recipe representation.
    MemoryExecution:
      type: object
      properties:
        run_id:
          type: string
          description: Identifier of an execution Run associated with a Task.
        worker_id:
          type: string
          description: Worker id.
      description: |-
        Worker calls require a currently leased Run owned by the credential identity.
         This context is transport data, never model-chosen tool arguments.
    MemoryIndexEntry:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        content_digest:
          type: string
          description: Content digest.
        preview:
          type: string
          description: Preview.
        content_bytes:
          type: string
          description: Content bytes.
        scope:
          enum:
            - MEMORY_SCOPE_UNSPECIFIED
            - MEMORY_SCOPE_TENANT
            - MEMORY_SCOPE_AGENT
            - MEMORY_SCOPE_WORKSPACE
            - MEMORY_SCOPE_TASK
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            MEMORY_SCOPE_UNSPECIFIED: unspecified
            MEMORY_SCOPE_TENANT: tenant
            MEMORY_SCOPE_AGENT: Agent
            MEMORY_SCOPE_WORKSPACE: workspace
            MEMORY_SCOPE_TASK: task
        agent_id:
          type: string
          description: Agent id.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        kind:
          enum:
            - MEMORY_KIND_UNSPECIFIED
            - MEMORY_KIND_NOTE
            - MEMORY_KIND_EPISODIC
          type: string
          format: enum
          description: Kind.
          x-enum-descriptions:
            MEMORY_KIND_UNSPECIFIED: unspecified
            MEMORY_KIND_NOTE: note
            MEMORY_KIND_EPISODIC: episodic
        provenance:
          $ref: "#/components/schemas/MemoryProvenance"
          description: Provenance.
        retention_until:
          type: string
          format: date-time
          description: Retention until as an RFC 3339 timestamp.
        embedding_provider:
          type: string
          description: Embedding provider.
        embedding_model:
          type: string
          description: Embedding model.
        embedding_dimensions:
          type: integer
          format: int32
          description: Embedding dimensions.
        score:
          type: number
          format: double
          description: Score.
        index_generation_id:
          type: string
          description: Index generation id.
        match_offset_bytes:
          type: string
          description: Match offset bytes.
        match_end_bytes:
          type: string
          description: Match end bytes.
        revision_series_id:
          type: string
          description: Revision series id.
        revision:
          type: string
          description: Revision.
      description: |-
        An immutable reference and bounded preview. Exact content must be fetched
         again with current authorization, retention and quarantine checks.
    MemoryIndexGeneration:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        recipe:
          $ref: "#/components/schemas/MemoryEmbeddingRecipe"
          description: Recipe.
        status:
          enum:
            - MEMORY_INDEX_STATUS_UNSPECIFIED
            - MEMORY_INDEX_STATUS_BUILDING
            - MEMORY_INDEX_STATUS_READY
            - MEMORY_INDEX_STATUS_CANCELLED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            MEMORY_INDEX_STATUS_UNSPECIFIED: unspecified
            MEMORY_INDEX_STATUS_BUILDING: building
            MEMORY_INDEX_STATUS_READY: ready
            MEMORY_INDEX_STATUS_CANCELLED: cancelled
        pending:
          type: string
          description: Pending.
        running:
          type: string
          description: Running.
        done:
          type: string
          description: Done.
        failed:
          type: string
          description: Failed.
        active:
          type: boolean
          description: Active.
        created_by:
          type: string
          description: Created by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
      description: Memory index generation representation.
    MemoryIndexHead:
      type: object
      properties:
        generation_id:
          type: string
          description: Empty selects the original record namespace. Switching is always explicit.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        active_recipe:
          $ref: "#/components/schemas/MemoryEmbeddingRecipe"
          description: Active recipe.
        configured_recipe:
          $ref: "#/components/schemas/MemoryEmbeddingRecipe"
          description: Configured recipe.
        original_namespace_conflict:
          type: boolean
          description: An explicit migration is needed; active_recipe is absent for mixed originals.
      description: Memory index head representation.
    MemoryProvenance:
      type: object
      properties:
        source_kind:
          type: string
          description: Source kind.
        source_id:
          type: string
          description: Source id.
        source_uri:
          type: string
          description: Source uri.
        captured_at:
          type: string
          format: date-time
          description: Captured at as an RFC 3339 timestamp.
      description: Memory provenance representation.
    MemoryRuntimePolicy:
      type: object
      properties:
        scope:
          enum:
            - MEMORY_SCOPE_UNSPECIFIED
            - MEMORY_SCOPE_TENANT
            - MEMORY_SCOPE_AGENT
            - MEMORY_SCOPE_WORKSPACE
            - MEMORY_SCOPE_TASK
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            MEMORY_SCOPE_UNSPECIFIED: unspecified
            MEMORY_SCOPE_TENANT: tenant
            MEMORY_SCOPE_AGENT: Agent
            MEMORY_SCOPE_WORKSPACE: workspace
            MEMORY_SCOPE_TASK: task
        resource_id:
          type: string
          description: Resource id.
        use_scopes:
          type: array
          items:
            enum:
              - MEMORY_SCOPE_UNSPECIFIED
              - MEMORY_SCOPE_TENANT
              - MEMORY_SCOPE_AGENT
              - MEMORY_SCOPE_WORKSPACE
              - MEMORY_SCOPE_TASK
            type: string
            format: enum
            description: Use scopes.
            x-enum-descriptions:
              MEMORY_SCOPE_UNSPECIFIED: unspecified
              MEMORY_SCOPE_TENANT: tenant
              MEMORY_SCOPE_AGENT: Agent
              MEMORY_SCOPE_WORKSPACE: workspace
              MEMORY_SCOPE_TASK: task
          description: Use scopes list.
        contribute_scopes:
          type: array
          items:
            enum:
              - MEMORY_SCOPE_UNSPECIFIED
              - MEMORY_SCOPE_TENANT
              - MEMORY_SCOPE_AGENT
              - MEMORY_SCOPE_WORKSPACE
              - MEMORY_SCOPE_TASK
            type: string
            format: enum
            description: Contribute scopes.
            x-enum-descriptions:
              MEMORY_SCOPE_UNSPECIFIED: unspecified
              MEMORY_SCOPE_TENANT: tenant
              MEMORY_SCOPE_AGENT: Agent
              MEMORY_SCOPE_WORKSPACE: workspace
              MEMORY_SCOPE_TASK: task
          description: Contribute scopes list.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        updated_by:
          type: string
          description: Updated by.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        completion_extraction_enabled:
          type: boolean
          description: |-
            Tenant default is false; existing persisted overrides also fail closed.
             Completion extraction requires every effective policy to enable it.
        semantic_extraction:
          $ref: "#/components/schemas/MemorySemanticExtractionPolicy"
          description: Semantic extraction.
      description: Memory runtime policy representation.
    MemorySearchResult:
      type: object
      properties:
        memory:
          $ref: "#/components/schemas/Memory"
          description: Memory.
        score:
          type: number
          format: double
          description: Score.
        index_generation_id:
          type: string
          description: Index generation id.
        match_offset_bytes:
          type: string
          description: Match offset bytes.
        match_end_bytes:
          type: string
          description: Match end bytes.
        index_embedding_provider:
          type: string
          description: Index embedding provider.
        index_embedding_model:
          type: string
          description: Index embedding model.
        index_embedding_dimensions:
          type: integer
          format: int32
          description: Index embedding dimensions.
      description: Memory search result representation.
    MemorySemanticExtractionPolicy:
      type: object
      properties:
        agent_version_id:
          type: string
          description: Agent version id.
        environment_version_id:
          type: string
          description: Environment version id.
        token_budget:
          type: string
          description: Token budget.
        cost_budget_microunits:
          type: string
          description: Cost budget microunits.
        compute_budget_ms:
          type: string
          description: Compute budget ms.
        deadline_ms:
          type: string
          description: Deadline ms.
      description: Tenant-only opt-in. Omitted means no background model spend.
    MemorySourceReference:
      type: object
      properties:
        memory_id:
          type: string
          description: Memory id.
        content_digest:
          type: string
          description: Content digest.
      description: |-
        Suggestions are private until an independent administrator explicitly
         consents. A target series requests consolidation against an exact revision.
    MergeWorktreeRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        source_worktree_id:
          type: string
          description: Source worktree id.
        target_worktree_id:
          type: string
          description: Target worktree id.
        expected_source_state_version:
          type: string
          description: Expected source state version.
        expected_target_state_version:
          type: string
          description: Expected target state version.
      description: Merge worktree request.
    MergeWorktreeResponse:
      type: object
      properties:
        merged:
          type: boolean
          description: Merged.
        source:
          $ref: "#/components/schemas/Worktree"
          description: Source.
        target:
          $ref: "#/components/schemas/Worktree"
          description: Target.
        snapshot:
          $ref: "#/components/schemas/WorkspaceSnapshot"
          description: Snapshot.
        conflict_paths:
          type: array
          items:
            type: string
          description: Conflict paths list.
      description: Merge worktree response.
    ModelCatalog:
      type: object
      properties:
        provider:
          type: string
          description: Provider.
        provider_name:
          type: string
          description: Provider name.
        source:
          type: string
          description: Source.
        models:
          type: array
          items:
            $ref: "#/components/schemas/ModelCatalogEntry"
          description: Models list.
        fetched_at:
          type: string
          format: date-time
          description: Fetched at as an RFC 3339 timestamp.
        cache_ttl_seconds:
          type: integer
          format: int32
          description: Cache ttl seconds.
      description: Model catalog representation.
    ModelCatalogEntry:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        display_name:
          type: string
          description: Display name.
        description:
          type: string
          description: Description.
        reasoning_efforts:
          type: array
          items:
            type: string
          description: Reasoning efforts list.
        default_reasoning_effort:
          type: string
          description: Default reasoning effort.
        reasoning:
          type: boolean
          description: Reasoning.
        thinking_format:
          type: string
          description: Thinking format.
        thinking_can_disable:
          type: boolean
          description: Thinking can disable.
        context_window:
          type: string
          description: Context window.
        max_output_tokens:
          type: string
          description: Max output tokens.
        is_default:
          type: boolean
          description: Is default.
      description: Model catalog entry representation.
    ModelCompatibilityReport:
      type: object
      properties:
        provider:
          type: string
          description: Provider.
        provider_name:
          type: string
          description: Provider name.
        model:
          type: string
          description: Model.
        transports:
          type: array
          items:
            $ref: "#/components/schemas/ModelTransportCapability"
          description: Transports list.
        recommended_response_delivery_mode:
          type: string
          description: Recommended response delivery mode.
        provider_stored_state_tested:
          type: boolean
          description: Provider stored state tested.
        provider_stored_state_supported:
          type: boolean
          description: Provider stored state supported.
        checked_at:
          type: string
          format: date-time
          description: Checked at as an RFC 3339 timestamp.
      description: Model compatibility report representation.
    ModelCredentialBinding:
      type: object
      properties:
        secret_ref:
          type: string
          description: Opaque Secret reference. This is a reference, not the credential plaintext.
        env_name:
          type: string
          description: Env name.
        header_name:
          type: string
          description: Header name.
        value_prefix:
          type: string
          description: Value prefix.
      description: Model credential binding representation.
    ModelInvocationConfig:
      type: object
      properties:
        model:
          type: string
          description: Model.
        reasoning_effort:
          type: string
          description: Reasoning effort.
      description: |-
        ModelInvocationConfig is shared by Agent defaults, Task overrides and the
         effective Run snapshot. reasoning_effort is a provider-advertised identifier
         such as low, xhigh, max, ultra or thinking; OrbitSpace does not freeze the
         provider's evolving vocabulary into a protobuf enum. Empty Task fields
         inherit the Agent/provider default.
    ModelProfile:
      type: object
      properties:
        engine:
          type: string
          description: Engine.
        provider:
          type: string
          description: Provider.
        provider_name:
          type: string
          description: Provider name.
        base_url:
          type: string
          description: Base url.
        wire_api:
          type: string
          description: Wire api.
        credentials:
          type: array
          items:
            $ref: "#/components/schemas/ModelCredentialBinding"
          description: Credentials list.
        request_headers:
          type: array
          items:
            $ref: "#/components/schemas/ModelRequestHeader"
          description: Request headers list.
        model_config:
          $ref: "#/components/schemas/ModelInvocationConfig"
          description: Model config.
        response_state_mode:
          type: string
          description: |-
            response_state_mode controls how the Responses Runtime carries context.
             "stateless" resends the durable local transcript and never asks the
             provider to retain a response. "provider_stored" opts into provider-side
             response retention and chains rounds with previous_response_id.
        response_delivery_mode:
          type: string
          description: |-
            response_delivery_mode selects how one Responses API round is returned.
             "sse" preserves incremental output. "json" requests one complete response
             for gateways whose streaming terminal event omits authoritative usage.
        max_tool_rounds:
          type: integer
          description: |-
            max_tool_rounds is an Agent-specific execution budget enforced by the
             Runtime. Zero inherits the Runtime safety ceiling.
          format: uint32
      description: |-
        ModelProfile is immutable execution routing metadata plus the effective model
         invocation configuration. It never contains a credential value; every
         secret_ref is resolved by the Agent Runtime immediately before the AgentEngine
         invocation starts.
    ModelProviderHealth:
      type: object
      properties:
        registry_version_id:
          type: string
          description: Registry version id.
        status:
          enum:
            - MODEL_PROVIDER_HEALTH_STATUS_UNSPECIFIED
            - MODEL_PROVIDER_HEALTH_STATUS_UNKNOWN
            - MODEL_PROVIDER_HEALTH_STATUS_HEALTHY
            - MODEL_PROVIDER_HEALTH_STATUS_DEGRADED
            - MODEL_PROVIDER_HEALTH_STATUS_UNHEALTHY
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            MODEL_PROVIDER_HEALTH_STATUS_UNSPECIFIED: unspecified
            MODEL_PROVIDER_HEALTH_STATUS_UNKNOWN: unknown
            MODEL_PROVIDER_HEALTH_STATUS_HEALTHY: healthy
            MODEL_PROVIDER_HEALTH_STATUS_DEGRADED: degraded
            MODEL_PROVIDER_HEALTH_STATUS_UNHEALTHY: unhealthy
        consecutive_successes:
          type: string
          description: Consecutive successes.
        consecutive_failures:
          type: string
          description: Consecutive failures.
        latency_ms:
          type: string
          description: Latency ms.
        error_code:
          type: string
          description: Error code.
        error_message:
          type: string
          description: Error message.
        observed_by:
          type: string
          description: Observed by.
        last_checked_at:
          type: string
          format: date-time
          description: Last checked at as an RFC 3339 timestamp.
        last_success_at:
          type: string
          format: date-time
          description: Last success at as an RFC 3339 timestamp.
        last_failure_at:
          type: string
          format: date-time
          description: Last failure at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Model provider health representation.
    ModelRequestHeader:
      type: object
      properties:
        name:
          type: string
          description: Name.
        value:
          type: string
          description: Value.
      description: Model request header representation.
    ModelTransportCapability:
      type: object
      properties:
        delivery_mode:
          type: string
          description: Delivery mode.
        supported:
          type: boolean
          description: Supported.
        usage_reported:
          type: boolean
          description: Usage reported.
        cache_usage_reported:
          type: boolean
          description: Cache usage reported.
        cache_read_reported:
          type: boolean
          description: Cache read reported.
        cache_write_reported:
          type: boolean
          description: Cache write reported.
        latency_ms:
          type: string
          description: Latency ms.
        error_code:
          type: string
          description: Error code.
        error_message:
          type: string
          description: Error message.
      description: Model transport capability representation.
    PackageSkillBundleRequest:
      type: object
      properties:
        name:
          type: string
          description: Optional Registry namespace/name; final component must match SKILL.md.
        version:
          type: string
          description: Version.
        invocation_policy:
          type: string
          description: Invocation policy.
        files:
          type: array
          items:
            $ref: "#/components/schemas/SkillPackageFile"
          description: Files list.
        license_expression:
          type: string
          description: License expression.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Package Skill bundle request.
    PackageSkillBundleResponse:
      type: object
      properties:
        bundle_json:
          type: string
          description: Bundle json.
        reference:
          type: string
          description: Reference.
        description:
          type: string
          description: Description.
        file_count:
          type: integer
          format: int32
          description: File count.
        total_bytes:
          type: string
          description: Total bytes.
      description: Package Skill bundle response.
    ProbeModelCompatibilityRequest:
      type: object
      properties:
        agent_version_id:
          type: string
          description: Agent version id.
      description: Probe model compatibility request.
    ProblemDetails:
      type: object
      description: RFC 9457 Problem Details with OrbitSpace correlation extensions.
      required:
        - type
        - title
        - status
        - detail
        - request_id
      properties:
        type:
          type: string
          format: uri
          description: Type.
        title:
          type: string
          description: Title.
        status:
          type: integer
          minimum: 400
          maximum: 599
          description: Status.
        detail:
          type: string
          description: Detail.
        instance:
          type: string
          format: uri-reference
          description: Instance.
        code:
          type: string
          pattern: ^[A-Z][A-Z0-9_]*$
          description: Code.
        request_id:
          type: string
          format: uuid
          description: Request id.
    ProposeMemoryCandidateRequest:
      type: object
      properties:
        sources:
          type: array
          items:
            $ref: "#/components/schemas/MemorySourceReference"
          description: Sources list.
        target:
          $ref: "#/components/schemas/MemoryCandidateTarget"
          description: Target.
        content:
          type: string
          description: Content.
        metadata:
          type: object
          description: Metadata.
        reason:
          type: string
          description: Reason.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
        execution:
          $ref: "#/components/schemas/MemoryExecution"
          description: Execution.
      description: Propose memory candidate request.
    PublishRegistryVersionRequest:
      type: object
      properties:
        registry_resource_id:
          type: string
          description: Registry resource id.
        version:
          type: string
          description: Version.
        schema_version:
          type: string
          description: Schema version.
        content:
          type: object
          description: Content.
        license_expression:
          type: string
          description: License expression.
        compatibility:
          type: array
          items:
            type: string
          description: Compatibility list.
        provenance:
          $ref: "#/components/schemas/RegistryProvenance"
          description: Provenance.
        signature:
          $ref: "#/components/schemas/RegistrySignature"
          description: Signature.
      description: Publish registry version request.
    RegistryBundleResult:
      type: object
      properties:
        schema_version:
          type: string
          description: Schema version.
        scope:
          enum:
            - REGISTRY_SCOPE_UNSPECIFIED
            - REGISTRY_SCOPE_TENANT
            - REGISTRY_SCOPE_GLOBAL
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            REGISTRY_SCOPE_UNSPECIFIED: unspecified
            REGISTRY_SCOPE_TENANT: tenant
            REGISTRY_SCOPE_GLOBAL: global
        resource_count:
          type: integer
          format: int32
          description: Resource count.
        version_count:
          type: integer
          format: int32
          description: Version count.
        references:
          type: array
          items:
            type: string
          description: References list.
      description: Registry bundle result representation.
    RegistryProvenance:
      type: object
      properties:
        source_uri:
          type: string
          description: Source uri.
        revision:
          type: string
          description: Revision.
        builder:
          type: string
          description: Builder.
        built_at:
          type: string
          format: date-time
          description: Built at as an RFC 3339 timestamp.
        material_digests:
          type: array
          items:
            type: string
          description: Material digests list.
        sbom_digest:
          type: string
          description: Sbom digest.
      description: Registry provenance representation.
    RegistryResource:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        scope:
          enum:
            - REGISTRY_SCOPE_UNSPECIFIED
            - REGISTRY_SCOPE_TENANT
            - REGISTRY_SCOPE_GLOBAL
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            REGISTRY_SCOPE_UNSPECIFIED: unspecified
            REGISTRY_SCOPE_TENANT: tenant
            REGISTRY_SCOPE_GLOBAL: global
        kind:
          x-extensible-enum:
            - REGISTRY_KIND_UNSPECIFIED
            - REGISTRY_KIND_KNOWLEDGE
            - REGISTRY_KIND_TOOL
            - REGISTRY_KIND_WORKFLOW
            - REGISTRY_KIND_EVALUATOR
            - REGISTRY_KIND_CAPABILITY
            - REGISTRY_KIND_RUNTIME_PROFILE
            - REGISTRY_KIND_MODEL_PROVIDER
            - REGISTRY_KIND_MODEL_POLICY
            - REGISTRY_KIND_SKILL
            - REGISTRY_KIND_MCP_SERVER
          type: string
          format: enum
          description: Kind.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        archived_at:
          type: string
          format: date-time
          description: Archived at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        policy_scope_id:
          type: string
          description: Policy scope id.
        presentation:
          type: object
          description: |-
            Observed display metadata from the latest successful discovery. This is
             not Registry configuration and does not alter immutable connection versions.
      description: Registry resource representation.
    RegistrySignature:
      type: object
      properties:
        algorithm:
          type: string
          description: Algorithm.
        key_id:
          type: string
          description: Key id.
        public_key:
          type: string
          description: Public key.
        value:
          type: string
          description: Value.
      description: Registry signature representation.
    RegistryVersion:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        registry_resource_id:
          type: string
          description: Registry resource id.
        scope:
          enum:
            - REGISTRY_SCOPE_UNSPECIFIED
            - REGISTRY_SCOPE_TENANT
            - REGISTRY_SCOPE_GLOBAL
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            REGISTRY_SCOPE_UNSPECIFIED: unspecified
            REGISTRY_SCOPE_TENANT: tenant
            REGISTRY_SCOPE_GLOBAL: global
        kind:
          x-extensible-enum:
            - REGISTRY_KIND_UNSPECIFIED
            - REGISTRY_KIND_KNOWLEDGE
            - REGISTRY_KIND_TOOL
            - REGISTRY_KIND_WORKFLOW
            - REGISTRY_KIND_EVALUATOR
            - REGISTRY_KIND_CAPABILITY
            - REGISTRY_KIND_RUNTIME_PROFILE
            - REGISTRY_KIND_MODEL_PROVIDER
            - REGISTRY_KIND_MODEL_POLICY
            - REGISTRY_KIND_SKILL
            - REGISTRY_KIND_MCP_SERVER
          type: string
          format: enum
          description: Kind.
        version:
          type: string
          description: Version.
        schema_version:
          type: string
          description: Schema version.
        content_digest:
          type: string
          description: Content digest.
        envelope_digest:
          type: string
          description: Envelope digest.
        content:
          type: object
          description: Content.
        license_expression:
          type: string
          description: License expression.
        compatibility:
          type: array
          items:
            type: string
          description: Compatibility list.
        provenance:
          $ref: "#/components/schemas/RegistryProvenance"
          description: Provenance.
        signature:
          $ref: "#/components/schemas/RegistrySignature"
          description: Signature.
        verification_status:
          enum:
            - REGISTRY_VERIFICATION_STATUS_UNSPECIFIED
            - REGISTRY_VERIFICATION_STATUS_UNSIGNED
            - REGISTRY_VERIFICATION_STATUS_VERIFIED
          type: string
          format: enum
          description: Verification status.
          x-enum-descriptions:
            REGISTRY_VERIFICATION_STATUS_UNSPECIFIED: unspecified
            REGISTRY_VERIFICATION_STATUS_UNSIGNED: unsigned
            REGISTRY_VERIFICATION_STATUS_VERIFIED: verified
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Registry version representation.
    RemoveWorkspaceAgentRequest:
      type: object
      properties:
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Remove workspace Agent request.
    ResolveModelPolicyRequest:
      type: object
      properties:
        reference:
          type: string
          description: Reference.
        excluded_provider_registry_version_ids:
          type: array
          items:
            type: string
          description: Excluded provider registry version ids list.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Resolve model policy request.
    ResolveRegistryReferenceRequest:
      type: object
      properties:
        reference:
          type: string
          description: Reference.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Resolve registry reference request.
    ResolvedModelRoute:
      type: object
      properties:
        policy:
          $ref: "#/components/schemas/ResolvedRegistryReference"
          description: Policy.
        provider:
          $ref: "#/components/schemas/ResolvedRegistryReference"
          description: Provider.
        model_profile:
          $ref: "#/components/schemas/ModelProfile"
          description: Model profile.
        health:
          $ref: "#/components/schemas/ModelProviderHealth"
          description: Health.
        route_index:
          type: integer
          format: int32
          description: Route index.
        priority:
          type: string
          description: Priority.
        rate_limits:
          type: object
          description: Rate limits.
        pricing:
          type: object
          description: Pricing.
        fallback:
          type: object
          description: Fallback.
        budget:
          type: object
          description: Budget.
        health_check:
          type: object
          description: Health check.
      description: Resolved model route representation.
    ResolvedRegistryReference:
      type: object
      properties:
        reference:
          type: string
          description: Reference.
        resolved_reference:
          type: string
          description: Resolved reference.
        registry_resource_id:
          type: string
          description: Registry resource id.
        registry_version_id:
          type: string
          description: Registry version id.
        scope:
          enum:
            - REGISTRY_SCOPE_UNSPECIFIED
            - REGISTRY_SCOPE_TENANT
            - REGISTRY_SCOPE_GLOBAL
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            REGISTRY_SCOPE_UNSPECIFIED: unspecified
            REGISTRY_SCOPE_TENANT: tenant
            REGISTRY_SCOPE_GLOBAL: global
        kind:
          x-extensible-enum:
            - REGISTRY_KIND_UNSPECIFIED
            - REGISTRY_KIND_KNOWLEDGE
            - REGISTRY_KIND_TOOL
            - REGISTRY_KIND_WORKFLOW
            - REGISTRY_KIND_EVALUATOR
            - REGISTRY_KIND_CAPABILITY
            - REGISTRY_KIND_RUNTIME_PROFILE
            - REGISTRY_KIND_MODEL_PROVIDER
            - REGISTRY_KIND_MODEL_POLICY
            - REGISTRY_KIND_SKILL
            - REGISTRY_KIND_MCP_SERVER
          type: string
          format: enum
          description: Kind.
        name:
          type: string
          description: Name.
        version:
          type: string
          description: Version.
        content_digest:
          type: string
          description: Content digest.
        envelope_digest:
          type: string
          description: Envelope digest.
        verification_status:
          enum:
            - REGISTRY_VERIFICATION_STATUS_UNSPECIFIED
            - REGISTRY_VERIFICATION_STATUS_UNSIGNED
            - REGISTRY_VERIFICATION_STATUS_VERIFIED
          type: string
          format: enum
          description: Verification status.
          x-enum-descriptions:
            REGISTRY_VERIFICATION_STATUS_UNSPECIFIED: unspecified
            REGISTRY_VERIFICATION_STATUS_UNSIGNED: unsigned
            REGISTRY_VERIFICATION_STATUS_VERIFIED: verified
        content:
          type: object
          description: Content.
        license_expression:
          type: string
          description: License expression.
        compatibility:
          type: array
          items:
            type: string
          description: Compatibility list.
        provenance:
          $ref: "#/components/schemas/RegistryProvenance"
          description: Provenance.
        schema_version:
          type: string
          description: Schema version.
        signature:
          $ref: "#/components/schemas/RegistrySignature"
          description: Signature.
        policy_scope_id:
          type: string
          description: Policy scope id.
      description: Resolved registry reference representation.
    RestoreAgentRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Restore Agent request.
    RestoreEnvironmentRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Restore environment request.
    RestoreRegistryResourceRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Restore registry resource request.
    RestoreWorkspaceRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Restore workspace request.
    RetryMemoryIndexMigrationRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
      description: Retry memory index migration request.
    ReviewMemoryCandidateRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        approve:
          type: boolean
          description: Approve.
        consent_basis:
          enum:
            - MEMORY_CONSENT_BASIS_UNSPECIFIED
            - MEMORY_CONSENT_BASIS_EXPLICIT
            - MEMORY_CONSENT_BASIS_TASK_EXECUTION
            - MEMORY_CONSENT_BASIS_IMPORTED
          type: string
          format: enum
          description: Consent basis.
          x-enum-descriptions:
            MEMORY_CONSENT_BASIS_UNSPECIFIED: unspecified
            MEMORY_CONSENT_BASIS_EXPLICIT: explicit
            MEMORY_CONSENT_BASIS_TASK_EXECUTION: task execution
            MEMORY_CONSENT_BASIS_IMPORTED: imported
        reason:
          type: string
          description: Reason.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
      description: Review memory candidate request.
    ReviseMemoryRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_revision:
          type: string
          description: Expected revision.
        content:
          type: string
          description: Content.
        metadata:
          type: object
          description: Metadata.
        provenance:
          $ref: "#/components/schemas/MemoryProvenance"
          description: Provenance.
        consent_basis:
          enum:
            - MEMORY_CONSENT_BASIS_UNSPECIFIED
            - MEMORY_CONSENT_BASIS_EXPLICIT
            - MEMORY_CONSENT_BASIS_TASK_EXECUTION
            - MEMORY_CONSENT_BASIS_IMPORTED
          type: string
          format: enum
          description: Consent basis.
          x-enum-descriptions:
            MEMORY_CONSENT_BASIS_UNSPECIFIED: unspecified
            MEMORY_CONSENT_BASIS_EXPLICIT: explicit
            MEMORY_CONSENT_BASIS_TASK_EXECUTION: task execution
            MEMORY_CONSENT_BASIS_IMPORTED: imported
        reason:
          type: string
          description: Reason.
        idempotency_key:
          type: string
          description: Idempotency key for this operation. Reuse it only when retrying the same submission with the same payload.
        execution:
          $ref: "#/components/schemas/MemoryExecution"
          description: Execution.
      description: Revise memory request.
    RevokeWorkspaceDelegationGrantRequest:
      type: object
      properties:
        target_workspace_id:
          type: string
          description: Target workspace id.
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
      description: Revoke workspace delegation grant request.
    SearchMemoriesRequest:
      type: object
      properties:
        query:
          type: string
          description: Query.
        scope:
          enum:
            - MEMORY_SCOPE_UNSPECIFIED
            - MEMORY_SCOPE_TENANT
            - MEMORY_SCOPE_AGENT
            - MEMORY_SCOPE_WORKSPACE
            - MEMORY_SCOPE_TASK
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            MEMORY_SCOPE_UNSPECIFIED: unspecified
            MEMORY_SCOPE_TENANT: tenant
            MEMORY_SCOPE_AGENT: Agent
            MEMORY_SCOPE_WORKSPACE: workspace
            MEMORY_SCOPE_TASK: task
        agent_id:
          type: string
          description: Agent id.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        kind:
          enum:
            - MEMORY_KIND_UNSPECIFIED
            - MEMORY_KIND_NOTE
            - MEMORY_KIND_EPISODIC
          type: string
          format: enum
          description: Kind.
          x-enum-descriptions:
            MEMORY_KIND_UNSPECIFIED: unspecified
            MEMORY_KIND_NOTE: note
            MEMORY_KIND_EPISODIC: episodic
        include_suspicious:
          type: boolean
          description: Include suspicious.
        limit:
          type: integer
          format: int32
          description: Limit.
        minimum_score:
          type: number
          format: double
          description: Minimum score.
        execution:
          $ref: "#/components/schemas/MemoryExecution"
          description: Execution.
      description: Search memories request.
    SearchMemoriesResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: "#/components/schemas/MemorySearchResult"
          description: Results list.
      description: Search memories response.
    SearchMemoryIndexRequest:
      type: object
      properties:
        query:
          type: string
          description: Query.
        scope:
          enum:
            - MEMORY_SCOPE_UNSPECIFIED
            - MEMORY_SCOPE_TENANT
            - MEMORY_SCOPE_AGENT
            - MEMORY_SCOPE_WORKSPACE
            - MEMORY_SCOPE_TASK
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            MEMORY_SCOPE_UNSPECIFIED: unspecified
            MEMORY_SCOPE_TENANT: tenant
            MEMORY_SCOPE_AGENT: Agent
            MEMORY_SCOPE_WORKSPACE: workspace
            MEMORY_SCOPE_TASK: task
        agent_id:
          type: string
          description: Agent id.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        kind:
          enum:
            - MEMORY_KIND_UNSPECIFIED
            - MEMORY_KIND_NOTE
            - MEMORY_KIND_EPISODIC
          type: string
          format: enum
          description: Kind.
          x-enum-descriptions:
            MEMORY_KIND_UNSPECIFIED: unspecified
            MEMORY_KIND_NOTE: note
            MEMORY_KIND_EPISODIC: episodic
        include_suspicious:
          type: boolean
          description: Include suspicious.
        limit:
          type: integer
          format: int32
          description: Limit.
        minimum_score:
          type: number
          format: double
          description: Minimum score.
        execution:
          $ref: "#/components/schemas/MemoryExecution"
          description: Execution.
      description: Search memory index request.
    SearchMemoryIndexResponse:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: "#/components/schemas/MemoryIndexEntry"
          description: Entries list.
      description: Search memory index response.
    SetMemoryRuntimePolicyRequest:
      type: object
      properties:
        scope:
          enum:
            - MEMORY_SCOPE_UNSPECIFIED
            - MEMORY_SCOPE_TENANT
            - MEMORY_SCOPE_AGENT
            - MEMORY_SCOPE_WORKSPACE
            - MEMORY_SCOPE_TASK
          type: string
          format: enum
          description: Scope.
          x-enum-descriptions:
            MEMORY_SCOPE_UNSPECIFIED: unspecified
            MEMORY_SCOPE_TENANT: tenant
            MEMORY_SCOPE_AGENT: Agent
            MEMORY_SCOPE_WORKSPACE: workspace
            MEMORY_SCOPE_TASK: task
        resource_id:
          type: string
          description: Resource id.
        use_scopes:
          type: array
          items:
            enum:
              - MEMORY_SCOPE_UNSPECIFIED
              - MEMORY_SCOPE_TENANT
              - MEMORY_SCOPE_AGENT
              - MEMORY_SCOPE_WORKSPACE
              - MEMORY_SCOPE_TASK
            type: string
            format: enum
            description: Use scopes.
            x-enum-descriptions:
              MEMORY_SCOPE_UNSPECIFIED: unspecified
              MEMORY_SCOPE_TENANT: tenant
              MEMORY_SCOPE_AGENT: Agent
              MEMORY_SCOPE_WORKSPACE: workspace
              MEMORY_SCOPE_TASK: task
          description: Use scopes list.
        contribute_scopes:
          type: array
          items:
            enum:
              - MEMORY_SCOPE_UNSPECIFIED
              - MEMORY_SCOPE_TENANT
              - MEMORY_SCOPE_AGENT
              - MEMORY_SCOPE_WORKSPACE
              - MEMORY_SCOPE_TASK
            type: string
            format: enum
            description: Contribute scopes.
            x-enum-descriptions:
              MEMORY_SCOPE_UNSPECIFIED: unspecified
              MEMORY_SCOPE_TENANT: tenant
              MEMORY_SCOPE_AGENT: Agent
              MEMORY_SCOPE_WORKSPACE: workspace
              MEMORY_SCOPE_TASK: task
          description: Contribute scopes list.
        expected_state_version:
          type: string
          description: Expected state revision for optimistic concurrency. Copy the current revision exactly; do not round it through a JavaScript Number.
        completion_extraction_enabled:
          type: boolean
          description: Completion extraction enabled.
        semantic_extraction:
          $ref: "#/components/schemas/MemorySemanticExtractionPolicy"
          description: Semantic extraction.
      description: Set memory Runtime policy request.
    SkillPackageFile:
      type: object
      properties:
        path:
          type: string
          description: Path.
        content_base64:
          type: string
          description: Content base64.
      description: Skill package file representation.
    UpdateWorkspaceRequest:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
      description: Update workspace request.
    ValidateRegistryBundleRequest:
      type: object
      properties:
        bundle_json:
          type: string
          description: |-
            Original JSON is retained as text so signature normalization never loses
             integer precision through google.protobuf.Struct's double representation.
        policy_scope_id:
          type: string
          description: Optional destination project for a tenant bundle. Global imports reject it.
      description: Validate registry bundle request.
    Workspace:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        policy_scope_id:
          type: string
          description: Policy scope id.
        name:
          type: string
          description: Name.
        description:
          type: string
          description: Description.
        created_by:
          type: string
          description: Created by.
        current_snapshot_id:
          type: string
          description: Current snapshot id.
        archived_at:
          type: string
          format: date-time
          description: Archived at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Persistent collaboration context with access policy and resource bindings. A Workspace may contain multiple repositories and task worktrees.
    WorkspaceAgentBinding:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        agent_version_id:
          type: string
          description: Agent version id.
        environment_version_id:
          type: string
          description: Environment version id.
        role:
          type: string
          description: Role.
        model_config:
          $ref: "#/components/schemas/ModelInvocationConfig"
          description: Model config.
        created_by:
          type: string
          description: Created by.
        archived_at:
          type: string
          format: date-time
          description: Archived at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        key:
          type: string
          description: Key.
        agent_id:
          type: string
          description: Agent id.
        agent_environment_id:
          type: string
          description: Agent environment id.
        default_coordinator:
          type: boolean
          description: Default coordinator.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
      description: Workspace agent binding representation.
    WorkspaceChunk:
      type: object
      properties:
        digest:
          type: string
          description: Digest.
        size_bytes:
          type: string
          description: Size bytes.
      description: Workspace chunk representation.
    WorkspaceDelegationGrant:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        source_workspace_id:
          type: string
          description: Source workspace id.
        target_workspace_id:
          type: string
          description: Target workspace id.
        target_workspace_agent_binding_id:
          type: string
          description: Target workspace agent binding id.
        max_depth:
          type: integer
          format: int32
          description: Max depth.
        token_budget:
          type: string
          description: Token budget.
        cost_budget_microunits:
          type: string
          description: Cost budget microunits.
        compute_budget_ms:
          type: string
          description: Compute budget ms.
        expires_at:
          type: string
          format: date-time
          description: Expires at as an RFC 3339 timestamp.
        status:
          enum:
            - WORKSPACE_DELEGATION_GRANT_STATUS_UNSPECIFIED
            - WORKSPACE_DELEGATION_GRANT_STATUS_ACTIVE
            - WORKSPACE_DELEGATION_GRANT_STATUS_REVOKED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            WORKSPACE_DELEGATION_GRANT_STATUS_UNSPECIFIED: unspecified
            WORKSPACE_DELEGATION_GRANT_STATUS_ACTIVE: active
            WORKSPACE_DELEGATION_GRANT_STATUS_REVOKED: revoked
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        created_by:
          type: string
          description: Created by.
        revoked_by:
          type: string
          description: Revoked by.
        revoked_at:
          type: string
          format: date-time
          description: Revoked at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
        cost_budget_currency:
          type: string
          description: Per admitted delegation subtree, not a shared grant lifetime balance.
      description: |-
        Explicit target-Workspace consent for one stable Agent binding. Zero budget
         values mean unlimited; each child Delegation may only narrow these bounds.
    WorkspaceDelegationParticipant:
      type: object
      properties:
        grant:
          $ref: "#/components/schemas/WorkspaceDelegationGrant"
          description: Grant.
        workspace:
          $ref: "#/components/schemas/Workspace"
          description: Workspace.
        binding:
          $ref: "#/components/schemas/WorkspaceAgentBinding"
          description: Binding.
      description: Workspace delegation participant representation.
    WorkspaceSnapshot:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        task_id:
          type: string
          description: Identifier of the durable Task; do not substitute an execution Run ID.
        run_id:
          type: string
          description: Identifier of an execution Run associated with a Task.
        parent_snapshot_id:
          type: string
          description: Parent snapshot id.
        generation:
          type: string
          description: Generation.
        fence:
          type: string
          description: Fence.
        manifest_version:
          type: integer
          format: int32
          description: Manifest version.
        manifest_digest:
          type: string
          description: Manifest digest.
        entries:
          type: array
          items:
            $ref: "#/components/schemas/WorkspaceSnapshotEntry"
          description: Entries list.
        object_count:
          type: integer
          format: int32
          description: Object count.
        total_bytes:
          type: string
          description: Total bytes.
        status:
          enum:
            - WORKSPACE_SNAPSHOT_STATUS_UNSPECIFIED
            - WORKSPACE_SNAPSHOT_STATUS_PENDING
            - WORKSPACE_SNAPSHOT_STATUS_READY
            - WORKSPACE_SNAPSHOT_STATUS_FAILED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            WORKSPACE_SNAPSHOT_STATUS_UNSPECIFIED: unspecified
            WORKSPACE_SNAPSHOT_STATUS_PENDING: pending
            WORKSPACE_SNAPSHOT_STATUS_READY: ready
            WORKSPACE_SNAPSHOT_STATUS_FAILED: failed
        ready_at:
          type: string
          format: date-time
          description: Ready at as an RFC 3339 timestamp.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        worktree_id:
          type: string
          description: Worktree id.
      description: Workspace snapshot representation.
    WorkspaceSnapshotEntry:
      type: object
      properties:
        path:
          type: string
          description: Path.
        type:
          enum:
            - WORKSPACE_ENTRY_TYPE_UNSPECIFIED
            - WORKSPACE_ENTRY_TYPE_DIRECTORY
            - WORKSPACE_ENTRY_TYPE_FILE
            - WORKSPACE_ENTRY_TYPE_SYMLINK
          type: string
          format: enum
          description: Type.
          x-enum-descriptions:
            WORKSPACE_ENTRY_TYPE_UNSPECIFIED: unspecified
            WORKSPACE_ENTRY_TYPE_DIRECTORY: directory
            WORKSPACE_ENTRY_TYPE_FILE: file
            WORKSPACE_ENTRY_TYPE_SYMLINK: symlink
        mode:
          type: integer
          format: uint32
          description: Mode.
        size_bytes:
          type: string
          description: Size bytes.
        chunks:
          type: array
          items:
            $ref: "#/components/schemas/WorkspaceChunk"
          description: Chunks list.
        link_target:
          type: string
          description: Link target.
      description: Workspace snapshot entry representation.
    WorkspaceSnapshotPolicy:
      type: object
      properties:
        exclude_names:
          type: array
          items:
            type: string
          description: |-
            Directory or file names excluded at every Workspace depth. Use this for
             reconstructible caches such as target or a domain-specific build cache.
        exclude_paths:
          type: array
          items:
            type: string
          description: Workspace-relative file or directory subtrees excluded from snapshots.
      description: Workspace snapshot policy representation.
    Worktree:
      type: object
      properties:
        id:
          type: string
          description: Identifier of the resource addressed by this schema or URL.
        tenant_id:
          type: string
          description: Tenant identifier used with the authenticated access context. Supplying an ID does not grant access.
        workspace_id:
          type: string
          description: Workspace identifier. A Workspace is a persistent collaboration context, distinct from a per-task worktree.
        key:
          type: string
          description: Key.
        name:
          type: string
          description: Name.
        status:
          enum:
            - WORKTREE_STATUS_UNSPECIFIED
            - WORKTREE_STATUS_ACTIVE
            - WORKTREE_STATUS_MERGED
            - WORKTREE_STATUS_CONFLICTED
            - WORKTREE_STATUS_ARCHIVED
          type: string
          format: enum
          description: Status.
          x-enum-descriptions:
            WORKTREE_STATUS_UNSPECIFIED: unspecified
            WORKTREE_STATUS_ACTIVE: active
            WORKTREE_STATUS_MERGED: merged
            WORKTREE_STATUS_CONFLICTED: conflicted
            WORKTREE_STATUS_ARCHIVED: archived
        base_worktree_id:
          type: string
          description: Base worktree id.
        base_snapshot_id:
          type: string
          description: Base snapshot id.
        current_snapshot_id:
          type: string
          description: Current snapshot id.
        snapshot_generation:
          type: string
          description: Snapshot generation.
        state_version:
          type: string
          description: State revision used for optimistic concurrency. Preserve its exact decimal representation.
        created_by:
          type: string
          description: Created by.
        created_at:
          type: string
          format: date-time
          description: Created at as an RFC 3339 timestamp.
        updated_at:
          type: string
          format: date-time
          description: Updated at as an RFC 3339 timestamp.
      description: Isolated working tree associated with task execution and later merge decisions. It is separate from Workspace identity.
tags:
  - name: AgentService
    x-displayName: Agents
    description: Agents operations.
  - name: EnvironmentService
    x-displayName: Environments
    description: Environments operations.
  - name: MemoryService
    x-displayName: Shared memory
    description: Shared memory operations.
  - name: RegistryService
    x-displayName: Resource registry
    description: Resource registry operations.
  - name: WorkspaceService
    x-displayName: Workspaces and worktrees
    description: Workspaces and worktrees operations.
