Alethic: a governed cognitive substrate for AI systems
Project description
Alethic
A governed cognitive substrate for AI systems.
Models propose. Alethic decides what may enter state and what may become action.
Alethic places a small, enforceable kernel between reasoning components and external effects. It maintains typed state, links beliefs to evidence, applies declarative constraints, and records why each proposal was committed or invalidated. The kernel contains no model, prompt, tool, task, or domain logic.
Install
The Python distribution is named alethic-kernel; its single import namespace
is alethic.
pip install alethic-kernel
Use
from alethic import Kernel
kernel = Kernel()
trace = "episode-001"
kernel.write(
"tool",
"percepts",
"COMMIT",
"observation",
{"value": 42, "stale": False, "conflict": False},
trace,
confidence=0.9,
)
proposal = kernel.write(
"planner",
"beliefs",
"PROPOSE",
"threshold_reached",
{"value": True, "depends_on": ["observation"]},
trace,
input_refs=["observation"],
)
committed, reason = kernel.commit_belief_from_proposal(proposal.id, trace)
print(committed, reason)
Every worker can propose. Only the kernel can commit. State lives in seven semantic slots: percepts, beliefs, constraints, plans, evidence, predictions, and actions.
What belongs here
This repository contains only the domain-neutral Alethic substrate:
- the governed blackboard kernel and typed record schema;
- evidence, confidence, conflict, constraint, and prediction validation;
- in-memory and SQLite stores;
- worker orchestration, sessions, simulation, and adaptive constraints;
- tests, architectural documentation, and a domain-neutral example.
The controlled study, results, and verification artifacts live separately in governed-cognition.
Documentation
Source layout
The repository name is Alethic exactly once. Setuptools maps src/ directly to
the installed alethic namespace.
src/
__init__.py
kernel.py
schema.py
permissions.py
validators.py
store.py
sqlite_store.py
worker.py
orchestrator.py
session.py
sim_worker.py
adaptive_worker.py
Development
python -m pip install -e ".[dev]"
pytest
mypy --strict src
License
MIT © Emil Uzelac
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 alethic_kernel-0.3.0.tar.gz.
File metadata
- Download URL: alethic_kernel-0.3.0.tar.gz
- Upload date:
- Size: 164.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0c02fef21665c70826ccd65185ef84fd8de1aea5661be6086fd5f3a2b665f17
|
|
| MD5 |
b2bfb4a282dbcaed6fcbb419e8c38693
|
|
| BLAKE2b-256 |
219330fd047c60ebd4174fb2a0ec89df4a3b95b51f42f32f25c9e01a533fce7d
|
Provenance
The following attestation bundles were made for alethic_kernel-0.3.0.tar.gz:
Publisher:
publish.yml on emiluzelac/alethic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
alethic_kernel-0.3.0.tar.gz -
Subject digest:
b0c02fef21665c70826ccd65185ef84fd8de1aea5661be6086fd5f3a2b665f17 - Sigstore transparency entry: 2194937214
- Sigstore integration time:
-
Permalink:
emiluzelac/alethic@66ec5768534610342043eac4700542703d049185 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/emiluzelac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@66ec5768534610342043eac4700542703d049185 -
Trigger Event:
push
-
Statement type:
File details
Details for the file alethic_kernel-0.3.0-py3-none-any.whl.
File metadata
- Download URL: alethic_kernel-0.3.0-py3-none-any.whl
- Upload date:
- Size: 22.2 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 |
40562aa9789163506c7bc2426b0e4e4217993cd4e91c8cc21c57fdf71cc7ed3a
|
|
| MD5 |
0293d06d802a66d88d80f982ad981915
|
|
| BLAKE2b-256 |
04d7a2bd4325759e24d76d461c6ca2628178fbff9ee681bc47c12bff721746e2
|
Provenance
The following attestation bundles were made for alethic_kernel-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on emiluzelac/alethic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
alethic_kernel-0.3.0-py3-none-any.whl -
Subject digest:
40562aa9789163506c7bc2426b0e4e4217993cd4e91c8cc21c57fdf71cc7ed3a - Sigstore transparency entry: 2194937228
- Sigstore integration time:
-
Permalink:
emiluzelac/alethic@66ec5768534610342043eac4700542703d049185 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/emiluzelac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@66ec5768534610342043eac4700542703d049185 -
Trigger Event:
push
-
Statement type: