Architecture

Nondominium, the whole app

The architecture of the Nondominium hApp as it stands on dev at 2e2f235, and as the open milestones plan to change it. It is a map to explore, not a design to settle: there is no decision card on this page.

The hApp is one bundle of five DNA roles (lobby, nondominium, hrea, group, ndo), eleven Rust zome crates and one SvelteKit UI, run either as a tool inside Moss or as a standalone window over a local conductor. A group is its own cloned cell, and so is every NDO, whose DNA hash is bound to its immutable Layer 0 fields.

Every box without a mark is on dev today. A box or arrow marked planified is planned and not yet in the code, modified is on dev and planned to change, removed is on dev and planned to go. Each planned part names its source (an issue, a milestone or a design document) in its spec. The map's head offers all · current · change: current draws only what runs today, change fades what stays as it is.

How to walk it: start on Context, double-click a box (or use its ▸ badge) to open the level it holds, click a box for its spec, and follow the links in a spec to its neighbours. The ▶ marks show where a person enters the app.

Context

Specification

Every component, read top to bottom. A box on a diagram or a component's name opens its spec beside the page; ⤢ zoom opens a diagram in the viewer.

Member system · person

Entry point
▶ the system is entered here: a member of a group, in Moss or standalone
Does

A person in an open value network who creates groups and NDOs, joins them, proposes commitments, logs economic events and fulfills commitments with a counterparty.

Talks to
Thread

Developer system · person

Entry point
▶ the system is entered here: a developer running the app locally
Does

A contributor who builds the zomes and the UI and runs two agents locally, in weave dev mode inside Moss or in a Holochain sandbox.

Talks to
Thread

Nondominium hApp system · service

Technology
Holochain 0.7.1, Rust, SvelteKit
Does

A multi-DNA Holochain app for commons-based resource sharing on Valueflows: Nondominium Objects (NDOs) with embedded governance, groups, commitments, economic events and private participation receipts.

Holds
Thread
Code
  • workdir/happ.yaml:1-60
  • Cargo.toml:7-43

hApp UI container · ui modified

Change
modified: this design changes it
Technology
SvelteKit 2, Svelte 5, Effect-TS 4, UnoCSS, Melt
Does

The single-page UI: lobby, groups and NDOs, over Effect services and Svelte stores, with a host layer that runs it standalone or inside Moss. Planned: SvelteKit 3 (#150, v0.2), economic reads through hREA (#193, v0.2), a build flag for the standalone target (#203, v0.2).

Part of
Nondominium hApp
Holds
Thread
Code
  • ui/package.json:1-58
  • ui/scripts/check-architecture.ts:1-13

Routes and root layout component · ui

Technology
SvelteKit routes
Does

The root layout connects to Holochain, sets up the profile (from Moss inside Moss), loads the lobby and, inside Moss, joins every anchored NDO cell in the background; routes open the lobby, a group, an NDO and the NDO creation page.

Part of
hApp UI
Talks to
Called by
  • Moss and The Weave: hosts the tool in an iframe, hands it the applet client and the open view (Weave API)
  • Member: uses the app standalone (browser window over a local conductor)
  • Playwright end-to-end: drives the UI against real conductors
Thread
Code
  • ui/src/routes/+layout.svelte:1-58
  • ui/src/routes/ndo/new/+page.svelte:1-32

App shell component · ui

Technology
Svelte 5
Does

The frame every page renders in: the sidebar with groups and NDOs, and the content area.

Part of
hApp UI
Called by
Thread
Code
  • ui/src/lib/components/shell/AppShell.svelte:1-72
  • ui/src/lib/components/shell/Sidebar.svelte:1-294

Lobby views component · ui

Technology
Svelte 5
Does

The lobby: the NDO browser with its filters, the group sidebar, the profile bar and the first-run profile form.

Part of
hApp UI
Talks to
  • Stores: reads state, calls actions
Called by
Thread
Code
  • ui/src/lib/components/lobby/LobbyView.svelte:1-52
  • ui/src/lib/components/lobby/NdoBrowser.svelte:1-279
  • ui/src/lib/components/lobby/GroupSidebar.svelte:1-184
  • ui/src/lib/components/lobby/ProfileSetupModal.svelte:1-79

Group views component · ui

Technology
Svelte 5
Does

A group's page: its members, work log, soft links, its NDOs, and the modal that creates an NDO in the group.

Part of
hApp UI
Talks to
  • Stores: reads state, calls actions
Called by
Thread
Code
  • ui/src/lib/components/group/GroupView.svelte:1-228
  • ui/src/lib/components/group/NdoCreateModal.svelte:1-245
  • ui/src/lib/components/group/MemberList.svelte:1-36

NDO views component · ui modified

Change
modified: this design changes it
Technology
Svelte 5
Does

An NDO's page: the Layer 0 identity, resources, governance rules, activity, composition, the lifecycle transition and its history, fork, association with another group, and the commitment and event forms of #183. Planned: the fork flow writes the parent's share into the clone properties (#223, v0.1.0).

Part of
hApp UI
Talks to
  • Stores: reads state, calls actions
Called by
Thread
Code
  • ui/src/lib/components/ndo/NdoView.svelte:1-360
  • ui/src/lib/components/ndo/NdoIdentityLayer.svelte:1-224
  • ui/src/lib/components/ndo/CommitmentCreateForm.svelte:1-314
  • ui/src/lib/components/ndo/EconomicEventCreateForm.svelte:1-289
  • ui/src/lib/components/ndo/ForkNdoModal.svelte:1-102
  • ui/src/lib/components/ndo/LifecycleTransitionModal.svelte:1-182

Contribution pie chart component · ui planified

Change
planified: this design adds it
Technology
Svelte 5
Does

Shows and edits an NDO's contribution pie chart, the shares of its agreement. Planned in #221 (v0.1.0 Moss pilot), with #220 (shares sum to exactly 100) and #224 (import pie-chart.json).

Part of
hApp UI
Talks to
Thread

Design-system adapters component · module planified

Change
planified: this design adds it
Technology
TypeScript
Does

Convert between the design system's component shapes and the app's create inputs and rule data. On Tibi's experiment branch today; to land on dev with a resolvable ndo-ui dependency in #205 (v0.3).

Part of
hApp UI
Talks to
Thread

Stores component · module

Technology
Svelte 5 runes, Effect-TS
Does

Reactive state per domain (lobby, group, NDO, person, resource, governance, Moss, connection): the only way a component reaches a service. A store never imports another store (rule I2).

Part of
hApp UI
Talks to
Called by
Thread
Code
  • ui/src/lib/stores/ndo.store.svelte.ts:1-433
  • ui/src/lib/stores/lobby.store.svelte.ts:1-237
  • ui/src/lib/stores/governance.store.svelte.ts:1-430
  • ui/src/lib/stores/moss.store.svelte.ts:1-96

Domain layer component · module

Technology
TypeScript, pure functions
Does

Pure rules with no Svelte, Effect or service import (rule I3): resource and agent perspectives, lifecycle transitions allowed, entity states and NDO filters.

Part of
hApp UI
Called by
  • Stores: derives perspectives and allowed transitions
Thread
Code
  • ui/src/lib/domain/perspective.ts:1-86
  • ui/src/lib/domain/lifecycle.ts:1-29
  • ui/src/lib/domain/entity-state.ts:1-104
  • ui/src/lib/domain/ndo-filters.ts:1-25

Zome services component · module

Technology
Effect-TS layers
Does

One Effect service per zome domain (lobby, group, NDO, person, resource, governance), calling zomes by role or by cell id; the NDO service creates an NDO in three steps and joins anchored NDO cells; the lobby service has a Moss variant backed by the group cell.

Part of
hApp UI
Talks to
Called by
Thread
Code
  • ui/src/lib/services/zomes/ndo.service.ts:376-452
  • ui/src/lib/services/zomes/lobby.service.ts:627-675
  • ui/src/lib/services/zomes/governance.service.ts:1-273
  • ui/src/lib/services/zomes/moss-lobby.ts:1-25

Schemas and errors component · module

Technology
Effect Schema
Does

Decode zome records into typed values and map failures into one tagged error per domain with a context code.

Part of
hApp UI
Called by
Thread
Code
  • ui/src/lib/schemas/resource.schemas.ts:1-190
  • ui/src/lib/errors/error-contexts.ts:1-142

Holochain client service component · module

Technology
@holochain/client 0.21
Does

The one gateway to the conductor: zome calls by role or cell id, app info caching, and clone cell creation for groups and NDOs (through the WeaveClient inside Moss), with signing credentials authorised for every new cell.

Part of
hApp UI
Talks to
Called by
Interfaces
IF4 function typescript
createNdoCloneCell(args: {
  networkSeed: string;
  properties: NdoDnaProperties;
}): Promise<ClonedCell>;
Contract:

Clones the ndo role through the app client standalone, through the WeaveClient inside Moss, then authorises signing for the new cell. holochain.service.svelte.ts:55-58 and 267-300.

Thread
Code
  • ui/src/lib/services/holochain.service.svelte.ts:1-60
  • ui/src/lib/services/holochain.service.svelte.ts:230-300
  • ui/src/lib/services/cell.manager.ts:1-85

Connection modes component · module

Technology
TypeScript
Does

Opens the conductor connection in one of four modes: the launcher, the hc-connection.json manifest the dev launcher writes, environment variables, or the applet client Moss hands the tool.

Part of
hApp UI
Talks to
Called by
Thread
Code
  • ui/src/lib/utils/hc-connect.ts:1-287

Moss host layer component · module

Technology
@theweave/api
Does

Detects whether the UI runs inside Moss, connects the WeaveClient, offers NDOs as Moss assets (search, asset info, open), reads profiles and roles, and creates NDO clone cells through Weave.

Part of
hApp UI
Talks to
  • Moss and The Weave: connects, offers NDOs as assets, reads profiles and roles, creates clone cells (@theweave/api)
Called by
Thread
Code
  • ui/src/lib/moss/host.ts:1-53
  • ui/src/lib/moss/connect.ts:1-58
  • ui/src/lib/moss/applet-services.ts:1-26
  • ui/src/lib/moss/assets.ts:1-55
  • ui/src/lib/moss/profile.ts:1-64
  • ui/src/lib/moss/ndo-clone.ts:1-43

Shared TypeScript types component · module

Technology
@nondominium/shared-types workspace package
Does

The TypeScript mirror of the zome inputs and outputs (lobby, group, person, resource, governance, PPR), the integration seam between the services and the zomes.

Part of
hApp UI
Called by
Thread
Code
  • packages/shared-types/src/index.ts:1-43
  • packages/shared-types/src/resource.types.ts:1-463

Architecture check component · module

Technology
Bun script, run by bun run check
Does

Fails the UI check when a Svelte file reaches effect or the services (I1), a store imports another store (I2), or the domain layer imports Svelte, Effect, services or stores (I3).

Part of
hApp UI
Talks to
  • Stores: keeps components out of services and stores apart
Thread
Code
  • ui/scripts/check-architecture.ts:1-60

Vendored GraphQL adapter component · module removed

Change
removed: this design takes it out
Technology
@valueflows/vf-graphql-holochain 0.700.0-rc.0 tarball
Does

The hREA GraphQL adapter installed from a tarball in vendor/, because npm served only the 0.6 line when it was added (#153). Declared, not yet imported by the UI source. Removed in #193 (v0.2) for the npm package.

Part of
hApp UI
Thread
Code
  • ui/package.json:54-54
  • vendor/README.md:5-21

hREA economic reads component · module planified

Change
planified: this design adds it
Technology
@valueflows/vf-graphql-holochain from npm
Does

The specification, resource, commitment and event views read through hREA's GraphQL adapter instead of the native zomes. Planned in #193 (v0.2, plan §7 criterion 2); write paths out of scope.

Part of
hApp UI
Talks to
  • hREA zomes: reads specifications, resources, commitments and events (GraphQL adapter) planified
Called by
  • Stores: reads economic records through planified
Thread
Code
  • documentation/hREA/v0.2-release-plan.md:126-135

Lobby DNA container · service

Technology
Rust, HDK 0.7.1, fixed network seed
Does

One permissionless federation DHT shared by every install, holding lobby profiles and the announcements groups make to be found. Used standalone; inside Moss the Moss group takes its place.

Part of
Nondominium hApp
Holds
Called by
Thread
Code
  • workdir/happ.yaml:4-14
  • dnas/lobby/workdir/dna.yaml:1-17

zome_lobby_integrity component · module

Technology
Rust, HDI 0.8.1
Does

Defines and validates LobbyAgentProfile and GroupAnnouncement, with their path and agent links.

Part of
Lobby DNA
Called by
Thread
Code
  • dnas/lobby/zomes/integrity/zome_lobby_integrity/src/lib.rs:6-47
  • dnas/lobby/zomes/integrity/zome_lobby_integrity/src/lib.rs:63-120

zome_lobby_coordinator component · service

Technology
Rust, HDK 0.7.1
Does

Nine hdk_extern functions, init included: upsert and read lobby profiles, announce a group, and list all groups, my groups or one group by its DNA hash.

Part of
Lobby DNA
Talks to
Called by
Interfaces
IF7 function rust
#[hdk_extern]
pub fn announce_group(input: AnnounceGroupInput) -> ExternResult<Record>
Contract:

Makes a group findable in the lobby by announcing its DNA hash on the fixed federation DHT. zome_lobby_coordinator/src/lib.rs:142-143.

Thread
Code
  • dnas/lobby/zomes/coordinator/zome_lobby_coordinator/src/lib.rs:1-291

Nondominium DNA container · service modified

Change
modified: this design changes it
Technology
Rust, HDK 0.7.1
Does

The shared core cell: persons, roles, private data and devices, plus the resource and governance zomes for data not scoped to one NDO. Planned: hREA Phase A moves specifications, resources, events and commitments onto hREA types (#185, v0.2).

Part of
Nondominium hApp
Holds
Called by
Thread
Code
  • workdir/happ.yaml:15-23
  • dnas/nondominium/workdir/dna.yaml:1-36

zome_person integrity component · module

Technology
Rust, HDI 0.8.1
Does

Person, PersonRole, Device and AgentPersonRelationship as public entries; PrivatePersonData, capability metadata and revocation markers as private entries; the person-centric links and their validation.

Part of
Nondominium DNA
Called by
Thread
Code
  • dnas/nondominium/zomes/integrity/zome_person/src/lib.rs:42-120
  • dnas/nondominium/zomes/integrity/zome_person/src/lib.rs:264-306

zome_person coordinator component · service

Technology
Rust, HDK 0.7.1
Does

47 hdk_extern functions, init included: persons and their agents, roles and promotion, field-level private data sharing through capability grants, devices, and the hREA agent bridge.

Part of
Nondominium DNA
Talks to
Called by
Thread
Code
  • dnas/nondominium/zomes/coordinator/zome_person/src/person.rs:27-66
  • dnas/nondominium/zomes/coordinator/zome_person/src/role.rs:55-104
  • dnas/nondominium/zomes/coordinator/zome_person/src/capability_based_sharing.rs:30-120
  • dnas/nondominium/zomes/coordinator/zome_person/src/device_management.rs:46-130
  • dnas/nondominium/zomes/coordinator/zome_person/src/hrea_bridge.rs:1-39

zome_resource integrity component · module modified

Change
modified: this design changes it
Technology
Rust, HDI 0.8.1
Does

ResourceSpecification, EconomicResource, GovernanceRule, NondominiumIdentity and NdoMembership, with the discovery, lifecycle and NDO links. Compiled into both the core and the NDO DNA. Planned: the CapabilitySlot link type (#184, v0.2) and the Use and Consume fork on the identity (#204, v0.3).

Part of
Nondominium DNA
Talks to
Called by
Thread
Code
  • dnas/nondominium/zomes/integrity/zome_resource/src/lib.rs:15-145
  • dnas/nondominium/zomes/integrity/zome_resource/src/lib.rs:146-209

zome_resource coordinator component · service modified

Change
modified: this design changes it
Technology
Rust, HDK 0.7.1
Does

47 hdk_extern functions, init and post_commit included: NDO identity and lifecycle, NDO membership, specifications, economic resources with custody transfer and operational state, and governance rules. Planned: Layer 1 specification versions and dormancy (#206, #207, #144, v0.2) and hREA dual-read for specifications and resources (#189, #190).

Part of
Nondominium DNA
Talks to
Called by
Thread
Code
  • dnas/nondominium/zomes/coordinator/zome_resource/src/ndo_identity.rs:140-249
  • dnas/nondominium/zomes/coordinator/zome_resource/src/resource_specification.rs:113-299
  • dnas/nondominium/zomes/coordinator/zome_resource/src/economic_resource.rs:390-509
  • dnas/nondominium/zomes/coordinator/zome_resource/src/governance_rule.rs:25-107
  • dnas/nondominium/zomes/coordinator/zome_resource/src/lib.rs:44-80

zome_gouvernance integrity component · module modified

Change
modified: this design changes it
Technology
Rust, HDI 0.8.1
Does

ValidationReceipt, EconomicEvent, Commitment, Claim, ResourceValidation, the private PrivateParticipationClaim, and the federation entries NdoHardLink, Contribution and Agreement. Planned: agreement shares sum to 100 (#220), the license share parameter (#222) and a fork's inherited share validated in integrity (#223), all v0.1.0.

Part of
Nondominium DNA
Talks to
Called by
Thread
Code
  • dnas/nondominium/zomes/integrity/zome_gouvernance/src/lib.rs:17-158
  • dnas/nondominium/zomes/integrity/zome_gouvernance/src/lib.rs:160-202
  • dnas/nondominium/zomes/integrity/zome_gouvernance/src/ppr.rs:253-330

zome_gouvernance coordinator component · service modified

Change
modified: this design changes it
Technology
Rust, HDK 0.7.1
Does

51 hdk_extern functions, init and post_commit included: commitments and claims, the atomic fulfillment closure that countersigns through call_remote, economic events, validation receipts, PPR issuance and reputation, transition evaluation, hard links, contributions and agreements. Planned: hREA dual-read for events and commitments (#191, #192, v0.2).

Part of
Nondominium DNA
Talks to
Called by
Interfaces
IF5 function rust
#[hdk_extern]
pub fn fulfill_commitment_closure(
  input: FulfillCommitmentClosureInput,
) -> ExternResult<FulfillCommitmentClosureOutput>

#[hdk_extern]
pub fn countersign_fulfillment(
  input: CountersignFulfillmentInput,
Contract:

One call closes a commitment: the non-author initiates, the author countersigns through call_remote, then the event, the claim, the optional operational state update and both private participation claims are written, or nothing is. fulfillment.rs:1-30, 117-120 and 521-523.

IF8 function rust
#[hdk_extern]
pub fn propose_commitment(input: ProposeCommitmentInput) -> ExternResult<ProposeCommitmentOutput>
Contract:

Writes a commitment and links it to its NDO (NdoToCommitments), so anyone can list an NDO's commitments without scanning every commitment. commitment.rs:40-41.

Thread
Code
  • dnas/nondominium/zomes/coordinator/zome_gouvernance/src/commitment.rs:41-121
  • dnas/nondominium/zomes/coordinator/zome_gouvernance/src/fulfillment.rs:1-30
  • dnas/nondominium/zomes/coordinator/zome_gouvernance/src/fulfillment.rs:118-140
  • dnas/nondominium/zomes/coordinator/zome_gouvernance/src/ppr.rs:85-120
  • dnas/nondominium/zomes/coordinator/zome_gouvernance/src/transition.rs:1-70
  • dnas/nondominium/zomes/coordinator/zome_gouvernance/src/lib.rs:42-68

misc component · service

Technology
Rust, HDK 0.7.1
Does

A coordinator zome with one function, ping, answering Pong: a liveness probe for the core cell.

Part of
Nondominium DNA
Thread
Code
  • dnas/nondominium/zomes/coordinator/misc/src/lib.rs:1-6

Native Valueflows types component · store removed

Change
removed: this design takes it out
Technology
Rust entry types
Does

Nondominium's own ResourceSpecification, EconomicResource, EconomicEvent and Commitment, which duplicate concepts hREA implements. Removed in #194 (v0.2) once the dual-read parity suite holds for each type; the PPR and private identity entries never migrate (plan §4).

Part of
Nondominium DNA
Called by
Thread
Code
  • dnas/nondominium/zomes/integrity/zome_resource/src/lib.rs:15-90
  • dnas/nondominium/zomes/integrity/zome_gouvernance/src/lib.rs:28-69
  • documentation/hREA/v0.2-release-plan.md:52-85

Governance engine component · module planified

Change
planified: this design adds it
Technology
Rust, pure functions
Does

A pure-function engine that evaluates a state transition against the governance rules, behind cross-zome interface types, so write paths follow request, evaluate, apply. Planned in #41 and #42 (v0.2), with #145 deciding whether every write path funnels through it, and #43, #44, #45 in v0.3.

Part of
Nondominium DNA
Called by
Thread
Code
  • documentation/specifications/governance/governance-operator-architecture.md:1-36

File storage zomes component · store planified

Change
planified: this design adds it
Technology
holochain-open-dev/file-storage
Does

Chunked, peer-hosted file storage so an NDO carries its design files, models and documents as DigitalAsset capability slots. Planned in #99 (v0.2), which names the nondominium DNA as its home; it predates the per-NDO cells.

Part of
Nondominium DNA
Talks to
Thread

Group DNA container · service modified

Change
modified: this design changes it
Technology
Rust, HDK 0.7.1, cloned per group
Does

One cloned cell per group: its profile, members, work log, soft links and the anchors that point at its NDO cells. Planned: work contexts in the same DHT (#201, v0.3, ADR-014).

Part of
Nondominium hApp
Holds
Called by
Thread
Code
  • workdir/happ.yaml:34-43
  • dnas/group/workdir/dna.yaml:1-17

zome_group_integrity component · module

Technology
Rust, HDI 0.8.1
Does

GroupProfile, GroupMembership, WorkLog, SoftLink and NdoAnchor, with their links and validation, including the immutable coordinates of an NDO anchor.

Part of
Group DNA
Talks to
Called by
Thread
Code
  • dnas/group/zomes/integrity/zome_group_integrity/src/lib.rs:12-93
  • dnas/group/zomes/integrity/zome_group_integrity/src/lib.rs:180-241

zome_group coordinator component · service

Technology
Rust, HDK 0.7.1
Does

20 hdk_extern functions, init included: the group profile, joining and leaving, members, the work log, soft links, and NDO anchors with their cached lifecycle stage.

Part of
Group DNA
Talks to
Called by
Interfaces
IF2 function rust
pub struct NdoAnchorInput {
  pub group_hash: ActionHash,
  pub name: String,
  pub description: Option<String>,
  pub ndo_dna_hash: DnaHash,
  pub network_seed: String,
  pub identity_action_hash: ActionHash,
  pub initiator: AgentPubKey,
  pub ndo_created_at: Timestamp,
  pub lifecycle_stage: LifecycleStage,
  pub property_regime: nondominium_shared::PropertyRegime,
  pub resource_nature: nondominium_shared::ResourceNature,
}

#[hdk_extern]
pub fn create_ndo_anchor(input: NdoAnchorInput) -> ExternResult<Record>
Contract:

The authoritative group-to-NDO pointer: the clone coordinates let any group member derive, verify and join the NDO network. ndo_anchor.rs:7-28.

Thread
Code
  • dnas/group/zomes/coordinator/zome_group/src/group_profile.rs:12-98
  • dnas/group/zomes/coordinator/zome_group/src/membership.rs:7-113
  • dnas/group/zomes/coordinator/zome_group/src/ndo_anchor.rs:1-117
  • dnas/group/zomes/coordinator/zome_group/src/work_log.rs:13-44

Work contexts component · store planified

Change
planified: this design adds it
Technology
Rust entries in the group cell
Does

A work context (shown as a project) is an open space of agents, many-to-many with groups, naming NDOs by their clone coordinates as NdoAnchor does. Planned in #201 (v0.3), decided in ADR-014.

Part of
Group DNA
Talks to
Thread
Code
  • documentation/specifications/adr/ADR-014-work-contexts-in-group-dht.md:23-31

NDO DNA container · service modified

Change
modified: this design changes it
Technology
Rust, HDK 0.7.1, cloned per NDO
Does

One cloned cell per NDO, its DNA hash bound to the NDO's immutable Layer 0 fields: the identity, its members, its specifications, commitments, events and agreement. Planned: capability slots on the identity (#184, v0.2) and a fork's inherited share in its DNA properties (#223, v0.1.0).

Part of
Nondominium hApp
Holds
Called by
Thread
Code
  • workdir/happ.yaml:44-53
  • dnas/ndo/workdir/dna.yaml:1-25

zome_resource integrity (NDO cell) component · module

Technology
same wasm as the core DNA
Does

The same zome_resource integrity wasm, bundled again in the NDO DNA; on an NDO cell it refuses an identity whose name, regime or nature differ from the DNA properties (ADR-013).

Part of
NDO DNA
Talks to
Called by
Thread
Code
  • dnas/ndo/workdir/dna.yaml:3-12
  • dnas/nondominium/zomes/integrity/zome_resource/src/lib.rs:675-692

zome_resource coordinator (NDO cell) component · service

Technology
same wasm as the core DNA
Does

Writes the NDO's genesis identity, its lifecycle transitions, its members and its Layer 1 specifications inside the NDO's own DHT.

Part of
NDO DNA
Talks to
Called by
Interfaces
IF1 function rust
pub struct NdoInput {
  pub name: String,
  pub property_regime: PropertyRegime,
  pub resource_nature: ResourceNature,
  pub lifecycle_stage: LifecycleStage,
  pub description: Option<String>,
  pub rivalry_override: Option<Rivalry>,
}

#[hdk_extern]
pub fn create_ndo(input: NdoInput) -> ExternResult<NdoOutput>
Contract:

Writes the NDO's Layer 0 identity in the cell it runs on; on an NDO clone cell, integrity refuses an identity whose name, regime or nature differ from the DNA properties. ndo_identity.rs:7-16 and 139-140.

Thread
Code
  • dnas/ndo/workdir/dna.yaml:13-19
  • dnas/nondominium/zomes/coordinator/zome_resource/src/ndo_identity.rs:140-214
  • dnas/nondominium/zomes/coordinator/zome_resource/src/ndo_membership.rs:31-118

zome_gouvernance integrity (NDO cell) component · module

Technology
same wasm as the core DNA
Does

The same zome_gouvernance integrity wasm, validating the NDO's commitments, claims, events and agreement inside its own DHT.

Part of
NDO DNA
Called by
Thread
Code
  • dnas/ndo/workdir/dna.yaml:9-12

zome_gouvernance coordinator (NDO cell) component · service

Technology
same wasm as the core DNA
Does

Proposes and lists the commitments of this NDO, fulfills them through the closure, logs its events and holds its agreement.

Part of
NDO DNA
Talks to
Called by
Thread
Code
  • dnas/ndo/workdir/dna.yaml:20-25
  • dnas/nondominium/zomes/coordinator/zome_gouvernance/src/commitment.rs:121-163

NDO DNA properties component · module modified

Change
modified: this design changes it
Technology
NdoDnaProperties, ADR-010 and ADR-013
Does

The immutable Layer 0 fields (name, property regime, resource nature, creation time) passed as clone properties, so the NDO's DNA hash is its identity. Planned: a fork also carries its parent's DNA hash, identity and inherited share (#223, v0.1.0).

Part of
NDO DNA
Called by
Interfaces
IF3 type rust
pub struct NdoDnaProperties {
  pub name: String,
  pub property_regime: PropertyRegime,
  pub resource_nature: ResourceNature,
  pub created_at: Timestamp,
}
Contract:

Passed as a plain object in createCloneCell; different properties give a different DNA hash, so an NDO's network is its identity. crates/shared/src/types.rs:277-282.

Thread
Code
  • crates/shared/src/types.rs:277-282
  • documentation/specifications/adr/ADR-010-013-per-ndo-cells.md:1-40

Capability slots component · module planified

Change
planified: this design adds it
Technology
CapabilitySlot link type in zome_resource
Does

A link from an NDO identity to any DHT hash, tagged with its SlotType (CustomApp included), that any accountable agent may attach and that stays readable at every lifecycle stage. Planned in #184 (v0.2), the attachment point for #99 and #156.

Part of
NDO DNA
Talks to
Called by
Thread
Code
  • documentation/requirements/ndo_prima_materia.md:547-606
  • documentation/requirements/ndo_prima_materia.md:1131-1160

hREA DNA container · store modified

Change
modified: this design changes it
Technology
hREA happ-0.5.0-beta.1, git submodule
Does

The Valueflows economic backend, built from the vendored hREA submodule. Today it holds the ReaAgent of every Person. Planned: the economic substrate of the whole app, with a module interface for what Valueflows lacks (#185, #187, v0.2).

Part of
Nondominium hApp
Holds
Called by
Thread
Code
  • workdir/happ.yaml:24-33
  • .gitmodules:1-3
  • vendor/README.md:1-3

hREA zomes component · store

Technology
Rust, Valueflows 1.0 surface
Does

hREA's Valueflows entry types (agents, specifications, resources, events, commitments, claims) and the GraphQL schema the adapter serves. Nondominium calls the hrea zome by role name; today only ReaAgent is used.

Part of
hREA DNA
Called by
Thread
Code
  • crates/shared/src/lib.rs:83-110
  • vendor/README.md:1-3

hREA module interface component · module planified

Change
planified: this design adds it
Does

A way for an hApp to extend hREA's vocabulary, by compile-time composition or runtime attachment, which hREA does not have yet. Planned upstream through the RFC of #187 (v0.2), with InitialTransfer and AccessForUse as its smallest test (#199).

Part of
hREA DNA
Talks to
Called by
Thread
Code
  • documentation/hREA/v0.2-release-plan.md:37-48

Nondominium hREA modules component · module planified

Change
planified: this design adds it
Does

The four Phase B modules, smallest first: source (#195), nondominium-identity (#196), governance (#197) and federation (#198), all v0.2.

Part of
hREA DNA
Talks to
Thread
Code
  • documentation/hREA/v0.2-release-plan.md:70-80

Shared Rust crate container · module

Technology
Rust, nondominium_shared
Does

The types, constraint checks, anchor paths and cross-zome call helpers every zome compiles in, so the DNAs agree on one vocabulary.

Part of
Nondominium hApp
Holds
Thread
Code
  • crates/shared/src/lib.rs:1-146

Domain types and constraints component · module

Technology
Rust
Does

LifecycleStage, PropertyRegime, ResourceNature, OperationalState, Measure, VfAction, NdoLinkType and benefit clauses, and the constraint checks a rule or an action is held to.

Part of
Shared Rust crate
Called by
Thread
Code
  • crates/shared/src/types.rs:13-401
  • crates/shared/src/constraints.rs:128-260

Call helpers and paths component · module

Technology
Rust
Does

call_person_zome, call_resource_zome, call_governance_zome and call_hrea_zome, the anchor path builders and the shared error types.

Part of
Shared Rust crate
Called by
Interfaces
IF6 function rust
pub fn call_hrea_zome<I, O>(fn_name: &str, payload: I) -> ExternResult<O>
where
  I: Serialize + std::fmt::Debug,
  O: std::fmt::Debug + for<'de> Deserialize<'de>,
Contract:

Calls the hrea zome of the hrea role in the same conductor, the seam every hREA migration goes through. crates/shared/src/lib.rs:83-94.

Thread
Code
  • crates/shared/src/lib.rs:29-110
  • crates/shared/src/paths.rs:1-36

Bundle and packaging container · module modified

Change
modified: this design changes it
Technology
hc app pack, hc web-app pack, weave CLI
Does

The manifests and scripts that pack the zomes into DNAs, the DNAs into the .happ, the .happ and the zipped UI into the .webhapp and the Moss tool, and start local networks. Planned: the released Moss tool (#121) and a standalone release beside it (#203).

Part of
Nondominium hApp
Holds
Thread
Code
  • package.json:10-34

hApp manifest component · module

Technology
happ.yaml
Does

Declares the five roles, which are provisioned at install and which are cloned on demand, and their clone limits.

Part of
Bundle and packaging
Talks to
Called by
Thread
Code
  • workdir/happ.yaml:1-60

webhapp and Moss manifests component · module modified

Change
modified: this design changes it
Technology
web-happ.yaml, moss.yaml
Does

Wrap the .happ and the zipped UI into the .webhapp and describe the Moss tool, with the lobby network seed. Planned: the released and smoke-tested Moss tool (#121, v0.1.0).

Part of
Bundle and packaging
Talks to
Thread
Code
  • workdir/web-happ.yaml:1-6
  • workdir/moss.yaml:1-11

Standalone release component · module planified

Change
planified: this design adds it
Does

A released standalone .webhapp from the same tag as the Moss tool, the target chosen by a Vite build flag, each with a smoke test. Planned in #203 (v0.2).

Part of
Bundle and packaging
Talks to
  • hApp manifest: packs the same .happ with the standalone UI planified
Thread

Weave dev config component · module

Technology
weave CLI, Electron
Does

Starts two Moss agents, Alice and Bob, in one dev group with the tool served from the local Vite server.

Part of
Bundle and packaging
Talks to
Called by
  • Developer: runs two Moss agents (bun run tool-dev)
Thread
Code
  • weave/weave.dev.config.ts:1-60

Dev network launcher component · module

Technology
Node script
Does

Starts a bootstrap server and one sandbox conductor per agent, installs the .happ by path and writes the connection manifest the UI reads.

Part of
Bundle and packaging
Talks to
Called by
  • Developer: starts a local network (bun run start)
Thread
Code
  • scripts/launch-happ.mjs:1-60

Test suites container · module

Technology
Sweettest, Playwright, Vitest
Does

Multi-agent Sweettest crates per DNA (the primary suite), Playwright end-to-end runs against real conductors, Vitest unit specs in the UI, and the deprecated Tryorama suite.

Part of
Nondominium hApp
Holds
Thread
Code
  • Cargo.toml:16-19
  • package.json:13-15

Sweettest suites component · module

Technology
Rust, holochain test_utils
Does

Multi-agent tests on real conductors, one crate per DNA: persons, resources, governance, NDO Layer 0 and membership, groups, NDO anchors and the lobby.

Part of
Test suites
Talks to
Thread
Code
  • dnas/nondominium/tests/src/nondominium/ndo_layer0/mod.rs:1-80
  • dnas/group/tests/src/ndo_anchor/mod.rs:1-80
  • dnas/lobby/tests/src/lobby/mod.rs:1-60

Playwright end-to-end component · module

Technology
Playwright 1.61
Does

Drives the UI in a browser against real conductors: the core flows and a multi-agent run.

Part of
Test suites
Talks to
Thread
Code
  • ui/playwright.config.ts:1-67
  • ui/tests/e2e/specs/multi-agent.spec.ts:1-60

Tryorama suite (deprecated) component · module

Technology
TypeScript, Vitest
Does

The legacy TypeScript suite, kept as reference only: it cannot connect to a Holochain 0.7 conductor.

Part of
Test suites
Talks to
Thread
Code
  • tests/DEPRECATED.md:1-20

Dual-read parity harness component · module planified

Change
planified: this design adds it
Technology
Sweettest
Does

Reads every Phase A type from the native store and from hREA and compares them, the gate before any native type is removed. Planned in #188 (v0.2).

Part of
Test suites
Talks to
Thread
Code
  • documentation/hREA/v0.2-release-plan.md:89-108

Holochain conductor system · external

Technology
Holochain 0.7.1, kitsune2
Does

Runs the cells of every DNA on the member's machine, validates and gossips their data with peers, and serves the app and admin websockets the UI calls.

Talks to
Called by
Thread
Code
  • Cargo.toml:47-55
  • scripts/launch-happ.mjs:1-20

Moss and The Weave system · external

Technology
@theweave/api 0.7.0-rc.3
Does

The group-ware host the pilot runs in: it hosts Nondominium as a tool in an iframe, gives it the Moss group, its profiles and roles, and links NDOs to other tools as assets.

Talks to
Called by
  • Member: opens the tool in a Moss group
  • Moss host layer: connects, offers NDOs as assets, reads profiles and roles, creates clone cells (@theweave/api)
  • Weave dev config: starts two agents in one dev group (weave CLI)
Thread
Code
  • ui/package.json:47-58
  • documentation/specifications/moss-integration.md:1-91

Bootstrap and relay server system · external planified

Change
planified: this design adds it
Technology
kitsune2-bootstrap-srv, NixOS
Does

One public bootstrap server, serving the relay on /relay, on Sensorica's Holoports through nixos-holochain, so pilot members on two machines find each other. Planned in #122 (v0.1.0 Moss pilot).

Called by
Thread
Code
  • weave/weave.dev.config.ts:1-14

Always-online node system · external planified

Change
planified: this design adds it
Technology
wdocker, NixOS
Does

A headless conductor on Sensorica's Holoports that joins the pilot group and keeps its group and NDO cells readable while every member is offline. Planned in #166 (v0.1.0 Moss pilot).

Talks to
  • Group DNA: holds the group cell while members are offline planified
  • NDO DNA: holds the NDO cells while members are offline planified
Thread

Nondominium design system system · external planified

Change
planified: this design adds it
Technology
@nondominium/ndo-ui, nix flake input
Does

This design system's component package, to come into the UI as a pinned nix flake input rather than npm, resolved inside nix develop. Planned in #205 (v0.3).

Called by
Thread

Moss public library system · external planified

Change
planified: this design adds it
Does

The catalogue a Moss group installs tools from; the tool is to be listed there once Moss 0.16 is stable. Planned in #202 (v0.3).

Called by
Thread

Flowsta system · external planified

Change
planified: this design adds it
Does

Cross-app identity and key recovery: an agent links its key to a Flowsta identity, so its history survives a lost device and is recognised across Holochain apps. Planned in #156 (v0.3), specified in flowsta-integration.md.

Called by
Thread
Code
  • documentation/requirements/post-mvp/flowsta-integration.md:1-12

Unyt system · external planified

Change
planified: this design adds it
Does

Settlement through Smart Agreements on an NDO's wallet: the license's fixed share first, then the group's split of the rest. Post-MVP with no milestone; #222 stores the share parameter and leaves Unyt out of scope.

Called by
Thread
Code
  • documentation/requirements/post-mvp/unyt-integration.md:141-160

Where the planned parts come from

Read on 2026-11-20 from Sensorica/nondominium, dev at 2e2f235, and its open milestones.

MilestoneOpen issuesWhat it changes in this architecture
v0.1.0 Moss pilot16The bootstrap and relay server, the always-online node, the release .webhapp, and the contribution pie chart on an NDO's agreement
v0.232hREA as the economic substrate (epic #185), the CapabilitySlot substrate (#184), NDO Layer 1 versions and dormancy, the governance engine, the standalone release
v0.313Work contexts in the group DHT (#201), the Moss public library, the Use and Consume fork, the design-system adapters, Flowsta

The design documents behind them, all in the app repository at that commit:

  • documentation/hREA/v0.2-release-plan.md: Phase A (native Valueflows types replaced by hREA's, behind dual-read) and Phase B (the source, nondominium-identity, governance and federation modules through an hREA module interface that does not exist yet).
  • documentation/specifications/adr/ADR-010-013-per-ndo-cells.md and ADR-014-work-contexts-in-group-dht.md: one cell per NDO bound to its DNA properties, and work contexts in the group DHT.
  • documentation/requirements/ndo_prima_materia.md §6 and §9: capability slots and the Layer 1 requirements.
  • documentation/requirements/post-mvp/unyt-integration.md and flowsta-integration.md: the two optional integrations after the MVP.
  • documentation/specifications/governance/governance-operator-architecture.md: governance as an operator over state transitions.

The issue counts are gh issue list --milestone <title> --state open on 2026-11-20.

How the cells fit together

Five roles are declared in workdir/happ.yaml. lobby, nondominium and hrea are provisioned at install; group and ndo are deferred templates, cloned on demand, up to 64 groups and 512 NDOs per conductor.

An NDO is created in three steps by the UI (ndo.service.ts): it clones the ndo role with the NDO's Layer 0 fields as DNA properties, writes the NondominiumIdentity inside that new cell, then writes an NdoAnchor with the clone coordinates in the group cell. A peer who reads the anchor derives the same DNA hash and joins the same NDO network. Inside the NDO cell, integrity refuses an identity whose name, regime or nature differ from the DNA properties (ADR-013).

Inside Moss, the Moss group takes the place of the lobby: the tool's provisioned group cell is the group, profiles come from Moss, clone cells are created through the WeaveClient, and every NDO is offered to other tools as a Moss asset.

Anything else

Source: 2026-11-20-nondominium-architecture.md · theme: theme.css