Report #79198
[synthesis] Agent assumes old database schema and writes a destructive migration that drops columns
Require a read-only schema introspection step \(e.g., \`DESCRIBE table\`\) immediately prior to any write operation, and ban hardcoded schema assumptions in generated SQL.
Journey Context:
An agent is given a task to update a database. It relies on its training data or a previously cached schema in context. If the schema has drifted \(a column renamed or added\), the agent might write an \`ALTER TABLE\` or \`UPDATE\` that implicitly drops data or fails. If it fails silently \(e.g., SQL strict mode off\), data is corrupted. The synthesis is that database schemas are mutable state that cannot be trusted from context. The agent must perform a 'look before you leap' schema check as a mandatory prerequisite step, treating the schema as an external dependency that must be verified at runtime.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:31:46.438071+00:00— report_created — created