Commit a40930c
committed
refactor(effect): drop per-action defect schema from Action
Defects are by definition outside the author's vocabulary, so a
per-action defect schema has no meaningful content for the author to
fill in. Their wire shape is a single runtime-wide policy owned by
rivetkit-core's sanitizer, so the client decoder for defects belongs on
the transport, not on each Action.
@effect/rpc keeps a per-RPC defectSchema because it serializes the full
Cause and lets each endpoint pick its own exposure policy. Rivet's
client<->engine boundary is always untrusted and sanitization happens
uniformly in core, so the per-action knob collapses to a no-op.1 parent cd13d4c commit a40930c
1 file changed
Lines changed: 0 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 6 | | |
23 | 7 | | |
24 | 8 | | |
| |||
44 | 28 | | |
45 | 29 | | |
46 | 30 | | |
47 | | - | |
48 | 31 | | |
49 | 32 | | |
50 | 33 | | |
| |||
68 | 51 | | |
69 | 52 | | |
70 | 53 | | |
71 | | - | |
72 | 54 | | |
73 | 55 | | |
74 | 56 | | |
| |||
180 | 162 | | |
181 | 163 | | |
182 | 164 | | |
183 | | - | |
184 | 165 | | |
185 | 166 | | |
186 | 167 | | |
| |||
220 | 201 | | |
221 | 202 | | |
222 | 203 | | |
223 | | - | |
224 | 204 | | |
225 | 205 | | |
226 | 206 | | |
| |||
230 | 210 | | |
231 | 211 | | |
232 | 212 | | |
233 | | - | |
234 | 213 | | |
235 | 214 | | |
236 | 215 | | |
| |||
241 | 220 | | |
242 | 221 | | |
243 | 222 | | |
244 | | - | |
245 | 223 | | |
246 | 224 | | |
0 commit comments