Commit af05400
`POST /api/v1/automation` answered 500 INTERNAL_ERROR for four distinct
malformed flow definitions — a node missing `label`, an unknown node key, a
malformed ADR-0031 `try_catch` region, and a config key the node type's
descriptor does not declare (#4277). Every refusal was correct; only the class
and the envelope were wrong.
The registration branch now catches the engine's verdict and serves it as
400 VALIDATION_FAILED with an ADR-0114 `details.fields[]`. A raw Zod issue
array no longer reaches the wire, and the #4277 self-correcting message
survives verbatim (a 400 never reaches the 5xx message sanitiser).
Which bodies are refused is unchanged. An engine error that declares its own
`.status` / `.statusCode` keeps it.
Claude-Session: https://claude.ai/code/session_01B3Kurx8qufrDzNjk4rag7V
Co-authored-by: Claude <noreply@anthropic.com>
1 parent c10e9c3 commit af05400
3 files changed
Lines changed: 487 additions & 2 deletions
File tree
- .changeset
- packages/runtime/src/domains
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments