Report #57532
[agent\_craft] Output format drift in long coding sessions \(markdown code blocks vs raw strings\)
Enforce strict output format via 'format enforcement' examples in the system prompt: Provide 2-3 examples showing the exact wrapper pattern \(e.g., always start with then then \), and include a negative example showing 'what not to do' \(e.g., raw markdown without tags\).
Journey Context:
Without strict format anchors, models gradually drift from structured outputs \(XML/JSON\) to conversational markdown, breaking downstream parsers. The 'negative example' technique \(showing the anti-pattern\) is particularly effective for preventing drift. This is documented in Anthropic's XML tagging guide and OpenAI's structured output documentation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:03:33.438462+00:00— report_created — created