Skip to content

docs(post-mvp): Lobby DNA requirements and architecture design#87

Merged
Soushi888 merged 9 commits into
devfrom
docs/lobby-dna-architecture
Apr 15, 2026
Merged

docs(post-mvp): Lobby DNA requirements and architecture design#87
Soushi888 merged 9 commits into
devfrom
docs/lobby-dna-architecture

Conversation

@Soushi888

Copy link
Copy Markdown
Collaborator

Intent

Document the Lobby DNA multi-network federation layer — the architectural foundation for letting Nondominium agents discover, coordinate around, and connect to multiple independent NDO networks (each its own DHT).

This PR adds the requirements specification and full architecture design produced during a dedicated design session on 2026-04-14, based on:

  • Ecosystem research: Moss/The Weave lobby pattern, AppletToJoinedAgent identity bridge, cell cloning, WALs
  • Requirements discovery: 4-round Socratic dialogue covering group/NDO separation, two link tiers, governance layers, Moss integration options

Changes

File Type Description
documentation/requirements/post-mvp/lobby-dna.md New Formal requirements: REQ-LOBBY-, REQ-GROUP-, REQ-NDO-EXT-* (Lobby DNA, Group DNA, NDO DNA extensions)
documentation/specifications/post-mvp/lobby-architecture.md New Full architecture design: C4 diagrams, entry types, link types, coordinator APIs, validation rules, sequence diagrams, Svelte 5 UI map, Moss WeApplet contract, 7 ADRs
documentation/DOCUMENTATION_INDEX.md Updated Added both docs to Core Documentation and Architecture & Roadmap tables
documentation/requirements/requirements.md Updated Added Lobby DNA row to §2.3 post-MVP integrations table

Key Decisions

  • Three-DHT model: Lobby DNA (public registry) + Group DNA (per-group, invite-only) + NDO DNA (existing, extended)
  • Two link tiers: Soft links (Group DHT, commitment-based, invisible to NDO) vs Hard links (NDO DHT, on EconomicEvent Fulfillment, OVN-licensed, immutable)
  • NDO governance > Group governance (constitution layer); resources are groups/organizations agnostic
  • Dual deployment: Standalone hApp AND Moss applet (one Moss Tool, not NDOs as Moss Tools)
  • MVP identity: GroupMembership.ndo_pubkey_map per Moss AppletToJoinedAgent pattern; Flowsta post-MVP
  • Anti-spam: Group-per-DHT creation cost + invite-only; no Lobby governance needed

Status

Post-MVP — specified and documented; not yet implemented in WASM. This PR is a planning artifact, not an implementation. Implementation will follow in a separate feature branch.

Related

  • documentation/requirements/post-mvp/flowsta-integration.md (identity integration)
  • documentation/requirements/post-mvp/unyt-integration.md (economic settlement)
  • documentation/requirements/post-mvp/many-to-many-flows.md (multi-party consent)
  • documentation/requirements/ndo_prima_materia.md §6, §8, §11 (normative NDO requirements)

How to review

Read the two new files in order:

  1. requirements/post-mvp/lobby-dna.md — what must be built and why
  2. specifications/post-mvp/lobby-architecture.md — how it is designed

Introduces the multi-network federation documentation layer:

- documentation/requirements/post-mvp/lobby-dna.md
  Formal requirements (REQ-LOBBY-*, REQ-GROUP-*, REQ-NDO-EXT-*)
  for the Lobby DNA, Group DNA, and NDO DNA extensions. Covers
  three-DHT model, two link tiers (soft/hard), governance layers,
  Flowsta and Unyt integration hooks, and dual deployment
  (standalone + Moss applet).

- documentation/specifications/post-mvp/lobby-architecture.md
  Full architecture design: C4 diagrams, entry types, link types,
  coordinator APIs, validation rules, sequence diagrams for the
  Incorporation and Process pipelines, Svelte 5 UI component map,
  Moss WeApplet integration contract, and 7 ADRs.

- documentation/DOCUMENTATION_INDEX.md
  Added both new documents to the Core Documentation and
  Architecture & Roadmap tables.

- documentation/requirements/requirements.md §2.3
  Added Lobby DNA row to the post-MVP capability integrations
  table alongside Unyt and Flowsta.

Status: Post-MVP — specified and documented; not yet implemented in WASM.
Based on: requirements discovery session + Moss/Weave ecosystem research (2026-04-14).
Aligns field names, entry semantics, and type names with the
ValueFlows 1.0 specification to eliminate the translation layer
at Unyt/RAVE integration points.

Changes:

WorkLog (Group DNA):
  author       -> provider        (VF: provider)
  description  -> note            (VF: note)
  effort_hours -> effort_quantity (VF: effortQuantity)
  process_context -> input_of     (VF: inputOf; string for MVP,
                                   ActionHash post-MVP when Process entries exist)
  logged_at    -> has_point_in_time (VF: hasPointInTime)
  + action: VfAction field added  (VF: action)

SoftLink (Group DNA):
  link_purpose: SoftLinkPurpose enum removed
  -> planned_action: VfAction  (Combine | Use | Cite)
  commitment_hash -> fulfills  (VF: fulfills)

Contribution (NDO DNA extensions):
  contributor  -> provider        (VF: provider)
  description  -> note            (VF: note)
  effort_hours -> effort_quantity (VF: effortQuantity)
  process_context -> input_of     (VF: inputOf)
  contributed_at -> has_point_in_time (VF: hasPointInTime)
  + action: VfAction field added  (VF: action)
  + fulfills field renamed        (VF: fulfills)

SmartAgreement -> Agreement      (VF: vf:Agreement)
  accountable_agents -> primary_accountable (VF: primaryAccountable)
  rules: Vec<BenefitRule> -> clauses: Vec<BenefitClause> (NDO extension)

BenefitRule -> BenefitClause
  beneficiary -> receiver         (VF: receiver)
  conditions  -> note             (VF: note)

Link types:
  NdoToSmartAgreement  -> NdoToAgreement
  SmartAgreementUpdates -> AgreementUpdates
  AgentToContributions: note VF provider semantics
  ContributionToEvent: note VF fulfills semantics

Coordinator files:
  smart_agreement.rs -> agreement.rs

All pipeline diagrams, UI component names, and ADRs updated.
@Soushi888 Soushi888 marked this pull request as ready for review April 15, 2026 00:35

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

Thingiverse is a proprietary platform (Makerbot/Stratasys), not an OVN.
Open Source Ecology is a genuine open value network.
devin-ai-integration[bot]

This comment was marked as resolved.

Adds two conceptual sections missing from the original design docs.

lobby-architecture.md §2 (new opening subsections):
  'Agent identity layers' — LobbyAgentProfile vs Person table,
  pubkey flow diagram (Lobby -> Group -> NDO), ndo_pubkey_map as
  MVP bridge, Flowsta post-MVP note, implementer implication.

  'Groups vs organization-NDOs' — comparison table (identity,
  custody, reputation, governance, permanence), worked Sensorica
  example, key architectural rule (NDO contribution != group membership),
  post-MVP AgentContext gap callout.

lobby-dna.md §3 (new normative subsections after 'Two link tiers'):
  'Agent identity layers' — three-bullet normative summary pointing
  to arch spec for diagram.
  'Groups vs organization-NDOs' — four-bullet normative constraints
  pointing to arch spec for comparative table.
- REQ-GROUP-12: add VfAction mapping (Incorporation→Combine, Use→Use, Monitoring→Cite)
- lobby-dna.md §6.3: clarify entry type is Agreement (VF-aligned), add intro note
- REQ-NDO-EXT-12: fix 'a Agreement' → 'an Agreement'
- ndo_prima_materia.md: add lobby-dna.md to Relates to header + §11.7 Lobby DNA stub
devin-ai-integration[bot]

This comment was marked as resolved.

…plan

- IMPLEMENTATION_STATUS: add Lobby DNA + NDO DNA extensions rows to post-MVP table
- implementation_plan §1.1: add lobby-dna.md to requirements map
- implementation_plan §4: mention Lobby DNA in Extended post-MVP track
- implementation_plan §12.6: full Lobby DNA design track with ordered checklists and dependencies
devin-ai-integration[bot]

This comment was marked as resolved.

Soushi888 and others added 3 commits April 14, 2026 23:36
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…mentation_plan

- lobby-dna.md §6.1: add design note explaining NdoHardLink.to_ndo_dna_hash
  changes in value (not shape) between Stage 2 (shared cell) and Stage 3
  (per-NDO cloned cells); same struct, no breaking change at migration
- implementation_plan.md §12.6: inline the Stage 2/Stage 3 deployment note
  in the NdoHardLink checklist item
…bby-architecture

- NdoDescriptor §4.4: remove successor_ndo_hash and hibernation_origin from
  create validation — these fields do not exist on NdoDescriptor (they are
  NondominiumIdentity-specific); leftover from copy-paste
- Agreement §6.4: add AccountableAgent role check to create Agreement (REQ-NDO-EXT-12);
  add update Agreement rules (role check, version increment, immutable ndo_identity_hash);
  add delete Agreement: INVALID (versioned history preserved via supersession)
@Soushi888 Soushi888 merged commit 1e2e89c into dev Apr 15, 2026
2 checks passed
@Soushi888 Soushi888 deleted the docs/lobby-dna-architecture branch April 17, 2026 08:07
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.

1 participant