hummbl-clp
CLP: Cognitive Ledger Protocol -- Shared memory and knowledge compilation for multi-agent coordination.
Tier: 1 — Stdlib Core + Optional Extras. Core ledger, query, and index are stdlib-only. The [bus] extra adds hummbl-bus integration.
What This Is
CLP provides persistent, queryable shared memory for AI agent fleets. Agents write observations, decisions, and learnings to an append-only JSONL ledger. A BM25 inverted index enables fast retrieval across five memory pools. Zettelkasten-style links connect related entries.
Extraction status: MODERATE REFACTORING -- Core ledger logic (13 of 23 files) is self-contained and stdlib-only. Retrieval, consolidation, and boot context modules have founder-mode coupling that needs decoupling.
Core Components (extractable now)
| Module | Purpose |
|---|---|
ledger_writer.py |
Append-only JSONL with content hashing and optimistic locking |
query.py |
Query engine (by agent, type, scope, tags, time range) |
state_manager.py |
Shared state with version-based optimistic concurrency |
schema_validator.py |
Stdlib-only JSON Schema validator (Draft 2020-12 subset) |
models.py |
Data models (LedgerEntry with Zettelkasten-style links, SharedState) |
indexer.py |
BM25 inverted term index (stdlib-only) |
verified_writer.py |
Schema-validated writes |
scoring_lenses.py |
Multi-lens scoring for retrieval ranking |
working_memory.py |
Session-scoped working memory |
Coupled Components (need refactoring)
| Module | Coupling | Extraction Path |
|---|---|---|
retriever.py |
Pulls from 5 memory pools (bus, briefings, findings, MEMORY.md) | Abstract pool interface |
consolidator.py |
Uses Ollama for synthesis via services pattern | Make model backend pluggable |
boot_context.py |
References founder_mode service registration | Decouple to config-driven boot |
startup_context.py |
Similar to boot_context | Same approach |
migration.py |
Imports from bus history and git | Make source adapters pluggable |
feedback_tracker.py |
Retrieval logging for stigmergic ranking | Standalone with interface |
Structure
docs/ # Placeholder for extracted protocol/reference docs
examples/ # Placeholder for runnable examples
src/hummbl_clp/core/ # Extractable core (ledger, query, state, schema, index)
src/hummbl_clp/extensions/
# Coupled founder-mode adapters pending decoupling
tests/ # Placeholder for extracted test coverage
tools/ # Repo-local validation tooling
Validation
Run the repository baseline validator before opening a pull request:
C:\Users\Owner\bin\python.cmd tools\validate_repo.py
Gitea CI runs the same command on pull requests and pushes to master.
License
MIT
Metadata
Release files for hummbl-clp 0.1.0
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 | |
|---|---|---|---|---|
| hummbl_clp-0.1.0.tar.gz | 94.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hummbl_clp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 190.2 kB
Release files / hummbl_clp-0.1.0.tar.gz
| Download URL | hummbl_clp-0.1.0.tar.gz |
|---|---|
| Size | 94.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17f79a9597b3f025191e6c0d002f60d65d549b0d3808985989f0935ac69611eb
|
|
BLAKE2b-256 checksum How to use checksums |
fcd7fb0d2ba3d6d2df1702200794d37080a205f69248e8d4367441a4a5a111ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logRelease files / hummbl_clp-0.1.0-py3-none-any.whl
| Download URL | hummbl_clp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 95.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4cf974511278a2b0fe0181d2d2232d6520f6bf07894a0fb24c60fb7f8244650
|
|
BLAKE2b-256 checksum How to use checksums |
29abdae4f7d41396b94b3d397f00b529c63529e2e50dc0ecc0236a2019033e34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logSecurity for hummbl-clp 0.1.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for hummbl_clp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logA 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.