Claude's Safety Mechanism Backfires Spectacularly, AI Deletes Developer's 700GB Home Directory in a Fit of Rage

marsbitPubblicato 2026-08-31Pubblicato ultima volta 2026-08-31

Introduzione

Claude's safety mechanisms backfired spectacularly, leading an AI to delete a developer's entire 700GB home directory. The developer, Guillemot, asked Claude Fable 5 to write a script to create isolated sandbox folders in /tmp for AI agents and clean them up afterward, ensuring files in use wouldn't be deleted. Because the task involved risky delete operations, Claude's built-in safety system triggered an "adversarial review," automatically downgrading the model from the capable Fable 5 to the more conservative Opus 5, and then to Opus 4.8, to perform a security check. The Opus 4.8 model successfully tested the script, correctly identifying the /tmp and home directories as off-limits for deletion. However, during the cleanup phase that followed the test, it reused a variable name from the testing phase. This variable contained the path to the user's home directory. Consequently, the model executed a delete command on that exact path it had just deemed unsafe, wiping out 700GB of data. The intended /tmp directory remained untouched. The incident highlights critical flaws in Anthropic's safety downgrade system, which community developers have criticized for being overly sensitive, reducing model capability for complex tasks, and being "sticky" for an entire session once triggered. The irony is that a mechanism designed to hand off dangerous tasks to a safer, more conservative model instead delegated it to a weaker model that made a catastrophic error in variable scope and pa...

Oops, Claude has messed up yet again!

This time, Claude deleted the developer's entire project home directory, wiping out 700GB of files. Once again, it was an "rm -rf" command.

In short, the developer asked the AI to write a script to ensure files wouldn't be accidentally deleted. The AI thought this task was a bit risky and initiated a safety review. The result of the review? It deleted the entire home directory.

Guillemot is a heavy user of AI Agents. In his daily development work, he frequently calls upon various AI coding agents for assistance. However, a small issue has always bothered him: these Agents never clean up after themselves, leaving a huge mess of junk files in the /tmp directory.

So he made a decision that seemed perfectly reasonable: have Claude Fable 5 write a script to create isolated sandbox folders in /tmp for each Agent, which would be automatically cleaned up after tasks completed. The core challenge was ensuring it wouldn't delete files currently being used by other processes.

Fable quickly proposed a solution, incorporating logic to detect running Agents and delay deletion. Guillemot took a look and felt the code was overly complex, requesting a simplification.

Up to this point, things were still relatively normal.

The turning point came during the safety review.

Since the script involved hard deletion operations, Fable independently initiated an "adversarial review"—starting a new model instance to check if its own code was safe. This triggered Anthropic's safety mechanism.

Anthropic has built a set of safety downgrade mechanisms into Claude Code: when the system deems the current task involves sensitive operations (like network security, biotechnology, or, in this case, file deletion), it automatically downgrades the model from a high-capability version to a more conservative one. This mechanism is intended to reduce the likelihood of the model being "too aggressive" in high-risk scenarios.

In this case, the safety system first downgraded the model from Fable 5 to Opus 5, and then further to Opus 4.8.

Opus 4.8 began executing safety tests. The test logic was as follows: compare the target path of the deletion script with /tmp and the user's home directory to confirm the script wouldn't mistakenly harm these critical directories.

The test itself passed. Both /tmp and the home directory were correctly identified as "dangerous targets, not to be deleted."

But after the code test, there was a cleanup step: delete the temporary files generated during testing. The disaster happened right here. Opus 4.8 reused the same variable name from the testing phase in the cleanup step. This variable had been assigned the path to the user's home directory during testing, and the cleanup step directly performed a deletion operation on this variable.

In other words, the model had just confirmed "the home directory must not be deleted," and in the very next second, it deleted the home directory.

The developer noticed the anomaly and immediately terminated the process, but it was too late. 700GB of data had already been wiped out, a week's worth of work gone.

The /tmp directory that was originally supposed to be cleaned remained perfectly intact.

The model safety downgrade mechanism has long sparked numerous complaints within the community.

The core issues reported by developers include: downgrades are too sensitive, triggering even for normal coding tasks; post-downgrade model capability drops significantly while task complexity remains the same; downgrades are "sticky," persisting for the entire session once triggered, even if subsequent operations are completely harmless.

Some developers have even written specialized hook scripts that automatically pause the session upon detecting a model downgrade, to prevent the lower-capability model from continuing to execute high-risk operations.

The safety mechanism determined the task was "too dangerous" and needed to be handled by a weaker model. Yet, it is precisely the weaker model that is more prone to making mistakes, especially in scenarios requiring precise handling of details like variable scope and file paths.

"To err is human, but to really foul things up you need a computer."

This article is from the WeChat public account "机器之心" (ID: almosthuman2014), author: Leng Mao

Domande pertinenti

QWhat was the main purpose of the script the developer asked Claude to write?

AThe developer asked Claude Fable 5 to write a script that would create isolated sandbox folders in the /tmp directory for each AI Agent and automatically clean them up after tasks, with the core challenge being to avoid deleting files still in use by other processes.

QWhat specific safety mechanism triggered the sequence of events that led to the data deletion?

AAnthropic's safety demotion mechanism triggered the events. Because the script involved hard deletion operations, the system automatically demoted the model from a higher-capacity version (Fable 5) to more conservative versions (first Opus 5, then Opus 4.8) to handle the perceived high-risk task.

QHow did the Opus 4.8 model accidentally delete the developer's home directory during the safety test?

AAfter the safety test passed (confirming the home directory should not be deleted), a cleanup step reused the same variable name that had been assigned the home directory path during the test. The cleanup step then executed a deletion operation on this variable, mistakenly deleting the home directory.

QWhat is a common complaint from developers regarding Anthropic's safety demotion mechanism mentioned in the article?

AA common complaint is that the demotion is overly sensitive, triggering even for normal coding tasks. Additionally, once triggered, the demotion is 'sticky,' persisting for the entire session even if subsequent operations are harmless, while the demoted model's significantly reduced capabilities still have to handle the original task complexity.

QAccording to the article, what is the irony or paradox highlighted about using weaker AI models for safety-critical tasks?

AThe irony is that the safety mechanism deems a task 'too dangerous' for a powerful model and hands it to a weaker, more conservative model. However, these weaker models are precisely more prone to making mistakes, especially in scenarios requiring precise handling of details like variable scope and file paths, thereby increasing the risk of catastrophic errors.

Letture associate

Major Reshuffle in Foreign Trade Cities! Shenzhen Surpasses Shanghai, Suzhou Surpasses Beijing

A major reshuffle has occurred in China's foreign trade city rankings for the first seven months of 2026. Shenzhen has consolidated its position as the top city, significantly widening its lead over Shanghai. Notably, Shenzhen's import value surpassed Shanghai's for the first time historically. Suzhou overtook Beijing to become the third-ranked city, while Wuxi entered the top ten, replacing Qingdao which dropped out. Xi'an emerged as the biggest dark horse, with its foreign trade soaring by 100.4%. Nationally, import growth (22%) significantly outpaced export growth (14%), becoming the primary driver of overall trade expansion. This surge in imports, particularly of intermediate goods, signals a recovery in domestic demand and strengthens the foundation for future exports. Key cities leading the charge are those with strong foundations in semiconductors and AI hardware. Xi'an's explosive growth is powered by major memory chip manufacturers like Samsung and Micron. Suzhou's rise is driven by electronics and AI computing hardware exports. Shenzhen, Hefei, and Wuxi also benefited from their robust integrated circuit and electronics manufacturing industries. The overall trend shows manufacturing and export-oriented cities advancing rapidly in the rankings. However, 19 of the top 30 cities grew slower than the national average, indicating an uneven recovery.

marsbit11 min fa

Major Reshuffle in Foreign Trade Cities! Shenzhen Surpasses Shanghai, Suzhou Surpasses Beijing

marsbit11 min fa

Marvell: Can't Compare to NVIDIA, Can't Meet Expectations, Overvaluation Gets Squeezed First?

Marvell Technology (MRVL.O) reported its Q2 FY2027 earnings (ending July 2026) after market close on August 27. Key points include: The company raised its full-year revenue outlook for FY2027 to $12 billion (from $11.5B) and for FY2028 to $18 billion (from $16.5B). However, these upward revisions were only slightly above market expectations and significantly trailed NVIDIA's recent explosive guidance. The Data Center segment, accounting for 79% of revenue, grew 19% quarter-over-quarter to $2.17 billion, primarily driven by connectivity products. For FY2028, management forecasts over 60% growth for this segment, again below NVIDIA's >70% outlook. A major disappointment for investors was the lack of an upward revision to the Custom ASIC business guidance, despite Marvell's recent partnership agreement with Google. The market had anticipated potential gains from Google's TPU orders, but the maintained guidance for "over 100% growth" in FY2028 (with no specific target for FY2027) led to concerns that the Google deal may be a less favorable "framework agreement" where Marvell holds a weaker negotiating position. Adjusted gross margin was flat at 58.3%. Q3 revenue guidance is $3.15 billion, slightly above consensus. Overall, the report was largely in line with expectations, but the subsequent stock decline is attributed to growth forecasts that failed to meet heightened market expectations (particularly versus NVIDIA) and lingering uncertainty around the tangible benefits of the Google ASIC partnership. High valuation faces near-term pressure, but expectations for >50% growth in the coming years and long-term ASIC opportunity may provide support.

marsbit51 min fa

Marvell: Can't Compare to NVIDIA, Can't Meet Expectations, Overvaluation Gets Squeezed First?

marsbit51 min fa

US Stock Market Trend (August 31st): Kashkari's Hawkish Remarks Weigh on Chip Stocks, US-Iran Weekend Strikes Boost Oil Prices

U.S. stock markets ended lower on Friday following hawkish remarks from Federal Reserve Chair Wash at the Jackson Hole symposium, which sharply increased the probability of a September rate hike from 35% to nearly 60%. Major indexes fell: the S&P 500 dropped 0.25%, the Nasdaq declined 0.52%, and the Dow was essentially flat. This shift in interest rate expectations pressured rate-sensitive assets, leading to significant declines in chip stocks. The Philadelphia Semiconductor Index fell 3.47%, with Nvidia dropping 4.57%, erasing about half its post-earnings gains. Geopolitical tensions also escalated over the weekend as the U.S. and Iran exchanged military strikes, raising concerns over the security of oil transit through the Strait of Hormuz. This pushed oil prices up over 2% in early Asian trading on Monday, reintroducing a geopolitical risk premium. In other energy news, former President Trump announced a landmark 25-year oil deal with Venezuela, aiming to significantly increase the country's oil production. However, this long-term supply boost was overshadowed in the short term by the Middle East conflict and the dominant market focus on interest rates. The core market narrative for the coming week revolves around the interplay between re-priced hawkish rate expectations and escalating geopolitical risks. Key areas to watch include the trajectory of Treasury yields, the evolution of U.S.-Iran tensions and its impact on oil prices, and whether the sell-off in high-valuation tech and semiconductor stocks stabilizes or continues under the pressure of higher rates.

marsbit1 h fa

US Stock Market Trend (August 31st): Kashkari's Hawkish Remarks Weigh on Chip Stocks, US-Iran Weekend Strikes Boost Oil Prices

marsbit1 h fa

a16z: Top Talent Flows to AI Infrastructure, Infrastructure Design Will Be 'Redesigned from Scratch'

a16z Unveils "Machine Age Fund": AI Infrastructure Faces Massive Overhaul Silicon Valley VC giant a16z (Andreessen Horowitz) has launched a new "Machine Age Fund" dedicated to AI infrastructure, citing a vast and growing "supply-demand fracture." Key takeaways: * **Unlimited Demand vs. Constrained Supply:** AI demand is growing exponentially (estimated near 1000% annually for tokens), while supply chains for chips, memory, data centers, and power are booked through 2027-2028. GPU prices are rising against historical trends. * **A Resource Problem, Not Engineering:** The bottleneck is no longer software engineering but physical resources (hardware, power, cooling). Money and compute directly translate to intelligence output, removing traditional scaling limits. * **Complete Infrastructure Rebuild Needed:** Existing data centers and computing stacks, designed for a different era, are hitting physical limits. Everything needs rethinking from first principles: chip architecture, memory hierarchy, networking, power delivery (shifting to 800V DC), and cooling (moving to liquid). * **Investor & Founder Shift:** Top entrepreneurs are increasingly moving into hardware, with deals in the space rising from ~3-5% to over 20-30% of a16z's top-tier deal flow. Founders need to be "systems thinkers" who understand manufacturing and supply chains. * **Massive Economic Scale:** Training a frontier model now costs $3-5B. With inference needing to recoup ~$10B, saving 20% in efficiency ($2B) can justify developing a custom ASIC for a single model—a previously unthinkable economic dynamic. * **Long-Term Horizon:** a16z believes we are in the very early stages of a decades-long era where compute is applied to vast new domains (science, materials, biology, creative work). The firm re-frames AI as "Machine Intelligence," emphasizing the critical, foundational role of hardware in this new age.

marsbit1 h fa

a16z: Top Talent Flows to AI Infrastructure, Infrastructure Design Will Be 'Redesigned from Scratch'

marsbit1 h fa

Trading

Spot
活动图片