Archived
bad_arguments names the offending tool_calls[].function.arguments when a refused conversation reaches it -- and it probed each string with the plain Json::parse. The HTTP edge depth-caps these strings (its comment is explicit that the strings could otherwise overflow a worker's stack), but nothing capped the VALUE COUNT: a client whose conversation had already failed the template -- exactly the path this refusal exists on -- could hand the probe a few million flat values, and the probe grew a DOM no one would ever read, once per request, inside the body's 512 MiB. Offline callers (fleet, diagnose) reach the same path with no edge at all. The probe is parse_bounded now, at the same depth the edge enforces and a values budget a tool call cannot approach; over, too deep, and not JSON each name themselves in the refusal, and the honest case still refuses in the template's own words. chat_test pins all three bounds. Found by the 2.1.0 review pass (axis: hostile sockets).