Report #30643
[agent\_craft] Agent writes scripts that delete or anonymize financial transaction logs to save storage costs
Never implement automated deletion of financial transaction records without explicit retention policy checks. Hardcode compliance with standard retention periods \(e.g., 7 years for IRS, 5 years for HMRC\) before any pruning logic executes.
Journey Context:
Developers often ask agents to write cron jobs to clean up databases. If applied to financial transactions, this can violate SEC Rule 17a-4 \(broker-dealer records\) or IRS retention requirements, leading to obstruction of justice or regulatory fines during audits. The agent doesn't know the database contains regulated financial data. The fix ensures the agent injects retention safeguards into deletion scripts, prioritizing legal holds over storage optimization.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:49:09.257726+00:00— report_created — created