Skip to main content

Minimal deterministic cognitive kernel for traceable and auditable reasoning systems.

Project description

Veramem Kernel

A deterministic cognitive core for recording truth, enforcing invariants, and preserving temporal integrity.

The Veramem Kernel is a minimal, sovereign foundation designed to make factual systems auditable, deterministic, and composable by construction.

It provides a formal substrate for building:

  • trustworthy AI
  • compliant cognitive systems
  • distributed memory infrastructures
  • long-term digital identity and knowledge preservation

CI PyPI version Python versions License Conformance


Why Veramem?

Modern software and AI systems suffer from fundamental weaknesses:

  • mutable state
  • hidden side effects
  • temporal ambiguity
  • unverifiable reasoning
  • weak auditability
  • opaque decision pipelines

These limitations make systems fragile, unsafe, and difficult to trust.

The Veramem Kernel addresses these problems by enforcing:

  • immutable factual recording
  • strict temporal ordering
  • invariant validation at write time
  • deterministic replay and verification
  • traceable signal lineage

It does not try to interpret the world.
It guarantees that what is recorded is stable, ordered, and verifiable.


Core Capabilities

The kernel provides a small and strictly defined set of primitives:

  • Append-only journals — Immutable recording of facts across domains (observations, knowledge, signals, audits, constraints)
  • Monotonic timeline — Single irreversible ordering with fork/reconciliation support
  • Signal lineage — Provenance tracking, signal evolution, conflict resolution
  • Invariant enforcement — Every write validated against formal invariants
  • Deterministic behavior — Same inputs always produce the same outputs (no hidden randomness or side effects)

All operations are pure, auditable, and reproducible.


What the Veramem Kernel is NOT

The kernel is intentionally minimal and incomplete. It does NOT:

  • interpret signals or infer meaning
  • apply business or policy logic
  • resolve priorities or optimize outcomes
  • provide orchestration or workflow engines
  • expose user-facing APIs
  • manage databases or storage
  • trigger external side effects

These responsibilities belong outside the kernel. This strict separation is essential for safety, auditability, and long-term reliability.


Architecture Boundaries

Veramem enforces a strong separation between layers:

  • Kernel (truth layer) — Factual recording, temporal ordering, invariant enforcement, historical integrity
  • Application stack — Projects facts, applies policies, orchestrates workflows, manages storage
  • Reflexive layer — Governed explanations, compliance narratives (never influences kernel state)

Violating these boundaries compromises determinism and trust.


Intended Usage

The Veramem Kernel is designed to be embedded in systems requiring strong guarantees.

Typical use cases:

  • AI memory and cognitive architectures
  • Compliance and governance systems
  • Digital identity and long-term knowledge preservation
  • Distributed coordination and consensus
  • Reproducible research environments
  • Regulated or high-trust infrastructures

Installation

The kernel is published on PyPI:

# Core kernel (minimal, no crypto dependencies)
pip install veramem-kernel

# With Ed25519 support for distributed trust & attestation
pip install veramem-kernel[crypto]

Requires Python 3.10+.


Quick Start

Run a minimal deterministic timeline:

python -m examples.basic_timeline

Explore more examples in the examples/ directory:

  • distributed_timeline.py — Fork, divergence, deterministic merge
  • explainable_ai_backbone.py — Governed explanations & audit trails
  • long_term_memory.py — Epochs, snapshots, long-horizon reconstruction
  • etc... (more than 15 examples)

Core Guarantees

The kernel provides non-negotiable guarantees enforced by construction:

  • Append-only truth
  • Temporal integrity
  • Determinism
  • Invariant safety
  • Reproducibility
  • Auditability
  • Strict separation of concerns
  • Cryptographic integrity (HMAC-SHA256 baseline + Ed25519 via [crypto])

These properties are verified through extensive tests and conformance fixtures (included in the package).


Conformance & Interoperability

Golden fixtures (deterministic test vectors) are included:

  • Attestation (HMAC + Ed25519)
  • Timeline delta, fork, merge, reconcile

Regenerate and verify in CI:

python conformance/generate_fixtures.py
git diff --exit-code conformance/fixtures/

See conformance/ for the full suite.


Open Source Scope

This repository contains only the Veramem Kernel:

  • deterministic core
  • invariant enforcement
  • signal lineage
  • timeline integrity
  • cryptographic primitives
  • formal specifications and models

It does not include storage backends, orchestration layers, deployment systems, or hosted services. License: Apache 2.0


Research & Formal Foundations

Grounded in:

  • formal invariant systems
  • deterministic computation
  • temporal consistency models
  • distributed trust architectures
  • zero-knowledge cognitive design

See protocol/, docs/, and formal/ directories.


Cognitive Foundations

The Veramem Kernel is grounded in the following cognitive and architectural frameworks:

  • ARVIS — Adaptive Resilient Vigilant Intelligence System
  • ZKCS — Zero-Knowledge Cognitive Systems

These define the principles of:

  • reasoning under constraints
  • explicit uncertainty
  • abstention as a valid outcome
  • traceable cognition
  • zero-knowledge architecture

See:

  • docs/research/ARVIS.md
  • docs/research/ZKCS.md

Open Source project for ARVIS :https://github.com/Julien-Lefauconnier/arvis/

Veramem is the operational implementation reposing on this kernel and ARVIS.


Contributing

We welcome contributions from:

  • distributed systems engineers
  • formal methods & cryptography researchers
  • AI safety & governance experts

Please read:

CONTRIBUTING.md MAINTAINERS.md (we welcome new maintainers!) SECURITY.md GOVERNANCE.md

Start with good first issues or help improve conformance tests! The Veramem Kernel is built to outlive any single contributor. Join us in creating a durable foundation for verifiable, trustworthy systems.

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

veramem_kernel-1.2.0.tar.gz (163.3 kB view details)

Uploaded Source

Built Distribution

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

veramem_kernel-1.2.0-py3-none-any.whl (114.7 kB view details)

Uploaded Python 3

File details

Details for the file veramem_kernel-1.2.0.tar.gz.

File metadata

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

File hashes

Hashes for veramem_kernel-1.2.0.tar.gz
Algorithm Hash digest
SHA256 775a54325015ed8d4e559d41cdce5ee006177cb16614b09128b496eeb2c089c5
MD5 057311fdc8f4defbb79d81f0f20a416d
BLAKE2b-256 f8e56f14a7d058cd8c3ca92c63ad822590d09a27d381b8cc386c6026e6f80626

See more details on using hashes here.

Provenance

The following attestation bundles were made for veramem_kernel-1.2.0.tar.gz:

Publisher: release.yml on Julien-Lefauconnier/kernel

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

File details

Details for the file veramem_kernel-1.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for veramem_kernel-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b47d20987d0cf1009dba950577b1fa83db94dd96226f9fd7b692ffcdbf5ebfb9
MD5 98ed3f613bef18b05db011b4e394319b
BLAKE2b-256 37997938916e88e9d810781a91f06f017f292433c9ab1e680ca803385067e706

See more details on using hashes here.

Provenance

The following attestation bundles were made for veramem_kernel-1.2.0-py3-none-any.whl:

Publisher: release.yml on Julien-Lefauconnier/kernel

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