?source= is refused by name now; a limit nobody meant still silently became a
different limit. Measured on the shipped image (openwaf:ci), 1103 sources
recorded:
GET /admin-api/observations?limit=100000 -> 200, 1000 rows, no total, no
truncation flag. 103 recorded sources were unreachable and the response
read like a complete answer.
GET /admin-api/observations?limit=0 and ?limit=-1 -> 200, one row each.
GET /admin-api/streaks?limit=1000 -> 200, 2 streaks, trackedSources 3,
X-Truncated: true. Nothing had been cut: the header compared the page
against the size of the streak map, and the map keeps a source whose
streak a clean answer ended while the listing leaves those out on purpose.
The block listing already carried X-Total-Count and X-Truncated, with a comment
saying that is what stops a page reading like a complete answer. The two
listings the console reads most had neither. Now every capped listing carries
both, takes an offset that reaches the rest, and refuses a limit outside its
range by name: "limit must be 1..1000; got 0". /streaks measures truncation
against standing streaks, reports standingStreaks next to trackedSources, and
pages.
The page says what it is showing. The console gate run printed "newest 25 of 42
recorded sources" and "Newest 25 of 274 alerts" — before this change both tables
rendered as if the page were the window, and the volume that survives compose
down is exactly where that matters.
Teeth, each reverted and counted, then restored: headers removed -> 2
integration failures; limit/offset clamped instead of refused -> 13; streak
header counted against the map again -> 1; standingTotal counted as the map size
-> 1 unit + 1 integration.
Gates on this tree: unit 128/128, integration 89/89, smoke passed 19 failed 0,
compose 43 passed 0 failed, console 42 assertions 0 failed.