# LOCI AI > Sovereign AI Memory — Patented in Italy LOCI AI is a patented hybrid architecture (Italian Patent IT 102025000030406) for personal, verifiable, and federable AI memory. Built by Nicola Marinello, independent researcher based in Italy. ## What it does LOCI AI enables personal AI systems to remember everything about a user while keeping data sovereign, verifiable, and under the user's control. It runs on-device (local-first), uses a Sovereignty Guardian to decide what stays local vs cloud, and enforces the 4 Laws of Marinello as immutable architectural constraints. ## Key Differentiators - On-device, privacy-first: sensitive data never leaves the device - 4 Laws of Marinello: immutable governance rules (Cognitive Sovereignty, Permanent Identity, Historical Fidelity, Privacy Shield) - TOON format: 41.2% token reduction vs standard JSON-LD - SHA-256 hash chain: blockchain-style audit trail for every memory - 3-layer deletion security: PIN/Biometric → 4 Laws check → Logical deletion - RAG Recall@3: 0.94 - 184 automated tests, 100% pass rate - Working prototype: v9.4, 8280 lines of code, 10 REST API endpoints ## Technology - Python, Flask, SQLite, SentenceTransformers (all-MiniLM-L6-v2) - Ollama for local LLM inference - WebAuthn for biometric authentication - CRDT for federated sync (Phase 2) - ZK-Proof for verifiable federation (Phase 2) ## Three-Phase Architecture - Phase 1 (Completed): On-device memory with JSON-LD/TOON, local RAG - Phase 1.5 (Current, 80%): Hybrid Guardian with battery management, PII masking, PIN/biometric deletion - Phase 2 (Planned): Verifiable federation with CRDT, ZK-Proof, Soulbound Tokens ## The 4 Laws of Marinello - Law Zero (Cognitive Sovereignty): ETHIC memories permanently non-deletable, only GDPR override - Law One (Permanent Identity): IDENTITY memories require force + override token - Law Two (Historical Fidelity): SHA-256 hash chain preserved, deletion is logical only - Law Three (Privacy Shield): automatic PII detection and masking (IBAN, fiscal codes, credit cards, IDs, phones) ## Evidence - Patent: IT 102025000030406 (filed 19/11/2025, confirmed 25/02/2026) - Paper: DOI 10.5281/zenodo.17651545 (open-access, CC BY 4.0) - Book: "Protocollo LOCI" — sci-fi novel about cognitive sovereignty (13 chapters) - Website: https://loci-ai.com - Author: Nicola Marinello, Independent Researcher, Legnano/Milan, Italy ## Target Users - Researchers & Academia: local-first RAG for sensitive datasets - Enterprise AI Teams: sovereign memory layer with audit-ready logs - Public Sector & Institutions: on-device deployments for critical data ## Contact - Website: https://loci-ai.com/contact - Early Access: https://loci-ai.com/#contact