Skip to main content

Alethic: a governed cognitive substrate for AI systems

Project description

Alethic

A governed cognitive substrate for AI systems.

DOI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alethic_kernel-0.3.0.tar.gz (164.2 kB view details)

Uploaded Source

Built Distribution

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

alethic_kernel-0.3.0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

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

Hashes for alethic_kernel-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b0c02fef21665c70826ccd65185ef84fd8de1aea5661be6086fd5f3a2b665f17
MD5 b2bfb4a282dbcaed6fcbb419e8c38693
BLAKE2b-256 219330fd047c60ebd4174fb2a0ec89df4a3b95b51f42f32f25c9e01a533fce7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for alethic_kernel-0.3.0.tar.gz:

Publisher: publish.yml on emiluzelac/alethic

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

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

Hashes for alethic_kernel-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40562aa9789163506c7bc2426b0e4e4217993cd4e91c8cc21c57fdf71cc7ed3a
MD5 0293d06d802a66d88d80f982ad981915
BLAKE2b-256 04d7a2bd4325759e24d76d461c6ca2628178fbff9ee681bc47c12bff721746e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for alethic_kernel-0.3.0-py3-none-any.whl:

Publisher: publish.yml on emiluzelac/alethic

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