Metadata-Version: 2.4
Name: kristal
Version: 0.0.1
Summary: A multi-faceted memory framework for AI: pluggable memory facets on a shared multi-source substrate, unified consumption, auditable across apps.
Author: 2049lab
License-Expression: MIT
Project-URL: Homepage, https://github.com/2049lab/kristal
Project-URL: Repository, https://github.com/2049lab/kristal
Keywords: memory,ai,agent,llm,personal-ai,context,knowledge
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Kristal

**Kristal — a multi-faceted memory framework for AI: define any memory facet on a shared multi-source data substrate, consume them through one unified context layer, and audit every write and read across apps.**

> Status: pre-alpha. The framework is being extracted from a production system and open-sourced incrementally; APIs will change.

## Why Kristal

Memory is not one thing. A person's timeline, relationships, preferences and habits each need their own shape, lifecycle and retrieval rules. Kristal treats memory as a crystal: every memory type is a **facet**, and all facets grow from the same substrate.

- **Multi-source substrate** — raw inputs (chats, transcripts, media, app events) land as immutable items and are normalized into an observation layer that every facet reads from.
- **Pluggable facets** — add a new memory type by implementing one model and registering it; ingestion, orchestration and consumption stay untouched.
- **Unified consumption** — all facets converge into a single context layer that apps and agents query, with consistent permissions.
- **People & profiles** — a shared person directory (social graph) and user profile, fed by the facets that know about them.
- **Auditable by design** — every memory traces back to its evidence, and every read is ticketed and logged.
- **Cross-app by default** — one user, many apps, one memory, governed by explicit authorization.

## Architecture

```
Items (raw input) ─► Observations / Segments ─► Facets (memory types) ─► Context (consumption)
   multi-source         shared substrate          pluggable                 unified, auditable
                                                      └─► Persons & Profiles
```

## Install

```bash
pip install kristal
```

## License

[MIT](LICENSE)
