You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cad8b42
Browse filesBrowse the repository at this point in the historyBrowse files
fix(rest): serve a sandboxed hook refusal's declared code at every status, not only where a bespoke arm caught it first (#11590)
* fix(rest): serve a sandboxed hook refusal's declared `code` at every status, not only where a bespoke arm caught it first
`classifyDataError`'s sandbox unwrap door (`typeof error?.innerMessage ===
'string'`) rendered from the raw error and emitted no `code` at all, while
every arm around it renders from the resolved envelope. A hook throwing
`{ code: 'RECORD_LOCKED', status: 409 }` reached the client with the status and
no machine-readable code; `DELETE_RESTRICTED` at the same 409 kept its code
only because it has a bespoke arm above the door.
Never a status policy: the door dropped `code` on a declared 400 exactly as on
409, and kept it on 5xx by falling through to the passthrough. The code now
rides via `thrownCodeFields` — the one definition the three sibling arms use —
so the door joins the closed ADR-0112 vocabulary and invents nothing for a
producer that declared none.
Fixes#10345
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019siH5jDmk5hrayvfyojUqR
* test(rest): record the measured ablation result beside the prediction it corrects
The prediction said 13 red in this file and 2 in the vocabulary suite; the
measurement was 15 and 3. Both misses are recorded rather than fitted: one §3
case asserts the code as well as the status and belongs with the defect pins,
and §1 of the vocabulary suite contributes two assertions per arm, not one.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019siH5jDmk5hrayvfyojUqR
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments