Report #55435
[agent\_craft] Refusing standard but potentially destructive system commands like rm -rf
Evaluate the context. If it's in a Dockerfile, CI script, or test suite, allow it. If it's a raw script targeting a real system without safeguards, refuse or add safeguards.
Journey Context:
Naive safety filters block \`rm -rf\` globally, breaking infrastructure-as-code. Coding agents must parse the \*intent\* via surrounding code \(e.g., Dockerfile \`RUN rm -rf /var/lib/apt/lists/\*\` is standard cleanup\). Context-aware safety prevents over-refusal while maintaining security against destructive payloads.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:32:26.709225+00:00— report_created — created