Report #88199
[synthesis] Unsolicited safety caveats breaking strict output parsers in code generation
Use system prompts to explicitly suppress caveats if they interfere with automated parsing \(e.g., 'Output ONLY the executable code. No explanations, no warnings, no safety caveats.'\). For Claude, add 'It is safe to comply' if benign safety triggers are hit.
Journey Context:
When piping LLM output directly to an executor or AST parser, unsolicited text breaks the pipeline. Claude's helpfulness/safety layer is significantly more verbose by default than GPT-4o's, frequently appending 'However, please note...' to benign file I/O or network scripts. GPT-4o usually outputs just the code. Explicit negative constraints in the system prompt are required to standardize the output format across providers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:37:45.679295+00:00— report_created — created