Metadata-Version: 2.4
Name: memory-share-kit
Version: 1.2.4.post2
Summary: Deterministic memory and governance for developers and AI agents.
Author-email: Chief Architect <architect@memory-share.kit>
License: MIT License
        
        Copyright (c) 2026 Van Truong Dang
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agents,ai,deterministic,graph,memory,sqlite
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: <3.15,>=3.14
Requires-Dist: psutil>=5.9.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pyyaml>=6.0.0
Requires-Dist: requests>=2.31.0
Description-Content-Type: text/markdown

# 📦 memory-share-kit

> A lightweight cognitive runtime CLI for persistent memory + tool-driven reasoning.

---

## 🐍 Requirements

- **Python 3.14.x Required**
- This runtime is tested and supported strictly on Python 3.14.4+.

## 🖥 Supported Environment

- **OS**: Windows 10/11 (fully tested)
- **Runtime**: Python 3.14.4+
- **Database**: SQLite (bundled with Python 3.14, WAL + STRICT mode)

---

## ⚡ Install

```bash
pip install memory-share-kit
```

---

## 🚀 Quick Start

```bash
kit init
```

Initializes the local cognitive environment and seals the kernel.

---

## 🏗 Architecture Overview

The system operates as a deterministic cognitive substrate:

```text
Agent / IDE
  ↓
Kit CLI (The Brain)
  ↓
Memory Router (Routing & Governance)
  ↓
SQLite Storage (JSONB + WAL + STRICT)

Verification Path (Forensic):
Kit CLI
  ↓
Vantage (The Sensor - Rust Core)
  ↓
Integrity Verification (Drift Detection)
```

---

## 🧠 Memory Topology

Kit enforces a **4-tier deterministic memory model**:

- **L1 — Local Brain**: Repository-specific reasoning and context.
- **L2 — Global Brain**: Shared user-level knowledge across projects.
- **L3 — Frozen Law**: Immutable architectural invariants (Read-Only).
- **L4 — Audit Trace**: Forensic log of all cognitive routing decisions.

---

## 🧪 Minimal Workflow Example

The following sequence represents a standard deterministic session:

```bash
# 1. Initialize
kit init

# 2. Record a decision or invariant
kit learn --tag decision "Always use WAL mode for high concurrency"

# 3. Recall the context
kit recall

# 4. Verify structural integrity
kit-vantage verify-memory
```

---

## 🧠 Usage Summary

### Store knowledge
```bash
kit learn --tag decision "Use WAL mode for deterministic writes"
```

### Recall context
```bash
kit recall
```

### Search memory
```bash
kit search "router failure"
```

### Verify integrity
```bash
kit-vantage verify-memory
```

---

## 🔍 Verification Layer (Optional)

Kit supports external structural verification using **Vantage**. While optional, it is highly recommended for production-grade cognitive kernels to prevent drift and ensure topological integrity.

**Install Vantage:**
[https://github.com/so-sai/Vantage](https://github.com/so-sai/Vantage)

After installation, you can run forensic verification:
```bash
kit-vantage verify-memory
```

---

## 🛡️ Core Principles

- **Runtime is Truth**: The executing environment is the only valid state.
- **CLI is Interface**: Clean, tool-first access to the cognitive kernel.
- **Memory is Persistent**: Deterministic storage with SQLite WAL + JSONB.
- **Verification is External**: Integrity is enforced by the **Vantage** sensor layer.

---

## 🛠️ Failure Recovery

If the system enters a friction state or memory drift is detected:

```bash
kit doctor          # Diagnose health
kit doctor --heal   # Automatically repair common artifacts
```

---

## 📌 Version

v1.2.4.post2
