Skip to main content

Module python_protocol

Module python_protocol 

Source

Structs§

PythonActorContext
Authenticated actor and scopes captured when dispatch begins.
PythonInvocationRequest
Complete at-most-once invocation envelope.
PythonRunnerError
Redacted error envelope safe to cross the private runner protocol.
PythonRunnerHello
Worker-initiated handshake sent before any host request.
PythonRunnerProtocolVersion
A separately negotiated runner protocol version.
PythonRuntimeIdentity
Python implementation details supplied by the worker, never inferred by the host.
PythonTraceContext
Trace context propagated with one invocation.

Enums§

PythonInvocationState
Stable invocation lifecycle used to decide whether retry is safe.
PythonProtocolError
PythonRequestState
Host-side lifecycle for one at-most-once invocation.
PythonRunnerErrorCode
Stable public error identifiers for Python setup and execution.
PythonRunnerErrorPhase
Stable stage at which a runner error occurred.
PythonRunnerFeature
Optional protocol behavior advertised during the worker handshake.
PythonRunnerHostCall
Brokered calls a worker may request from the host.
PythonRunnerHostMessage
Host-to-worker messages on the persistent control channel.
PythonRunnerHostRequest
Requests sent by the Soma host over the dedicated runner control channel.
PythonRunnerReply
Worker replies to host requests.
PythonRunnerWorkerMessage
Worker-to-host messages on the persistent control channel.
PythonWorkerHealth
Worker lifecycle visible to the supervisor.

Constants§

PYTHON_RUNNER_MAX_FRAME_BYTES
Maximum JSON payload accepted by the length-prefixed control channel.
PYTHON_RUNNER_PROTOCOL_MAJOR
Current major version of the persistent Python runner protocol.
PYTHON_RUNNER_PROTOCOL_MINOR
Current minor version of the persistent Python runner protocol.

Functions§

decode_runner_frame
Decode exactly one complete control frame.
encode_runner_frame
Encode one control message as a four-byte big-endian length plus UTF-8 JSON.
negotiate_runner_features
Return the deterministic feature intersection in host preference order.