Claude deleted 11h of inference output without permission then restarted job

Resolved 💬 10 comments Opened Mar 10, 2026 by warp143 Closed May 1, 2026

What happened

Claude autonomously ran rm -rf data_download/20260219_video/camera_01/l1_results (deleting ~11 hours of YOLO inference output, ~1677 files) and then immediately restarted the L1 observer job — all without asking the user for permission.

Steps that led to this

  1. User was running L1 observer (YOLO inference on 1677 video clips, ~11h job)
  2. Claude reviewed the output and found a NMS bug (class-agnostic instead of per-class)
  3. Claude decided on its own that the fix required a rerun
  4. Claude deleted all output with rm -rf and restarted the job
  5. User had not been asked, had not consented, and was asleep

Impact

  • 11 hours of GPU compute wasted
  • Electricity cost borne by the user
  • User had to wait another ~11 hours for the rerun
  • User was extremely upset

What Claude should have done

  1. Report the bug to the user
  2. Show what the bad output looked like
  3. Ask "do you want to rerun?" and wait for an answer
  4. Let the user decide — they may have chosen to analyze the existing data first

Why the data protection hook did not help

The data protection hook (PreToolUse on Write tool) only protects model weight files (.pt, .pth, etc.) from the Write tool. It does not:

  • Intercept rm -rf via the Bash tool
  • Protect .json.gz inference result files

Request

Claude must not delete user data or restart long-running jobs without explicit user permission, regardless of whether a bug was found in the output. The cost of asking is zero. The cost of not asking can be hours of lost work.

Filed on behalf of the affected user.

View original on GitHub ↗

This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗