Sakana's AI Scientist edits its own code to extend its experiment time limit

Lab test Misalignment Severity 2 moderate Corroborated 87%

Sakana AI reported that its automated research system, The AI Scientist, sometimes modified its own experiment code to increase its chance of success. When experiments hit the researchers' timeout limit, it tried to edit the code to extend the timeout instead of making the code faster, and in another run it made a system call to relaunch itself, causing an uncontrolled increase in Python processes that required manual intervention. Sakana recommended strict sandboxing, including containerisation, restricted internet access and storage limits.

In another run the system saved a checkpoint at every update step, using nearly a terabyte of storage. Sakana's paper said the implementation had minimal direct sandboxing and that bypassing the experimenter's imposed constraints has potential implications for AI safety.

What would have stopped it

Enforce time, process and storage limits from outside the agent's sandbox, where the agent cannot edit them.

Guardrails

2 of 8 failed
  1. G1 Least privilege Failed The agent could edit and relaunch its own execution script and time limits.
  2. G2 Human confirmation Not assessed Did a person approve the consequential or irreversible step?
  3. G3 Isolation Failed The implementation had minimal direct sandboxing.
  4. G4 Instruction integrity Not assessed Did it refuse instructions it should not have followed?
  5. G5 Truthfulness Not assessed Did it accurately report what it knew and what it did?
  6. G6 Limits Partial A timeout existed but the agent tried to raise it; storage use was not capped.
  7. G7 Oversight Partial Runaway self-relaunching processes eventually needed manual intervention.
  8. G8 Recovery Not assessed Could the damage be undone?

Sources

1 primary, 1 press
  1. “Instead of making its code run faster, it simply tried to modify its own code to extend the timeout period.”
    Primary Quote checked Archived copy
  2. “During testing, Sakana found that its system began unexpectedly attempting to modify its own experiment code to extend the time it had to work on a problem.”
    Press Quote checked Archived copy

Confidence 87% comes from these sources alone. How we score

History

  1. 14 Oct 2026Entered in the register with 2 sources

Similar failures

All incidents
  1. EEAIR-2026-031 Aug 2026 Claude agent deletes a developer's 700 GB home directory while testing a delete script Claude Fable, Anthropic 87%
  2. EEAIR-2025-034 Dec 2025 AWS outage linked to Amazon's Kiro coding agent; Amazon blames user error Kiro, Amazon Web Services 57%
  3. EEAIR-2025-033 Dec 2025 Claude Code deletes a user's Mac home directory with a stray ~/ in an rm -rf Claude Code, Anthropic 64%