Skip to main content

API compatibility

gpt2giga is a compatibility proxy, not a full clone of OpenAI, Anthropic, or Gemini. It focuses on the API subset commonly needed by SDKs, editors, and agent tools when the backend is GigaChat or a reviewed OpenAI-compatible Chat Completions server.

What does not work directly with GigaChat​

Below are the practical incompatibilities that the proxy covers.

Client expectationWhy it breaks without the proxyWhat gpt2giga does
OpenAI Chat Completions JSONGigaChat has different formats for messages, tools, attachments, and responses.Converts requests and responses, including streaming chunks.
OpenAI Responses APIGigaChat has no equivalent /responses route and schema for output items.Accepts /responses, maps input/instructions/tools, and normalizes output items where possible.
Anthropic Messages APIAnthropic content blocks, tool use, system, max_tokens, and stream events do not match GigaChat.Converts Anthropic payloads into GigaChat-compatible chat requests and maps the responses back.
Gemini GenerateContent APIGemini contents/parts, candidates, function declarations, token counting, and SSE chunks differ from OpenAI/Anthropic and GigaChat.Accepts Gemini-like requests at the root, under /v1, /v2, and /v1beta, translates them into normalized chat/embeddings requests, and maps the responses back into the Gemini shape.
SDK extra_headers, extra_query, extra_bodySDKs may send transport fields or optional model fields that GigaChat does not accept.Filters dangerous headers, passes only allowed metadata, forwards GigaChat-specific extra_body, and ignores known unsupported optional fields.
Streaming SSEOpenAI, Anthropic, and Gemini SDKs expect their own event names and delta shapes.Generates OpenAI-, Anthropic-, and Gemini-compatible SSE from GigaChat streaming responses.
Tools and structured outputFunction/tool schemas and JSON-schema controls differ between providers and backend modes.Maps local tools/functions and forwards structured-output schemas through native GigaChat response_format.
AuthorizationOpenAI/Anthropic clients work with API keys, while GigaChat requires a different credentials/scope mechanism.Separates proxy API-key authentication from upstream GigaChat authorization and, if needed, supports per-request pass-through.
Model discoveryGigaChat model responses do not match the OpenAI/Anthropic/Gemini/LiteLLM shape.Repackages the model list and description for the target client.
OpenAI/Anthropic/Gemini batch routesGigaChat has native create/poll but no cancel/delete operation.Uses native execution, durable row mappings and protocol results; cancel/delete returns an explicit unsupported error. See resource APIs.

Mounted routes​

Public API routes are available at the root and under versioned prefixes. For built-in GigaChat models, /v1 forces the GigaChat v1 contract, /v2 forces v2, and root routes use GPT2GIGA_GIGACHAT_API_MODE=v1|v2. A model that resolves to an explicit provider-profile alias uses that profile instead; the versioned public prefix does not redirect it to GigaChat.

Examples:

  • /chat/completions, /v1/chat/completions, and /v2/chat/completions
  • /responses, /v1/responses, and /v2/responses
  • /messages, /v1/messages, and /v2/messages
  • /models/{model}:generateContent, /v1/models/{model}:generateContent, /v2/models/{model}:generateContent, and /v1beta/models/{model}:generateContent

OpenAI-compatible routes​

Route / groupStatusComment
GET /modelsSupportedDynamic GigaChat inventory or static provider-profile aliases in OpenAI form. A Codex request with client_version receives an empty native Codex catalog so an explicitly configured custom model retains client-owned instructions and tool metadata.
GET /models/{model}SupportedOne dynamic model or exact static alias in OpenAI form.
POST /chat/completionsSupportedNon-streaming and streaming chat, tools/function calling, structured output, attachments where supported.
POST /responsesStable native / normalized previewNative GigaChat execution preserves the compatibility surface, including hosted tools and attachment handoff. Route-selected normalized execution is technical preview and rejects semantics that its selected route/model/API mode cannot preserve.
POST /embeddingsSupportedUses the model from the request or the proxy default for embeddings, depending on the configuration.
GET /model/infoSupportedLiteLLM-compatible model info endpoint.
POST /files, GET /files*, DELETE /files/{id}SupportedUpload/list/get/delete and binary content; root, /v1 and /v2 aliases.
POST /batches, GET /batches*Supported subsetNative chat/stateless Responses/embeddings jobs; durable output/error files and gateway delivery deadlines.
Stored chat-completion routesNot implementedStored completions are out of scope for now.
Legacy POST /completionsNot implementedLegacy text completions are out of scope for now.
POST /images/generationsSupported subsetv2, one image, base64 bytes; see native utilities.
Audio, moderations, multipart Uploads APINot implementedNo matching backend contract.
POST /responses/input_tokensText estimateCalls tokens/count without generation or uploads; instructions, functions and output schemas included.
Responses retrieve/delete/input_items; Conversations CRUD/itemsOpt-inGPT2GIGA_RESPONSES_STORAGE_MODE=gateway; see response storage.
Fine-tuning, assistants, threads, runs, vector storesNot implementedOut of scope for now.
Realtime/WebSocket APINot implementedOut of scope for now.

Anthropic-compatible routes​

Route / groupStatusComment
GET /modelsSupportedReturned in the Anthropic shape when the request contains Anthropic SDK headers.
GET /models/{model_id}SupportedReturned in the Anthropic shape when the request contains Anthropic SDK headers.
POST /messagesSupportedMessages API, streaming, local tools, GigaChat v2 mapping for compatible Anthropic provider tools, and native structured output. All compatibility modes share the request/response/SSE execution core.
POST /messages/count_tokensProvider-dependentGigaChat can count message, system, tool, and structured-output text. A Chat Completions-only external alias rejects the operation because it has no exact token-count API.
POST /messages/batches, GET /messages/batches*Supported subsetNative execution and per-item results with enforced gateway delivery deadline; no cancellation.
Files API betaSupported subsetExplicit Anthropic headers dispatch shared /files; file-only upload and native attachment references.
Skills API betaNot implementedOut of scope for now.
Agents, Sessions, Environments, Admin beta APIsNot implementedOut of scope for now.

Gemini-compatible routes​

Gemini operation routes are mounted at the root, under /v1, /v2, and /v1beta, like the other public APIs. For clients that add the Gemini API version to an already versioned base URL, /v1/v1beta and /v2/v1beta are also available. /v1 and /v1/v1beta force the GigaChat v1 backend contract, /v2 and /v2/v1beta force the GigaChat v2 backend contract. The root Gemini paths /... and /v1beta/... without an outer /v1 or /v2 use GPT2GIGA_GIGACHAT_API_MODE=v1|v2.

Those Gemini version-prefix rules apply to built-in GigaChat models. An exact external provider-profile alias remains on its selected provider for every compatible public path.

Gemini model discovery in the pure Gemini form is always available under /v1beta, /v1/v1beta, and /v2/v1beta. On the shared /models, /v1/models, and /v2/models, the proxy keeps the OpenAI form by default, but returns the Gemini form for Google/Gemini clients, for example with the X-Goog-Api-Client or X-Goog-Api-Key headers, or with the ?key=... query parameter.

OpenAI-shaped model objects include the gpt2giga extension metadata.type="chat"|"embedder". The gateway preserves an upstream type when available and otherwise infers embedding models from their model id. Consumers can use this metadata to keep embedding-only models out of chat model selectors without changing the standard OpenAI model fields.

If proxy API-key authentication is enabled, Gemini-compatible clients can pass the key via x-goog-api-key or ?key=..., in addition to the common Authorization: Bearer ..., x-api-key, and ?x-api-key=.... For new setups, header-based authentication is preferable: query keys more often end up in access logs.

supportedGenerationMethods is built conservatively: known GigaChat/chat-like models advertise generateContent, streamGenerateContent, and countTokens; embedding-like models advertise only embedContent and batchEmbedContents; unknown/custom model ids advertise no methods, unless the backend metadata provides more precise information. A static Chat Completions alias advertises generation and streaming, but not countTokens.

Route / groupStatusComment
GET /v1beta/models, /v1/v1beta/models, /v2/v1beta/modelsSupportedList of GigaChat models in the Gemini models/* form.
GET /v1beta/models/{model}, /v1/v1beta/models/{model}, /v2/v1beta/models/{model}SupportedA single model in the Gemini Model form.
POST /models/{model}:generateContent, /v1/..., /v2/..., /v1beta/..., /v1/v1beta/..., /v2/v1beta/...SupportedMaps the admitted contents/parts, systemInstruction, generationConfig, function declarations/results, typed inline images, and JSON Schema output into a bridge-admissible normalized chat request. Unmodeled safety, cache, file, and tool semantics remain explicit and fail OpenAI-compatible bridge admission before I/O.
POST /models/{model}:streamGenerateContent, /v1/..., /v2/..., /v1beta/..., /v1/v1beta/..., /v2/v1beta/...SupportedReturns text/event-stream with Gemini GenerateContentResponse chunks.
POST /models/{model}:countTokens, /v1/..., /v2/..., /v1beta/..., /v1/v1beta/..., /v2/v1beta/...Provider-dependentGigaChat counts systemInstruction, contents, and function declarations. A Chat Completions-only external alias rejects the operation.
POST /models/{model}:embedContent, /v1/..., /v2/..., /v1beta/..., /v1/v1beta/..., /v2/v1beta/...SupportedReturns Gemini embedding.values using the GigaChat embeddings backend.
POST /models/{model}:batchEmbedContents, /v1/..., /v2/..., /v1beta/..., /v1/v1beta/..., /v2/v1beta/...SupportedReturns Gemini embeddings[] using the GigaChat embeddings backend.
Resumable /upload/v1beta/files, GET /v1beta/files*, deleteSupported subsetReal SDK upload; metadata alone does not publish a file. See Gemini resources.
:batchGenerateContent, :asyncBatchEmbedContent, GET /v1beta/batches*Supported subsetNative jobs projected as SDK Operations with real destinations.

Gemini function calling​

toolConfig.functionCallingConfig is mapped to the nearest supported semantics of the normalized/OpenAI-like layer:

  • mode=AUTO keeps function calling optional. If allowedFunctionNames is set, the upstream receives only those declared functions.
  • mode=NONE disables function calling.
  • mode=ANY is supported only when, after applying allowedFunctionNames, exactly one function remains; it is mapped to a forced function call.
  • mode=ANY without allowedFunctionNames is also supported if exactly one function is declared.
  • mode=ANY with several possible functions returns 400, because the GigaChat backend path currently cannot honestly express "must call one of several functions."
  • allowedFunctionNames is validated against the declared functionDeclarations; references to undeclared functions return 400.

Gemini embeddings​

embedContent and batchEmbedContents support only text content.parts[].text. Empty requests, malformed batch entries, and non-text parts return 400 before the GigaChat embeddings backend is called.

outputDimensionality is accepted as compatibility metadata for the normalized request/observability, but is not passed upstream as an executable setting: the current GigaChat embeddings backend path does not provide controlled dimension reduction through this parameter.

Gemini release scope and validation​

This is a Gemini-compatible API surface, not full Gemini API parity. Before a release, check exactly the declared scope:

  • supported routes: generateContent, streamGenerateContent, countTokens, embedContent, batchEmbedContents, model discovery;
  • supported prefixes: root, /v1, /v2, /v1beta, /v1/v1beta, /v2/v1beta;
  • resource routes: resumable Files, batchGenerateContent and asyncBatchEmbedContent use native execution and the common durable store;
  • partially supported fields: safetySettings and cachedContent are accepted for compatibility/diagnostics but not enforced; candidateCount, topK, and responseModalities are accepted/observed but ignored by GigaChat execution;
  • structured output: generationConfig.responseMimeType=text/plain is treated as the default text mode, application/json is mapped to the JSON response format, and other MIME types and responseSchema without application/json return 400;
  • unsupported features: Gemini tools outside the GigaChat SDK built-in mapping (fileSearch, googleMaps, computerUse, MCP, RAG/retrieval/Vertex tools), arbitrary external file URIs and non-text embeddings content;
  • approximations: countTokens counts the extracted text through GigaChat token counting, ignores non-text/file/cachedContent parts, and is not an exact Gemini tokenizer.

Copyable release checklist for the PR description:

uv run ruff check .
uv run ruff format --check .
uv run pytest tests/test_protocol/test_gemini_adapter.py tests/test_router/test_gemini_router.py tests/integration/gemini/test_gemini_app_wiring.py

# Optional, requires live GigaChat credentials.
GPT2GIGA_RUN_LIVE_TESTS=1 uv run pytest tests/live/test_real_gigachat_integration.py -k gemini

# Optional release smoke for google-genai + Gemini CLI, auth on/off, and base URL matrix.
GPT2GIGA_RUN_GEMINI_SMOKE=1 GPT2GIGA_LIVE_ENV_FILE=.env.live uv run pytest tests/live/test_gemini_client_smoke.py

Compatibility policy​

gpt2giga intentionally accepts many optional SDK fields that GigaChat cannot execute. This keeps clients from failing before the useful part of the request reaches the model.

Typical fields that are accepted and ignored:

  • OpenAI metadata and fine-tuning parameters: user, metadata, service_tier, seed, prompt_cache_key, logprobs, top_logprobs, logit_bias, prediction, web_search_options, n > 1;
  • Optional Anthropic fields: metadata, service_tier, top_k, container, context_management, mcp_servers, unsupported provider tools, citations, unsupported document/file content blocks. Compatible provider tools (web_search*, web_fetch*, code_execution*) are mapped to GigaChat v2 built-in tools.
  • Optional Gemini fields: safetySettings, cachedContent, serviceTier, ignored generationConfig controls such as candidateCount/topK/responseModalities, and unsupported non-function tools are accepted and kept for diagnostics, but not applied by GigaChat. Compatible Gemini provider tools are mapped to GigaChat v2 built-in tools: googleSearch / googleSearchRetrieval -> web_search, urlContext -> url_content_extraction, codeExecution -> code_interpreter; the full mapping is described in Built-in tools. Unsupported responseMimeType values and responseSchema without application/json are rejected.

Buffered parallel local function calls are supported for GigaChat-2-Max on v2 OpenAI Chat Completions, Anthropic Messages, and Gemini generateContent routes. GigaChat v1 behavior is unchanged.

If a field is intentionally ignored, it is not sent upstream as an executable GigaChat feature. A literal extra_body object can be passed to GigaChat additional_fields; in that case the GigaChat API determines support.

In observability, ignored request extensions are published in the redacted llm.request.extensions attribute, and ignored Gemini generation controls remain in llm.invocation_parameters.

A reference for each parameter: Client parameter compatibility.

The 0.3 multi-provider route statuses, semantic dispositions, machine capability contract, and stable bridge errors are documented in Bridge compatibility, loss, and errors.

The internal normalized layer that separates public protocol formats from provider execution is described in Normalized messages architecture.

The normalized bridge includes:

  • a versioned semantic-loss matrix for OpenAI-compatible, Anthropic, and Gemini routes, with unsupported requests rejected before provider I/O;
  • an OpenAI-compatible/vLLM Chat Completions adapter with exact profile/model binding, request-specific network authorization, SecretRef, strict model discovery, and bounded streaming;
  • direct Anthropic request, response, SSE, tool, usage, error, and token-count projection through the normalized core;
  • the admitted Gemini request, response, SSE, function, safety, usage, model, and token-count contracts, including typed inline-image references;
  • hermetic coverage for text, streaming, partial usage, function tools, cancellation, malformed streams, timeouts, and provider errors across the three public protocol families.

This does not add a public switch for arbitrary upstream addresses. Version 0.3 profiles define routes, credential values remain in the environment, and the trusted application owner supplies network/TLS policy references. See Provider profiles and model aliases.

Backend modes​

By default, the GigaChat root compatibility methods are used:

GPT2GIGA_GIGACHAT_API_MODE=v1

Set GPT2GIGA_GIGACHAT_API_MODE=v2 so that root routes without /v1 or /v2 use the newer GigaChat v2/chat/completions surface for chat-like requests. For an explicit choice at the client level, use a base_url with /v1 or /v2: /v1 always goes to the GigaChat v1 contract, /v2 always goes to the GigaChat v2 contract.

/chat/completions remains a compatibility route and follows the env. The new built-in-tool capabilities evolve mostly around GigaChat v2 mode, so clients that need them can point to http://localhost:8090/v2.

SDK contract alignment​

The gateway installs gigachat[aiohttp]==0.3.0a1 from PyPI; uv.lock pins the resolved version and artifact hashes. The gateway and SDK are tested together with synthetic HTTP responses; these checks do not establish live model quality, feature permissions, cache savings, or deterministic generation.

ContractGateway behavior
v2 generation optionsLimits and sampling options are serialized under model_options; reasoning token budgets are retained. Mapped public parameters take precedence over extra options; other nested options are preserved.
Required function selectionOpenAI tool_choice="required" and Anthropic tool_choice.type="any" use v2 tool_config.mode="any". v1 rejects this requirement instead of silently using auto. Forced choices use mode="forced".
Parallel function resultsEach result retains its call id, including repeated function names. tools_state_id remains a separate conversation-state field.
Advanced optionsextra_body / SDK additional_fields retain supported provider options without adding specialized gateway classes for internal services.
Cached tokensOpenAI prompt/input totals include cached tokens, with the cache count also exposed in token details. Anthropic exposes uncached input_tokens and separate cache_read_input_tokens.
Responses settingsOmitted temperature and top_p are reported as null, including streaming responses; an omitted store is reported as false. parallel_tool_calls reflects the effective GigaChat request, including nested overrides; its GigaChat default is false.
Responses historyNative v2 maps previous_response_id to storage.thread_id, omits model on continuation, and sends only the new input. v1 rejects previous_response_id and store=true; send full history or use /v2/responses.
Responses modelmodel may be omitted when a configured default or upstream assistant/thread selector supplies it. An explicit client model name is preserved in the response; otherwise the upstream model or configured default is used.
Responses completionToken-limit and content-filter stops return status="incomplete" with incomplete_details.reason set to max_output_tokens or content_filter. SSE ends with response.incomplete; partial output is retained.
Assistant/thread selectorsNative assistant_id and stateful storage select the upstream without an injected default model, including v1.
Session headerGIGACHAT_SESSION_ID supplies the SDK default; request X-Session-ID overrides it without leaking into later requests.
CLI env fileRelative --env-path resolves from the working directory. A missing explicit file stops startup.

Stored Responses retrieval (GET /responses/{id}) remains unimplemented; v2 continuation is backed by GigaChat threads, not a full OpenAI Responses store. Clients must retain the response identifier. JSON Schemas are forwarded intact; the gateway cannot repair model-generated arguments or v1 anyOf behavior.

Some differences are intentional: plain-text tool results are wrapped as {"result": "..."} for GigaChat, and Messages accepts omitted max_tokens (the Anthropic SDK requires it). Send an explicit token limit for portability. DEV wildcard CORS remains a development configuration; authentication and CORS controls are described in Configuration. The dependency constraint remains openai>=2.50,<3.

Replaying tool calls​

GigaChat's conversation state is returned as the tools_state_id extension on each OpenAI Chat Completions tool_calls[] entry, Responses function_call item, and Anthropic tool_use block. Keep that extension when replaying the assistant message or output items, for example with the Python SDK's model_dump(). The gateway uses it for the assistant turn and matches tool results by their original call ID, including multiple calls with the same function name.

Native Responses also needs the function name for each function_call_output. Include the matching function_call in input, or set the GigaChat extension name on the result, for example:

{"type": "function_call_output", "call_id": "call_123", "name": "get_weather", "output": "Sunny"}

previous_response_id alone does not recover this name. If it cannot be resolved from the request, the gateway returns HTTP 400 with unsupported_semantic before contacting GigaChat. Preserve call_id and any tools_state_id as well.

Treat call IDs and state IDs as separate opaque strings. Do not strip their prefixes or replace id / call_id / tool_use_id with the state. SDK streaming accumulators receive each identity once; tool blocks may wait for a late state event before they are emitted. Clients that rebuild messages from a strict field allowlist must explicitly retain tools_state_id. Response-level metadata.gigachat_tool_state_id remains available for manual history builders.

Examples for the updated contracts​

Run these from the repository root after starting a local proxy:

uv run python examples/openai/chat_completions/basic/session_cache_usage.py
uv run python examples/openai/responses/tools/required_parallel_stream.py
uv run python examples/anthropic/messages/tools/required_tool.py
uv run python examples/openai/chat_completions/reasoning/chat_reasoning.py
uv run python examples/openai/responses/basic/stateful.py

The example index explains expected fields and prerequisites. The Responses example preserves each call_id and copies metadata.gigachat_tool_state_id into a separate tools_state_id on the history item. Enabling parallel calls does not guarantee their count. The examples execute tools using fixed local stub data.

Additional options can be sent through the OpenAI SDK:

response = client.chat.completions.create(
model="GigaChat-2-Max",
messages=[{"role": "user", "content": "Give a short solution."}],
max_completion_tokens=1024,
reasoning_effort="low",
extra_body={
"reasoning": {"max_tokens": 256},
"model_options": {"repetition_penalty": 1.05},
},
)

Here client uses /v2. To select a configured assistant instead of a model, pass extra_body={"assistant_id": "<your assistant ID>"}: the gateway removes model from the upstream request. This does not create an assistant; it requires an existing identifier available to your account.

Upstream transport errors​

Before response start, SDK timeouts return 504 (upstream_timeout); connection, validation and interrupted streams return 502 (upstream_connection_error, invalid_upstream_response, stream_interrupted). Gemini uses DEADLINE_EXCEEDED for 504 and UNAVAILABLE for 502. After headers, protocol SSE error events preserve the already sent HTTP status; failures never replay dispatched chat calls. Gateway X-Request-ID is unchanged. An available upstream ID is returned as X-GigaChat-Request-ID in HTTP errors or error.metadata.gigachat_x_request_id in SSE (Responses error event uses metadata directly). No body or credentials are copied into diagnostics. OpenAI Files content returns the original bytes.

Expanded contract boundaries​

All Gemini generation/count/embedding aliases serialize errors consistently. HTTP and SSE use numeric Google error codes and canonical statuses (timeout: 504 / DEADLINE_EXCEEDED). An error does not produce a subsequent successful terminal event; upstream IDs remain separate from the gateway request ID. countTokens never falls back after dispatch. Malformed upstream embedding responses (missing/extra/empty vectors, duplicate or invalid indices) return 502; valid reordered indices are restored to input order. Accepted outputDimensionality, taskType, title and nested model hints retain their existing ignored policy.

Gemini Models applies pageSize/pageToken and advertises methods from model capability evidence, not owner-name substrings. Unknown models do not gain speculative methods. Anthropic Models uses known release dates, otherwise a stable epoch. Public GigaChat facts advertise parallel calls for GigaChat-3-Ultra via v2, not GigaChat-2-Max; explicit reviewed profile/provider metadata takes precedence.

The default Anthropic version and 2023-06-01 keep legacy parameter acceptance. Explicit anthropic-version: 2026-10-21 rejects temperature/top_p/top_k and direct assistant document blocks, including count and batch input. Files use page/next_page for that version; Models still uses after_id/before_id. Document blocks require supported owner-scoped file references; unsupported document source semantics return a validation error rather than disappearing.

Batch execution and deadlines​

Batch APIs require GigaChat pay-as-you-go batch access. Each job has one GigaChat model and endpoint family, stream=false, unique custom IDs and user-defined functions only. OpenAI supports Chat Completions, stateless Responses and embeddings; Anthropic supports Messages. Hosted tools and stateful Responses are rejected before submission. JSONL input/output is retained locally in the shared resource store rather than uploaded as a GigaChat document. Polling only retrieves an existing job. Unknown native jobs are not included in another protocol's list. There is no gateway scheduler or background polling worker.

For OpenAI completion_window="24h" and Anthropic expires_at, 24 hours is a gateway result-acceptance deadline, not a promise about native processing duration. Poll before the deadline to persist confirmed results. At the first poll after the deadline, unresolved rows become permanently expired; confirmed success/error results remain accessible until resource retention expires. A first poll after the deadline can therefore expire a job that the backend actually finished in time: the SDK's updated_at is not a verified completion timestamp. Late results never overwrite expiry. GigaChat jobs may continue and be billed after gateway expiry; cancellation and deletion return 501 and do not stop the upstream job. These limitations also apply to the examples.

Create failures after an ambiguous timeout are not automatically retried, because the native job may already exist. Batch output/error files and row mappings survive worker changes and restart when the resource volume is preserved. Check both output_file_id and error_file_id for OpenAI, or each Anthropic result's type; successful HTTP polling does not imply every item succeeded.

Execution and resource boundaries​

Known GigaChat aliases bind the selected endpoint, credentials and upstream model before preparation, including when request-model forwarding is disabled. Request token overrides retain that endpoint. The public Chat Completions facade to an OpenAI-compatible upstream remains blocked; it does not fall through to GigaChat. See provider profiles.

Required attachment failures stop generation. Registered file ownership applies to raw native IDs, headers and protocol-specific references, including batch rows. See resource guarantees. Responses streams require semantic completion, and gateway snapshot admission rejects unreplayable attachment/native state before I/O; see response storage.