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


⚠️ Maintainers Wanted — Project Handover

I am actively looking to hand over the Veramem Kernel.

The kernel is stable, deterministic, published on PyPI, and has a strong technical foundation.
However, I no longer have the time and energy to fully grow and maintain it.

🎯 Handover goals

  • Find one primary maintainer (ownership transfer)
  • Or 2–3 active co-maintainers
  • Or encourage serious forks aligned with the core philosophy:
    • append-only truth layer
    • strict invariants
    • deterministic behavior
    • safety-first design

📌 More details about governance, vision, and expectations:
→ See MAINTAINERS.md

📩 Interested?
Open an issue with the label maintainership or contact me directly.

The project remains under Apache 2.0 — anyone is free to fork, adapt, and build on it.

The long-term goal is for Veramem to become a community-driven open standard.


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

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.1.7.tar.gz (160.8 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.1.7-py3-none-any.whl (111.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for veramem_kernel-1.1.7.tar.gz
Algorithm Hash digest
SHA256 81aba8a6cdaece5d2523b23874b5737d126532efef11593df5c3523da6bdee9f
MD5 7eeacd2435e38eb45011c2358afb6c9d
BLAKE2b-256 d7325b4244cf2f87a458cc5a79b5c1b43dbc2a456545d1e64aa4d737cca423c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for veramem_kernel-1.1.7.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.1.7-py3-none-any.whl.

File metadata

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

File hashes

Hashes for veramem_kernel-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0cae477a3b4988749dab17a38d9067d49fe650c76dfa889f10c51ca1f32442fb
MD5 a242aab04aba9967a8aea001eac83f96
BLAKE2b-256 f03cd85f1f037ef77f9643a98add9b65aa31a50d020aa4709d68031ea56fe74f

See more details on using hashes here.

Provenance

The following attestation bundles were made for veramem_kernel-1.1.7-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