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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
775a54325015ed8d4e559d41cdce5ee006177cb16614b09128b496eeb2c089c5
|
|
| MD5 |
057311fdc8f4defbb79d81f0f20a416d
|
|
| BLAKE2b-256 |
f8e56f14a7d058cd8c3ca92c63ad822590d09a27d381b8cc386c6026e6f80626
|
Provenance
The following attestation bundles were made for veramem_kernel-1.2.0.tar.gz:
Publisher:
release.yml on Julien-Lefauconnier/kernel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
veramem_kernel-1.2.0.tar.gz -
Subject digest:
775a54325015ed8d4e559d41cdce5ee006177cb16614b09128b496eeb2c089c5 - Sigstore transparency entry: 1316971983
- Sigstore integration time:
-
Permalink:
Julien-Lefauconnier/kernel@6246e0a46a073ee309b94a36ecca26fc24eab35c -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/Julien-Lefauconnier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6246e0a46a073ee309b94a36ecca26fc24eab35c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b47d20987d0cf1009dba950577b1fa83db94dd96226f9fd7b692ffcdbf5ebfb9
|
|
| MD5 |
98ed3f613bef18b05db011b4e394319b
|
|
| BLAKE2b-256 |
37997938916e88e9d810781a91f06f017f292433c9ab1e680ca803385067e706
|
Provenance
The following attestation bundles were made for veramem_kernel-1.2.0-py3-none-any.whl:
Publisher:
release.yml on Julien-Lefauconnier/kernel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
veramem_kernel-1.2.0-py3-none-any.whl -
Subject digest:
b47d20987d0cf1009dba950577b1fa83db94dd96226f9fd7b692ffcdbf5ebfb9 - Sigstore transparency entry: 1316971987
- Sigstore integration time:
-
Permalink:
Julien-Lefauconnier/kernel@6246e0a46a073ee309b94a36ecca26fc24eab35c -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/Julien-Lefauconnier
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6246e0a46a073ee309b94a36ecca26fc24eab35c -
Trigger Event:
push
-
Statement type: