Holonic Architecture

Concept Recap

Holons are data building blocks that behave as both independent applications and cooperative members of a wider system. They carry their own state, lifecycle, and permissions, but can also merge into larger holonic "constellations"—analogous to microservices that natively understand each other’s schema. This mirrors the description we publicly share for STAR and COSMIC, where converting an app into holons allows it to slot into metaverse-scale networks without rewriting core logic (“What are holons and what can they do for YOU?”).

Code Foundations

Holons are first-class objects in the core API:

Client / SDK
   |
   v
Holon Manager (AvatarManager, HolonManager, ...)
   |
   v
Provider Manager
   |-- Auto Failover    -> MongoDBOASIS
   |-- Auto Replication -> ArbitrumOASIS
   |-- Load Balancing   -> SolanaOASIS
   |-- Event Hooks      -> HyperDrive
   |
   v
Provider-Specific Operation (CRUD, deploy, pin to IPFS, ...)
Holon
├─ Identity
│   ├─ Id (GUID)
│   ├─ HolonType / STARHolonType
│   └─ Name / Description
├─ Provider Map
│   ├─ ProviderUniqueStorageKey[MongoDB]  = ObjectId
│   ├─ ProviderUniqueStorageKey[Solana]   = AccountPublicKey
│   ├─ ProviderUniqueStorageKey[Arbitrum] = ContractAddress
│   └─ ProviderMetaData[...]              = { key : value }
├─ Audit & Versioning
│   ├─ Created / Modified / Deleted stamps
│   ├─ PreviousVersionId / VersionId
│   └─ SoftDelete flags
├─ Hierarchy
│   ├─ ParentUniverseId / ParentPlanetId / ParentZomeId
│   └─ Child Holons (recursive)
└─ Events
    ├─ OnSaved / OnLoaded / OnHolonAdded
    └─ OnError / OnChildrenLoaded
  • HolonBase establishes provider-aware identity, metadata, soft-delete, versioning, and audit fields. It maintains dictionaries keyed by ProviderType, so the same holon instance can reference MongoDB IDs, Solana accounts, Arbitrum contracts, etc.

  • Holon extends SemanticHolon and implements IHolon. It layers in domain events (OnSaved, OnLoaded, OnHolonAdded, etc.), change tracking (HasHolonChanged), deep parent-child links (Omniverse → ... → Zome), and Provider Manager integration so each holon can resolve or override the active provider at runtime (ProviderManager.Instance.CurrentStorageProviderType).

  • Specialized holons (e.g., SemanticHolon, CelesialHolon, PublishableHolon, STARNETHolon) add semantics for knowledge graphs, celestial visualizations, publication workflows, and STAR composability. Each inherits the provider polymorphism from HolonBase while contributing domain fields.

This layered model is why holons can represent users, NFTs, quests, liquidity pools, or oracle jobs without bespoke schemas per network. Managers such as HolonManager, AvatarManager, and StarManager operate exclusively on holon interfaces, letting Provider Manager decide where persistence and replication occur.

Why It’s Powerful

  1. Provider-Neutral Identity A holon carries a ProviderUniqueStorageKey map and ProviderMetaData for every chain or database activated in DNA. When OASIS saves a holon, ProviderManager can auto-replicate it across MongoDB, Arbitrum, Polygon, Solana, IPFS, and more, while the holon keeps the correct foreign keys for future reads.

  2. Infinite Nesting & Federation Holons reference parents all the way up to Omniverse and down to Zomes. This lets one project treat another project’s holons as native children—exactly what STAR describes in the blog post: app swarms that share state like Apple’s ecosystem but across any chain or stack (ourworldthegame.com).

  3. Event-Driven Synchronization Holon raises events for CRUD actions, and the managers wire those into HyperDrive telemetry, replication queues, push notifications, or cross-app automations. In practice this means minting an NFT, updating a DAO proposal, or logging an IoT datapoint uses the same pipeline.

  4. Versioning & Audit Resilience Every holon tracks previous version IDs, provider keys, timestamps, and soft-delete markers. Combined with Provider Manager’s replication lists, we can maintain immutable histories on-chain while serving fast reads from web2 storage.

  5. Reusability via STAR NET Because holons encapsulate complete feature modules, we can publish them to STAR NET and let other teams drag-and-drop functionality—holonic wallets, liquidity dashboards, identity modules—without re-integration. The code already supports this via holon templates (IOAPPTemplate, IZome, STARNETHolon).

Utility in Practice

  • Composable Metaverse Worlds: Different games share mission progress by loading the same holon tree; levels across studios sync automatically.

  • Cross-Chain Finance: Token vaults, bridge orders, and yield strategies model themselves as holons; Provider Manager maps them to EVM, Solana, and databases simultaneously.

  • Enterprise Knowledge Graphs: SemanticHolon integrates with Neo4j and ActivityPub providers, unifying documents, chat, and workflow data under one schema.

  • DePIN + IoT Meshes: Devices publish sensor readings as holons; replication pushes into on-prem SQL, IPFS, and chain proofs, while HyperDrive routes analytics traffic to the fastest providers.

How to Adopt Holons

  1. Model Your Domain as Holons Inherit from HolonBase or Holon and populate metadata dictionaries for the providers you care about. Leverage enums such as HolonType and STARHolonType to classify behavior.

  2. Register Providers in DNA Add the relevant ProviderType entries to OASIS_DNA_*.json, including replication/failover lists. Holons will automatically store or retrieve provider keys when managers call SaveHolon/LoadHolon.

  3. Wire Events to Business Logic Subscribe to OnSaved, OnHolonAdded, etc., to trigger downstream actions—bridge swaps, webhook notifications, AI inference, etc.

  4. Expose Holons via STAR or APIs Use STAR tools to publish holon templates, or surface them through REST/GraphQL. Because holons carry provider metadata, consumers can move them between ecosystems without translations.

Holons turn OASIS into a lattice of interoperable modules: everything is a holon, every holon speaks to every provider, and any project can snap into the network without re-architecting. It’s the practical engine behind the “shared metaverse” vision and a major reason teams adopt OASIS.

Last updated