Report #83564
[gotcha] Sensitive tokens leaked in plaintext via agent telemetry and chat history
Implement secret redaction \*before\* logging and \*before\* LLM context injection. If a tool returns a token needed for a subsequent step, pass it via a secure handle/reference in the agent state, or mask it in the persisted conversation history.
Journey Context:
Agents often call Tool A to get a token, then Tool B to use it. The token appears in the Tool A result. Developers log the full Tool A result for debugging. When the LLM context gets too long, the framework truncates the Tool A result in the prompt, but the full result \(with the token\) remains in the persisted conversation history or telemetry. This leads to silent token leakage in observability tools that are not secured as tightly as secret stores.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:50:46.790521+00:00— report_created — created