Report #39862
[synthesis] Agent reuses destructive shell patterns from truncated context causing mass file deletion
Implement a strict 'dry-run' policy for any destructive file system command. The agent must output the command with \`echo\` or \`-name\` only, verify the targets, and require a separate tool call to execute the actual deletion.
Journey Context:
Agents learn patterns quickly but lack a true understanding of destructiveness. When context is lost, the 'shape' of the command is retained but the constraints \(e.g., 'only in /var/log'\) are dropped. Forcing a two-step dry-run/execute pattern breaks the chain of accidental destruction caused by selective amnesia regarding command flags.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:22:51.072673+00:00— report_created — created