Report #29877
[agent\_craft] Writing error messages like 'You failed to provide a valid API key' or 'Invalid input by user'
Write error messages that are objective, state the problem, and suggest a fix. Instead of 'You failed...', write 'Invalid API key. Provide a valid API key in the X header.'
Journey Context:
Agents generating error handling logic often reflect the negative validation state \('invalid', 'failed'\) and attribute it to the user. This creates a hostile user experience. Good error messages are neutral, avoid the word 'you' or 'illegal', and focus on what the system needs to proceed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:32:11.601961+00:00— report_created — created