π LIOP Global Distributed Mesh Deployment Roadmap
This document serves as the permanent, authoritative blueprint for transitioning the Logic-Injection-on-Origin Protocol (LIOP) from a local Docker testnet into an autonomous, globally distributed zero-trust mesh protocol operating across corporate networks, firewalls, and diverse geographic regions.πΊοΈ Evolution Roadmap Overview
β 1. Completed Phases (Verified & Production-Tested)
1.1 Phase Alpha (Core Architecture & Zero-Trust Sandbox)
- Status: Complete & Verified.
- Core Runtime: V8 Isolate sandboxing with 25 poisoned globals, deep-frozen prototypes (11 core prototypes), and a 32KB AST Taint Analyzer (Information Flow Control) to prevent PII derivation and side channels.
- Cryptography: Post-Quantum ML-KEM-768 (
mlkem@2.7.0, NIST FIPS 203) key encapsulation for gRPC intent handshakes, AES-256-GCM authenticated payload encryption, and HMAC-SHA256 ZK-Receipts binding output to logic and SOX-compliant dataset hashes. - Differential Privacy: Laplace mechanism with CSPRNG (
crypto.randomBytes()) and a 3-tier query budget (FORBIDDEN,SENSITIVE,PUBLIC) aligned with NIST SP 800-226. - Dual-Era MCP Bridge: Seamless protocol transcoding supporting both MCP v2 (2026-07-28) and v1 legacy (2025-11-25) clients.
1.2 Phase Beta-1: Global Network Connectivity & Firewall Resilience
- Status: Complete & Verified against live 4-node Docker mesh (
nexus,bank,vault,oracle). - P2P NAT Traversal Stack:
@libp2p/autonat: Autonomous node reachability detection.@libp2p/circuit-relay-v2: Client transport (circuitRelayTransport) and rate-limited relay reservation server (circuitRelayServer).@libp2p/dcutr: Decentralized Hole Punching protocol for direct point-to-point connections through NATs.@libp2p/mdns: Zero-configuration local area network (LAN) peer discovery.
- Symmetric gRPC Keepalive (NIST SP 800-207):
- Created
src/rpc/channel-options.tsimplementingkeepalive_time_ms: 30000,keepalive_timeout_ms: 10000, andpermit_without_calls: 1. - Applied symmetrically across client, server, and router to prevent silent NAT gateway timeouts.
- Created
- Rate Limiting & DoS Defense (OWASP API4:2023):
- Created
src/gateway/rate-limiter.tsusing an O(1) sliding window token bucket algorithm with periodic purge. - Integrated into
src/gateway/hybrid.tsprotectingPOST /mcpwith HTTP 429 (Too Many Requests) andRetry-Afterheaders.
- Created
- Fail-Closed TLS Hardening (
LIOP_ENFORCE_TLS):- Configured
src/rpc/tls.tsto abort execution whenNODE_ENV=productionorLIOP_ENFORCE_TLS=trueif certificates are missing, eliminating silent plaintext fallback.
- Configured
- Multiaddr-Driven Docker Routing:
- Implemented autonomous port detection in
router.ts(isDockerPort), dynamically mapping internal container endpoints to published host ports (13011/13021/13031) without depending on sanitized client environment variables.
- Implemented autonomous port detection in
1.3 Phase Beta-2: Advanced Security, P2P Post-Quantum & Firewalls
- Status: Complete & Verified.
- Post-Quantum Digital Signatures (ML-DSA-65 / NIST FIPS 204):
- Implemented
src/rpc/crypto/dilithium.tsproviding quantum-resistant digital signatures using@noble/post-quantum. - Canonical JSON serialization for tamper-proof manifest sealing (
signManifest/verifyManifest) and node revocation. - Test suite
src/rpc/crypto/dilithium.test.ts: 9/9 tests passing.
- Implemented
- Strict Session Key Lifetime Enforcement (NIST SP 800-53 / PCI-DSS):
- Enforced a hard 1-hour TTL (3600 seconds) ceiling on all PQC session secrets agreed via ML-KEM-768.
- Validated in
src/workers/logic-execution.tsandsrc/server/index.ts. Rejects expired sessions with[LIOP-PQC] Session secret expiredand blocks future timestamp tampering. - Test suite
tests/unit/security/session-lifetime.test.ts: 3/3 tests passing.
- Bidirectional mTLS with Hot-Reloading (
CertManager):- Created
src/security/cert-manager.tsfeaturing X.509 validity inspection, automated expiration warning alerts, and filesystem watchers (fs.watch) for non-disruptive hot certificate reloading. - Updated
src/rpc/tls.tsto enforce client certificate authentication (checkClientCertificate: true) whenmutualTls: trueand fail-closed unconditionally if root CA is missing. - Test suite
tests/unit/security/cert-manager.test.ts: 5/5 tests passing.
- Created
- gRPC-Web HTTP/1.1 Framing Fallback:
- Created
src/gateway/grpc-web.tsimplementing the official gRPC-Web framing standard (5-byte prefix with data 0x00 / trailers 0x80 flags). - Integrated into
src/gateway/hybrid.ts(setupH1Routes) enabling browsers, Layer 7 corporate proxies, and strict enterprise WAFs to invoke LIOP nodes over HTTP/1.1. - Test suite
tests/unit/gateway/grpc-web.test.ts: 5/5 tests passing.
- Created
- Verification Evidence:
- SDK global test suite: 64/64 test files passing, 464/464 tests green (100%).
- BiomeJS compliance: 103 files verified, 0 errors, 0 warnings (
Exit code 0). - Build verification: ESM bundle in 950ms, DTS bundle in 13.5s (
Exit code 0).
β³ 2. Upcoming Phases (Detailed Specifications)
π‘ Phase Beta-3: Enterprise Observability & Compliance (SOC 2 / HIPAA)
- Target Window: Q1 2027
- Key Components:
- Kubernetes Health & Liveness Probes:
- Standardized
/healthzand/readyzendpoints on the Hybrid Gateway. - Graceful connection draining before shutdown in
rpc/server.tsandmesh/node.ts. - Target Files:
src/gateway/hybrid.ts,src/rpc/server.ts.
- Standardized
- Prometheus Metrics Endpoint (
/metrics):- Core protocol telemetry metrics:
liop_tool_calls_total{status, tool}(Counter)liop_fuel_consumed{tool}(Histogram)liop_mesh_peers_connected(Gauge)liop_manifest_cache_size(Gauge)liop_egress_blocks_total{reason}(Counter)liop_zk_verification_duration_ms(Histogram)
- Dependencies:
pnpm add prom-client. - Target Files:
src/observability/metrics.ts.
- Core protocol telemetry metrics:
- Distributed OpenTelemetry Tracing:
- Promote
@opentelemetry/apito production dependencies and add@opentelemetry/sdk-node,@opentelemetry/exporter-otlp-http. - Propagate W3C
traceparentheaders across gRPC metadata and MCP requests. - Target Files:
package.json,src/observability/tracing.ts.
- Promote
- Immutable Audit Trail for SOC 2 Type II & HIPAA:
- Cryptographically signed (Ed25519) append-only JSON audit records for every
tools/callexecution. - Fields:
timestamp,agentDid,peerId,toolName,datasetHash,fuelConsumed,outputHash,zkReceiptSig. - Configurable retention policy (
LIOP_AUDIT_RETENTION_DAYS, minimum 90 days). - Target Files:
src/utils/logger.ts,src/security/audit-logger.ts.
- Cryptographically signed (Ed25519) append-only JSON audit records for every
- Deterministic AST-Based Fuel Metering:
- Replace execution-time fuel estimation (
duration * 1500) with deterministic AST operation counting usingacornto ensure identical fuel consumption regardless of server CPU load. - Target Files:
src/sandbox/wasi.ts.
- Replace execution-time fuel estimation (
- Kubernetes Health & Liveness Probes:
π’ Phase Beta-4: Developer Ecosystem, Interactive Inspector & Global Showcase
- Target Window: Q1-Q2 2027
- Key Components:
- Official Interactive Inspector (
@modelcontextprotocol/inspectorParadigm):- Standalone developer CLI (
npx @nekzus/liop playgroundandnpx @nekzus/liop-inspector). - Bundles precompiled high-fidelity web assets (
dist/playground-dist/) inside the published@nekzus/lioppackage. - Dual-binary execution:
liopfor Claude Desktop STDIO agent,liop-inspectorfor visual developer inspector. - Target Files:
src/bin/cli.ts,src/bin/playground-cli.ts,src/playground/server.ts.
- Standalone developer CLI (
- Ad-Hoc Process Spawning & Live Inspection:
- Ability to pass child process execution commands (
liop playground node ./server.js) to spawn, connect, and debug local LIOP servers on the fly with live logging. - Target Files:
src/bin/playground-cli.ts.
- Ability to pass child process execution commands (
- Cryptographic Pipeline Visualizer:
- Real-time visual timeline mapping post-quantum key exchange (ML-KEM-768), symmetric encryption (AES-256-GCM), WASI sandbox execution, and ZK-Receipt integrity verification.
- Target Files:
tests/infra/playground-web/src/App.tsx.
- Public Cloud Showcase & Embedded Mintlify Documentation:
- Publicly deployed demo instance (
playground.liop.dev) connected to WAN testnet bootstrap nodes. - Interactive embedded playground component for official documentation at
https://nekzus-32.mintlify.app/.
- Publicly deployed demo instance (
- CLI Diagnostics & Network Verification:
- Subcommands for peer health and network inspection:
liop ping <peerId>,liop discover,liop health. - Target Files:
src/bin/cli.ts.
- Subcommands for peer health and network inspection:
- Official Interactive Inspector (
π΅ Phase RC: Production Resilience & Hardware TEE Attestation
- Target Window: Q2 2027
- Key Components:
- Hardware TEE Remote Attestation (AWS Nitro Enclaves / Intel SGX):
- Replace the simulation stub in
crypto/verifier.ts(verifyTeeAttestation()) with cryptographic verification of signed AWS Nitro attestation documents. - Dependencies:
pnpm add @aws-sdk/client-nitro-enclaves-attestation. - Target Files:
src/crypto/verifier.ts.
- Replace the simulation stub in
- Automated Chaos Engineering Suite:
- Automated test suite verifying mesh behavior under simulated transcontinental WAN latency (300ms), packet loss, partition splits, and abrupt bootstrap node termination.
- Target Files:
tests/chaos/network-partition.test.ts,tests/chaos/bootstrap-drain.test.ts.
- Geo-Proximity Routing & Multi-Region Failover:
- RTT-aware and region-aware routing prioritizing closest geographic nodes with seamless failover.
- Target Files:
src/gateway/router.ts.
- Hardware TEE Remote Attestation (AWS Nitro Enclaves / Intel SGX):
π£ Phase GA: Massive Global Availability & High-Performance WAN
- Target Window: Q3 2027
- Key Components:
- Dedicated Global Bootstrap Supernodes:
- Deploy at least 3 geographically separated LIOP bootstrap clusters with Anycast DNS:
- US-East (N. Virginia)
- EU-West (Frankfurt)
- AP-Southeast (Singapore)
- Completely eliminate dependency on third-party
bootstrap.libp2p.io.
- Deploy at least 3 geographically separated LIOP bootstrap clusters with Anycast DNS:
- Native QUIC Transport (0-RTT):
- Incorporate
@libp2p/quic, reducing initial connection handshakes to 0-1 RTT and maximizing throughput across transoceanic WAN links. - Dependencies:
pnpm add @libp2p/quic.
- Incorporate
- WebTransport for Direct Browser Connectivity:
- Enable
@libp2p/webtransportfor direct browser connectivity without intermediary proxy gateways. - Dependencies:
pnpm add @libp2p/webtransport.
- Enable
- PubSub Gossipsub for Push Topology Propagation:
- Implement
@chainsafe/libp2p-gossipsubfor instant push notifications of new tools, key rotations, and revoked nodes without DHT polling intervals. - Dependencies:
pnpm add @chainsafe/libp2p-gossipsub.
- Implement
- Zstandard Payload Compression:
- Transparent zstd compression for payloads and manifests exceeding 1 KB.
- Dedicated Global Bootstrap Supernodes: