Commitment Pool MVP (Tibi's experiment)
The architecture of Tibi's commitment-pool-experiment branch at 057c5eb, drawn as it stands: a Group is a pool, a Commitment lives on its NDO, and fulfillment is one closure that writes the event, the claim and two verifiable receipts. Every box marked new or modified is what the branch adds over dev at 91cfd11; unmarked boxes are already on dev. Each box's spec says in words what of it is on dev and what is branch only; the code snippets are read at the branch head, so a snippet of a file dev also has can differ from dev by the lines the branch adds. The general backend came to dev through #183; the pool itself is on the branch, which has no PR because it is not meant to be merged.
Updated on 17 November 2026. Checked against dev at 91cfd11 and the branch at 057c5eb, and against the 17 November Lab meeting with Tibi. dev has not moved in code since #183 (its one later commit, #215, changes a README badge), so what #183 brought is now marked as on dev box by box: commitments per NDO, the fulfillment closure, Measure and the Layer 1 foreshadow fields. The branch gained two commits: new commitment and event forms (2f5834c), and a refusal of a commitment whose provider and receiver are the same agent, with its Sweettest and a participation grammar spec (057c5eb); both are branch only. The meeting decided that project management lives in the work context, not in the NDO: that settles nothing on the pool, but it adds D6 (where a pool attaches once work contexts exist) and a line to D5. The local PR-board link is gone so the page can be published; the branch review's line-level findings stay off this page.
How to work it: walk the maps (double-click a box to open its level), open a box for its spec, then pick on each decision card. The decisions are only the ones that concern dev; the experiment's own calls are Tibi's, listed under Evidence, and the open points on the pool's authorisation stay findings of the branch review.
Context
Decisions
Pick one option per decision; my lean is starred. Nothing below is decided until you pick, and your picks and notes leave with copy my answers or Send.
Soushi wants the design-system adapters (ndo-ui-adapters.ts, governance-template-map.ts) on dev. They import @nondominium/ndo-ui, which the branch takes as file:../../nondominium-design-system/packages/ndo-ui plus Vite aliases. A fresh clone and CI cannot resolve that path.
My lean, Publish @nondominium/ndo-ui to npm with a version: The adapters are the boundary between design-system and DHT types; they only make sense on dev with a dependency every machine resolves.
Consequences: Soushi, 2026-11-13: the design system stays private, so no npm publish; it comes in as a nix flake input (decision recorded in #205, v0.3). The file: path and the Vite aliases go.
#183 took the protocol-general backend. What remains: the Use and Consume fork on NDO identity (five Sweettests), the pool (Tibi's experiment), the design-system UI remix.
My lean, The Use and Consume fork, now: Same reasoning that sent the backend through #183: it is not pool-specific and it carries its tests.
Consequences: Soushi, 2026-11-13, against my lean: the design-system adapters come next (#205), then the Use and Consume fork (#204); both sit in v0.3. The pool stays on the branch. Checked 17 November: both issues are still open in v0.3, and dev has taken nothing from the branch since #183. The branch's 14 November refusal of a commitment with the same provider and receiver (057c5eb) is protocol-general too, and no issue carries it yet.
Only if D2 brings the fork to dev. The branch adds initial_quantity as Option<f64> beside default_unit: Option<String>, after #183 moved every other quantity to Measure.
My lean, Port it as Option<Measure>: A new integrity field costs nothing to shape now and a DNA change later.
Consequences: #204 lands initial_quantity as Option<Measure>.
Soushi, 2026-11-13: plan the capability slot for the v0.2 milestone. The CS substrate (REQ-NDO-CS-01 to 04, 06) is not coded; #99 and #156 wait on it, and Tibi's section 8.3 names a CustomApp(CommitmentPool) slot as its NDO-side index.
My lean, Substrate only in v0.2, slot types as their own issues: Three consumers already wait on the substrate; it should not wait on any one of them.
Consequences: #184 is the substrate in v0.2, on Soushi's lane with hREA (#185); file-storage (#99) follows in v0.2, Flowsta (#156) and the pool slot later.
Asked on this board at 16:27. Work contexts live in the group DHT (ADR of #168); capability slots attach to the NDO identity. Nothing filed makes one depend on the other.
My lean, Capability slots in v0.2, work contexts in v0.3: Two open issues already wait on the slot substrate; work contexts have no waiting consumer yet.
Consequences: Soushi, 2026-11-13 16:13 and 16:32: slots (#184) in v0.2, work contexts (#201) in v0.3. v0.2 lanes: Soushi on hREA and slots, Tibi on NDO Layer 1 (#206, #207, #141, #144), plus the standalone release (#203). Lab meeting of 17 November (journal, Décisions, first point): project management lives in the work context, not in the NDO, since one NDO can have several teams; the NDO carries a synthesis and links to its groups. That says what a work context is for and leaves this order as it is; where a pool attaches once work contexts exist is D6.
Opened 17 November from the Lab meeting: project management lives in the work context, not in the NDO, because one NDO can have several teams, each with its own project management (journal, Décisions, first point, P1 3 to 10). ADR-014 puts work contexts in the group DHT and has them name NDOs by clone coordinates, as NdoAnchor does (documentation/specifications/adr/ADR-014-work-contexts-in-group-dht.md, lines 25 to 31). The branch makes the Group itself the pool: CommitmentAnchor carries a group_hash and nothing about a work context (zome_group_integrity lib.rs at 057c5eb, lines 112 to 130). Work contexts are v0.3 (#201) and have no code yet; the meeting did not talk about the pool.
My lean, Settle it in the design of #201, with the pool named as a consumer: Neither the meeting nor ADR-014 says anything about pools, and the work-context entry does not exist yet, so the cheapest moment is the design of #201.
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.
Pool member system · person
- Does
A participant of a group who lists promises, admits them into the pool and fulfills them with a counterparty.
- Talks to
- Nondominium hApp: lists, admits and fulfills commitments
- Thread
Grassroots Economics collaborators system · person
- Does
The commitment-pooling community the experiment is built to show the admit, fulfill and receipt loop to.
- Talks to
- Nondominium hApp: walks the admit, fulfill and receipt loop
- Thread
Nondominium hApp system · service modified
- Change
- modified: this design changes it
- Technology
- Holochain 0.7, SvelteKit
- Does
The multi-DNA hApp where a Group doubles as a Commitment Pool over NDO commitments. The hApp is on dev; the pool is branch only.
- Holds
- hApp UI container
- Group DNA container
- Nondominium DNA container
- Shared crate container
- Talks to
- Nondominium design system: imports components and tokens (file path and Vite alias) new
- Called by
- Pool member: lists, admits and fulfills commitments
- Grassroots Economics collaborators: walks the admit, fulfill and receipt loop
- Thread
hApp UI container · ui modified
- Change
- modified: this design changes it
- Technology
- SvelteKit 2, Svelte 5, Effect-TS
- Does
Lobby, Group and NDO views. On dev: the v0.1 views with the commitment and event forms from #183, which propose commitments and log events but never call the closure. Branch only: design-system chrome, the pool surfaces and the reworked forms of 2f5834c.
- Part of
- Nondominium hApp
- Holds
- Pool surfaces component
- Design-system shell component
- Design-system adapters component
- Zome services and stores component
- Talks to
- Group DNA: reads members, anchors NDOs (on dev) (zome calls on the group clone)
- Group DNA: admits, withdraws, reads the pool (branch only) (zome calls on the group clone) new
- Nondominium DNA: creates NDOs, proposes commitments, logs events (on dev) (zome calls)
- Nondominium DNA: reads commitments per NDO, fulfills them through the closure (branch only) (zome calls) new
- Thread
Pool surfaces component · ui new
- Change
- new: this design adds it
- Technology
- Svelte 5
- Does
Pool section on the Group, admit and fulfill modals on the NDO, and the participation claims panel. Branch only: none of these files is on dev.
- Part of
- hApp UI
- Talks to
- Zome services and stores: admit, pool contents, fulfill
- Thread
- Code
ui/src/lib/components/group/PoolSection.svelte:1-134ui/src/lib/components/ndo/AdmitToPoolModal.svelte:1-88ui/src/lib/components/ndo/FulfillCommitmentModal.svelte:1-60ui/src/lib/components/ndo/ParticipationClaimsPanel.svelte:1-78
Design-system shell component · ui modified
- Change
- modified: this design changes it
- Technology
- Svelte 5, ndo-ui
- Does
Group Resource and Agent perspectives, agent directory, NDO create wizard and the Layer 1 resources panel. Branch only: GroupView is on dev in its v0.1 form, the wizard and the directory are not.
- Decided by
- D1 How does dev take the design-system package?
D2 Which slice of the experiment reaches dev next? - Part of
- hApp UI
- Talks to
- Design-system adapters: converts design-system shapes
- Thread
- Code
ui/src/lib/components/group/NdoCreateWizard.svelte:1-87ui/src/lib/components/group/GroupView.svelte:1-40ui/src/lib/components/group/AgentDirectory.svelte:1-40
Design-system adapters component · module new
- Change
- new: this design adds it
- Technology
- TypeScript
- Does
The boundary between design-system types and DHT types, plus the governance template to RuleData map. Branch only; next to reach dev (D2, #205, v0.3).
- Decided by
- D1 How does dev take the design-system package?
- Part of
- hApp UI
- Talks to
- Zome services and stores: create inputs and rule data
- Called by
- Design-system shell: converts design-system shapes
- Thread
- Code
ui/src/lib/utils/ndo-ui-adapters.ts:1-60ui/src/lib/utils/governance-template-map.ts:1-60
Zome services and stores component · module modified
- Change
- modified: this design changes it
- Technology
- Effect-TS, Svelte runes
- Does
Keeps zome calls out of components. On dev: propose_commitment, get_all_commitments and log_economic_event. Branch only: admit, withdraw, pool contents, the per-NDO detailed reads and the closure call.
- Part of
- hApp UI
- Called by
- Pool surfaces: admit, pool contents, fulfill
- Design-system adapters: create inputs and rule data
- Thread
- Code
ui/src/lib/services/zomes/governance.service.ts:195-230ui/src/lib/services/zomes/group.service.ts:270-305ui/src/lib/services/zomes/governance.service.ts:350-370
Group DNA container · service modified
- Change
- modified: this design changes it
- Technology
- Rust, HDK 0.7
- Does
One cloned cell per group. On dev: membership and NDO anchors, and per ADR-014 the future home of work contexts. Branch only: the pool's commitment anchors.
- Decided by
- D6 Once work contexts are on dev, where does a pool attach?
- Part of
- Nondominium hApp
- Holds
- Commitment anchor component
- Group membership component
- NDO anchor component
- Talks to
- Nondominium DNA: points at commitments (branch only) (cross-cell coordinates, no call) new
- Shared crate: uses types
- Called by
- Thread
Commitment anchor component · module new
- Change
- new: this design adds it
- Technology
- zome_group
- Does
A thick cross-cell pointer that admits a commitment into the pool; withdrawal rewrites its status and keeps it as pool memory. Branch only; it carries a group_hash and no work context (D6).
- Decided by
- D4 Capability slots in v0.2
D5 What comes first, capability slots or work contexts?
D6 Once work contexts are on dev, where does a pool attach? - Part of
- Group DNA
- Talks to
- NDO anchor: copies the pointer and immutability pattern
- Group membership: documented as gated by, not enforced
- Interfaces
- ifadmit function rust
pub struct AdmitCommitmentInput { pub group_hash: ActionHash, pub ndo_dna_hash: DnaHash, pub network_seed: String, pub identity_action_hash: ActionHash, pub commitment_action_hash: ActionHash, } #[hdk_extern] pub fn admit_commitment(input: AdmitCommitmentInput) -> ExternResult<Record> #[hdk_extern] pub fn withdraw_commitment(input: WithdrawCommitmentInput) -> ExternResult<Record> #[hdk_extern] pub fn get_pool_contents(group_hash: ActionHash) -> ExternResult<Vec<PoolEntry>>Contract:Branch only. Admit writes an anchor in status Admitted and links it from the group. Withdraw supersedes the latest version with status Withdrawn and refuses a stale previous hash. The pool read returns both statuses.
- Thread
- Code
dnas/group/zomes/integrity/zome_group_integrity/src/lib.rs:112-130dnas/group/zomes/coordinator/zome_group/src/commitment_anchor.rs:41-66dnas/group/zomes/coordinator/zome_group/src/commitment_anchor.rs:182-209
Group membership component · module
- Technology
- zome_group
- Does
Membership entries and the member list; its validation accepts any entry today, on dev as on the branch.
- Part of
- Group DNA
- Called by
- Commitment anchor: documented as gated by, not enforced
- Thread
- Code
dnas/group/zomes/integrity/zome_group_integrity/src/lib.rs:229-235
NDO anchor component · module
- Technology
- zome_group
- Does
The pattern the commitment anchor copies, a pointer from a group to an NDO cell with immutable coordinates. On dev, the same lines 58 to 70; ADR-014 has work contexts name NDOs the same way.
- Part of
- Group DNA
- Called by
- Commitment anchor: copies the pointer and immutability pattern
- Thread
- Code
dnas/group/zomes/integrity/zome_group_integrity/src/lib.rs:58-70
Nondominium DNA container · service modified
- Change
- modified: this design changes it
- Technology
- Rust, HDK 0.7
- Does
NDO identities, resources and governance. On dev since #183: commitments per NDO, the fulfillment closure with its receipts, Measure and the Layer 1 foreshadow fields. Branch only: the Use and Consume fork, the author and fulfilled flags on commitment reads, and distinct provider and receiver.
- Part of
- Nondominium hApp
- Holds
- Commitments per NDO component
- Fulfillment closure component
- NDO identity component
- Layer 1 inventory component
- Talks to
- Shared crate: uses types
- Called by
- Thread
Commitments per NDO component · module modified
- Change
- modified: this design changes it
- Technology
- zome_gouvernance
- Does
Proposes commitments with an explicit receiver and lists them per NDO. On dev since #183: the NdoToCommitments index and the hash-paired reads. Branch only: the author and fulfilled flags on each record, and the refusal of a commitment whose provider and receiver are one agent. The v0.2 plan moves Commitment onto hREA (proposed).
- Part of
- Nondominium DNA
- Called by
- Fulfillment closure: refetches the commitment, lets only the non-author initiate, refuses a fulfilled one (on dev)
- Thread
- Code
dnas/nondominium/zomes/coordinator/zome_gouvernance/src/commitment.rs:61-72dnas/nondominium/zomes/coordinator/zome_gouvernance/src/commitment.rs:169-258
Fulfillment closure component · module modified
- Change
- modified: this design changes it
- Technology
- zome_gouvernance
- Does
One call that gets the counterparty's countersignature, writes the event and the claim, updates the resource state and issues both receipts. On dev since #183, with its Sweettests and no UI caller yet. Branch only: reworded errors, a custodian refusal among them.
- Part of
- Nondominium DNA
- Talks to
- Commitments per NDO: refetches the commitment, lets only the non-author initiate, refuses a fulfilled one (on dev)
- Layer 1 inventory: updates the operational state, custodian only (on dev) (same-agent cross-zome call)
- Interfaces
- iffulfill function rust
pub struct FulfillCommitmentClosureInput { pub commitment_hash: ActionHash, pub observed_quantity: Measure, pub resource_state_update: Option<OperationalState>, pub provider_metrics: PerformanceMetrics, pub receiver_metrics: PerformanceMetrics, pub note: Option<String>, } #[hdk_extern] pub fn fulfill_commitment_closure(input: FulfillCommitmentClosureInput) -> ExternResult<FulfillCommitmentClosureOutput>Contract:Called by the party who did not author the commitment. The author's conductor countersigns a payload it rebuilds itself; a fulfilled commitment is refused on both sides. A resource state update needs the caller to be its custodian. On dev since #183, the same input and output (fulfillment.rs at 91cfd11, lines 59 to 86); the branch changes only error wording.
- Thread
- Code
dnas/nondominium/zomes/coordinator/zome_gouvernance/src/fulfillment.rs:118-140dnas/nondominium/zomes/coordinator/zome_gouvernance/src/fulfillment.rs:345-370dnas/nondominium/zomes/coordinator/zome_gouvernance/src/fulfillment.rs:538-560dnas/nondominium/zomes/coordinator/zome_gouvernance/src/lib.rs:43-63
NDO identity component · module modified
- Change
- modified: this design changes it
- Technology
- zome_resource
- Does
Layer 0 identity. Branch only: the Use or Consume fork, a closure reason, and seeding Layer 1 inventory when the stage allows it, with initial_quantity still an f64 (dev takes it as a Measure, D3, #204).
- Decided by
- D2 Which slice of the experiment reaches dev next?
D3 Should initial_quantity reach dev as a Measure?
D4 Capability slots in v0.2
D5 What comes first, capability slots or work contexts? - Part of
- Nondominium DNA
- Talks to
- Layer 1 inventory: hard dual create of spec and resource new
- Thread
- Code
dnas/nondominium/zomes/integrity/zome_resource/src/lib.rs:92-153dnas/nondominium/zomes/coordinator/zome_resource/src/ndo_identity.rs:244-330dnas/nondominium/zomes/coordinator/zome_resource/src/ndo_identity.rs:689-710
Layer 1 inventory component · store
- Technology
- zome_resource
- Does
ResourceSpecification with its foreshadow fields and the EconomicResource instances events act on; on dev since #183, where only the custodian may update a resource's operational state.
- Part of
- Nondominium DNA
- Called by
- Fulfillment closure: updates the operational state, custodian only (on dev) (same-agent cross-zome call)
- NDO identity: hard dual create of spec and resource new
- Thread
- Code
dnas/nondominium/zomes/integrity/zome_resource/src/lib.rs:16-53dnas/nondominium/zomes/coordinator/zome_resource/src/economic_resource.rs:509-528
Shared types component · module modified
- Change
- modified: this design changes it
- Technology
- Rust
- Does
Measure, on dev since #183, and the EconomicMode, UseKind and ClosureReason enums, branch only.
- Decided by
- D2 Which slice of the experiment reaches dev next?
D3 Should initial_quantity reach dev as a Measure? - Part of
- Shared crate
- Interfaces
- ifmode type rust
pub enum EconomicMode { Use, Consume } pub enum UseKind { Unit, Capacity } pub enum ClosureReason { Depleted, Spoiled, Withdrawn, WrittenOff, DonatedRemainder, Other }Contract:Set on NondominiumIdentity at creation and immutable after. Use needs a UseKind, Capacity needs max_concurrent_users of 2 or more, Consume needs a unit, a positive initial quantity and an identification pattern. A Consume NDO closes with a reason. Branch only; dev takes it through #204, with initial_quantity as a Measure (D3).
- Thread
- Code
crates/shared/src/types.rs:140-175crates/shared/src/types.rs:320-340
Nondominium design system system · external new
- Change
- new: this design adds it
- Technology
- @nondominium/ndo-ui, release-prototype branch
- Does
The sibling repository whose Resource Perspective components the experiment remixes into the hApp. Branch only, through a file path and Vite aliases; dev is to take it as a private nix flake input (D1, #205, v0.3).
- Decided by
- D1 How does dev take the design-system package?
- Called by
- Nondominium hApp: imports components and tokens (file path and Vite alias) new
- Thread
Evidence
Source of this board: the branch's own summary documentation/Applications/commitment-pool-experiment.md (sections 5 to 8), drawn at 00f6c0d on 13 November and checked again at 057c5eb on 17 November.
Tibi's locked decisions, as his doc states them:
| Question | His choice |
|---|---|
| What is a pool? | A Group cell |
| Where does the commitment live? | On the NDO cell; the pool only points |
| Who may admit? | Any group member (not enforced in validation; see the PR board) |
| Withdrawal | A status mark, never a delete (pool memory) |
| Fulfillment | call_remote countersign inside one closure; offline counterparty fails cleanly |
| Pool listing | Group-side CommitmentAnchor, not a CapabilitySlot (CS is not coded yet) |
| Inventoriable fork | Use or Consume on Layer 0, Physical and Hybrid only |
| Consume identity | The NDO is the batch; a new delivery is a new NDO |
| Batch closure | EndOfLife or Deprecated with a closure_reason such as Depleted |
| Design system | Sibling checkout of release-prototype through a Vite alias |
Merge to dev | Not automatic; slices after Grassroots Economics feedback |
What is on dev and what is not (17 November)
Read with git log c18e926..origin/dev, git diff origin/dev origin/commitment-pool-experiment and the #183 description.
| Part | Where it is | Read in |
|---|---|---|
Measure on commitments, events and resources | dev, from #183 | crates/shared/src/types.rs at 91cfd11, lines 298 to 330 |
NdoToCommitments index and the hash-paired reads | dev, from #183 | zome_gouvernance/src/commitment.rs at 91cfd11, lines 99, 121, 157 and 197 |
fulfill_commitment_closure and countersign_fulfillment with the unrestricted grant | dev, from #183, with the review fixes (non-author initiates, fulfilled once) | zome_gouvernance/src/fulfillment.rs at 91cfd11, lines 118, 177 to 189, 349 and 522; zome_gouvernance/src/lib.rs lines 43 to 63 |
Layer 1 foreshadow fields on ResourceSpecification | dev, from #183 | zome_resource integrity lib.rs at 91cfd11, lines 15 to 53; types.rs lines 164 to 226 |
| A UI that calls the closure or the detailed reads | branch only | git grep finds no fulfill_commitment_closure call in ui/src on dev |
author and fulfilled on CommitmentRecord | branch only | commitment.rs at 057c5eb, lines 170 to 210 |
Distinct provider and receiver in propose_commitment | branch only (057c5eb, 14 November) | commitment.rs at 057c5eb, lines 61 to 72; Sweettest propose_commitment_rejects_identical_provider_and_receiver |
CommitmentAnchor, admit, withdraw, pool contents | branch only | commitment_anchor.rs is absent on dev |
Use and Consume fork, ClosureReason, hard dual create | branch only; #204, v0.3 | types.rs at 057c5eb, lines 142 to 167 |
| Design-system shell and adapters | branch only; #205, v0.3 | ndo-ui-adapters.ts is absent on dev |
dev's propose_commitment still accepts a commitment whose provider and receiver are one agent, which Tibi's comment on the branch calls unfulfillable through the closure (commitment.rs at 057c5eb, lines 61 and 62); that check is protocol-general, not pool-specific.
The 17 November Lab meeting
From the meeting journal, in its French original.
- Decided: project management lives at the level of the work context, not in the NDO, because one NDO can have several teams each with its own project management; the NDO carries a synthesis and links to the groups (Décisions, first point, citing P1 3 to 6 and 8 to 10). It bears on D5 and opens D6.
- Discussed, not settled: how much history the NDO carries, each version being a complete snapshot (Discussion, P1 2 to 6; Discuté, non tranché, first point). A pool entry points at the NDO's genesis
identity_action_hash, never at a version, so nothing here changes until versions are designed. - Discussed, not settled: forking the code isolates a fork from the network, going through the NDO's governance keeps it in (Discussion, P1 13 to 16). Nothing on this board depends on it.
- The meeting did not talk about the commitment pool itself.
The v0.2 plan (section 4, Phase A) moves zome_gouvernance::Commitment and EconomicEvent onto hREA's ReaCommitment and ReaEconomicEvent, and keeps the participation receipts native for good ("Never migrates"); that is proposed, not coded, and it would change what the anchor's commitment_action_hash points at.
Traceability
No requirements source to trace against: name one with requirements: in the frontmatter.
Anything else
Source: 2026-11-13-commitment-pool-mvp-architecture.md · theme: theme.css