Skip to main content

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

Project description

RationaleVault (v1.1.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.

Now in v1.1.0, RationaleVault expands from single-project memories to cross-project organizational intelligence and proactive recommendation loops, giving agents deep structural visibility across your entire development portfolio.

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)
      ↓
Cross-Project Projection (Multi-Repo Blending & Isolation)
      ↓
Organization Graph (IN_CLUSTER & TRANSFER Relationships)
      ↓
Organization Continuation (Cross-Project Activity Level)
      ↓
Recommendation Engine (Drift, Blocker, & Merge Logic)
      ↓
Context Construction (Profile Slot Allocation Blending)
      ↓
Context Evaluation (Completeness & Traceability)
      ↓
Agent Compilers & MCP Server (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 876 tests will execute (862 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, serialize, and check statistics on the derived knowledge projection.
  • rationalevault organization: Multi-project graph topology, lineages, reachability, and cluster analysis.
  • rationalevault recommendation: Generate proactive merge recommendations, blockers, and drift warnings.
  • rationalevault mcp: Start the Model Context Protocol (MCP) server for native LLM agent tool integration.

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.1.0.tar.gz (310.3 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.1.0-py3-none-any.whl (271.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rationalevault-1.1.0.tar.gz
  • Upload date:
  • Size: 310.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rationalevault-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ddca16f8324f19a078384a815dc0d105c3776bf8cfec6739d6cf03fcbfd10211
MD5 3e95e349204f0f9016ea624b88f552a5
BLAKE2b-256 6b85ce2df164360e98feab76ce2146e9ce3b89749d97eb06882401f5e20063d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for rationalevault-1.1.0.tar.gz:

Publisher: publish.yml on NeutronZero/RationaleVault

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: rationalevault-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 271.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rationalevault-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5720e5d187565f49b288bd4e0c4b425683a101e7d01de7ae084dd439958bbdb4
MD5 1dab7b91b685c88433a972c579a9aa3f
BLAKE2b-256 b8ddd593e0781c230d431fb8f8230e7fe159016d8492724f865dc157a2cd83b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for rationalevault-1.1.0-py3-none-any.whl:

Publisher: publish.yml on NeutronZero/RationaleVault

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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