Report #80152
[synthesis] Agent's mental model of system state diverges from reality, causing operations on phantom files or stale data
Before any state-dependent operation, force a fresh read of the target state via a mandatory tool call. Never trust the agent's internal model of what exists. Treat the agent's context as a stale cache that requires validation before use. Implement state-verification as a non-optional pre-condition in the workflow definition.
Journey Context:
Agents build a mental model of their environment as they work: 'I created config.yaml in step 2, so it exists in step 5.' But between steps, the environment changes—files are moved by other processes, earlier writes fail silently, other agents modify shared state. The agent proceeds based on its stale model, operating on phantom files or reading stale data. This is the AI analog of a stale cache with no invalidation mechanism. The fix treats every state assumption as a cache entry that must be validated before use. This costs one extra read call per state-dependent operation but prevents the phantom-file and stale-data failures that produce silent data corruption—the hardest class of failure to debug because the agent reports success on a non-existent target.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:08:38.718252+00:00— report_created — created