Document strict websocket envelope field handling
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
dc4e46ed89
commit
2642ce3c4b
1 file changed
+1
@@ -90,6 +90,7 @@ Runtime command semantics:
|
||||
- Runtime validates request payloads with shared Zod contracts.
|
||||
- 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.
|
||||
- Codex execution sandbox policy (`read-only`, `workspace-write`, `danger-full-access`) is still selected per session startup options.
|
||||
- Static HTML responses are served with `Cache-Control: no-store`; built `/assets/*` files are served with long-lived immutable cache headers.
|
||||
- Static file success responses include `Accept-Ranges: bytes`, `Vary: Range`, deterministic `ETag` and `Last-Modified` validators, plus hardened browser headers (`X-Content-Type-Options`, `X-Frame-Options`, `Referrer-Policy`, `Cross-Origin-Resource-Policy`, `Cross-Origin-Opener-Policy`).
|
||||
|
||||
Reference in new issue
Block a user