04Modular health stack

Five tiers. Clean boundaries.

Each tier has an explicit interface contract, so a change in one never propagates up into care programs or down into settled supply.

4.1 · Five-tier modular architecture

From the gateway down to the ledger

L4

Enterprise Gateway Abstraction

Payer vault interfaces, HR and benefit systems, lab feeds and the read-only record gateway. The only components allowed to hold enterprise credentials.

L3

Care Orchestration

Programs, milestone registry, enrollment, scheduling, notifications and family permissions — the layer most shaped by local jurisdiction.

L2

Privacy & ZK Layer

Circuit registry, proving keys, verification contracts and federated compute — isolated because proof systems are the most likely part to be replaced.

L1

DePIN Consensus Mesh

Accreditation registry, bonding, attestation intake, audit assignment and slashing. It processes commitments, never diagnoses.

L0

Settlement & Canonical Ledger

The authoritative record of LRGN supply and attestation state. Other chains hold projections, not parallel issuance. No identities, no clinical values.

Fig. 4.1The five tiers and the interface contracts between them.
Core components

Every component carries its evidence label

✓Deployed †In development ‡Proposed
4.2‡Proposed

Sovereign health agents

The base network runs on deterministic state machines with no model dependency. Phase II adds an agent on the participant's own device, inside a trusted execution environment, that handles the mechanics: surfacing the next milestone, opening the validator handshake, preparing proof inputs and submitting through the sponsored path.

  • Cannot author clinical rules — it only reads the registry
  • Cannot start a session without the participant's confirmation, or sign on their behalf
  • Holds no key material to move funds or change consent
  • Anything that would inform a clinical decision is routed to a licensed professional
Fig. 4.2Agent runtime topology. Sandbox validation is complete; live behaviour does not depend on it.
4.3†In development

Zero-knowledge attestation engine

This is what makes privacy structural rather than contractual: there is no protocol-side dataset from which a value could be reconstructed, subpoenaed or sold. Circuits are written in Circom and grouped by predicate family, so new milestones reuse audited logic.

  • Threshold — a private value against a public limit
  • Range — bands where both floor and ceiling matter
  • Interval continuity — a cadence met, without disclosing dates

Until the audit closesA third-party cryptographic audit is scheduled before mainnet. Until then, any deployment runs on validator-signed deterministic rules.

Fig. 4.3Circuit architecture: predicate families, pinned proving keys and public signals.
4.4

Sovereign Health Gateway Interface

Health record systems speak their own dialects. The gateway translates without importing: HL7 FHIR R4 and ICD-11 on the outside, only commitments and consent state on the inside.

  • One direction only: read, hash, pass a commitment — enforced at the network layer
  • Consent becomes a scoped, expiring, revocable access token
  • Every query is logged and visible to the participant
  • Revocation applies on the next query — there is no cached grant
Fig. 4.4Gateway topology and its single-directional boundary.
4.5✓Deployed

Native account abstraction

A participant in a metabolic care program is unlikely to hold a wallet, buy gas or guard a seed phrase. If participation required any of that, the health thesis would collapse for lack of users — so the stack removes all three.

Every sponsored state change also burns a fixed quantity of LRGN, linking network throughput directly to token consumption.

ERC-4337

What the participant sees: a confirmation on a screen.

  • Smart account created at enrollment, unlocked by device biometrics via passkeys
  • Sharded keys with social recovery through guardians the participant chooses
  • Network costs settled by payer-funded Paymaster pools
  • No seed phrase, no password, no extra app to install