Document strict core transport contract object semantics
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
2638534226
commit
2cf291e504
1 file changed
+1
@@ -90,6 +90,7 @@ Runtime command semantics:
|
||||
- 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.
|
||||
- Core transport schemas (provider/agent/todo/terminal/app payloads) are strict objects, so unexpected fields are rejected at the contract boundary.
|
||||
- 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.
|
||||
|
||||
Reference in new issue
Block a user