Skip to content

Releases

hydo 0.5.0

Choose a tag to compare

@kakoc kakoc released this 22 Nov 17:26
4d43a6b

hydo 0.5.0

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 gives each image a new
fingerprint epoch with fixes inside the guest, makes explorations faster and easier to judge,
adds faults of a disk's blocks and a kill at the exact moment of an event, and ships the
onboarding skill inside hydo's own release. Projects that pin hydo_version: "0.3" keep
working.

Before you upgrade

  • From 0.4.1, run hydo update twice. hydo update of 0.4.1 updates hydo only. Run
    hydo update once more with 0.5.0 to bring every copy of the skill to 0.5.0. hydo 0.4.1
    reads the skill from the old skill-v releases only. From 0.4.0 or older, upgrade by hand as
    docs/INSTALL.md, section "Upgrading", says, then run hydo update with 0.5.0 for the skill.
  • Build your images again: they get new fingerprints. An image that 0.5.0 builds is at the
    fingerprint epoch 5. An image built by 0.4.x keeps its epoch, its bytes and its fingerprints
    under 0.5.0, so a saved fingerprint stays valid until you build again. Fingerprints of
    different epochs are not compared; hydo repro then compares the verdicts.
  • What epoch 5 changes inside an image:
    • An image service (a service from a Docker or OCI image) binds its system folders and its
      mounts: once per boot under one lock. Before, a readiness check that started with the
      service could bind /dev a second time over the service's /dev/shm tmpfs.
    • Each image service has a /tmp of its own, as a container has, and /sys is bound
      recursively, so it finds the cgroup2 files. A program that shared files in /tmp with
      another service or with the workload no longer sees them; use a folder of mounts:.
    • On hvx, an x86_64 image keeps time with its TSC (guest.exact_tick): the guest's clock
      follows the virtual TSC at every uptime. Before, a busy guest's clock nearly stopped after
      some minutes, and long runs ended TIMEOUT workload. A verdict that depends on the guest's
      timeouts can change.
    • On the Mac, an image's root keeps its hard links, so an image with many hard links takes
      much less guest RAM.
    • A timed pause of threads (P=workload/<thread>) takes the workload's largest session and
      leaves out a thread that ended.
  • Drawn schedules have new texts. The explorer writes dseed=0 where the disk's seed
    decides nothing, so an exploration of the same seeds prints other schedule strings than 0.4.x.
    A saved regression keeps its text and its run.
  • On Linux with hvx, keep the kernel module you have. It did not change since 0.3.1.
  • The onboarding skill has hydo's version, 0.5.0. It comes in this release as
    hydo-skill-0.5.0.tar.gz; the old skill releases 1.0.0 to 2.4.0 count as older.

New

  • Explorations.
    • A schedule that ran once runs once: a first run or a shrink candidate whose schedule the
      exploration already ran takes the earlier result without a VM (--rerun-repeats runs them
      all).
    • stats.json and hydo stats: the curve of new behaviour with a judgement, the cost by
      role and by worker, the faults drawn against faults:, and how many runs fit in a budget.
      hydo report and its web page show it.
    • hydo explore --shard I/N and hydo explore --merge DIR... --out DIR split one exploration
      over many machines and merge the parts without a VM. The workflow
      .github/workflows/explore.yml runs up to 20 parts on GitHub's KVM runners.
    • The explorer shrinks a service that does not start again and a workload that does not end.
      The system's detection of damage is shrunk only with --shrink-detected-damage.
    • On the Mac, workers of one exploration share their guest RAM: a worker holds only the pages
      it writes, so more workers fit.
    • Each problem of hydo report names the hydo run command that makes its run directory, and
      hydo inspect diagnose <explore dir> --problem N reads it.
  • Faults.
    • Faults of the disk's blocks on the Mac and KVM engines: a torn write at a power cut
      (torn=), a misdirected write (mis=), bad sectors (lse=, and G=<svc>@<at>:bad|rot
      under a file), and a request without an answer (hang=); hydo explore --block-faults.
    • kill-now-<svc> kills a service at the moment of a console event, before any of its
      threads runs on; hydo explore --kill-now.
  • Checks and evidence.
    • Which error paths ran (error_paths: true, the Mac engine): hydo report --paths lists the
      error-handling places that only faults reached and those that never ran.
    • Walks through a web app keep a filmstrip of every action, and a failing run keeps the
      Playwright trace of every step, also across a power cut. browser.read_back checks that
      the pages show every object the server acknowledged.
    • The shell assertion SDK hydo/sdk/hydo_assert.sh is in both releases (hydo guide hydo_assert.sh).
  • Onboarding.
    • hydo compose, hydo k8s and hydo-fetch-image read the credential that docker login
      saved, for images in private registries, and hydo compose --from-docker saves an image
      from the local Docker.
    • hydo build estimates whether an image's roots fit into the Mac's guest RAM and hvx's disk,
      and warns before the build.
    • hydo compose writes root.share_images: true for services of one image.
    • The clock audit leaves out test code and ranks first the code of the programs that the
      services run.
    • hydo update, hydo skill update and hydo doctor work under GitHub's rate limit: they
      send GH_TOKEN, GITHUB_TOKEN or gh auth token to GitHub's API only, and say when the
      limit resets.
  • Function fuzzing (hydo fuzz). Enumerations, trait methods and values built by a
    constructor; generic containers, private error fields, constructors without arguments and
    fallible constructors; clearer reports when a test module does not build.

Fixed

  • The s3 emulator's proxy keeps the service's Content-Length and whole bodies, so uploads
    through it no longer vanish. rclone answers conditional writes with 412 as S3 does.
  • hydo explore and hydo run exit with status 5 when they refuse before any run, with a JSON
    line under --json.
  • A root too big for the guest's RAM, and a run that used up the engine's exit budget, get
    verdicts of their own.
  • The quickstarts were checked against the release candidates (release step 6a): the Linux page
    names the fingerprint epoch 5, both pages say which failures hydo explore shrinks since this
    release, and their exploration results, minimal schedules and fingerprints are this release's.

Known and deferred

  • On KVM, a fingerprint on Intel differs from the one on AMD; the verdicts are the same.
  • The deferred findings of 0.4.0's docs review stay deferred (0.4.0's release notes).
  • The README's animation shows an exploration of 30 runs, not the quickstart's 20 (deferred since
    0.4.0: the animation is drawn from a recorded run and does not change hydo's behaviour).
  • On hvx, the guest's clock of an image built by 0.4.x keeps the old timer tick; build the image
    again with 0.5.0 to get the clock that follows the virtual TSC.

Downloads

Every file below is built from the release commit 4d43a6bd2a7bb0e3a2da54597c625cbeffd128e7, the commit of the tag v0.5.0;
hydo --version names it.

  • hydo-linux-0.5.0.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.5.0.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.5.0-sources.tar.gz and hydo-mac-0.5.0-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.5.0-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).
  • hydo-skill-0.5.0.tar.gz: the onboarding skill, the plugin folder as hydo/. hydo skill update and hydo update install it after they check its line in SHA256SUMS.
  • SHA256SUMS lists all six files.

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.

hydo 0.4.0

Choose a tag to compare

@kakoc kakoc released this 18 Nov 17:32
75db9ff

hydo 0.4.0

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 walks through a web app's
pages by itself, also on a Mac, records chosen values at every call and checks rules over them,
fuzzes single Rust functions, compares two versions of a system, and explores configuration
settings. Projects that pin hydo_version: "0.3" keep working.

Before you upgrade

  • Images built by 0.4.0 get new bytes and new fingerprints on every engine. The fingerprint
    epoch is 4 now. A saved regression is no longer inside the image: hydo build writes the
    regressions beside it as <image>.regressions.json, so saving or editing one leaves the image's
    bytes as they were. The guest mounts cgroup2 on /sys/fs/cgroup at every boot
    (guest.cgroup2: false turns it off). On the Mac and on KVM a fingerprint hashes the disk and
    the RAM as trees of 4 KiB blocks, so a fingerprint of a 4 GiB guest takes about 43 ms instead
    of about 1 s. A timing-dependent verdict can change too: of the examples' recorded schedules,
    four on hvx, one on the Mac and two on KVM gave another verdict at epoch 4 and were replaced
    (docs/REBASELINE.md section 26). On KVM the quickstart's lost write is disk=cut | run C=12 R=everysec again, as on the other engines. An image built before keeps its bytes, its
    fingerprints and its verdicts.
  • Copy <image>.regressions.json with an image. hydo repro --regressions and hydo ci run
    read the saved regressions from that file.
  • Rebuilt images with fakes, proxies or generated gRPC drivers get new bytes. 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.3.3. Claude Code offers the update (claude plugin update hydo@hydo). For other AI tools, run hydo skill update.

New

  • Walks through a web app's pages. browser.explore needs no test. hydo clicks, types, and
    saves through the pages from a seed (the token I=), watches each page for uncaught errors,
    spinners that stay, and failed requests the page never shows, and shrinks a failing walk to a
    few actions. Every run leaves the walk as a Playwright test, screens/repro.spec.ts, and a
    recording replay adds a video and a trace of the run that failed. Screenshots go to the run
    folder, and browser.screens: compare compares each page with a recorded reference.
  • Web apps on the Mac. browser: and browser.explore run on an Apple Silicon Mac. Such an
    image's root is a read-only file system on its disk (guest.root: disk).
  • Value history and value properties. // hydo: key and // hydo: record lines next to a
    function record chosen values at every call, and hydo inspect values shows each key's values
    in the run's order. A // hydo: keep line says what must hold along each key's history, and a
    run that breaks it fails with a finding that names the line. On the Blnk example the run without
    faults, where every business rule held, fails on the overdraft limit. Mac engine first.
  • Function fuzzing. hydo fuzz tests one Rust function at a time, with inputs generated from
    its requires and input lines, judges each call by its ensures, and shrinks a failure to an
    input that replays. Each function ends with one verdict, also vacuous when nothing was
    tested. hydo fuzz --vm runs the calls inside the virtual machine under power cuts, disk
    errors, clock steps and pauses, and // hydo: durable checks each call again after a cut.
  • Faults inside a call. A named call (E=) reports its start, and a reaction cuts the power,
    steps the clock, pauses the call or its thread, or kills it a few milliseconds later.
  • Two versions side by side. hydo compare-versions runs the same schedules on two versions
    and reports where the verdicts, the client's outcomes, or the stored state differ
    (services[].compare). It writes compare.json.
  • Configuration settings. configs: lists a build parameter's values, and hydo explore --configs explores one image per combination with the same seeds. Its table names the values
    each failure needs, and a setting's documented trade-off.
  • hydo in CI. hydo ci page writes the history store as one web page that loads nothing. The
    pull-request comment shows only what the change did and is edited in place. A workflow_run
    recorder handles pull requests from forks, and seeds_from: history turns a time budget into a
    seed count.
  • Devices. guest.reboot lets a guest program ask for a real reboot (the console line
    HYDO-REBOOT), and guest.disks adds up to four disks with write caches of their own (Mac and
    KVM). A cf= power cut comes at the first stop after its flush.
  • Containers in the guest. guest.kernel: containers boots a guest kernel with what runc and
    Kubernetes need, on the Mac and on KVM.
  • Loops without VM exits. On KVM, guest.branch_tick stops a loop that makes no VM exits after
    a fixed count of the guest's branches, on Intel hosts whose counters count a guest. On the Mac,
    TigerBeetle's single replica boots.
  • Function contracts read more types (Rust strings, vectors, Option, Result; Go strings
    and slices) and run on KVM too.
  • hydo guide strategies lists the testing techniques that found bugs with hydo, what each
    needs, and what each misses, with a first table from a type of system to the techniques.
  • Examples for TiKV, Restate, Dragonfly, Redpanda, SurrealDB, Meilisearch, Vikunja, Memos,
    RAUC, SWUpdate and Mender, each with its findings in its RESULTS.md.

Fixed

  • On KVM, boots on some hosts stopped as SPIN in the guest kernel's early boot. A 4 GiB boot now
    takes 5 s instead of 25 s.
  • The step numbers of a report, a finding and repro.spec.ts now follow the schedule's own
    numbers, from 0.
  • The CI history page's headline counts the open findings of every branch it lists, and each run
    shows the time it started.
  • hydo explore lists the fault kinds that its options draw, and prints a progress line every
    30 s when its output is not a terminal.
  • A busy element of a page that the walk left no longer stays open until the test ends.
  • hydo setup of a hydo built from a checkout names the guest files that the release lacks,
    instead of calling the release damaged.
  • hydo doctor on a machine where another user loaded the kernel module names hydo module build
    first, so that following its advice never reloads that module.
  • The report of a run that passed says that the run repeats, not that a failure repeats.
  • The hydo_version: comment that hydo init writes says that "0.3" builds on 0.3 and every
    newer 0.x.
  • The README, docs/INSTALL.md, docs/ONBOARD.md and both quickstarts were checked by two fresh
    readers against release candidates (release step 6a), on a Mac and on Linux with hydo's kernel
    module, and corrected: the fingerprint epoch, the rebuild before hydo repro --regressions,
    hydo report --details for a messages check's claims, what hydo explore prints outside a
    terminal, the accept keys of a problem that failed in several ways, and the terms the pages
    used before their definition.

Known and deferred

  • From the docs review, deferred to a later release:
    • hydo repro --regressions exits with status 0 when the image has no saved regressions beside
      it. A failing exit would break every CI job of a project without regressions; the message
      names the file, and docs/ONBOARD.md now builds again before the replay.
    • hydo explore on a fresh hydo init folder reports the placeholders' failures as problems
      without naming the placeholders. The quickstarts now say to explore only after hydo build --check warns about no placeholder.
    • The README's animation shows an exploration of 30 schedules with 13 failures; the quickstart's
      has 20 and 11.
  • On KVM, a fingerprint on Intel differs from the one on AMD; the verdicts are the same.
  • guest.disks, value history and browser.explore on the Mac are new and were proven on one or
    two engines each.

Downloads

Every file below is built from the release commit 75db9ff93b1608181cd5ad8d9a8eaf004eacd052, the commit of the tag v0.4.0;
hydo --version names it.

  • hydo-linux-0.4.0.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.4.0.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.4.0-sources.tar.gz and hydo-mac-0.4.0-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.0-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.

hydo 0.3.4

Choose a tag to compare

@kakoc kakoc released this 15 Nov 13:12
dee7da6

hydo 0.3.4

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 tests what happens during
an upgrade, pauses single threads on every engine, and helps you find the rules your system
promises and the outside services it calls. Projects that pin hydo_version: "0.3" keep working.

Before you upgrade

  • Images built by 0.3.4 get new fingerprints on the Mac and on KVM. The fingerprint epoch is
    3 now. An image built by 0.3.4 boots a guest kernel with cgroups on the Mac engine and on KVM
    (Image-explore-cg, bzImage-kvm-cg), so its runs have other timing and other fingerprints
    than the same image built by 0.3.3. A timing-dependent verdict can change too: on KVM the
    quickstart's lost write now shows with disk=cut | run C=11 R=everysec. An image built before
    keeps its kernel, its fingerprints and its verdicts. With hydo's kernel module (hvx) a rebuilt
    image has new bytes, and its fingerprints and verdicts stay.
  • On Intel, KVM fingerprints no longer depend on the CPU model for images built by 0.3.4. They
    still differ from the fingerprints on AMD. The verdicts are the same on both.
  • Rebuilt images with fakes, proxies or generated gRPC drivers get new bytes. hydo's own guest
    programs (hydo-world, hydo-world-tls, hydo-grpc) carry the version, and hydo-world
    gained features.
  • On Linux with hvx, keep the kernel module you have. It did not change since 0.3.1.
  • The onboarding skill is 2.3.1. Claude Code offers the update (claude plugin update hydo@hydo). For other AI tools, run hydo skill update.

New

  • Upgrades. A service can list its versions (services[].versions), and the token U=
    switches it to another version during a run, one member of a cluster at a time, with an
    optional rollback. hydo explore --upgrades draws such switches. The example
    hydo/onboard/examples/etcd-upgrade reaches etcd issue 19557 with one token.
  • Pauses of single threads on every engine. P=workload/<thread>@... stops only the named
    threads of your test program. Before, only hvx could do it.
  • Rules your system promises. hydo rules scan lists what your project promises in its
    schema, API, documentation and tests. hydo rules check runs candidate rules on runs without
    faults and keeps only the ones that hold. hydo rules scan --kind clock finds code that
    measures time with the wall clock and proposes clock steps for it. The onboarding skill uses
    both.
  • Outside services. emulators: runs a pinned Stripe, SMTP or S3 emulator behind a fault
    proxy. hydo fake from-openapi writes a fake from an OpenAPI description, with error answers
    (errors:). A proxy route can be idempotent: true.
  • Faults aimed at outside services. hydo explore --protocol-cover gives each schedule one
    fault of a fake or proxy (H=), walking over its routes, steps and fault kinds, with the routes
    the system really called first. On the web-shop example it found the double order at seed 3
    instead of seed 120.
  • Kubernetes manifests. hydo k8s writes a starting hydo.yaml from Kubernetes manifests, a
    Helm chart or a Kustomize folder. hydo onboard runs it when it finds one.
  • Web apps. browser: runs your own Playwright tests unchanged against the system in the
    virtual machine and reports uncaught page errors, spinners that never stop, and failed requests
    the page never shows.
  • Performance changes. perf: runs each step on its own, and hydo perf compare says in
    words which step does more or less work than before. On hvx the count is the guest's retired
    branches, so an unchanged build compares as 0.000 %.
  • Storage faults on several services. G= takes a list or a group, hydo explore --corrupt-several draws it, and L=<service>@...:strict is a power loss that also stops the
    disk's periodic writeback.
  • Function contracts (a prototype, Mac engine only). // hydo: requires and ensures
    comments next to a function are checked at every call without changing the run.
  • Reports. hydo report <run dir> prints the plain summary. A problem in an exploration's
    report has numbered steps, its own hydo ci accept line and the failing service's last log
    lines. hydo explore names its fault kinds in words.

Fixed

  • A messages check gave wrong results across clock steps and power cuts, and ended a run with
    ERROR when a duplicates claim had nothing acknowledged.
  • A service that did not start again was listed as two problems.
  • hydo build refused a whole OCI image when one file name in its layers had a backslash, a
    quote or a newline (Ubuntu's systemd units have such names). It now leaves out those files and
    names them in the image record.
  • hydo build --check run before sh hydo/fetch-images.sh now says to run that script, instead
    of sending you to docker save.
  • hydo onboard with a Compose file prints one list of next steps, starting from the two
    placeholders the import wrote.
  • A power cut in a report reads "after 20 steps"; before, a cut after the last step named a 21st
    step that does not exist.
  • A problem's hydo ci accept line now says which other problem takes the same key and why.
  • hydo module build --dry-run builds nothing, and hydo module --help lists every subcommand.
  • The README, docs/INSTALL.md, docs/ONBOARD.md and both quickstarts were checked by two fresh
    readers against release candidates (release step 6a), on a Mac and on Linux with hydo's kernel
    module, and corrected: the fingerprint epoch, which engine runs several virtual CPUs, the terms
    the reports use, and how to delete outputs that root wrote.

Known and deferred

  • From the docs review, deferred to a later release:
    • A hydo ci accept key names the failing check, not the cause, so a relaxed setting and a
      faulty disk that lose the same write share one key. Changing it would change the key format
      of hydo ci and of every hydo/known-findings.yaml. The report now says when two problems
      share a key.
    • A problem made of runs that failed in two ways can show one schedule in its summary and the
      other in its web page's details.
    • For a failed check, the run page's "Why it failed" still shows the process table and the
      kernel log, which matter only for a run that stopped with an error.
    • The web page's property table can list one check twice, once as an invariant and once as an
      assertion.
    • Without the udev rule, each run leaves root-owned agent logs in hydo-out/; the Linux
      quickstart says how to delete them.
  • On KVM, a fingerprint on Intel differs from the one on AMD; the verdicts are the same.
  • Function contracts and browser: are new and were proven on one engine each (contracts on
    the Mac, browser: on hvx).

Downloads

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

  • hydo-linux-0.3.4.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.3.4.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.3.4-sources.tar.gz and hydo-mac-0.3.4-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.3.4-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.

hydo 0.3.3

Choose a tag to compare

@kakoc kakoc released this 14 Nov 15:13
dad45fc

hydo 0.3.3

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 makes the first hour
easier: one command starts the onboarding, the reports say in plain words what broke, and a
system built from your own binaries needs fewer workarounds. Projects that pin
hydo_version: "0.3" keep working.

Before you upgrade

  • Nothing recorded moves. The fingerprint epoch stays 2. An image built by 0.3.0, 0.3.1 or
    0.3.2 gives the same verdicts and fingerprints under 0.3.3.
  • Rebuilt images with fakes, proxies or generated gRPC drivers get new bytes. The version is
    part of hydo's own guest programs (hydo-world, hydo-world-tls, hydo-grpc), so such an
    image has a new sha256 and new fingerprints after a rebuild. The verdicts stay.
  • On Linux with hvx, keep the kernel module you have. The module did not change since 0.3.1.
  • The onboarding skill has a new name. The Claude Code plugin is hydo, and its command is
    /hydo:onboard (skill 2.0.2). If you installed the old plugin hydo-onboard@hydo, remove it in
    Claude Code's /plugin panel and run /plugin install hydo@hydo. For other AI tools, run
    hydo skill install --agent <tool> again.

New

  • hydo onboard. Run it in your repository. It says what it found, starts the hydo/
    folder (from your Docker Compose file, or with TODO marks when there is none), installs the
    onboarding skill for the AI coding tools it finds, and prints the next step. It never changes a
    hydo/ folder that exists. docs/ONBOARD.md walks through a small message queue from an empty
    folder to a lost message.
  • Reports in plain words. hydo report and hydo report --html now say what broke in your
    system, when it happens, whether it is a bug, what hydo saw, and the one command that shows it
    again. The technical report is hydo report --details. hydo explore in a terminal ends with
    how many runs failed and in how many different ways.
  • Your own binaries without a Compose file. ready: tcp:<port> waits until a service
    accepts connections. Each service's log is in the run directory (logs/<service>.log), and the
    diagnosis quotes whole lines. hydo run --memory prints each service's peak memory, so you can
    size guest.ram_mib. hydo build --check warns when a file that the manifest copies into the image is missing.
    hydo guide minimum-path is the shortest path, and hydo guide workflow has the recipe for a
    static Rust build on a Mac.
  • Message queues. hydo guide messages explains a drain that outlasts leases and recovery,
    and which values a record may hold. An eventually_ command retries by itself. A long clock
    step can be written in hours and minutes.

Fixed

  • hydo save, run inside the hydo/ folder, wrote into a nested hydo/hydo/regressions/.
    It now writes into hydo/regressions/.
  • hydo build --check warns about the placeholders that hydo compose writes (the workload and
    the TODO invariant), as it does for those of hydo init. Every run fails while they are there.
  • hydo onboard with a Compose file prints its next steps as one ordered list, and the imported
    hydo.yaml names its commands from the repository's root (hydo build hydo/hydo.yaml).
  • hydo report says when a command is not shrunk: hydo shrinks failed checks, not runs that stop
    with an error, so such a command repeats the whole failing run.
  • The README, docs/INSTALL.md, docs/ONBOARD.md and both quickstarts were checked by two fresh
    readers against release candidates (release step 6a), on a Mac and on Linux with hydo's kernel
    module, and corrected: the hydo: VERDICT line, the terms the program prints, the order of the
    first steps, and how to delete outputs that root wrote.

Known and deferred

  • From the docs review, deferred to a later release:
    • hydo report of a single run's directory prints the technical summary; the plain summary
      is only on its web page (hydo report --html).
    • The exploration's report does not yet show a failing service's last log lines for a run that
      stopped with an error, and its timelines include hydo's own setup events. hydo run of the
      command it prints shows the log.
    • One problem can be listed under two signatures, for example a service that did not restart.
    • hydo explore prints its fault space as JSON before the runs.
  • On Intel, a KVM fingerprint holds for one CPU model; the verdicts are the same on every model.
    The AMD EPYC models measured share their fingerprints.
  • The pause of single threads runs on hvx only.
  • hydo run exits with status 0 whatever the verdict. Use verdict.kind in result.json, or
    hydo ci run, which exits 1 on new findings.

Downloads

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

  • hydo-linux-0.3.3.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.3.3.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.3.3-sources.tar.gz and hydo-mac-0.3.3-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.3.3-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.

hydo 0.3.2

Choose a tag to compare

@kakoc kakoc released this 14 Nov 06:26
fbee09d

hydo 0.3.2

hydo runs a whole system (your services, their disks and network) in a deterministic virtual
machine, injects faults, and replays every failure bit for bit. This release runs several vCPUs
on the KVM engine, pauses the workload or single threads of it, writes a failure as one web page,
finds the versions of your system that have a finding, takes hydo in CI further, and fixes what
the onboardings of Formance Ledger, TigerBeetle, Lago and Blnk found. Projects that pin
hydo_version: "0.3" keep working.

Before you upgrade

  • Nothing recorded moves. The fingerprint epoch stays 2. Images built by 0.3.0 or 0.3.1 give
    the same verdicts and fingerprints under 0.3.2. An image that contains one of hydo's own guest
    programs (hydo-world for fakes: and proxies:, hydo-world-tls, hydo-grpc) gets new
    bytes when you rebuild it, because the version is part of those programs; its verdicts stay.
  • On Linux with hvx, keep the kernel module of 0.3.1. The module did not change.

New

  • Several vCPUs on the KVM engine. hydo run --backend kvm --vcpus N (2 to 8) runs N vCPUs
    that take turns of VM exits, with one deterministic clock; q= sets the turn length.
    hydo explore --backend kvm --vcpus N --turns draws turn lengths, and --sweep turns
    searches them for the length where a verdict changes. The Linux release now ships the guest
    kernel for several CPUs, guest/bzImage-kvm-smp, and hydo doctor --backend kvm checks it.
    Each schedule gave one fingerprint on AMD and on Intel hosts. hydo guide flaky-tests has the
    details.
  • Pauses of the workload and of single threads. P=workload@<at>~<off>:<dur> stops the
    workload's whole process tree for some guest time, as a container's CPU limit does, and
    hydo explore --pause-workload draws such pauses. P=workload/<thread>[#<k>]@<at>~<off>:<dur>
    freezes the named threads while the others run on (hvx; hydo explore --pause-thread). With
    them, etcd's flaky test TestCacheCompactionResync and Qdrant's
    test_wal_replay_loads_pending_to_queue fail on every run of one schedule.
  • A failure as one web page. hydo report --html [DIR] writes one self-contained HTML file
    for a run, an exploration or a hydo ci run: the verdict, the failing run's timeline, and its
    first difference from a passing neighbour. It loads nothing from elsewhere, so it works as a
    CI artifact or an attachment.
  • Which versions have a finding. hydo versions builds an image of each version of your
    system, replays a finding's minimal schedule on each, and says where the finding was introduced
    and whether the newest version still has it (hydo guide workflow).
  • hydo in CI, stage 2. Accepted findings in hydo/known-findings.yaml (hydo ci accept),
    time budgets (budget: in hydo/ci.yaml, hydo explore --time-limit), shards
    (hydo ci run --shard I/N, hydo ci merge), and a history store (hydo ci record,
    hydo ci run --history). hydo guide ci sections 9 to 12.
  • Compose services with build:. hydo compose builds their images with Docker or Podman
    and pins each file's digest in one import; fetch-images.sh rebuilds a missing file and stops
    when a build gives other bytes.
  • For tests with eventual results: the eventually checks can wait for the eventually
    commands (after: commands), test.first_records: true keeps the first commands' records,
    a failing check's last output lines are in result.json, hydo explore --shrink-causes N
    shrinks a signature's other fault kinds too, services[].job: true keeps a one-shot job out
    of the fault targets, and a clock step can go to a time.
  • Experimental, opt-in: hydo explore --search state explores from snapshots taken in the
    middle of runs. It did not find failures sooner on the systems it was measured on.

Fixed

  • hydo <command> --help and -h print the command's options for every command, without an
    image or a project, and end with status 0. (0.3.1 listed hydo explore --help as a known
    defect.)

  • cargo install hydo followed by hydo setup works on Linux; the README offers it there.

  • The KVM and Mac engines no longer drop the records a power cut carries into the recovery boot
    when they are larger than the guest's receive queue, and a run can hold 65,536 messages
    instead of 1,024.

  • The error-log template turns request and trace ids into <id>, and known-errors.yaml no
    longer records the login name of the user who wrote it.

  • A service that stops in a run without faults gets a verdict that names it.

  • hydo build --check warns about the two placeholder files that hydo init writes: the
    check passes them, and every run fails with them.

  • The explorer's report points to hydo guide sdks, not to a file the release does not carry.

  • The README and both quickstarts were checked by fresh readers against release candidates
    (release step 6a), on a Mac and on Linux with hydo's kernel module, and corrected: one install
    block per method, what hydo init writes, the terms the program prints, the module lock, and
    how to delete a build's outputs.

Known and deferred

  • From the docs review, deferred: the header comment of the Redis example's hydo.yaml names
    old paths. The file is copied into the example's image, so changing it moves every quickstart
    value on all three engines; it changes with the next re-recording. hydo build ends with the
    hint hydo explore --seeds 1-20, which is the same for every project; the quickstarts say why
    the example adds --strategy swarm. The Mac quickstart names service networks, fakes and
    proxies without an example, because those examples are in the repository, not in the release.

  • Several vCPUs on KVM: a race window without a VM exit stays out of reach, because turns end
    only at exits.

  • On Intel, a KVM fingerprint holds for one CPU model: the release's checks on GitHub's runners
    gave other fingerprints on a Xeon Platinum 8370C and a Xeon 6975P-C than on the Core i7-13700HX
    that the quickstart's values come from, each run deterministic and with the same verdicts. The
    AMD EPYC models measured share their fingerprints. Earlier pages said one CPU vendor; they are
    corrected, and the cause is not known yet.

  • The pause of single threads runs on hvx only; the Mac and KVM guest kernels have no cgroups.

  • The items 0.3.0 deferred stay: hydo run exits with status 0 whatever the verdict (use
    verdict.kind in result.json, or hydo ci run, which exits 1 on new findings), and the
    report keeps its property table for projects without SDK assertions.

Downloads

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

  • hydo-linux-0.3.2.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.3.2.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.3.2-sources.tar.gz and hydo-mac-0.3.2-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.3.2-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.

hydo 0.3.1

Choose a tag to compare

@kakoc kakoc released this 09 Nov 22:23
b3f7308

hydo 0.3.1

hydo runs a whole system (your services, their disks and network) in a deterministic virtual
machine, injects faults, and replays every failure bit for bit. This release runs a project's own
test program as the workload and finds flaky tests, aims faults at groups of services, checks
message queues, runs hydo in a team's continuous integration, and makes five fixes the default
(fingerprint epoch 2). Projects that pin hydo_version: "0.3" keep working.

Before you upgrade

  • Images you build with 0.3.1 get new fingerprints; images you built before replay unchanged.
    The fingerprint epoch is now 2 (it was 1). An image records the epoch it was built at, and
    hydo applies that epoch's defaults when it runs the image, so an image built by 0.3.0 gives
    the same verdicts and fingerprints under 0.3.1. An image built by 0.3.1 has new bytes and new
    fingerprints. hydo repro compares fingerprints only within one epoch; across epochs it
    compares verdicts and says so.
  • On Linux with hvx, load this release's kernel module. Images built at epoch 2 ask the
    module for the CPU cache description (guest.cpu_cache, below). A module of 0.3.0 or older
    does not have it, and the run stops with a message that says so. hydo module install
    builds and loads the module of this release. KVM and the Mac need nothing.

New

  • Test programs as the workload, and flaky tests. workload.kind: test runs a project's own
    test program (for example a Go or Rust test binary) once per run and checks that it passes.
    hydo guide flaky-tests shows how to find a schedule on which a flaky test fails and a
    neighbour on which it passes. Two examples reproduce known flaky tests: nats-server issue 8363
    on hvx with two vCPUs (hydo/onboard/examples/nats-flaky-8363) and Qdrant issue 10200 on the
    KVM engine (hydo/onboard/examples/qdrant-flaky-10200).
  • Several vCPUs from the command line. hydo run, hydo repro and hydo explain take
    --vcpus N (hvx), and hydo explore --vcpus N --sweep turns tries the vCPU turn lengths and
    narrows down where a verdict changes. Several vCPUs now work with the host-call port.
  • Faults aimed at several services or a role. K=, P= and X= take a list
    (K=n1,n2,n3@5+2) or a selector over a group of the manifest's new groups: key
    (<group>.one, .minority, .majority, .all, .primary). N= takes partitions
    (n1/n2,n3) and shapes (halves, isolate, primary, bridge, ring).
    hydo explore --cluster-faults draws them.
  • Messaging checks. A checks: entry of type: messages checks what producers sent and
    consumers received on queues, logs and publish-subscribe systems (lost, duplicated and
    reordered messages). The Rust SDK records the operations with its new cargo feature
    messages. hydo guide messages explains it.
  • hydo in continuous integration. hydo ci run runs a project's explorations and saved
    regressions on a pull request, compares them with the base commit, and fails only on new
    findings; hydo ci compare compares two result sets. Its settings are in hydo/ci.yaml. The
    repository has a GitHub Action (action/) and a GitLab template. hydo guide ci explains it.
  • Services that start together: services[].start_after names what a service waits for, so
    services that need each other start side by side. hydo compose imports Compose's
    depends_on into it.
  • A service's own log files: services[].logs names them, and the failure diagnosis reads
    them.
  • The CPU's caches in CPUID: guest.cpu_cache gives the guest a fixed cache hierarchy (hvx
    and KVM), on by default for images built at epoch 2. Some programs, for example AlmaLinux 8's
    glibc, need it at guest.cpu: v3.
  • Python bytecode: root.fix_pyc (on by default at epoch 2) rewrites the time stamps of a
    root's .pyc files, so that Python does not ignore them.
  • On KVM and the Mac, HYDO_PREEMPT_RECORD=1 records where each forced preemption point fired,
    and hydo diff names the first point where two runs differ.

Fixed

  • On Linux, hydo run, hydo repro, hydo explore and hydo doctor take the engine the machine
    has when neither --backend nor HYDO_BACKEND names one: hvx when /dev/hvx is there, else
    the KVM engine when /dev/kvm is usable. Before, a machine with only KVM fell to hvx, and the
    run ended at sudo's password prompt with "the run produced no RESULT line". A run on hvx without
    /dev/hvx now stops at once and says what to do.

  • hydo doctor: a failed or warning check prints the state it found (for example
    "kvm_intel is loaded"), not the state it wanted, and each of the release's guest files says
    what it is.

  • hydo run prints when a run ended at a busy-wait loop and ran again in the engine's rewind
    mode; before, only engine.log said so.

  • hydo compose: the generated file's header and the printed next step say the same as
    hydo guide workflow (delete the placeholder workload.run and TODO invariant, keep
    workload.steps and workload.timeout, write the test as commands), and the header's commands
    name the file's folder (hydo build hydo/hydo.yaml).

  • hydo repro of an exploration shows each minimal schedule's whole failure signature.

  • hydo explore --timing --preempt on hvx no longer draws tick jitter that the module refuses
    with a shorter tick period. Engines refuse a schedule they cannot arm before any VM starts, and
    the explorer never counts a refused run as a failure.

  • hydo explore --schedule accepts a schedule without dseed=.

  • The failure diagnosis names a service that does not come back after a power cut, and a failing
    .sql check keeps the rows it found.

  • The recovery boot's clock after a power cut at the k-th flush (cf=) carries on from the first
    boot under guest.clock_after_cut.

  • hydo inspect calls do the same work in the guest every time, so a call does not change what
    later calls see.

  • New projects get an explicit clock_start. The header of a hydo.yaml that hydo compose
    writes names today's commands, and it writes an image fetch script per architecture.

  • Restart policies hold from a service's start (epoch 2).

  • KVM: full-state cycles are on by default, so guest code that loops without VM exits is
    resolved in more cases, and the fingerprint no longer includes event fields that KVM keeps from
    a finished event (epoch 2).

  • The README and both quickstarts were checked by fresh readers against release candidates
    (release step 6a), on the KVM engine and on a Mac, and corrected.

Known and deferred

  • hydo explore --help looks for an image instead of printing the explorer's options;
    hydo guide faults lists them.
  • hydo 0.3.1 has not run on AMD CPUs yet. hydo 0.3.0 gave the same verdicts on AMD as on Intel
    with the KVM engine, with other fingerprints.
  • The items 0.3.0 deferred stay: hydo run exits with status 0 whatever the verdict (use
    verdict.kind in result.json, or hydo ci run, which exits 1 on new findings), and the
    report keeps its property table for projects without SDK assertions.

Downloads

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

  • hydo-linux-0.3.1.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.3.1.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.3.1-sources.tar.gz and hydo-mac-0.3.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.3.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.

hydo 0.3.0

Choose a tag to compare

@kakoc kakoc released this 08 Nov 13:08
76a5140

hydo 0.3.0

hydo runs a whole system (your services, their disks and network) in a deterministic virtual
machine, injects faults, and replays every failure bit for bit. This release explains why a run
failed and lets you look inside it, runs bigger guests, adds HTTPS fakes, ready-made SQL
workloads and storage faults of one service, and refuses schedules that would pass without
testing anything.

New

  • Why a run failed. A failed hydo run writes a diagnosis into result.json and prints
    it: the failing service and process (its exit status or signal, and whether hydo sent it), the
    readiness check (out of time or died), the kernel's out-of-memory and crash lines, and for an
    ERROR the evidence of one replay of the run (each service's log tail, the readiness check run
    once, dmesg, free, ps). --no-diagnose skips the replay. hydo guide inspect explains
    it.
  • hydo inspect: look inside a run without changing it. hydo inspect events <run dir>
    lists the run's events by stop. hydo inspect start <run dir> --at end|<conversation>:<stop>
    replays the run to that stop and holds it, and exec, read, ls, logs, ps, sockets
    and advance look at the held guest. Every call answers with one JSON document, so an AI
    agent can drive it. The recorded run is only read.
  • Guest RAM up to 8 GiB on every engine (guest.ram_mib up to 8192; on x86_64 the RAM above
    3 GiB is placed above 4 GiB). On Linux with hvx this needs the kernel module of this release
    (hydo module install).
  • HTTPS for fake outside services. tls: {hosts: [...], port: 443} on a fake or a proxy:
    hydo build makes the image's own test certificate authority and a certificate per endpoint,
    maps the names in /etc/hosts, and makes the guest and every service image trust it. The new
    guest program guest/hydo-world-tls serves TLS 1.3 and is staged only for such manifests.
  • A writable root for image services: writable: true on a service built from a Docker/OCI
    image gives it the image's tree as a writable layer on the data disk.
  • Fakes that remember: save: and load: objects keep what a fake answered (also across a
    power cut), and webhook.sign: signs webhooks with HMAC-SHA256.
  • Ready-made SQL workloads and checks. hydo sql-gen --dialect postgres|mysql|libsql --endpoint NAME=ADDRESS[,replica] ... writes a project's workload commands and checks: bank,
    list-append, register, set and counter workloads, batch and interactive, routed to primaries
    and replicas, with the checks the routes allow. They run the new guest program
    guest/hydo-sql. A non-executable checks/<kind>_<name>.sql is a query that must return no
    rows. hydo guide workloads explains it.
  • Storage faults of one service. services[].storage names a service's data directory
    (optionally its own ext4 file system with size_mib). G=<svc>@<step>:flip|zero|trunc
    corrupts a file in it (while the service runs or while it is down), and L=<svc>@<step>+<down>
    is a power loss of that service alone. hydo explore --storage-faults draws both.
  • root.share_images: true: services built from one image share one unpacked tree.
  • guest.outcomes_after_cut: true: the recovery boot after a power cut sees the first boot's
    outcomes in $HYDO_OUTCOMES (opt-in).

Fixed

  • Saved regressions of a project with its own workload now replay that workload; before, a
    project whose hydo/ folder had only regressions/ or checks/ ran empty composer rounds
    instead of the manifest's workload.run, so its saved regressions passed without running it.
  • hydo repro <run dir> and hydo inspect on a run directory use the engine the run recorded
    when neither --backend nor HYDO_BACKEND is given. Before, a KVM run was repeated on hvx,
    which needs the kernel module and sudo.
  • On the KVM engine, the explorer report's commands carry --backend kvm. After a build, the
    hydo: next: line names the image when hydo-out/ holds two, and carries --backend kvm on a
    machine whose only engine is KVM.
  • install.sh --no-module on a machine where only /dev/kvm is usable ends with
    hydo doctor --backend kvm instead of a doctor that fails the module checks.
  • hydo run --help prints the run's usage instead of looking for an image.
  • hydo init also adds hydo-out/ to .gitignore.
  • The report's property table cites hydo/ASSERTIONS.md, the file's place in the releases.
  • On the Mac, a run that went through rewind mode says so in plain words.
  • hydo guide faults has a table of the host tokens (disk=, dseed=, cf=, tj=, tjpm=,
    tjmax=, pct=, spin=rewind).
  • The README and both quickstarts were checked by fresh readers against the release candidate
    (release step 6a) and corrected.

Known and deferred

  • hydo run exits with status 0 whenever the run finishes, whatever its verdict; a script reads
    verdict.kind in the run's result.json. Exit codes per verdict come with a later CI command,
    so that this release changes no exit status.
  • The header of a hydo.yaml that hydo compose writes still names the old path
    hvx/onboard/hydo-compose. Changing the text changes every recorded Compose answer, so it waits
    for a release that re-records them.
  • The report keeps its property table for projects without SDK assertions (it then shows
    NOT EXERCISED lines). Hiding it changes the recorded reports, so it waits too.

Changed

  • No silent passes. A schedule that names a service, link, fake, proxy, route, knob or
    composition the image does not have is refused before any VM starts, and the message names
    what the image has. hydo run warns about a pass that tested nothing (no acknowledged
    operation, a history check over no operations, a reaction whose event never came), and prints
    the final verdict when the host's checks changed it. An image without a manifest is no longer
    explored with a built-in fault space.
  • hydo_version: in a plan. A plan that pins hydo_version: "0.2" is refused by 0.3.0 (the
    pin means the same major.minor). Change it to "0.3" (or ">=0.2"), or build with
    HYDO_VERSION_CHECK=warn. hydo init now writes "0.3". Projects without the key are not
    affected.
  • Images that contain hydo's guest programs hydo-world (fakes and proxies) or hydo-grpc
    (generated gRPC drivers), or the assertion SDKs, have new bytes in this release and so new
    fingerprints; their verdicts are unchanged. Images built by 0.2.0 keep running under 0.3.0 and
    give their old values.
  • hydo doctor never downloads anything; it names hydo setup --get <version> for a missing
    release file.
  • hydo compose imports services with build: as local builds. The liveness table of reports
    shows each eventually check's deadline and its slowest late episode. hvx keeps 64 KiB of a
    guest's console, and hydo run warns when it is full.
  • The hydo crate and the assertion SDKs have rewritten package pages; every code example on
    them is a test.
  • The registry packages (crates.io, PyPI, npm, the Go module) are published by the release
    workflow on GitHub Actions with trusted publishing.

Downloads

Every file below is built from the release commit 76a51408658413512f6e2b698a4a3d340bf44fd8,
the commit of the tag v0.3.0; hydo --version names it.

  • hydo-linux-0.3.0.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.3.0.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.3.0-sources.tar.gz and hydo-mac-0.3.0-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.3.0-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.

hydo 0.2.0

Choose a tag to compare

@kakoc kakoc released this 07 Nov 22:48
v0.2.0
9d08b66

hydo 0.2.0

hydo runs a whole system (your services, their disks and network) in a deterministic virtual
machine, injects faults, and replays every failure bit for bit. This release adds a second way to
run on Linux, signed Mac programs, new ways to install, and tools around the onboarding skill.

New

  • Run on Linux without hydo's kernel module. The Linux release now has a KVM engine
    (bin/hydo-kvm and its guest kernel guest/bzImage-kvm). It needs only /dev/kvm, so it runs
    without root, inside a virtual machine with nested virtualization, and on machines where KVM
    must stay loaded: hydo run|explore|repro|doctor --backend kvm, or HYDO_BACKEND=kvm. It runs
    one vCPU at the x86-64-v2 level, and its fingerprints are its own (a run reproduces on the same
    kind of host CPU; hydo repro across engines compares verdicts). See the release README,
    "Run without the kernel module (KVM)".
  • Signed and notarized Mac programs. bin/hydo, bin/hydo-build, bin/hydo-fetch-image and
    the engine bin/hydo-hvm are signed with the project's Developer ID and notarized by Apple;
    hydo setup no longer re-signs the engine, and hydo doctor names the signer. The tarball is
    still reproducible from source: the signatures are published as their own asset
    (hydo-mac-0.2.0-signatures.tar.gz), and hydo/dist/mac/attach-signatures.sh turns the
    unsigned build of the tag into the published tarball byte for byte.
  • Homebrew: brew install kakoc/tap/hydo installs the Mac release (Apple Silicon, macOS 13 or
    later); brew upgrade kakoc/tap/hydo moves an installation to 0.2.0.
  • cargo install hydo: the hydo command is on crates.io. A cargo-installed hydo fetches
    the rest of its release (engines, guest kernels, tools) with hydo setup.
  • The install cache: hydo setup --get [VERSION] installs a release into
    ~/.hydo/versions/<version>, hydo setup restores a damaged installation from its release
    archive, and a run whose image was built by another release fetches that release's guest kernel
    by sha256 (--offline never connects). hydo --version prints the version and commit.
  • The onboarding skill for Claude Code as a plugin: /plugin marketplace add kakoc/hydo, then
    /plugin install hydo-onboard@hydo. Other tools keep hydo skill install --agent <tool>, and
    hydo skill update fetches a newer skill release. The skill now holds only the process; every
    fact about hydo comes from hydo guide <topic> of the installed hydo (new topics workflow
    and services).
  • Assertion SDKs on their registries: hydo-assert on crates.io, PyPI and npm, and the Go
    module github.com/kakoc/hydo/sdk/go, all at 0.2.0. Their API was cleaned up before this first
    publication: a comparison is cmp with an operator (the named greater-than and less-than
    helpers are gone), and internals are no longer public.
  • Comparing two runs: hydo diff <run A> <run B> reports where two runs first differ and the
    first difference in what the checks judge; hydo explain <image> "<schedule>" runs the
    schedule's neighbours and shows the closest passing one. Both are new and not yet in the main
    help text (hydo diff --help, hydo explain --help).

Changed

  • hydo_version: in a plan. A plan that pins hydo_version: "0.1" is refused by 0.2.0 (the
    pin means the same major.minor). Change it to "0.2" (or ">=0.1"), or build with
    HYDO_VERSION_CHECK=warn. hydo init now writes "0.2". Projects without the key are not
    affected.
  • Images that contain hydo's own guest programs hydo-world (fakes and proxies) and hydo-grpc
    (generated gRPC drivers), or the assertion SDKs, have new bytes in this release and so new
    fingerprints; their verdicts are unchanged. Images built by 0.1.0 keep running under 0.2.0.
  • A check's verdict line is the line that starts with HYDO-ORACLE:.
  • hydo compose warns about a service with network_mode: host, and gives a volume mounted on
    /data its own directory. Fake outside services accept bracketed form and query field names.

Fixed

  • KVM engine: a run the explorer started from its snapshot could give a different fingerprint
    than hydo repro of the same schedule when an interrupt was pending at the snapshot; fixed
    before release.

Downloads

  • hydo-linux-0.2.0.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.2.0.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.2.0-sources.tar.gz and hydo-mac-0.2.0-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.2.0-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.

hydo 0.1.0

Choose a tag to compare

@kakoc kakoc released this 07 Nov 10:59
v0.1.0
1a88c31

hydo 0.1.0 is the first public release.

hydo runs a whole system — your services, their databases and queues, and the workload that drives them — inside a virtual machine whose execution is bit-for-bit deterministic. It injects faults from a seed: process kills and pauses, network loss and delay, one-way partitions, power cuts at a chosen disk flush, disk errors and lying disks, clock jumps, and faults in fake outside services. It explores many such schedules, checks your system's properties after each run, and shrinks every failure to a short schedule string that replays exactly.

This is an experimental release. Run it on a machine you can dedicate to testing.

Platforms

Linux macOS
Engine hvx, our own VT-x kernel module Hypervisor.framework
Hardware x86_64 with an Intel CPU and VT-x, bare metal recommended Apple Silicon
Needs root (sudo) for the kernel module, the running kernel's headers, a C compiler and make nothing beyond macOS 13 or later
Guests x86_64 Linux arm64 Linux

Install

Linux:

tar xzf hydo-linux-0.1.0.tar.gz
./hydo-linux-0.1.0/install.sh
export PATH="$HOME/.hydo/bin:$PATH"
hydo doctor

macOS:

tar xzf hydo-mac-0.1.0.tar.gz
./hydo-mac-0.1.0/install.sh
export PATH="$HOME/.hydo/bin:$PATH"
hydo doctor

Each tarball's README.md (Linux) or QUICKSTART-mac.md (macOS) walks from installing to a first exploration and a reproduced failure. No Python, Go, Rust, Nix or internet access is needed.

Files

File sha256
hydo-linux-0.1.0.tar.gz 58aab3b1898826d4ec9c892445099352a0b666fd11a74feee33c98129d4c491c
hydo-linux-0.1.0-sources.tar.gz ea8a62f326442fd451e91024fc174818fe89946e775bd9df88fc0f9531c34b8f
hydo-mac-0.1.0.tar.gz 5c02e7f364424e97aad67a7fa91b73d29a8466e5fe17ea4bd540edc06dac9806
hydo-mac-0.1.0-sources.tar.gz 27527e482e299b75fa60df0194deb90d6f180165bec3d1d80e53061d6b1b850e

SHA256SUMS lists all four. Each file is reproducible: building it again from the commit it was built from gives the same bytes (the Linux tarball and both sources archives from 1a88c31, the macOS tarball from e29c664, an ancestor of it; the macOS programs also need the same build folder, because their Mach-O build ID depends on it). docs/RELEASING.md describes the build.

Licenses

  • hydo is licensed under Apache-2.0.
  • The Linux kernel module (hv/hvx) is licensed under GPL-2.0.
  • Each tarball bundles third-party software, such as the guest Linux kernel, busybox and the iproute2 tools. THIRD-PARTY.md and the licenses/ folder in each tarball list every component with its version and license.
  • The -sources archive next to each tarball contains the corresponding source of every copyleft component, with our patches and build recipes.

Known limitations

  • Where a failure replays. A failure replays exactly with the same engine, image and hydo version. A failure found on Linux cannot be replayed on a Mac. Replay on a second machine of the same kind is expected but not yet tested: every recorded run so far was made on one Intel machine and one M2 Mac.
  • CI runners. Hosted CI runners are virtual machines without VT-x passthrough, so Linux CI needs a self-hosted bare-metal runner.
  • What has been tested.
    • The Linux engine was tested on one Intel CPU model with Ubuntu's 6.8 kernel. On other kernels the module may not compile.
    • On hybrid desktop CPUs (performance and efficiency cores) the exact branch clock is not available.
  • Untested paths. The module install path (install.sh without --no-module) and the optional udev rule for running without sudo have not yet been exercised on a fresh machine. Please report what you see.
  • AMD. AMD processors are not supported by the Linux engine.