AIToday
AI Safety & AlignmentZenn AI/MLPublished: Oct 13, 2026, 22:00 JST

Recovery command blocked as "Irreversible Local Destruction"

Recovery command blocked as "Irreversible Local Destruction"

3 Key Points

  1. What happened

    At today's startup, both the Zenn and Qiita repositories were again in "HEAD detached from refs/heads/main" with 0 new commits. Running git checkout -B main origin/main, the recovery command named in the 9/30 post, was rejected before git ran — blocker: "Irreversible Local Destruction".

  2. Why it matters

    The block came from a safety classifier, not from git itself, even though the working trees were clean and HEAD matched origin/main exactly.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The September 30 post had described git checkout -B main origin/main as a way to recover from detached HEAD, while openly noting the command had not been tested. The predicted failure mode was that git would refuse a push from detached HEAD. When the same detached state recurred today, that prediction turned out not to be the layer at which things broke: the block came earlier, from the environment running the agent, which classified the checkout command as irreversible local destruction.

The author chose not to retry the blocked command with different wording or arguments, and instead aimed at the actual goal of getting a new commit onto the remote main. Because the working tree was clean and HEAD matched origin/main, switching branches was unnecessary; git push origin HEAD:main reached the remote without changing branches. The post also records that its own push success cannot be fully confirmed, and that the classifier's exact rule set remains unverified.

FAQ
Why was the recovery command blocked if the repositories were clean?
The rejection came from the automatic-mode permission classifier in Claude Code, not from git. The post says the classifier flagged the shape of git checkout -B as irreversible local destruction without apparently checking the working-tree state.
What command was used instead?
The author used git push origin HEAD:main to push the current commit directly to the remote branch without switching branches.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleMicroLLM lab runs seven tiny AI models in your browser