d4840f9236
tui_gateway/contracts/ is the single source of truth for the JSON-RPC wire: Params/Result/Payload bases, a registry of METHODS / SERVER_REQUESTS / EVENTS, runtime validation (unknown/mistyped params answer 4000 with the field path; a result or payload that violates its model raises under the test suite and logs once in production), and the server-request contracts + shared value shapes as the authoring template. scripts/gen_gateway_contracts.py renders the tables through a small JSON-Schema-subset walker into apps/shared/src/gateway-contract.generated.ts and gateway-contract.openrpc.json (unsupported constructs raise at generation). Method contracts for the 213 remaining handlers follow in the next commits.