# Research Institute for Network Geometry & Security (RINGS) > RINGS (rings.edu.rs) is an independent open-access academic research institute studying circular 256-bit WebRTC network geometry, 9.50M-state model-checked distributed protocols, Nova IVC and Module-SIS lattice zero-knowledge proofs, and lock-free Lisp agent runtimes. ## Primary Pages - [Home](https://rings.edu.rs/): Overview, research focus, and interactive circle foliation. - [Research & Technical Reports](https://rings.edu.rs/research/): 5 open-access monographs with KaTeX Web Full-Text and inline PDF readers. - [Open-Source Software](https://rings.edu.rs/projects/): 7 reference repositories in Rust, CUDA, Python, and Lisp. - [About & Mandate](https://rings.edu.rs/about/): Charter, R.I.N.G.S. nomenclature, directory, and FAQs. - [Join the Institute](https://rings.edu.rs/join/): CV application via email, collegial peer-review obligation, and endorser CC protocol. - [Complete Technical Reference](https://rings.edu.rs/llms-full.txt) - [XML Sitemap](https://rings.edu.rs/sitemap.xml) ## Monographs & Technical Reports - [RINGS-TR-2026-01: Rings: An Algebraic Structured Peer-to-Peer Network for Decentralized Identity and Resource Ownership](https://rings.edu.rs/papers/rings/) — Web Full-Text, [Inline PDF](https://rings.edu.rs/papers/rings/?view=pdf) (661 KB, 22 pp), [Markdown](https://rings.edu.rs/papers/rings.md) - [RINGS-TR-2026-02: The DRanking Protocol: — Verifiable Distributed Ranking and Sybil-Bounded Admission — for Structured Peer-to-Peer Networks](https://rings.edu.rs/papers/dranking/) — Web Full-Text, [Inline PDF](https://rings.edu.rs/papers/dranking/?view=pdf) (360 KB, 8 pp), [Markdown](https://rings.edu.rs/papers/dranking.md) - [RINGS-TR-2026-03: LispM: A Live-Image AI Agent Runtime with a — Lock-Free CSP Sidecar Kernel](https://rings.edu.rs/papers/lispm/) — Web Full-Text, [Inline PDF](https://rings.edu.rs/papers/lispm/?view=pdf) (672 KB, 13 pp), [Markdown](https://rings.edu.rs/papers/lispm.md) - [RINGS-TR-2026-04: ZKFly: CUDA-Accelerated Nova for Private Sparse-Graph Execution](https://rings.edu.rs/papers/zkfly/) — Web Full-Text, [Inline PDF](https://rings.edu.rs/papers/zkfly/?view=pdf) (407 KB, 7 pp), [Markdown](https://rings.edu.rs/papers/zkfly.md) - [RINGS-TR-2026-05: ZKSM83: Native Lookup Proofs for SM83 Execution — Transparent lattice-backed receipts for the DMG/MBC3 machine](https://rings.edu.rs/papers/zksm83/) — Web Full-Text, [Inline PDF](https://rings.edu.rs/papers/zksm83/?view=pdf) (484 KB, 9 pp), [Markdown](https://rings.edu.rs/papers/zksm83.md) ## Open-Source Research Software - [Rings](https://github.com/RingsNetwork/rings) (Rust · Wasm): Structured P2P overlay over Chord DHT, WebRTC & Sphinx/AEZ. - [Klefki](https://github.com/ZeroProphet/klefki) (Python · Algebra): Elliptic curves, pairings, zk-SNARKs, MPC & HE in pure algebra. - [LispM](https://github.com/LispMachineLab/lispm-agent) (Elisp · SBCL · CSP): Live-image Emacs AI agent runtime with a lock-free SBCL CSP sidecar kernel. - [zkfly](https://github.com/RyanKung/zkfly) (Rust · Nova · CUDA): MaleCNS connectome CSR projection & Nova IVC forward proofs. - [zkSM83](https://github.com/RyanKung/zksm83) (Rust · Akita): Jolt-style lookup SNARK with Akita lattice commitments for SM83. - [cuda-nova](https://github.com/RyanKung/cuda-nova) (CUDA Rust · Nova): CUDA Rust GPU arithmetic sidecar for Microsoft Nova IVC folding. - [DeTLS & x402](https://github.com/polyjuicelab/DeTLS) (Rust · Ed25519): Ed25519 mTLS certificates & Rust/Nginx HTTP x402 micropayments. ## Correspondence - Principal Researcher: Ryan J. Kung - Email: ryan@rings.edu.rs --- ## Frequently Asked Questions ### How are RINGS monographs and technical reports accessed? RINGS publishes 100% of its monographs and technical reports open-access over HTTPS at rings.edu.rs/papers/, offering both KaTeX-typeset Web Full-Text reading and an embedded in-browser PDF reader with zero registration or paywalls. ### What research areas does RINGS investigate? RINGS investigates circular 256-bit metric network topologies over WebRTC, 9.50M-state model-checked consensus and routing protocols, Nova IVC and Module-SIS lattice zero-knowledge proofs, and lock-free Lisp agent runtimes. ### Are reference software implementations publicly verifiable? RINGS pairs its 5 formal technical reports with 7 open-source software repositories across 4 languages—Rust, CUDA, Python, and Lisp—allowing independent reproduction of proofs, benchmarks, and finite-state models. --- # Rings: An Algebraic Structured Peer-to-Peer Network for Decentralized Identity and Resource Ownership - **Report Number**: RINGS-TR-2026-01 - **Institution**: Research Institute for Network Geometry & Security (RINGS) - **Author**: Ryan J. Kung - **Web Full-Text Reader**: https://rings.edu.rs/papers/rings/ - **Embedded PDF Reader**: https://rings.edu.rs/papers/rings/?view=pdf - **Direct PDF**: https://rings.edu.rs/papers/rings.pdf (661 KB, 22 pages) ## Abstract Rings is an implemented algebraic structured peer-to-peer network for decentralized identity, resource ownership, transport, storage, privacy, and application protocols. Application servers, DNS authorities, and relay providers in conventional Internet deployments frequently become trusted bottlenecks for naming, routing, and user state. Rings instead models identities and resources as algebraic objects over a CorrectChord circular overlay Z/2^160Z, pairing browser WebAssembly and native runtimes over WebRTC/SCTP while keeping all cryptographic operations on carriers disjoint from the routing identifier ring. This paper unifies the core algebraic design with six production subsystems implemented in Rings 1.0: range-proved finger convergence, non-transitive WebRTC Chord routing and single-hop bridge delegation, conflict-free replicated data types (CRDTs) with HLC removal stability and Merkle data provenance, crash-durable local stores and age-gated replicated relay custody, cleanest-first slot accounting across shared node tables, and Sphinx/AEZ-v5 onion Kleisli pipelines (with stateless cryptographic TURN and split-trust TURN–Onion UDP relays) bridging counterparty-signed service receipts to DRanking 2.0. We evaluate the Rust implementation empirically on real hardware and summarize exhaustive Stateright/BFS verification across 9,496,521 reachable finite states (9.50× 10^6) and 54 refuted safety mutants. Core object: Rings=(R,R_N,Set/R,Ω_N,T^E_A,Π,G,X) with R=Z/2^160Z, Ω_N(X,H)=(X,owner_N∘ H), and CryptoCarrier∩ R=∅. ## Section Outline ## I Introduction ## II Problem Statement and Design Goals ## III Algebraic System Model, Threat Model, and Effects ### III-A Carrier, System Scope, and Threat Model ### III-B Architecture as Interfaces ### III-C Category and Effect Monad ## IV Chord Implementation — PeerRing and Overlay Routing ### IV-A Base Chord and CorrectChord Maintenance ### IV-B Range-Proved Finger Convergence ### IV-C Non-Transitive WebRTC Overlay and Bridge-Delegated Delivery ## V CRDT Storage and Removal Stability ### V-A DID, VID, and Replicated Entry Algebra ### V-B Carrier State, HLC Timestamps, and Cryptographic Data Provenance ### V-C Removal Stability Horizon, Factored Carrier, and Tombstone Bounds ### V-D Fetch Cache Linearization and Signed Lease Heartbeats ## VI Durable Local Stores and Replicated Custody ### VI-A Authority Lattice, Presence Markers, and Platform Crash Durability ### VI-B Group Commit and Link-Local Volatile Replay Windows ### VI-C Receiver Custody Set and Age-Gated Replicated Relay Custody ## VII Fair Admission, Slot Accounting, and Load Bounds ### VII-A Cleanest-First Slot Roster and Fair Slot Accounting ### VII-B Replay Stream Eviction and Credit Reclaim ### VII-C Single-Charge Chunk Reassembly and Per-Category Barrier ## VIII Privacy Layer — Cryptographic Carriers and Sphinx Onion Kleisli Pipeline ### VIII-A Separate Cryptographic Carriers ### VIII-B Operation Signature and Kleisli Pipeline Composition ### VIII-C Client-Sealed Loops, Uniform Sphinx Header, and AEZ v5 Carry ### VIII-D SURB Batching, Cover Loops, Replay Admission, and Security Laws ### VIII-E Zero-Database Cryptographic TURN and Multi-Hop TURN–Onion UDP Relay ## IX Decentralized Trust and Ranking — DRanking Bridge ### IX-A Sidecar Witness Ordering ### IX-B Counterparty-Signed Service Receipts and the DRanking 2.0 Bridge ### IX-C Security Predicates and Controls ## X Evaluations and Formal Verification ### X-A Experimental Setup and Reproducibility ### X-B Stateright State Relation and Quantitative Formal Verification ### X-C Overlay Convergence and Non-Transitive WebRTC Routing ### X-D CRDT Carrier Operations, Provenance, and LeaseHeartbeats ### X-E Durable Local Store and Group Commit (put*) ### X-F Sybil-Resistant Slot Accounting and Admission Latency ### X-G Sphinx/AEZ v5 Onion Pipeline, Sliced-Bloom, and Gateway Throughput ### X-H Analytical and Operational Complexity Bounds ### X-I Limitations and Threats to Validity ## XI Related Work ## XII Conclusion ## References ## Citation (BibTeX) ```bibtex @techreport{kung2026rings, author = {Ryan J. Kung}, title = {Rings: An Algebraic Structured Peer-to-Peer Network for Decentralized Identity and Resource Ownership}, institution = {Research Institute for Network Geometry & Security (RINGS)}, year = {2026}, number = {RINGS-TR-2026-01}, url = {https://rings.edu.rs/papers/rings/} } ``` --- # The DRanking Protocol: — Verifiable Distributed Ranking and Sybil-Bounded Admission — for Structured Peer-to-Peer Networks - **Report Number**: RINGS-TR-2026-02 - **Institution**: Research Institute for Network Geometry & Security (RINGS) - **Author**: Ryan J. Kung - **Web Full-Text Reader**: https://rings.edu.rs/papers/dranking/ - **Embedded PDF Reader**: https://rings.edu.rs/papers/dranking/?view=pdf - **Direct PDF**: https://rings.edu.rs/papers/dranking.pdf (360 KB, 8 pages) ## Abstract DRanking converts locally observed peer behavior in an open structured peer-to-peer network into a globally agreed, verifiable service weight that gates admission to protocol roles. Identity creation is free, so no mechanism bounds adversarial count [1]; the protocol instead bounds adversarial weight and prices it. The instruments are: counterparty-signed service receipts in place of unsigned counters; a seed-anchored trust flow t_k+1=α C_k^ Tt_k+(1-α)s obeying conservation, attenuation, and revocation laws, with a proved bound T_k(A)≤α g/(1-α) on Sybil mass; trust-weighted verifiable random sortition in place of oracle sampling; a proof-of-authority ledger trusted for ordering only, with equivocation proofs as first-class slash objects; and a circuit-friendly epoch transition folded by Nova-family incrementally verifiable computation, giving constant-cost verification to browser nodes. Rank is soulbound and slashable; reward is a separate transferable asset; the authority-to-stake transition is conditioned on a security-budget crossover. ## Section Outline ## 1 Introduction ## 2 Model ## 3 Service Receipts ## 4 Trust Algebra ## 5 Sortition ## 6 Admission Ledger ## 7 Folded State ## 8 State Relation ## 9 Economics ## 10 Security Analysis ## 11 Related Work ## 12 Conclusion ## References ## Citation (BibTeX) ```bibtex @techreport{kung2026dranking, author = {Ryan J. Kung}, title = {The DRanking Protocol: — Verifiable Distributed Ranking and Sybil-Bounded Admission — for Structured Peer-to-Peer Networks}, institution = {Research Institute for Network Geometry & Security (RINGS)}, year = {2026}, number = {RINGS-TR-2026-02}, url = {https://rings.edu.rs/papers/dranking/} } ``` --- # LispM: A Live-Image AI Agent Runtime with a — Lock-Free CSP Sidecar Kernel - **Report Number**: RINGS-TR-2026-03 - **Institution**: Research Institute for Network Geometry & Security (RINGS) - **Author**: Ryan J. Kung - **Web Full-Text Reader**: https://rings.edu.rs/papers/lispm/ - **Embedded PDF Reader**: https://rings.edu.rs/papers/lispm/?view=pdf - **Direct PDF**: https://rings.edu.rs/papers/lispm.pdf (672 KB, 13 pages) ## Abstract Modern AI coding and desktop agent harnesses execute outside the user's interactive software environment, communicating with editors and applications via file-system side effects, sprawling Model Context Protocol (MCP) schemas, or brittle pixel-scraping interfaces. Inverting this architecture—hosting agents directly as first-class objects inside a self-documenting live runtime image (in the Lisp Machine and Smalltalk tradition, realized atop GNU Emacs)—unifies the editor's unsaved buffers, undo trees, and introspection primitives with the agent runtime, collapsing dozens of ad-hoc tool wrappers into live image evaluation. However, hosting concurrent agents inside a 40-year-old single-threaded, stop-the-world garbage-collected Lisp image exposes a severe responsiveness ceiling: scanning multi-megabyte agent transcripts, searching repositories, negotiating TLS, or spawning subprocess bursts stalls the host event loop for hundreds of milliseconds. We present LispM, an in-image agent runtime that resolves this tension through a dual-Lisp split-kernel architecture. Stateful workspace semantics—editable Org-mode context buffers, dirty-buffer coherence, policy-mediated Lisp actions (run_lisp), out-of-tree Git turn journals, and condition/restart recovery—remain inside GNU Emacs's single-threaded image. Latency-critical parallel workloads are offloaded over a zero-eval S-expression wire protocol to lispm- kernel, a crash-isolated Steel Bank Common Lisp (SBCL) sidecar process coordinated exclusively via lock-free Communicating Sequential Processes (CSP) without a single domain mutex. Inside lispm-kernel, a single-owner sequential scheduler, broadcast cancellation gates, a 4 MiB byte-credit backpressure sink with wait-free control bypass, and an async-signal-safe CAS wakeup pipe drive parallel worker pools while Emacs ingests results in 3 ms frame-clock slices that yield immediately to keystrokes. Across 12-run benchmarks over 256 session transcripts (68.6 MB) alongside eight active streaming terminals, LispM cuts median worst-case UI stall from 196.31 ms in pure Emacs Lisp (and 6.64 ms in an earlier mutex sidecar) to 0.54 ms (366× lower; 0.25 ms max stall across a real 314.7 MiB developer trace, 1,268× lower) with zero host garbage collections, while run_lisp replay continuations reduce multi-file refactoring prompt payloads by 178× and prefix-folded Org parsing scales to 120k-token contexts in 3.49 ms. ## Section Outline ## 1 Introduction ## 2 Background and Motivation ### 2.1 From Lisp Machines to Modern Agent Harnesses ### 2.2 Anatomy of Stalls in Single-Threaded Image Hosts ### 2.3 Evolution Beyond FFI Modules and Mutexes ## 3 Image-Native Agent Harness ### 3.1 Agent Object Model and Permission Ceilings ### 3.2 The Buffer Is the Context: Prefix-Cache Co-Design ### 3.3 Policy-Mediated Lisp Actions and Replay Continuations ### 3.4 Live Buffer Coherence, Turn Journals, and Restarts ## 4 Lock-Free CSP Sidecar Kernel ### 4.1 Zero-Eval S-Expression Wire Protocol ### 4.2 CSP Process Topology and Primitives ### 4.3 Single-Owner Coordinator (\(P_{\text{scheduler}}\)) ### 4.4 Async-Signal-Safe Subprocess Multiplexing ### 4.5 Frame-Clock Time-Sliced Host Ingestion ## 5 Split-Responsibility Subsystems ### 5.1 Incremental Session Indexing and \(P_{\text{cache}}\) ### 5.2 Dirty-Buffer-Coherent Parallel Search ### 5.3 Non-Blocking Downloads, HTTP Streaming, and Verified Prebuilts ### 5.4 Implementation Footprint ## 6 Evaluation ### 6.1 RQ1: Session Discovery and Real-World Traces ### 6.2 RQ2: CSP Scheduler Scaling, Cancellation, and Backpressure ### 6.3 RQ3: Subprocess Bursts, Env Ablation, and Search ### 6.4 RQ4: In-Image Harness Overhead, Replay Continuation, and Context Scaling ## 7 Discussion, Related Work, and Conclusion ### 7.1 Limitations and Future Directions ### 7.2 Related Work ### 7.3 Conclusion ## References ## Citation (BibTeX) ```bibtex @techreport{kung2026lispm, author = {Ryan J. Kung}, title = {LispM: A Live-Image AI Agent Runtime with a — Lock-Free CSP Sidecar Kernel}, institution = {Research Institute for Network Geometry & Security (RINGS)}, year = {2026}, number = {RINGS-TR-2026-03}, url = {https://rings.edu.rs/papers/lispm/} } ``` --- # ZKFly: CUDA-Accelerated Nova for Private Sparse-Graph Execution - **Report Number**: RINGS-TR-2026-04 - **Institution**: Research Institute for Network Geometry & Security (RINGS) - **Author**: Ryan J. Kung - **Web Full-Text Reader**: https://rings.edu.rs/papers/zkfly/ - **Embedded PDF Reader**: https://rings.edu.rs/papers/zkfly/?view=pdf - **Direct PDF**: https://rings.edu.rs/papers/zkfly.pdf (407 KB, 7 pages) ## Abstract ZKFly binds a canonical sparse connectome to a Poseidon root and proves a chain of private weighted CSR evaluations with Nova. The public state is two field elements: a vector commitment and a fixed topology root. The implementation uses HyperKZG, GPU multi-scalar multiplication (MSM), and CUDA arithmetic for Nova's R1CS operations. Its main optimization vertically concatenates the three matrices (A,B,C) and replaces three same-vector sparse products by one checked device batch. On a V100, a verified 1,024-step, 14,826-constraint fixture falls from 612.609 \mathrms to 329.535 \mathrms (1.859×); fusion alone removes 4,092 synchronizations and 4,092 allocations relative to the resident-buffer version. For the 166,700-neuron, 25,582,938-edge artifact, we report exact execution measurements and circuit lower bounds, not an unmeasured full-network proof time. ## Section Outline ## 1 Relation ### 1.1 Canonical roots ### 1.2 Recursive state ## 2 CUDA arithmetic boundary ## 3 Operation model ## 4 Measurements ### 4.1 Full artifact: execution, then capacity ## 5 Result boundary ## References ## Citation (BibTeX) ```bibtex @techreport{kung2026zkfly, author = {Ryan J. Kung}, title = {ZKFly: CUDA-Accelerated Nova for Private Sparse-Graph Execution}, institution = {Research Institute for Network Geometry & Security (RINGS)}, year = {2026}, number = {RINGS-TR-2026-04}, url = {https://rings.edu.rs/papers/zkfly/} } ``` --- # ZKSM83: Native Lookup Proofs for SM83 Execution — Transparent lattice-backed receipts for the DMG/MBC3 machine - **Report Number**: RINGS-TR-2026-05 - **Institution**: Research Institute for Network Geometry & Security (RINGS) - **Author**: Ryan J. Kung - **Web Full-Text Reader**: https://rings.edu.rs/papers/zksm83/ - **Embedded PDF Reader**: https://rings.edu.rs/papers/zksm83/?view=pdf - **Direct PDF**: https://rings.edu.rs/papers/zksm83.pdf (484 KB, 9 pages) ## Abstract ZKSM83 proves CPU-visible execution of an SM83 machine directly. A segment packs at most four instructions per row into N=2^14 rows, commits C=4604 multilinear columns, and checks M=11458 identities of degree at most 23 by sumcheck and a transparent Akita polynomial commitment scheme. ISA, byte-operation, ROM, memory, device, log, and segment-boundary claims share one committed trace. Version 2 is transparent, not witness-hiding; no current end-to-end packed-proof measurement is claimed. ## Section Outline ## 1 Proposition ## 2 Packed trace ## 3 Row relation ## 4 Shout-style lookup equations ## 5 Mutable memory ## 6 Ordered logs and continuity ## 7 Uniform sumcheck and Akita PCS ## 8 Receipt composition ## 9 Conditional soundness ## 10 Static cost and evidence boundary ## 11 Code correspondence ## 12 Conclusion ## Citation (BibTeX) ```bibtex @techreport{kung2026zksm83, author = {Ryan J. Kung}, title = {ZKSM83: Native Lookup Proofs for SM83 Execution — Transparent lattice-backed receipts for the DMG/MBC3 machine}, institution = {Research Institute for Network Geometry & Security (RINGS)}, year = {2026}, number = {RINGS-TR-2026-05}, url = {https://rings.edu.rs/papers/zksm83/} } ```