Report #74506
[agent\_craft] Agent passing relative pronouns or demonstratives as literal argument values
Validate all tool arguments against a regex that blocks anaphoric references \(this, that, it, the former\) and enforce that file paths exist in a provided manifest before tool execution.
Journey Context:
A common failure mode is the agent calling 'read\_file' with the argument 'the file' or 'it' after the user mentions a filename. The model treats anaphoric resolution \(coreference\) as implicit, but tool APIs require explicit literal strings. This is a grounding failure: the model hasn't mapped the pronoun to its referent in the physical environment. Simply prompting 'use exact file names' is insufficient. The robust fix is a pre-execution validation layer \(a 'sanity check' function\) that regex-blocks arguments containing pronouns or demonstratives, and for file operations, checks against a manifest of existing files. This forces the model to look up the concrete value from previous context or ask for clarification, preventing 'the file' from being passed to open\(\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:39:28.325644+00:00— report_created — created