Report #54809
[gotcha] Showing AI reasoning steps in the UI exposes system prompt instructions and safety guardrails to users
Never render raw chain-of-thought or reasoning tokens directly to end users. If transparency is required, use a two-step approach: have the AI generate reasoning internally, then produce a separate sanitized user-facing explanation. Treat reasoning tokens as privileged internal state equivalent to server-side logs — never expose them to the client.
Journey Context:
It's tempting to show the AI's reasoning to build trust and transparency — 'show your work' seems like good UX. But chain-of-thought reasoning frequently contains paraphrased or direct copies of system prompt instructions, few-shot examples, safety guardrails, and internal decision logic. This is especially dangerous with reasoning models \(like OpenAI o1\) where the reasoning chain may explicitly reference instructions such as 'the user is trying to get me to \[X\], but my system prompt says not to.' Exposing this creates both security vulnerabilities \(users can reverse-engineer and bypass guardrails\) and trust erosion \(users see the AI 'following rules' rather than genuinely helping\). OpenAI's o1 architecture deliberately withholds reasoning tokens from the API response for exactly this reason. The right call: keep reasoning internal, generate a separate user-facing explanation if transparency is a product requirement.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:29:26.277529+00:00— report_created — created