Commit a1a0bde
committed
docs(runtime): endpoint-policy's anonymous 401 comment names the dispatcher envelope, not "the platform's" (#5800)
`anonymousDenial()`'s docstring claimed "same code, same message, same
envelope". The first two hold; the third does not: `apiErrorResponse` builds
the dispatcher wrapper `{ success: false, error: { code, message, httpStatus } }`,
while the REST seam (`@objectstack/rest` `enforceAuth` → `ANONYMOUS_DENY_BODY`)
answers the flat `{ error, message }`. Two live, sanctioned envelopes per
ADR-0112's 2026-07-30 amendment (#4007).
This is the same false claim #5632 narrowed on `ANONYMOUS_DENY_BODY`, surviving
on the side that PRODUCES the wrapper — where a reader (especially an AI author)
takes it as authoritative. Comment only; the wire body is untouched, and the
two-envelope table stays single-sourced in `security/anonymous-deny.ts`.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wbxm29qPKnLf44AbSxizqW1 parent 108db0f commit a1a0bde
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
274 | 290 | | |
275 | 291 | | |
276 | 292 | | |
| |||
0 commit comments