Notifications probe expects 400 for a missing required category; API returns 422 #1251

Open
opened 2026-10-06 23:33:18 +00:00 by kayg · 0 comments
Owner

Notifications missing-category probe expects 400; merge31 returns 422 (#1202)

Product 139d4378e, release server. POST /api/v1/notifications/inbox/toasts with a fresh event UUID and title/action/link but no category_id returned 422. The existing tests/adversarial/toast_notifications.mjs:78 requires 400.

AssertionError: missing toast category: expected HTTP 400, received 422
422 !== 400

The input was rejected; no accepted hostile input or access hole was observed. The original 400 assertion remains intact. The probe now defers only that assertion failure, then runs the independent unread, clear/Undo and cross-User checks and returns an aggregate failure. The focused rerun will provide their outcome. The orchestrator must decide the intended missing-field status; this job does not change the assertion or route to make it pass.

Notifications missing-category probe expects 400; merge31 returns 422 (#1202) Product `139d4378e`, release server. `POST /api/v1/notifications/inbox/toasts` with a fresh event UUID and title/action/link but no `category_id` returned 422. The existing `tests/adversarial/toast_notifications.mjs:78` requires 400. ```text AssertionError: missing toast category: expected HTTP 400, received 422 422 !== 400 ``` The input was rejected; no accepted hostile input or access hole was observed. The original 400 assertion remains intact. The probe now defers only that assertion failure, then runs the independent unread, clear/Undo and cross-User checks and returns an aggregate failure. The focused rerun will provide their outcome. The orchestrator must decide the intended missing-field status; this job does not change the assertion or route to make it pass.
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal-v0#1251
No description provided.