Repository navigation
hydo 0.3.4
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 withdisk=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, andhydo-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, runhydo skill update.
New
- Upgrades. A service can list its versions (
services[].versions), and the tokenU=
switches it to another version during a run, one member of a cluster at a time, with an
optional rollback.hydo explore --upgradesdraws such switches. The example
hydo/onboard/examples/etcd-upgradereaches 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 scanlists what your project promises in its
schema, API, documentation and tests.hydo rules checkruns candidate rules on runs without
faults and keeps only the ones that hold.hydo rules scan --kind clockfinds 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-openapiwrites a fake from an OpenAPI description, with error answers
(errors:). A proxy route can beidempotent: true. - Faults aimed at outside services.
hydo explore --protocol-covergives 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 k8swrites a startinghydo.yamlfrom Kubernetes manifests, a
Helm chart or a Kustomize folder.hydo onboardruns 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, andhydo perf comparesays 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-severaldraws it, andL=<service>@...:strictis a power loss that also stops the
disk's periodic writeback. - Function contracts (a prototype, Mac engine only).
// hydo: requiresandensures
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 ownhydo ci acceptline and the failing service's last log
lines.hydo explorenames its fault kinds in words.
Fixed
- A messages check gave wrong results across clock steps and power cuts, and ended a run with
ERRORwhen aduplicatesclaim had nothing acknowledged. - A service that did not start again was listed as two problems.
hydo buildrefused 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 --checkrun beforesh hydo/fetch-images.shnow says to run that script, instead
of sending you todocker save.hydo onboardwith 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 acceptline now says which other problem takes the same key and why. hydo module build --dry-runbuilds nothing, andhydo module --helplists 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 acceptkey 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
ofhydo ciand of everyhydo/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.
- A
- 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.gzandhydo-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).SHA256SUMSlists all five files.