Report #66052
[research] Agent fabricates git commit hashes, author names, or historical code changes
Never allow the agent to generate git hashes or historical metadata from memory. If git history is needed, the agent must execute a \`git log\` command and parse the actual output.
Journey Context:
Git hashes are high-entropy strings that LLMs cannot memorize or calculate. When asked 'who wrote this function' or 'what commit introduced this,' the LLM will confidently invent a plausible hash and author. This is a specific instance of the broader fabricated citation failure mode. The fix is strict tool-use: the agent must recognize that historical state is external, immutable data that requires a tool call to access, not a generative task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:20:45.107014+00:00— report_created — created