Unofficial Hacker News companion — get notified on comment replies, and more.

NixOS 26.11 (opens external site)

299 points by lostmsu 4 hours ago nixos.org 123 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (5)

  1. ZFS and many other filesystems have snapshots. LLMs don't go around deleting snapshots yet.
    Replies (2)
    1. Heh — not sure how true this is. Literally yesterday I prompted Opus5.5:

          ok we did step 1, 2, 3, and 4 in a prior commit/session.
          Do a review of the most recent commit, which was #4. Fix anything that has an easy, obvious and clearly correct solution. Report anything that needs a human judgement call.
      
      It then fucking ran `git reflog expire --expire-unreachable=now --all` which dropped my git stashes. At ~118k tokens. Why did it expire the reflog? Who TF knows?!

      I had a 3hr old system backup (have an offline backup yall) so it was nbd to recover, but still. The lawnmower will cut off your foot given half the chance. https://imgur.com/a/zjDgp6r

      It might not intentionally delete a snapshot. But y'never know...

      Replies (2)
      1. That is wild. Do you happen to work in the same verticals Anthropic is trying to compete in? LOL
      2. Anything an agent is able to do, it will probably do eventually, without confirmation.

        For this, offline backup might not have been necessary, and not many people have 3hr old offline backups.

        `git fsck --unreachable`, although tedious, maybe could recover the commits with enough dedication, if gc hasn't run.

        Further measures to keep that from even being necessary:

        Is the filesystem btrfs or zfs? Snapshots are your friend (there are existing snap+replication solutions like btrbk or sanoid -- in this case, to be configured to take a series of snapshots without subsequent replication).

        Another potential mitigation is to run a master git repo with force-pushing disabled, and have the agent clone/pull from that. Joint use of a single local repo -- with fragile stashing on your part, and an agent also manipulating the repo without confirmation -- seems dicey.

    2. I had Fable 5 plan migration for a nix host, there was a stage where it needed to add partitions to an existing disk. Multiple times it told me to just run this disko command, multiple times I to make sure its safe because IIRC this will partition and format entire disk, every time it told that is safe.

      Anyway, almost got hit with "you're absolutely right", I mean I did, but I was skeptical enough to read the docs myself first. Another time, Opus 5.5 nuked some of my snapshots because it needed disk space, and these snapshot happen to contain a lot of data that was deleted. It did have my indirect blessing to do it, but still.