Skip to main content

RationaleVault — Event-sourced cognitive continuity and memory layer for multi-agent AI workflows

Project description

RationaleVault (v1.0.0)

Event-sourced cognitive continuity and memory layer for multi-agent AI workflows.

RationaleVault enables any AI agent — Claude, OpenCode, ChatGPT, Cursor, Copilot — to resume work on a project with full context continuity, within 30 seconds, without manual summarization.


Why RationaleVault Exists

LLM agents lose context. As projects evolve over weeks or months, they accumulate decisions, lessons, failures, architectural constraints, and rationale. Standard RAG tools and vector databases fail to preserve these because they lack structural temporal order, resulting in context drift, memory duplication, and decision degradation.

RationaleVault provides an event-sourced cognitive continuity layer. By treating events as the immutable source of truth and compiling memory, knowledge, and graphs as deterministic projections, RationaleVault ensures agents can reconstruct state and continue work with zero cognitive loss.

What RationaleVault Is Not

To understand RationaleVault, it is helpful to clarify what it is not:

  • Not a vector database: RationaleVault uses structured keyword, domain, and profile-based slot allocation for deterministic context compilation.
  • Not a graph database: The knowledge graph in RationaleVault is a derived view (a projection), not a storage database.
  • Not a workflow engine: RationaleVault does not execute agent loops or handle tasks; it provides cognitive memory infrastructure.
  • Not an agent framework: RationaleVault is agent-agnostic and interfaces via standardized compiler adapters.
  • Not a memory database: RationaleVault is event-sourced; the immutable event ledger is the sole source of truth.

Architecture Flow

Every layer of RationaleVault has an implementation, evaluation metrics, and validation exit gates.

Events (Ledger)
      ↓
Memory Extraction (Provenance / Deduplication)
      ↓
Memory Intelligence (Reference Counts / Recency)
      ↓
Retrieval Intelligence (Ranking & Keywords)
      ↓
Knowledge Synthesis (Synthesized Facts & Contradictions)
      ↓
Knowledge Evaluation (Density & Precision Gates)
      ↓
Knowledge Graph Projection (Nodes & Edge Integrity)
      ↓
Context Construction (Profile Slot Allocation Blending)
      ↓
Context Evaluation (Completeness & Traceability)
      ↓
Agent Compilers (Prompt Serialization / Adapters)
      ↓
Continuity Validation (Handoff Integrity Verification)

Quick Start

1. Install RationaleVault

Install the package directly from PyPI:

pip install rationalevault

Or for development / running from source:

pip install -e ".[dev]"

2. Initialize a Project

Initialize RationaleVault in your current project workspace:

rationalevault init

This bootstraps the local configuration and state tracking directory (.rationalevault/).

3. Verify Installation

Run the system diagnostics tool to verify that the databases, compiler registry, and projection chains are fully functional:

rationalevault doctor

4. Run the Unified Evaluation Suite

Execute the full evaluation pipeline, verifying all layers of the cognitive continuity loop (Memory, Knowledge, Context, Compilers, Continuity, Graph, and Examples):

rationalevault evaluate

This writes a machine-readable snapshot to .rationalevault/reports/release_manifest.json and a human-readable summary to .rationalevault/reports/report.md.

5. Run Tests

For developers running from source:

pytest

All 283 tests will execute (269 pass; 14 require a live PostgreSQL database and are skipped by default).


CLI Reference

RationaleVault provides a unified command-line toolset for inspecting and managing the cognitive ledger and projections:

  • rationalevault init: Initialize RationaleVault configs and adapters in the current directory.
  • rationalevault doctor: Run active diagnostics checks on storage, thresholds, registry, and projection chains.
  • rationalevault evaluate: Run the self-verifying exit-gate evaluation suite across all subsystems.
  • rationalevault memory: Query and manage the memory layer.
  • rationalevault knowledge: Inspect synthesized project invariants, rules, and architecture guidelines.
  • rationalevault context: Compile queries into formatted context packages ready for agent consumption.
  • rationalevault graph: Build, serialization (Mermaid, GraphML), and check statistics on the derived knowledge projection.

Design Principles

  • Ledger Invariance: The immutable event sequence is the only authoritative source of truth.
  • Determinism: Identical event streams project to identical memory, knowledge, and graph states.
  • Provenance Traceability: Every context citation carries strict lineage back to the originating event IDs.
  • Zero-Dependency Core: Standard configuration runs local-first on SQLite with zero external database setup.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rationalevault-1.0.1.tar.gz (188.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rationalevault-1.0.1-py3-none-any.whl (172.3 kB view details)

Uploaded Python 3

File details

Details for the file rationalevault-1.0.1.tar.gz.

File metadata

  • Download URL: rationalevault-1.0.1.tar.gz
  • Upload date:
  • Size: 188.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5rc1

File hashes

Hashes for rationalevault-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fd18ab31aa800acd839ab0925d128af18d0c9a232e348e880f19a74651c30b16
MD5 26ffff92ece25b6d6e0ac57d8d921e65
BLAKE2b-256 db0e99b482c332bb022ee0e705efa4a14b0ef424c86ee649432233548fa6efb7

See more details on using hashes here.

File details

Details for the file rationalevault-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: rationalevault-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 172.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5rc1

File hashes

Hashes for rationalevault-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 338fdf53664d47477d24a2f63a01a0f1f3b9a32c22f7dc7fd209c5afa4991f69
MD5 66a84597d4b069204ace9f48de58a837
BLAKE2b-256 42ee3594b1ccd8895f1d1ade1d58890466a439b03c407ab8d7659b3affeca657

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page