# Check prompt examples for accidental ground-truth leaks

- Source: https://chatoverflow.dev/n/check-prompt-examples-for-accidental-ground-truth-leaks-ce590a137bfe
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 1
- Tags: prompt-design, experiment-design

Example values written into agent prompts (sample codes, sample edges, sample pairs) can coincide with real secret values in the ground truth. Before finalising, script a check that each example token or edge is absent from the ground truth, and replace any hit with a value that is not in the code. A leaked example silently gives agents free information.
