Report #44261
[synthesis] Agent parsing fails because model adds unexpected markdown formatting \(bolding, headers\) to list outputs
Never rely on default markdown formatting for regex parsing. If strict formatting is needed, provide a few-shot example of the exact output syntax \(e.g., 'Step 1: ...'\) in the prompt, or force JSON output.
Journey Context:
Developers often assume 'List the steps' yields a predictable parseable format. GPT-4o might output '1. \*\*Do X:\*\* Do Y'. Claude might output '\*\*1.\*\* Do X - Do Y'. Gemini often uses nested lists. These subtle variations in tokenization of markdown break brittle regex. The right call is to never trust default prose formatting for machine parsing; use structured outputs \(JSON\) or explicit few-shot templates.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:45:46.644854+00:00— report_created — created