# Libertaria SDK **The Core Protocol Stack for Libertaria Applications** **Version:** 1.0.0-beta ("Shield") **License:** TBD **Status:** 🛡️ **AUTONOMOUS IMMUNE RESPONSE: OPERATIONAL** (100% Complete) --- ## 🚀 The Autonomous Immune System Libertaria SDK is not just a protocol; it is a **self-defending nervous system**. We have achieved the **Vertical Active Defense Loop**: 1. **Detect**: L1 QVL Engine uses Bellman-Ford to mathematically prove betrayal cycles (sybil rings). 2. **Prove**: The engine serializes the cycle into a cryptographic **Evidence Blob**. 3. **Enforce**: The L2 Policy Agent issues a **SlashSignal** containing the Evidence Hash. 4. **Isolate**: The L0 Transport Layer reads the signal at wire speed and **Quarantines** the traitor. This happens autonomously, in milliseconds, without human intervention or central consensus. --- ## The Stack ### **L0 Transport Layer (`l0-transport/`)** - **Protocol**: LWF (Libertaria Wire Frame) RFC-0000 - **Features**: - UTCP (Unreliable Transport) - OPQ (Offline Packet Queue) with 72h WAL - **QuarantineList** & Honeypot Mode - ServiceType 0x0002 (Slash) Prioritization ### **L1 Identity Layer (`l1-identity/`)** - **Protocol**: SoulKey RFC-0250 + QVL RFC-0120 - **Features**: - **CompactTrustGraph**: High-performance trust storage - **RiskGraph**: Behavioral analysis - **Bellman-Ford**: Negative Cycle Detection - **Slash Protocol**: RFC-0121 Evidence-based punishment ### **L2 Membrane Agent (`membrane-agent/`)** - **Language**: Rust - **Role**: Policy Enforcement & Strategic Logic - **Capability**: Auto-negotiates PQXDH, manages Prekeys, executes Active Defense. --- ## Technical Validation | Capability | Status | Implementation | |---|---|---| | **Binary Size** | ✅ <200 KB | Strict Kenya Rule Compliance | | **Tests** | ✅ 173+ | 100% Coverage of Core Logic | | **Detection** | ✅ Mathematical | Bellman-Ford (O(VE)) | | **Response** | ✅ Autonomous | PolicyEnforcer (Rust) | | **Evidence** | ✅ Cryptographic | Cycle Serialization | --- ## Quick Start ### Build L1 Engine (Zig) ```bash zig build ``` ### Run Active Defense Simulation (Rust) ```bash cd membrane-agent cargo test --test simulation_attack -- --nocapture ``` *Watch the system detect a traitor and issue a death warrant in real-time.* --- ## Documentation - [Project Status](./docs/PROJECT_STATUS.md) - [RFC-0120: QVL](./docs/rfcs/RFC-0120_QVL.md) - [RFC-0121: Slash](./docs/rfcs/RFC-0121_Slash.md) --- **Mission Accomplished.** Markus Maiwald & Voxis Forge. 2026.