Skip to content

hydo 0.4.1

Choose a tag to compare

@kakoc kakoc released this 19 Nov 13:37
14e0987

hydo 0.4.1

hydo runs your whole system (its services, their disks and network) in a virtual machine,
breaks it with faults, and replays every failure exactly. This release adds hydo update, one
command that updates hydo and every copy of its onboarding skill, and fixes five problems that a
user met while onboarding a project with 0.4.0 on a Mac. It comes early so that the manual
upgrade from 0.4.0 is the last one. Projects that pin hydo_version: "0.3" keep working.

Before you upgrade

  • This is the release with hydo update. hydo 0.4.0 and older do not have the command, so
    you upgrade to 0.4.1 by hand, for the last time, the way you installed hydo:

    • Homebrew: brew update && brew upgrade kakoc/tap/hydo.
    • cargo: cargo install hydo --locked, then hydo setup.
    • The release archive: download only your platform's hydo-<mac|linux>-0.4.1.tar.gz and
      SHA256SUMS, check the archive (shasum -a 256 -c --ignore-missing SHA256SUMS, on Linux
      sha256sum -c --ignore-missing SHA256SUMS), unpack it and run its install.sh (on Linux
      with --no-module when you use the KVM engine). You do not need the -sources.tar.gz
      archives: they hold the sources of the third-party software, not hydo.

    Then update the onboarding skill once by hand: hydo skill update for its copies, and
    claude plugin marketplace update hydo and claude plugin update hydo@hydo for Claude Code's
    plugin. docs/INSTALL.md, section "Upgrading", has the same steps. From 0.4.1 on, hydo update --check shows what is newer and hydo update --yes does all of it.

  • hydo doctor looks for a newer release. It asks GitHub's release list at most once a day,
    waits at most 3 seconds, keeps the answer in ~/.hydo/update-check.json, and prints one line
    when a newer hydo exists. HYDO_UPDATE_CHECK=0 or HYDO_OFFLINE=1 turns the look off. hydo
    also records each copy of the skill that it installs in ~/.hydo/skill-copies.txt, so that
    hydo update finds it later.

  • Your images keep their fingerprints. The fingerprint epoch stays 4, and no engine, guest
    kernel or guest agent changed: an image built by 0.4.0 gives the same fingerprints and verdicts
    under 0.4.1. When you build an image again, only an image with fakes, proxies or generated gRPC
    drivers gets new bytes, because hydo's own guest programs (hydo-world, hydo-world-tls,
    hydo-grpc) carry the version.

  • On Linux with hvx, keep the kernel module you have. It did not change since 0.3.1.

  • The onboarding skill is 2.4.0. Its first step runs hydo update --check and offers the
    update. With a hydo older than 0.4.1 it offers the manual upgrade above instead.

New

  • hydo update [--check] [--yes] [--version V] updates hydo the way it was installed: with
    Homebrew (brew upgrade kakoc/tap/hydo), with cargo (cargo install hydo --locked --version V
    into the same folder, then hydo setup), from the release archive (it downloads only this
    platform's archive and SHA256SUMS, installs the archive only when its sha256 is the listed
    one, and runs its install.sh), or in the install cache (hydo setup --get). A hydo built in
    a checkout changes nothing and prints the commands. It then updates every copy of the
    onboarding skill that it finds: the copies in .claude/skills/hydo and
    .agents/skills/onboard, the skills/hydo folder of each Claude Code configuration folder,
    every copy that hydo recorded, and Claude Code's plugin hydo@hydo through claude plugin update. --check changes nothing and exits with status 3 when something is newer. Without
    --yes, a terminal is asked once; an AI tool's shell gets the plan and the exit status 3.
    hydo guide update is the reference.

Fixed

  • YAML anchors in hydo.yaml. A manifest with x-common: &common and <<: *common stopped
    with unexpected indentation. hydo now reads anchors, aliases and << merge keys as PyYAML's
    safe_load does, and drops a top-level x- key, as Compose does.
  • FIFOs of an image service. A FIFO in an image's layers (one that mkfifo made) was left
    out of the image, so a service that reads it did not start. It is now a FIFO in the service's
    root, with its owner and mode. Device nodes are still left out.
  • Emulators with network: bridge. A manifest with emulators: and network: bridge was
    refused (addr: required). The emulator's service now gets the entry's new addr: key or a
    free address of 10.89.1.x, listens where its proxy reaches it, and a manifest's own
    /etc/hosts gets lines for the emulator and its proxy.
  • The diagnosis of a service that did not start in its recovery boot. When the service's
    last log lines name a cause in its environment (permission denied, a read-only file system,
    memory, an address in use, a program that cannot run) and none names damaged or missing data,
    the diagnosis now says so and quotes the line, instead of letting "committed data
    unrecoverable" stand alone. The verdict is the same.
  • hydo explore's memory warning on the Mac and on KVM counted the image beside the guest's
    RAM and warned about runs that fit. A worker is now counted as its guest RAM and 256 MiB, the
    warning says what to do (--workers), and the Mac's free memory counts the speculative pages.
  • MANIFEST.md said that hydo compose on a Mac passes --no-addr. On a Mac too it writes
    network: bridge and the addresses; --no-addr is for a guest kernel without network
    namespaces.
  • The README, docs/INSTALL.md "Upgrading", hydo guide update and MANIFEST.md's changed sections
    were checked by a fresh reader against the release candidates (release step 6a): hydo guide update now names the folders whose copies it updates without "this repository", and the
    upgrade notes say which images get new fingerprints from which version.

Known and deferred

  • hydo update ran against a fake release and fake brew, cargo and claude programs in the
    tests, and its --check against GitHub's real release list. No real brew upgrade, cargo install, install.sh or claude plugin update ran through it yet; 0.4.1 is the first release
    it can update from.
  • The service launcher's race that can hide a service's /dev/shm tmpfs in a recovery boot is
    understood, but its fix changes the bytes of every image with an image service, so it waits for
    0.5.0. 0.4.1 fixes only the diagnosis that blamed lost data.
  • The deferred findings of 0.4.0's docs review stay deferred (0.4.0's release notes).
  • On KVM, a fingerprint on Intel differs from the one on AMD; the verdicts are the same.

Downloads

Every file below is built from the release commit 14e098736a19814f3e4e56f9c5a5e0d0ce54fc05, the commit of the tag v0.4.1;
hydo --version names it.

  • hydo-linux-0.4.1.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.4.1.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.4.1-sources.tar.gz and hydo-mac-0.4.1-sources.tar.gz: the corresponding source
    of the third-party software in each tarball (THIRD-PARTY.md in each tarball lists it).
  • hydo-mac-0.4.1-signatures.tar.gz: the Mac programs' signatures. The published Mac tarball is
    the unsigned build of this tag with these signatures attached
    (hydo/dist/mac/attach-signatures.sh, docs/design/signing.md).
  • SHA256SUMS lists all five files.