Files
clawX/harness/specs/rules/api-client-transport-policy.md
2026-05-01 00:22:30 +08:00

662 B

id, title, type, appliesTo, requiredTests
id title type appliesTo requiredTests
api-client-transport-policy API Client Transport Policy ai-coding-rule
gateway-backend-communication
tests/unit/api-client.test.ts

Gateway RPC transport is IPC-only by default. Renderer code must not enable WebSocket or HTTP transport unless src/lib/api-client.ts explicitly gates it behind clawx:gateway-ws-diagnostic.

When diagnostics are enabled, the allowed order is WS -> HTTP -> IPC; otherwise the allowed order is IPC.

Failed non-IPC transports must use backoff before retry. gateway:httpProxy remains a Main-owned proxy path and must not become direct renderer Gateway HTTP access.