amkb — Python SDK for the Agent-Managed Knowledge Base protocol
🚧 Not yet usable. This
0.0.xrelease exists only to reserve the name on PyPI while the protocol settles. The first usable release will be0.1.0, gated on a real reference implementation (Spikuit adapter) passing the full conformance suite. Until then, the public API may change without notice and there is no install story worth recommending. Track progress at amkb-spec and amkb-sdk.
amkb is a backend-agnostic Python SDK for the AMKB protocol. It
provides the types, error catalog, filter algebra, Store protocol,
and a reusable conformance suite. It intentionally ships no storage
backend: SQLite, Chroma, Postgres, an in-memory dict, or a custom
engine are all equally valid implementations of the protocol.
The package consists of:
- Core types (
amkb.types) —Node,Edge,Actor,Transaction,ChangeSet,Event, plus reserved kind / layer / rel constants. - Canonical errors (
amkb.errors) — 22 error codes in 5 categories, as a typed exception hierarchy. - Filter algebra (
amkb.filters) —Eq/In/Range/And/Or/Not, JSON-serializable via msgspec tags. - Store protocol (
amkb.store) —StoreandTransactionastyping.Protocoltypes. Implementations satisfy them structurally, without inheritance. - Conformance suite (
amkb.conformance) — pytest functions mirroring the test matrix at amkb-spec/conformance/. Any implementation can exercise the suite by providing astorefixture and runningpytest --pyargs amkb.conformance.
Relationship to Spikuit
Spikuit is a neural learning
graph and will be the first real consumer of amkb. Spikuit features
such as FSRS scheduling, APPNP propagation, and pressure dynamics live
on top of the AMKB protocol, not inside it. A future
spikuit.amkb_adapter module will expose Spikuit's internal state as
an amkb.Store without changing Spikuit's own vocabulary.
Install
pip install amkb # types, errors, filters, protocol
pip install amkb[test] # + conformance suite deps (pytest)
amkb has one runtime dependency: msgspec.
Reading order
- amkb-spec — the normative protocol (authoritative).
src/amkb/types.py— data shapes.src/amkb/errors.py— the 22 canonical codes.src/amkb/filters.py— the filter algebra.src/amkb/store.py— theStoreandTransactionprotocols.src/amkb/conformance/— the executable test matrix.
Implementing a Store
Any class whose shape matches the Store protocol is a valid AMKB
store. A minimal dict-backed implementation used as an executable
reference for the conformance suite lives in tests/impls/dict_store.py
— it is intentionally kept in tests rather than shipped as part of
the package, to reinforce that the SDK itself is backend-agnostic.
License
Apache-2.0. See LICENSE.
Metadata
Release files for amkb 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| amkb-0.0.1.tar.gz | 28.3 kB | Without provenance | Details for amkb-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amkb-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for amkb-0.0.1-py3-none-any.whl |
Total release size: 55.9 kB
Release files / amkb-0.0.1.tar.gz
| Download URL | amkb-0.0.1.tar.gz |
|---|---|
| Size | 28.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e6a2b346beb64b87c7b82492494cb57f354c6f1129abf06926c30077fdc92b3
|
|
BLAKE2b-256 checksum How to use checksums |
b25577089cc5eb50a776f994087493df0d8d834a439d633ccc959e84c684f210
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Release files / amkb-0.0.1-py3-none-any.whl
| Download URL | amkb-0.0.1-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0744e60fe6401636a4ea5f9a6ab7e6c8df0b4e593866c68f9e83effb7c4e733
|
|
BLAKE2b-256 checksum How to use checksums |
bd9c474284047623685e84f70b7e8f9161d6765b92b7746f8b12911aeaf0a506
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.4
|
Security for amkb 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.