From bce4b2a0e572d1419655c4cb4162e9d0dad588b4 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 12:21:29 +0000 Subject: [PATCH] Document shared runtime and renderer success payload validation Co-authored-by: Theo Browne --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b806520018..9da75d9e7a 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,7 @@ Runtime command semantics: - Renderer now proactively resets the websocket after request send failures, rejects any in-flight requests, and reconnects cleanly on later requests. - Send-failure request errors now include non-Error payload details when available (for clearer diagnostics). - Runtime validates request payloads with shared Zod contracts. +- Runtime and renderer both validate critical success payloads with shared contracts to prevent malformed envelope data from entering app state. - Runtime successful responses always include `result` (using `null` for void methods) to keep websocket envelopes schema-safe. - Websocket event envelopes are channel-typed (`provider:event`, `agent:output`, `agent:exit`) and validated against shared payload schemas. - Websocket protocol envelopes are strict (unexpected top-level fields are rejected) to keep RPC/event parsing deterministic.