Files
clawX/harness/specs/rules/gateway-readiness-policy.md
2026-05-01 00:22:30 +08:00

688 B

id, title, type, appliesTo, requiredTests
id title type appliesTo requiredTests
gateway-readiness-policy Gateway Readiness Policy ai-coding-rule
gateway-backend-communication
tests/unit/gateway-events.test.ts
tests/unit/gateway-ready-fallback.test.ts

Gateway status handling must preserve gatewayReady semantics.

gatewayReady: false means runtime-dependent refreshes should wait. gatewayReady: true means the Gateway reported readiness. gatewayReady: undefined is backward-compatible with older Gateway versions and must be treated as ready when the Gateway state is running.

Gateway manager fallback may mark readiness true after its timeout, but it must not emit duplicate ready transitions.