Skip to content

Holochain 0.7 update: bundled desktop on the unified tauri-plugin-holochain - #206

Merged
Amirhesp merged 11 commits into
developfrom
feat/holochain-0.7
Oct 6, 2026
Merged

Amirhesp merged 11 commits into
developfrom
feat/holochain-0.7

Conversation

@zippy

@zippy zippy commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Parts 1+2 of the migration plan: the whole stack moves to holochain 0.7.0, and the bundled desktop build switches from darksoil's p2p-shipyard plugin to the in-process tauri-plugin-holochain from holochain/android-service-runtime (pinned rev on main-0.7), with the UI on @holochain/client 0.21.0 routing the App API over direct Tauri IPC (no loopback websocket).

Stacked on #205 (base = chore/de-risk-darksoil-dep; retarget to develop after #205 merges).

Per the agreed scoping: only the bundled build needs to work here. The holochain_service (Android system-runtime) build is known-broken until volla-cloud-services updates to 0.7 (separate second step), and 1.x data does not carry over — data migration (perhaps export/import) is follow-up implementation work.

Changes

  • happ / zomes: hdk 0.6→0.7, hdi 0.7→0.8; profiles and file-storage to their main-0.7 lines (file-storage pinned at ae535bd, yesterday's 0.700.0 release commit). relay_integrity's validate() rewritten for the reshaped FlatOp/TypedAction API; the coordinator migrated off the removed Action enum (now header+data). happ manifest: dna version field removed (gone in 0.7).
  • Desktop (src-tauri): holochain_bundled now uses the unified plugin — init() + EVENT_READY, main_window_builder with direct-IPC wiring, runtime().setup_app(). Networking is iroh-only in 0.7 (bootstrap + iroh relay; the sbd signal server and WebRTC/ICE config no longer exist). New happ_update module ports darksoil's coordinator-zome update algorithm (admin websocket on runtime().admin_port(), gated by a persisted bundle hash) so future 2.x releases can upgrade installed happs in place. capabilities/main.json now grants holochain:default — the plugin's commands are ACL'd, and without it the UI fails with 'app_request not allowed' (the error from the first manual run).
  • UI: client 0.21.0 + @holochain-open-dev/* 0.700.0; adapted to the restructured Action type, the ApiTransportStats wrapper, and locally-typed optional peer-meta diagnostics.
  • Tests: migrated to @holochain-open-dev/tryorama 0.20.0 (the 0.7-compatible tryorama line — @holochain/tryorama stops at 0.19.2/0.6). vitest now runs test files sequentially: each file boots multiple conductors and concurrent files starve each other into flaky timeouts.
  • Version 2.0.0: 0.7 can't open 0.6 databases or gossip with 0.6 nodes; the major bump gives the conductor a fresh versioned data dir (android versionCode 2000000).
  • Toolchain: rust 1.95.0 (holochain 0.7 requires it; matches android-service-runtime), holonix main-0.7, CI rust pins updated to match.

Verified

  • All six zome wasms build; hc app pack succeeds with hc 0.7.0.
  • cargo check --features holochain_bundled clean; happ_update unit test passes.
  • All 10 tryorama integration tests pass against 0.7 conductors (sequential run, ~4 min).
  • svelte-check: develop baseline has 23 errors; this branch has 14 — a strict subset (9 pre-existing fixed, none added).
  • Desktop smoke run (npm run start:desktop): 0.7 conductor boots with the volla network config, happ installs (relay cell created, apps enabled), window opens over direct Tauri IPC, no permission or runtime errors.

Open items (tracked in the plan doc)

  • Infra: confirm relay2.volla.tech (kitsune2 bootstrap — 0.7 uses the kitsune2 0.5 line) and iroh-relay.volla.tech serve 0.7 clients. The smoke run pointed at them without errors, but two-peer delivery through the production relays hasn't been exercised.
  • Two-agent messaging + in-place-upgrade end-to-end checks (plan Task 11).
  • Android service track (volla-cloud-services → 0.7) — separate step.
  • Ask android-service-runtime upstream for a release tag to replace the rev pin; optionally upstream happ_update as Runtime::update_app_if_necessary.

zippy and others added 9 commits August 13, 2026 14:44
- hdk 0.6 -> 0.7, hdi 0.7 -> 0.8; profiles/file-storage deps to their
  main-0.7 branches; holochain_serialized_bytes 0.0.57
- relay_integrity: migrate validate() to the reshaped FlatOp API
  (CreateEntry/CreateRecord/Update/Delete/Link/AgentActivity), Action as
  a header+data struct, and TypedAction<...> validator signatures
  replacing EntryCreationAction/Update/Delete/CreateLink/DeleteLink
- relay coordinator: match on ActionData instead of the removed Action
  enum variants; GetOptions is no longer constructible via struct
  literal (use the get_options() helper)
- workdir/happ.yaml: drop the dna 'version' field (removed in 0.7)
- rust 1.95.0 via rust-toolchain.toml (holochain 0.7 needs
  str::floor_char_boundary; matches android-service-runtime); release
  workflows bumped from 1.89 to match
- flake: holonix main-0.7

Verified: all six zome wasms build for wasm32-unknown-unknown; hc app
pack workdir --recursive produces relay.happ with hc 0.7.0.
…untime (direct Tauri IPC)

Replace the darksoil p2p-shipyard plugin with the in-process
tauri-plugin-holochain from holochain/android-service-runtime (pinned
rev on main-0.7):

- builder/holochain_bundled.rs rewritten against the new plugin API:
  init() + EVENT_READY/EVENT_SETUP_FAILED, main_window_builder with
  WindowOptions (direct Tauri IPC by default - no loopback websocket),
  runtime().setup_app/is_app_installed. NetworkConfig is holochain 0.7's
  native config: bootstrap + iroh relay only (0.7 dropped the sbd signal
  server and WebRTC transport, so SIGNAL_URL/ICE_URLS are gone).
- new happ_update module: in-place coordinator-zome updates for
  release upgrades (the asr runtime has no update path). Ports the
  darksoil diff/update algorithm against the admin websocket on
  runtime().admin_port(), gated by a persisted bundle hash under the
  data dir.
- drop direct holochain / lair_keystore / tauri-runtime deps (the
  plugin brings the conductor; vec_to_locked is re-exported);
  holochain_types/conductor_api/client/mr_bundle at 0.7-line versions.
- NOTE: the holochain_service feature still points at the 0.6.1-based
  volla-cloud-services client and is expected to be broken until that
  fork updates to 0.7 (tracked separately).

Verified: cargo check --features holochain_bundled clean.
- @holochain/client 0.20.4-rc.0 -> 0.21.0: AppWebsocket.connect() now
  auto-detects the __HC_TAURI_HOLOCHAIN__ env injected by the unified
  plugin and routes the App API over Tauri IPC (no loopback websocket);
  the Android service path still falls back to __HC_LAUNCHER_ENV__.
- @holochain-open-dev/{elements,file-storage,utils} to 0.700.0 (their
  holochain 0.7 line) so a single client version is bundled.
- Adapt to the client's restructured Action type (header + data): drop
  the per-variant SignedActionHashed<...> generics, author/timestamp via
  .header.
- dumpNetworkStats now returns ApiTransportStats: unwrap
  .transport_stats in NetworkStatsStore.
- NetworkStatusPanel: type the optional diagnostic peer-meta fields
  (dht_op_count/storage_arc/is_tombstone) locally - the client typings
  don't declare them.

svelte-check: 46 -> 14 errors; the remaining 14 are pre-existing
strictness issues (catch-unknown, gesture event types, an app store
type mismatch) unrelated to the holochain deps.
…lease

2.0.0: holochain 0.7 cannot open 0.6 databases and 0.7 nodes cannot
gossip with 0.6 nodes, so the major bump gives the conductor a fresh
versioned data dir (holochain_dir joins the app major version). Data
migration from 1.x is an explicitly separate follow-up.

npm test now runs the zome build + happ pack only; the tryorama
integration tests move to npm run test:tryorama until a
holochain-0.7-compatible tryorama ships (0.19.x targets 0.6 - verified:
all 10 tests time out against 0.7 conductors).
The unified plugin routes the App API through the app_request /
sign_zome_call Tauri commands, which the window can only invoke when
the capability grants the plugin's permissions (the old darksoil
plugin's commands were not ACL'd in this capability file). Without it
the UI fails with 'holochain.app_request not allowed'.
The @holochain/tryorama line stops at 0.19.2 (holochain 0.6); the
0.7-compatible continuation is published as @holochain-open-dev/tryorama
0.20.0 (client ^0.21.0). Restore 'npm test' to run the suite.

Also run vitest files sequentially (fileParallelism: false): each file
boots multiple real conductors, and running the three files concurrently
starves them into flaky timeouts (1-2 random failures per run; all pass
solo). Sequential: all 10 tests pass in ~4 minutes.
@Amirhesp
Amirhesp changed the base branch from chore/de-risk-darksoil-dep to develop October 6, 2026 10:36
Amirhesp and others added 2 commits October 6, 2026 14:46
Merging develop brought the 1.0.3 migration export into the 0.7 line.
On 2.0.0 it is destructive: a fresh 0.7 install starts under a new
agent with no conversations, the on-disk export belongs to a different
agent and is therefore ignored by the regression guards, and the empty
snapshot replaces the user's 1.0.3 export at the fixed path before any
import could read it.

2.0.0 now only reads the export. Removed the export scheduler from the
layout, the export module, the write/pending-enable commands and the
unused getRawMembraneProof client wrapper. read_migration_export stays,
resolving the same paths 1.0.3 wrote to. The coordinator's
get_raw_membrane_proof and its tests stay: they are DNA-hash neutral
and the next DNA-breaking migration will need them.

Also points membrane-proof.test.ts at @holochain-open-dev/tryorama,
the package the 0.7 test setup installs; it failed to load before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Amirhesp
Amirhesp merged commit 5fa5b8c into develop Oct 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants