Repository navigation
Hearth: a care record on Holochain 0.7, built without the skill — what it would and wouldn't have caught #12
topeuph-ai
started this conversation in
Field Reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Project: Hearth. It's a record of what a person wants their carers to know (the UK PRSB "About Me" standard), shared in a "circle" of family and professionals, with no central server. Each circle is a clone cell. A "door" DNA with a waiting room handles joining. Content is encrypted per circle. Time-limited capability-grant "passes" let someone read chosen sections without joining. It's distributed as a Kangaroo desktop app for Windows.
Versions: holochain 0.7.0, hdk 0.7.0, hdi 0.8.0, lair_keystore_api 0.7.1, Kangaroo
main-0.7. Built since September 2026 in Claude Code.Important: the skill was not loaded while Hearth was built, because I found it afterwards. So this isn't a run of the skill. It compares what we ran into with what the skill (at
27c72f5, before PR #10) says, so you can see where it would have helped and where it wouldn't.Where the skill would have saved us time
target_arc_factor: 0(networking.md, "leecher nodes"). We worked this out on our own for professionals who belong to many circles and should read without storing. The skill already says it clearly.Where it wouldn't have helped, now mostly fixed
The three gaps in #9, now covered by PR #10:
NetworkError.One not covered anywhere we could find: the same source built on Windows and Linux gave different DNA hashes
We pin the integrity zome's wasm hash in CI so the rules can't change by accident. When the check first ran on GitHub Actions (Linux), its hash did not match the one built on Windows for the installer. The source was identical, and so was the pinned compiler (
rust-toolchain.toml, exact rustc version).A different wasm means a different DNA hash, which means a different network. A circle made with the Windows installer and one made from a Linux build of the same commit can't find each other, and nothing says so. We now pin both hashes (
dnas/aboutme/zomes/integrity/aboutme/FROZEN.sha256).Cause, and a partial fix. (Corrected on 16 October; an earlier version of this post said we hadn't tried this, which was wrong.) Rust bakes dependency source paths into the wasm for panic messages. We build the zomes through a wrapper that passes
--remap-path-prefix, which made every machine of the same platform produce identical bytes. But the remapped paths keep the operating system's own separator (/cargo\registry\src\…on Windows,/cargo/registry/src/…on Linux), so Windows and Linux still differ, and we know of no flag on stable Rust that fixes that. So we treat the released.webhappas the canonical build, and anyone packaging for another platform should use that file rather than compiling the zomes.A possible line for the skill, in deployment.md or package-and-deploy.md: build the
.happonce, and ship that same file in every platform's installer. Don't build the zomes separately on each OS, because the DNA hash may differ, and users on different platforms would silently be on different networks. Write down the hash you released and check it.Smaller things from practice
call_remoteto a fresh peer can fail until the conductor has found it. A reader opening a pass straight after launch got a network error. Retrying for up to about 2 minutes fixed it in practice. We haven't measured it more carefully than that.Thanks for the skill, and for turning #9 around so carefully.
(Written with AI assistance, as before. The claims are from our own code, CI history and docs.)
All reactions