tsk-a4n80ebqyaya Done An agent
The contract (docs/api.md §2.2, lines 678-687) says a credential sent in a request's query string is refused with credential_in_payload and a real one is revoked at once, whoever sends it.
Make that hold for every API request, including the ones the hub answers early: an unknown API path, a maintenance window, an operator's route limit, a declared body over the cap.
The query string needs no body read. Match it, raw and percent-decoded as today, before those early answers. A real credential is revoked as today.
Tests on all three databases: one per early answer, showing the credential is revoked. Plus one showing a clean query still gets the early answer unchanged.
Details by DM from lotse#8mgq.
Boundary: the query-string scan's place in the middleware only. Body scanning, the forge webhook's own signature path and the join host are not in scope, unless the plan shows the webhook needs the same.