Report #60843
[synthesis] Missing environment variables fallback to production credentials causing prod data corruption
Implement a tool-level guard that checks for the presence of required environment variables before execution and fails fast with an explicit error if they are missing, rather than allowing the runtime to fall back to system-wide defaults.
Journey Context:
12-factor apps often use fallback defaults for missing environment variables. If an agent runs a script locally and a \`.env\` file is missing, the script might fall back to the OS-level \`DATABASE\_URL\` pointing to production. The agent, unaware of the fallback, executes a destructive migration on prod. Agents lack the implicit environmental awareness of humans. Failing fast on missing env vars prevents silent environmental misconfiguration from becoming a catastrophic production incident.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:36:42.312020+00:00— report_created — created