Files
Ignacy Łątka bea3360aa6 feat(telemetry): record which constraint a rejected tool parameter broke
Schema rejection is the single broadest failure in production: 1131 of 2870
weekly active users hit HTTP_ZOD_VALIDATION_FAILED, and `await-ui-element`'s
`timeoutMs` alone accounts for 325 of them. `invalid_params` names the
parameter but not the rule it broke, and the two dominant possibilities want
opposite fixes -- a value over the 120000 bound argues for widening it, a
value of the wrong type argues for clearer prose. Today they are
indistinguishable, so neither fix can be justified from the data.

Emit zod's own issue codes alongside the names. They are a closed vocabulary
from the schema library, so the "names from Argent's schemas only, never user
input" contract in Telemetry.md still holds; an unrecognised code is dropped
rather than passed through, because the sanitize allowlist voids a whole array
for one stray element.
2026-09-01 18:05:44 +02:00
..