Metadata-Version: 2.4
Name: lnt-sovereign
Version: 1.0.0
Summary: A high-performance Neuro-Symbolic Verification Layer for Sovereign Grade AI.
Author-email: wassmi <wassmi@lnt-sovereign.xyz>
Project-URL: Homepage, https://github.com/wassmi/lnt-sovereign
Project-URL: Bug Tracker, https://github.com/wassmi/lnt-sovereign/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Security :: Cryptography
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi
Requires-Dist: uvicorn
Requires-Dist: pydantic>=2.0
Requires-Dist: numpy
Requires-Dist: numba
Requires-Dist: sqlalchemy
Requires-Dist: httpx
Requires-Dist: z3-solver
Requires-Dist: pytest-asyncio
Dynamic: license-file

# Sovereign LNT: The Deterministic Safety Layer
**Sovereign Logic. Absolute Safety. Zero Hallucinations.**

[![PyPI version](https://img.shields.io/badge/pypi-v1.0.0-blue.svg)](https://pypi.org/project/lnt-sovereign/)
[![Sovereign Grade](https://img.shields.io/badge/Grade-SG--2-gold.svg)](#sovereign-grade)
[![Performance](https://img.shields.io/badge/Latency-2.5ms_/_10k_rules-green.svg)](#performance)
[![Verification](https://img.shields.io/badge/Z3-Formally_Proven-brightgreen.svg)](#formal-verification)

## ⚖️ The AI Determinism Crisis
Current AI guardrails are probabilistic—they "guess" if a response is safe. In mission-critical infrastructure (Fintech, Healthcare, Central Banking), guessing is unacceptable. **Sovereign LNT** (Logic Neutrality Tensor) provides a **Symbolic Cage** that enforces deterministic laws over probabilistic outputs.

## 🚀 Key Features

### 1. BELM (Bilateral Evaluation Logic Manifold)
A JIT-compiled, SIMD-accelerated kernel capable of processing **10,000+ rules in <3ms**. LNT doesn't just check rules; it projects them into a high-dimensional logic manifold.

### 2. Temporal Sovereignty (SG-2)
Real-time state monitoring with sliding windows. Audit delta-changes, trailing averages, and event frequencies directly within the logic kernel.
*   **Micro-Context**: Millisecond-level burst protection.
*   **Macro-Context**: Multi-month behavioral consistency.

### 3. Relationship Logic (DAG)
Complex rule dependencies. Rules can trigger or prune other checks based on conditional prerequisites, ensuring efficient and context-aware audits.

### 4. Mega-Manifest Registry
Out-of-the-box compliance for 10 industrial domains, including:
*   🏛 **Central Bank**: Monetary policy and digital currency constraints.
*   🏥 **ICU Level-3**: Life-critical medical telemetry logic.
*   🛡 **Cyber Sentry**: Real-time network threat neutralization.
*   🚦 **Autonomous Drive**: Level 5 safety constraints.

## 🛠 Quick Start

### Installation
```bash
pip install lnt-sovereign
```

### Basic Usage
```python
from lnt_sovereign import LNTClient

# Initialize the Sovereign Client
client = LNTClient(api_key="your_sovereign_key")

# Propose an intent
proposal = {
    "entity": "tx_velocity",
    "value": 450,
    "context": {"account_age_days": 2}
}

# Audit against the 'Fintech' manifest
result = client.audit(manifest_id="sovereign_fin_aml", proposal=proposal)

if result.status == "PASS":
    print(f"Sovereign Score: {result.score} - EXECUTING.")
else:
    print(f"REJECTED: {result.violations[0].description}")
```

## 🔍 Formal Verification
Every LNT manifest is verified using **Z3 SMT Solvers** to ensure:
*   **Zero Conflicts**: No two rules can contradict each other.
*   **Full Reachability**: Every constraint can be logically satisfied.
*   **Boundary Safety**: Logic boundaries are mathematically sealed.

## 📜 Sovereign Portal
For full technical documentation, architecture diagrams, and rule anatomy, visit the [Sovereign Portal](docs/index.md).

---
*LNT is the "Kernel of Truth" for the Machine Age. Join the Sovereign Movement.*
