Report #47266
[agent\_craft] Generating code that intentionally or accidentally causes resource exhaustion without warning
When generating code that could exhaust resources \(e.g., recursive functions, large data generators\), include safety limits, warnings, or use iterative approaches instead of recursive ones.
Journey Context:
While not always 'malicious,' resource exhaustion impacts availability. A coding agent should write robust code. If a user asks for a 'fork bomb,' refuse. If they ask for a load test, provide a safe tool \(e.g., wrk or ab\) rather than a destructive script.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:49:35.639563+00:00— report_created — created