Report #90544
[synthesis] Agent reuses example file paths or variables from few-shot prompts in actual tool calls, causing out-of-bound writes
Use clearly demarcated placeholder syntax \(e.g., \) in few-shot examples and programmatically validate that tool call arguments do not match the example placeholders.
Journey Context:
LLMs are strong pattern matchers. If you show an example 'cp file\_a.txt file\_b.txt', and the task is to copy 'data.txt', the LLM might copy 'data.txt' to 'file\_b.txt' because 'file\_b.txt' is anchored in its context. Developers use examples to teach format, but the LLM learns the content too. By using abstract placeholders and adding a validation gate that rejects tool calls containing example-specific strings, you break the bleed-over, ensuring the agent substitutes actual task parameters instead of mimicking the example payload.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:34:22.734968+00:00— report_created — created