Skip to content

SDK Capability Matrix ​

This page defines the cross-language unified baseline. For implementation status and language mapping, see the root-level sdks/SDK_FEATURE_MATRIX.md; for protocol details, see SDK Wire Protocol.

Layers ​

LayerPositioningUnified requirement
L1Minimal provider callee setRequired for all official SDKs: registration, invocation, heartbeat, reconnection, TLS, drain.
L2Provider governance extensionsMust align when implemented: schemas, manifests, file transfer, OpenAPI import.
L3Standalone Invoker callerServer HTTP only; reusing the Provider TCP session is forbidden.
L4Language/engine extensionsNo cross-language alignment, but platform versions and language runtime limits must be declared.

Required and Optional ​

CapabilityLayerStatusOnboarding requirement
Registration & sessionL1RequiredNon-empty gameId/env/agentId/serviceId/sdkVersion.
Function catalogL1RequiredStable function IDs, input/output schemas, risk and permissions.
Heartbeat/reconnect/drainL1RequiredIn-flight calls settle first; no new requests accepted after drain.
OpenAPI ProviderL2OptionalStable operationId; schema matches the implementation.
TasksL3OptionalStart, status, events, cancellation, and idempotent result queries.
External function pluginsL2OptionalDeclared contract, process lifecycle, timeout/cancellation, fault isolation.
File deliveryL2OptionalVerify SHA256, size, and write-to-disk boundaries.
ProbingL2OptionalClear protocol semantics and network placement; unimplemented must return unsupported.

Versioning and Compatibility ​

ObjectRequired contractCompatibility rule
SDKLanguage, sdkVersion, gameId/env, closed set of wire capabilitiesRegistration rejected below the configured floor; accepted with a warning below the high-water mark.
AgentagentVersion, hosted capabilities, wire version, gameId/envMissing capability reports unsupported; never silently degrades.
FunctionfunctionId, version, input/output schemas, permissions, approval policyA rejection threshold may be set for low versions; old bindings judged stale by digest.
OpenAPIOpenAPI 3, stable operationId, schemas, risk annotationsValidated at import; a schema or ID change is a new contract.
PluginsManifest, dependencies, ABI/IPC versions, capabilities, permissionsInstall/enable rejected if the version is undeclared or dependencies unmet.
PageSpecPage, bindings, approval policy, renderer ABI, schema digestPublished snapshots are frozen; stale bindings block execution.

Upgrade order: protocol & platform → Server → Agent → SDK/plugins → PageSpec publication. During mixed-version windows, old fields must remain readable; deleting fields or changing semantics is a breaking change — publish a compatible transitional contract first.

Closed Error Set ​

StatusTriggerConsumer action
MISSING_SCOPEMissing gameId/envFix the identity and reconnect; no local defaults.
SCOPE_MISMATCHSession scope differs from the function/page targetStop execution and check the registration source.
SCHEMA_INVALIDPayload violates the input/output contractDo not invoke the business implementation.
VERSION_TOO_LOWSDK/function below the rejection thresholdUpgrade, then register again.
CONTRACT_STALEPage snapshot inconsistent with the current function contractRepublish the page or update the function.
CAPABILITY_UNSUPPORTEDCapability requested but not implementedReport the error truthfully; never treat metadata as success.
RESULT_UNKNOWNTimeout, disconnection, or lost business responseOnly query the original operationId; substitute retries are forbidden.

Onboarding Acceptance Chain ​

  1. Registration: non-empty scope, agent/service identity, SDK version, and function contracts are stored successfully; an erroneous scope is rejected.
  2. Schema: a valid minimal payload passes; missing fields, wrong types, and out-of-scope fields fail with errors pinpointed to the field.
  3. Authorization: calls without permission are rejected; approval-gated functions execute only after approval, and contract changes after approval are blocked.
  4. Controlled writes: replaying the same operationId returns the original credential or an idempotent result; same ID with different parameters is a conflict.
  5. Unknown results: after simulating a lost response, only querying the original ID is allowed; no substitute side effects may be issued.
  6. Reconnection recovery: after rebuilding the session the function catalog is consistent, and reconnect storms back off.
  7. Task cancellation/status: a running task stops in-flight work once cancelled; terminal states and events are queryable.
  8. Probing failures: unavailable probing produces a locatable error, never a disguised business success.
  9. Observability: the SDK/OpenAPI/plugin paths record latency, hop counts, and failure classifications.

Acceptance Tooling and References ​

  • Reference game service: examples/openapi-provider offers /players queries, CRUD, and player.kick, with operationIds matching the OpenAPI 3 contract; the default default/dev is overridable.
  • Cross-language tooling: extend scripts/check-sdk-matrix.sh into an integration acceptance runner that runs L1/L3 contract tests, the closed error set, and mixed-version cases per language; the Go/Python reference plugins are filled in as implementations land.
  • The existing matrix check in this repo only proves the API surface exists; the acceptance chain on this page additionally requires invocation behavior, authorization, idempotency, and unknown-result handling to pass.