bma.executor.v1.1에서 기능 요청을 제외한 모든 JSON-RPC 메서드의 방향, 매개변수, 결과와 각 SDK가 그것을 보내거나 처리하는 방법입니다. 대부분은 SDK가 직접 처리하고(등록, 하트비트, 토큰 갱신, 도구 디스패치), 나머지는 다른 페이지의 타입 지정 메서드에 대응합니다.
bma-executor-sdk 1.12.2과 그 계약(
contracts/bma/executor, 프로토콜 bma.executor.v1.1)에서 생성했습니다. 설치, 자격 증명, 빠른 시작은 bma-executor-sdk 개요를, 프로토콜 자체는 Executor Protocol을 참고하세요.메서드
screen.start
네이티브 WebRTC 화면 프로듀서를 시작합니다. Starts a single native screen relay for this machine; no shell or virtual desktop is created. The server-selected session is idempotent; another active session is rejected. The relay ticket must never be logged. Human input remains disabled until separately fenced and authorized. 방향: harness → executor · 종류:request · 기능: display.native_webrtc · 멱등 키: session_id · 도입 버전: bma.executor.v1.1
매개변수
결과
ScreenStartResult
SDK 사용법
screen.stop
네이티브 화면 세션을 중지합니다. Fences human input and stops the named native screen producer, waiting for cleanup before returning. Never resumes an agent. A repeated stop is safe; it must not affect a replacement session. 방향: harness → executor · 종류:request · 기능: display.native_webrtc · 멱등 키: session_id · 도입 버전: bma.executor.v1.1
매개변수
결과
ScreenStopResult
SDK 사용법
executor.register
executor 연결을 등록합니다. Executor to harness request, the first frame on the control channel. protocol MUST equal the negotiated WebSocket subprotocol; otherwise the server answers -32010 and closes with 4003. A machine-scoped executor sends an empty environment_id. resume.active_sessions reattaches sessions after reconnect. A machine-scoped executor that declares neither capabilities.process nor capabilities.agent is answered -32012 with data.reason “capability_missing” and data.capability “process” instead of a result; no runtime is bound and the connection stays unregistered. 방향: executor → harness · 종류:request · 도입 버전: bma.executor.v1
매개변수
결과
ExecutorRegisterResult
SDK 사용법
SDK가 처리합니다:
start가 보내며, 재연결 후에는 기능과 resume ID를 함께 보냅니다. (executor)
executor.heartbeat
executor 리스를 갱신합니다. Executor to harness request, sent every heartbeat_interval_ms. Two missed heartbeats expire the lease server-side. drain=true means the executor must stop accepting new sessions and finish current work. 방향: executor → harness · 종류:request · 도입 버전: bma.executor.v1
매개변수
결과
ExecutorHeartbeatResult
SDK 사용법
SDK가 처리합니다:
executor.register가 반환한 간격으로 클라이언트가 보냅니다. (executor)
executor.token.refresh
새 executor 토큰으로 연결을 연장합니다. Executor to harness request. Before the current token expires the executor fetches a new one from POST /v1/machines/{machine_id}/token or POST /v1/environments/{environment_id}/token (legacy alias POST /v1/executors/token) with its original credential and sends it on the open control channel. The harness verifies that it names the same executor, scope and machine credential as the connection and moves the connection’s 4001 deadline to the new token’s expiry; nothing else about the connection changes. A rejected token leaves the old deadline in place. A harness without the method answers -32601; the executor then keeps reconnecting on 4001. 방향: executor → harness · 종류:request · 도입 버전: bma.executor.v1.1
매개변수
결과
ExecutorTokenRefreshResult
SDK 사용법
SDK가 처리합니다: 클라이언트가 만료 전에 새 executor 토큰을 받아 연결을 연장합니다. (executor)
executor.capabilities.update
바뀐 executor 기능을 게시합니다. Executor to harness notification. It may change capabilities, not the protocol version. 방향: executor → harness · 종류:notification · 도입 버전: bma.executor.v1
매개변수
결과
결과 없음(알림).
SDK 사용법
executor.drain
executor에 drain을 요청합니다. Harness to executor request. The executor stops accepting new sessions, finishes current work, and reports active_sessions. 방향: harness → executor · 종류:request · 도입 버전: bma.executor.v1
매개변수
결과
ExecutorDrainResult
SDK 사용법
SDK가 처리합니다:
onDrain으로 처리하며, harness의 drain이 보냅니다. (executor)
executor.close
executor 연결을 닫습니다. Either side notification, followed by WebSocket close code 1000 or 1001. 방향: 양방향 · 종류:notification · 도입 버전: bma.executor.v1
매개변수
결과
결과 없음(알림).
SDK 사용법
SDK가 처리합니다:
stop이 보내며, 받으면 클라이언트가 완전히 멈춥니다. (executor)
session.assign
세션을 executor에 할당합니다. Harness to executor request. The executor rejects a session that exceeds its capability or resource limits with -32009. metadata.source “harness” marks a long-lived harness session; any other source is one-shot and ends after its tool call. 방향: harness → executor · 종류:request · 도입 버전: bma.executor.v1
매개변수
결과
SessionAssignResult
SDK 사용법
SDK가 처리합니다:
onSessionAssign(또는 Go Core)으로 처리하며, harness의 assignSession이 보냅니다. (executor)
session.ready
세션 준비 완료를 보고합니다. Executor to harness request after session.assign is accepted. 방향: executor → harness · 종류:request · 도입 버전: bma.executor.v1
매개변수
결과
Ack
SDK 사용법
session.event
영구 세션 이벤트를 내보냅니다. Executor to harness request for durable session events. A tool executor’s event is idempotent by its JSON-RPC id. An agent executor (capability agent) also sends turn_id, event_id and sequence; the harness deduplicates by (session_id, event_id), accepts a sequence at or below acked_sequence as a duplicate, and rejects a gap with -32013 conflict (data.expected_sequence). An agent event matches schemas/agent.json AgentEvent. The JSON-RPC response is the ACK; the executor keeps every unacked event and resends them in sequence order after reconnect, before any new event. Contract 1.7.0 clarifies two rules that keep a session from stalling. A failure on the harness side that resending can fix (storage conflict or outage) is answered with data.retryable true and the executor resends the same event; only a rejection of the event itself (invalid params) is permanent, and it ends the turn; the executor sends session.error (bma_error_code event_rejected) and session.status_idle for the turn in place of the rejected event, renumbers from data.expected_sequence only so that this session.error is accepted, and never continues the turn. 방향: executor → harness · 종류:request · 멱등 키: jsonrpc_id · 도입 버전: bma.executor.v1
매개변수
결과
SessionEventResult
SDK 사용법
session.status
세션 상태를 보고합니다. Executor to harness notification. detail carries free-form context such as tool_running or mcp_unavailable. 방향: executor → harness · 종류:notification · 도입 버전: bma.executor.v1
매개변수
결과
결과 없음(알림).
SDK 사용법
session.stop
세션을 중지합니다. Harness to executor request. The executor terminates every process and MCP server of the session (SIGTERM, then SIGKILL) and then sends session.ended. 방향: harness → executor · 종류:request · 도입 버전: bma.executor.v1
매개변수
결과
SessionStopResult
SDK 사용법
SDK가 처리합니다:
onSessionStop(또는 Go Core)으로 처리하며, harness 세션의 stop이 보냅니다. (executor)
session.ended
세션 종료를 보고합니다. Executor to harness request, sent after every process of the session is gone. Retried until accepted. 방향: executor → harness · 종류:request · 도입 버전: bma.executor.v1
매개변수
결과
Ack
SDK 사용법
tool.call
도구 호출을 디스패치합니다. Harness to executor request. The executor acknowledges the dispatch and reports the outcome separately with tool.result. A duplicate tool_call_id is acknowledged without re-execution. A tool the executor does not serve is -32012 with data.capability “tool:<name>”. 방향: harness → executor · 종류:request · 도입 버전: bma.executor.v1
매개변수
결과
Ack
SDK 사용법
SDK가 처리합니다: 타입 지정 도구 슬롯
client.tools.<name>.handle로 처리하며, harness의 callTool / session.tools.<name>.call이 보냅니다. (tools)
tool.result
도구 결과를 보고합니다. Executor to harness request, idempotent by tool_call_id and retried until accepted. Large output is uploaded first (POST /v1/environments/{environment_id}/artifacts; legacy alias POST /v1/executors/artifacts) and referenced by an artifact content block. 방향: executor → harness · 종류:request · 멱등 키: tool_call_id · 도입 버전: bma.executor.v1
매개변수
결과
Ack
SDK 사용법
tool.cancel
실행 중인 도구 호출을 취소합니다. Harness to executor request. The executor kills the process group; canceled=false when the call is unknown or already finished. 방향: harness → executor · 종류:request · 도입 버전: bma.executor.v1
매개변수
결과
ToolCancelResult
SDK 사용법
SDK가 처리합니다: 실행 중인 핸들러(그 signal 또는 context)를 중단하며, harness의
cancelTool이 보냅니다. (tools)
tool.progress
도구 진행 상황을 보고합니다. Executor to harness notification, optional. 방향: executor → harness · 종류:notification · 도입 버전: bma.executor.v1
매개변수
결과
결과 없음(알림).
SDK 사용법
desktop.attach
데스크톱 세션을 머신에서 실행 중인 데스크톱에 연결합니다. Harness to executor request (machine-scoped executors that claim display.desktop). The machine’s desktop agent runs from machine start (desktop-relay.md §1); the executor hands it the session and answers once the agent accepted it. The agent then dials the session’s relay lanes at relay_url with the ticket (Authorization bearer) and serves the session until it is closed (session_close, or a lane refused with 4001/4003/4004) or attached again, which replaces the earlier attach. width and height, together, resize the desktop unless the same size was asked for last. wallpaper names the environment’s default wallpaper; the result asks for its bytes (desktop.wallpaper) when the machine lacks them. Waits at most 5 s for a desktop that is still starting, then answers ResourceUnavailable with data.reason desktop_starting and data.retryable true (the platform answers 409 machine_starting stage=desktop_starting with Retry-After). With capture_id, attach only the media relay of that already running screen_live capture on machine_id; session_id remains the desktop relay session. This requires an exact active machine/capture match and forbids width, height and wallpaper. It never starts a capture, the legacy peer-to-peer path or another input worker, and a missing capture is rejected. 방향: harness → executor · 종류:request · 기능: display.desktop · 멱등 키: session_id · 도입 버전: bma.executor.v1.1
매개변수
결과
DesktopAttachResult
SDK 사용법
desktop.wallpaper
desktop.attach가 요청한 기본 배경화면의 청크 하나를 보냅니다. Harness to executor request. Chunks follow each other from offset 0 (data is standard base64, at most max_process_write_bytes decoded); the chunk with done installs the image when its sha256 matches and applies it to the running desktop. 방향: harness → executor · 종류:request · 기능: display.desktop · 도입 버전: bma.executor.v1.1
매개변수
결과
DesktopWallpaperResult
SDK 사용법
fs.mount
bma-file 이 제공하는 세션 파일 뷰를 마운트합니다. Harness to executor request (machine-scoped). The executor mounts each listed view at its path as a FUSE file system that reads from service_url with the view’s token, and keeps the token in memory only. Idempotent by (session_id, view), so resending the same mounts with new tokens renews the tokens without remounting; a changed path or readonly remounts. Sent when the session is bound to the machine and again after a resume or reconnect, because tokens are bound to the binding epoch. Sessions are independent, so a request for one session never changes the mounts of another, and fs.unmount ends one session only. An executor that declared fs.skills_per_session receives the skills view of each session at its own path (<session_files.root>/<agent_session_id>/skills, root /mnt/session when it declared none) and removes the mount points it created on fs.unmount; any other executor receives no skills view (there is no machine-wide skills path). Since contract 1.18.0 an executor that declared fs.copy_views (and a session_files.root) also receives fs.mount, for those views only, at <root>/<agent_session_id>/<view>; it copies the view as read-only files through the bma-file read routes instead of mounting it (see FsCapability.copy_views and file.json). 방향: harness → executor · 종류:request · 기능: fs.fuse · 멱등 키: session_id+view · 도입 버전: bma.executor.v1.1
매개변수
결과
FsMountResult
SDK 사용법
fs.unmount
세션 파일 뷰를 마운트 해제합니다. Harness to executor request (machine-scoped). Unmounts every view of the session and drops its tokens. With flush the executor first commits pending writes (none for read-only views). Idempotent by session_id, a session with nothing mounted answers “unmounted”. For a view placed by copying (fs.copy_views) the executor deletes that session’s copied directory. 방향: harness → executor · 종류:request · 기능: fs.fuse · 멱등 키: session_id · 도입 버전: bma.executor.v1.1
매개변수
결과
FsUnmountResult
SDK 사용법
session_files.flush
지금까지 기록된 세션 출력을 업로드하고 업로드가 끝나기를 기다립니다. Harness to executor request (machine-scoped, contract 1.13.0). Before the platform pauses or hibernates the machine it asks the executor to upload every changed file under the outputs of every session it shows (what the periodic scan would upload next, without waiting for the file to be seen stable) and answers when all uploads are done. “flushed” means no upload is outstanding; “failed” means at least one upload failed and may be retried, so the platform must not pause yet. A file the platform refuses for good (size, quota, name) is not a failure. Idempotent; an executor that does not know the method answers -32601, which the platform treats as nothing to flush. 방향: harness → executor · 종류:request · 기능: session_files · 도입 버전: bma.executor.v1.1
결과
SessionFilesFlushResult
SDK 사용법
turn.start
에이전트 턴을 시작합니다. Harness to executor request (capability agent). Opens the agent session on first use (no session.assign) or continues it; executor_session_ref from an earlier TurnStartResult lets the executor resume its local conversation after a restart. The executor answers as soon as the turn is accepted and reports progress with session.event. Idempotent by turn_id. A session with a running turn answers -32013 conflict (use turn.input); a turn.start while max_sessions turns are running answers -32009 (an idle session holds no slot). A request that would serialize to more than 48 KiB carries a single input_ref block as its input (contract 1.7.0, only to an executor that declared agent.input_by_reference). 방향: harness → executor · 종류:request · 기능: agent · 멱등 키: turn_id · 도입 버전: bma.executor.v1.1
매개변수
결과
TurnStartResult
SDK 사용법
SDK가 처리합니다:
serveAgent가 처리하며(openTurn 다음 runTurn), harness의 startTurn이 보냅니다. (agent)
turn.input
실행 중인 턴에 사용자 입력을 추가합니다. Harness to executor request (capability agent). The local agent consumes the input at its next step (contract 1.25.0, agent.steering - at the running turn’s next step boundary, before its next model request; without it after the running prompt ends). Idempotent by input_id. When turn_id is not the running turn the executor answers -32013 conflict and the harness starts a new turn instead. A request that would serialize to more than 48 KiB carries a single input_ref block as its input (contract 1.7.0, only to an executor that declared agent.input_by_reference). 방향: harness → executor · 종류:request · 기능: agent · 멱등 키: input_id · 도입 버전: bma.executor.v1.1
매개변수
결과
Ack
SDK 사용법
SDK가 처리합니다: 실행 중인 턴의 inputs로 전달되며, harness의
sendTurnInput이 보냅니다. (agent)
turn.cancel
실행 중인 턴을 멈춥니다. Harness to executor request (capability agent). The executor stops the agent loop, cancels its local tool calls, withdraws open interactions (interaction.cancel turn_canceled), and ends the turn with session.status_idle turn_outcome=canceled. The session stays open for the next turn.start. Unlike tool.cancel (one harness-dispatched tool call) and session.stop (a hand session and its processes), it targets only the agent turn. 방향: harness → executor · 종류:request · 기능: agent · 도입 버전: bma.executor.v1.1
매개변수
결과
TurnCancelResult
SDK 사용법
SDK가 처리합니다:
runTurn을 취소하며, harness의 cancelTurn이 보냅니다. (agent)
session.compact
턴을 보내지 않고 유휴 상태 에이전트의 컨텍스트를 압축합니다. Explicit idle-session maintenance. The platform reserves the session against new inputs, pending decisions and automatic continuations before calling. The executor independently rejects an active turn, pending interactions or another maintenance operation. It keeps the original transcript, compacts an isolated durable context and atomically publishes its pointer and immutable receipt only after success. Failed or cancelled preparation preserves the old context. Unknown publication is reconciled with the same operation_id and expected version, never a fresh id. Metadata contains maintenance-only platform credentials, not a historical turn token. No tool may run during summarization. Older handlers explicitly refuse this method. 방향: harness → executor · 종류:request · 기능: agent.context_maintenance · 멱등 키: operation_id · 도입 버전: bma.executor.v1.1
매개변수
결과
SessionCompactResult
SDK 사용법
session.compact_cancel
컨텍스트 유지 관리 작업 하나의 취소를 요청합니다. Durably fences publication of the exact operation or returns its already-applied receipt. It never closes the conversation or cancels an ordinary turn. canceled=true means the operation cannot publish, including a late retry; settled=false means its SDK reservation still belongs to work that has not settled. The platform retains its admission barrier until settled=true, and reconciles uncertain replies by repeating this exact cancel request. 방향: harness → executor · 종류:request · 기능: agent.context_maintenance · 도입 버전: bma.executor.v1.1
매개변수
결과
SessionCompactCancelResult
SDK 사용법
session.close
에이전트 세션을 닫습니다. Harness to executor request (capability agent). The executor cancels a running turn as turn.cancel does, waits until its events are acknowledged, releases the local conversation, and then sends session.ended. closed=false for an unknown session. A later turn.start with the same session_id starts a new local conversation. 방향: harness → executor · 종류:request · 기능: agent · 도입 버전: bma.executor.v1.1
매개변수
결과
SessionCloseResult
SDK 사용법
SDK가 처리합니다:
serveAgent가 처리하며(closeSession), harness의 closeAgentSession이 보냅니다. (agent)
session.event_delta
영구 에이전트 이벤트의 미리보기를 스트리밍합니다. Executor to harness notification (capability agent). Transient and lossy; never acknowledged or resent. event_id is the event_id of the durable session.event that finalizes the preview. The harness relays it to subscribers as Anthropic event_start and event_delta. 방향: executor → harness · 종류:notification · 기능: agent · 도입 버전: bma.executor.v1.1
매개변수
결과
결과 없음(알림).
SDK 사용법
session.history
턴 이전의 세션 대화를 읽습니다. Executor to harness request (capability agent, contract 1.15.0). The executor that is the session’s brain (the target the session’s turns are dispatched to) reads the session’s conversation as the platform’s event log keeps it, the single source of truth of a session: the durable events before the opening input of the given running turn, a page at a time in log order (has_more says more follow). Only the conversation travels: user.message, agent.message, agent.tool_use, agent.tool_result, agent.custom_tool_use, user.custom_tool_result, agent.mcp_tool_use and agent.mcp_tool_result, each with its bma_sequence, id, type and official body. To an executor that declared agent.input_by_reference a user.message whose body is over 48 KiB carries its content as a single input_ref block (contract 1.7.0) whose input_id is the event’s id: the inputs endpoint answers the message’s content blocks. A brain calls it when it opens a session it holds no local state for although the session has a past, for example a session whose earlier turns ran on another brain (data migration from another stack) or whose state was lost; it rebuilds its context from the events, replaying messages, tool calls and their results in its model’s format under its usual context limits, and answers the turn.start with context_rebuilt true. Only the session’s brain may read it: any other connection gets forbidden (-32001), before any turn of the session was dispatched not_dispatched (-32013, retryable); a turn that is not open is session_not_active (-32007); an unknown or deleted session is session_not_found (-32002). A harness without the method answers -32601; the brain then has no history to rebuild from. 방향: executor → harness · 종류:request · 기능: agent · 도입 버전: bma.executor.v1.1
매개변수
결과
SessionHistoryResult
SDK 사용법
interaction.request
플랫폼에 승인이나 답을 요청합니다. Executor to harness request (capability agent). The harness opens one platform agent interaction (the same request on desktop, mobile and integrations) and answers with interaction.response later. Idempotent by interaction_id. A permission request references the agent.tool_use event in tool_use_id, sent earlier with evaluated_permission ask. The executor keeps local authority; it may still deny, and it treats expires_at as a local deny. An interaction_id of the form appr_ plus 24 lower-case hex digits (the deterministic approval id) is adopted as the platform interaction id; the interactions API, its card and the session stream use it, platform_interaction_id equals it, and a repeat of it (after an executor restart too) names the same interaction, never a second card. The same id for another tool_use_id (within one executor epoch) or another kind is refused with error conflict (-32013) and the stored interaction is left unchanged. An interaction_id of any other form is only the executor’s key; the platform assigns its own id (int_…) and returns it. 방향: executor → harness · 종류:request · 기능: agent · 멱등 키: interaction_id · 도입 버전: bma.executor.v1.1
매개변수
결과
InteractionRequestResult
SDK 사용법
interaction.response
인터랙션에 대한 답을 전달합니다. Harness to executor request (capability agent). Sent once the platform interaction resolves, expires or is canceled; retried with the same interaction_id until answered. The first answer wins; a repeat or an unknown interaction answers accepted=false. 방향: harness → executor · 종류:request · 기능: agent · 멱등 키: interaction_id · 도입 버전: bma.executor.v1.1
매개변수
결과
InteractionResponseResult
SDK 사용법
SDK가 처리합니다: 대기 중인
requestInteraction을 완료하며, harness의 respondInteraction이 보냅니다. (agent)
agent.custom_tool_result
사용자 지정 도구 호출에 대한 사용자의 결과를 전달합니다. Harness to executor request (capability agent; sent only to an executor that declared agent.custom_tools). The executor emitted agent.custom_tool_use (its event_id is the tool_use_id) and waits; the platform sends the result the user’s application submitted with user.custom_tool_result. Only the first result of a call counts: the platform accepts one per tool_use_id and the executor answers a repeat, an unknown tool_use_id or a call it no longer waits for with accepted=false. Idempotent by tool_use_id: the platform retries the same result until the executor answers, also on a new connection. Timeout: the executor owns the wait. When its own limit passes it ends the call with a failed agent.tool_result (tool_use_id of the call, is_error true), continues the turn, and answers a later result with accepted=false; the platform stops accepting results for that call. Cancel: turn.cancel ends the waiting call as canceled with the turn, and the platform drops results it has not delivered yet for a turn that ended. 방향: harness → executor · 종류:request · 기능: agent · 멱등 키: tool_use_id · 도입 버전: bma.executor.v1.1
매개변수
결과
CustomToolResultResult
SDK 사용법
interaction.cancel
열린 인터랙션을 철회합니다. Executor to harness request (capability agent). The executor no longer needs the answer, for example the user answered in the local UI (resolved_locally) or the turn was canceled. The harness cancels the platform interaction so every client dismisses it. Idempotent by interaction_id. 방향: executor → harness · 종류:request · 기능: agent · 멱등 키: interaction_id · 도입 버전: bma.executor.v1.1
매개변수
결과
Ack
SDK 사용법
model_token.refresh
실행 중인 턴의 새 모델 토큰을 가져옵니다. Executor to harness request (capability agent). A brain started by turn.start with a model credential (metadata model_token, valid 1 hour) calls it before the token expires (the reference executors do so when less than 10 minutes remain) and joins model_base_url with the new model_token for its next model calls; the old token stays valid until it expires. The platform signs a new token only while the turn is active (pending, running or rescheduling) and the turn belongs to a session routed to this executor’s machine, so a turn that ended, was canceled or failed gets no further tokens: this is how the platform revokes model access per turn (a token already issued runs out its own expiry). Each call returns a new token; calls are not idempotent and a repeat is harmless. Errors carry data.reason: turn_inactive (-32007: the turn is not active), forbidden (-32001: the session or turn is unknown, belongs to another executor, or this executor is not entitled to platform credentials), model_token_unavailable (-32012: the platform issues no such token). A harness without the method answers -32601; the executor then keeps the token it has. 방향: executor → harness · 종류:request · 기능: agent · 도입 버전: bma.executor.v1.1
매개변수
결과
ModelTokenRefreshResult
SDK 사용법
tools_token.refresh
실행 중인 턴의 새 플랫폼 도구 토큰을 가져옵니다. Executor to harness request (capability agent, contract 1.4.0). A brain started by turn.start with a platform tools credential (metadata tools_mcp_token, valid 1 hour, handed over only when the session’s brain machine and hands machine differ) calls it before the token expires (the reference executors do so when less than 10 minutes remain) and uses the new tools_mcp_token with tools_mcp_url for its next tool calls; the old token stays valid until it expires or its epoch is superseded. The shape and rules are those of model_token.refresh: the platform signs a new token only while the turn is active (pending, running or rescheduling), the turn belongs to a session routed to this executor’s machine as the brain machine, and the call comes from the turn’s current epoch, so a turn that ended, was canceled or failed, or was started again in a newer epoch gets no further token for the old epoch. Each call returns a new token; calls are not idempotent and a repeat is harmless. Errors carry data.reason: turn_inactive (-32007: the turn is not active), forbidden (-32001: the session or turn is unknown, belongs to another executor, or this executor is not entitled to brain_tools), tools_token_unavailable (-32012: the platform issues no such token for this turn, for example brain and hands are one machine). A harness without the method answers -32601; the executor then keeps the token it has. 방향: executor → harness · 종류:request · 기능: agent · 도입 버전: bma.executor.v1.1
매개변수
결과
ToolsTokenRefreshResult
SDK 사용법
working_log.read
세션의 작업 로그를 한 페이지 읽습니다. Executor to harness request (capability agent, contract 1.22.0, ADR-0083). The executor that is the session’s brain (the target the session’s turns are dispatched to) reads the working log it keeps on the platform: its entries after the given sequence, in order, a page at a time (has_more says that more follow), and the highest local sequence the platform has acknowledged. An executor reads it when it opens a session it holds no copy of, for example after another instance of its brain fleet ran the session’s earlier turns. Only the session’s brain may read it: any other connection gets forbidden (-32001), and before any turn of the session was dispatched not_dispatched (-32013, retryable). An unknown or deleted session is session_not_found (-32002). 방향: executor → harness · 종류:request · 기능: agent · 도입 버전: bma.executor.v1.1
매개변수
결과
WorkingLogReadResult
SDK 사용법
working_log.append
세션의 작업 로그에 항목을 추가합니다. Executor to harness request (capability agent, contract 1.22.0, ADR-0083). The session’s brain appends entries to the working log it keeps on the platform; the answer means they are stored. An entry whose key the log already has is skipped, so a repeated append is harmless; the entries of one call are stored together or not at all, at most 500 per call. acked_sequence moves the platform’s record of the highest acknowledged local sequence up (never down, never beyond the log). The same refusals as working_log.read apply; a refused append means the executor is no longer the session’s brain and must stop the session’s turn. Invalid entries (no type, a payload that is not an object, too many) and an acked_sequence beyond the log are invalid_params with data.reason invalid_entry, batch_too_large or acked_beyond_log. 방향: executor → harness · 종류:request · 기능: agent · 도입 버전: bma.executor.v1.1
매개변수
결과
WorkingLogAppendResult
SDK 사용법