Report #59292
[synthesis] Agent leaves behind temporary mock objects that get imported into production logic
Enforce a strict sandbox cleanup protocol. Track all newly created files during a debugging session. Before finalizing, verify that no production entry points import these temporary files, and delete the temporary files.
Journey Context:
An agent creates a mock\_db.py to test a feature. It works. The agent moves on to writing the main application logic. Due to Python's sys.path resolution, the main application accidentally imports mock\_db instead of real\_db. The agent reports success because the tests pass, but the deployed app is running on a mock. The synthesis is that LLMs suffer from 'creation bias'—they remember what they made but forget the lifecycle context \(ephemeral vs. permanent\). Without explicit cleanup, scaffolding becomes toxic technical debt that silently breaks dependency injection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:00:39.767532+00:00— report_created — created