hummbl-cognition
Cognitive Ledger Protocol (CLP) and Open Brain server for HUMMBL agent reasoning.
What this is
The cognition layer for the HUMMBL multi-agent platform. Provides:
- CLP v1.1 (Cognitive Ledger Protocol) — append-only JSONL ledger with SHA-256 hash-chaining for tamper-evident shared memory
- Open Brain — HTTP server with BM25 search and lineage graph API
- Sigil Forge — DSL compiler and execution engine for governed agent rituals
- Belonging/HRSI — belonging baseline checks and HRSI check-in tooling
- Receipt modules — 17 receipt types for audit trails (issueops, dispatcher, compliance, HIBP, etc.)
- Migration tooling — import from bus history, git log, and memory markdown
Architecture
ledger_writer.py → append-only JSONL with O(1) hash-chaining & HMAC verification
query.py → search and retrieve from the ledger
boot_context.py → session startup context loading
server.py → Open Brain HTTP server (:11435) with /lineage graph API
consolidator.py → nightly ledger aggregation
sigil_forge/ → DSL compiler, execution engine, policy, rituals, evals
Installation
pip install hummbl-cognition
# With governance integration (kill switch, security arbiter):
pip install "hummbl-cognition[governance]"
CLI
python -m hummbl_cognition post "insight text here"
python -m hummbl_cognition query "search term"
python -m hummbl_cognition validate
python -m hummbl_cognition state
python -m hummbl_cognition boot
python -m hummbl_cognition search "pattern"
python -m hummbl_cognition reindex
Key Modules
| Module | Role |
|---|---|
ledger_writer.py |
Append-only JSONL with hash-chaining — KRINEIA audit trail |
query.py |
Ledger search with scoring |
boot_context.py |
Loads session context at startup |
server.py |
Open Brain HTTP server — GET /status, POST /search, GET /lineage/{id} |
consolidator.py |
Nightly ledger consolidation |
lattice_advisor.py |
Base120 / Domain120 / BaseN operator recommendations |
belonging_check.py |
BKI belonging baseline checks |
feedback_tracker.py |
Tracks user feedback for learning |
sigil_forge/ |
DSL compiler, execution engine, policy enforcement, rituals |
CLP v1.1 Metadata Extensions
previous_hash: SHA-256 hex digest of the preceding raw ledger JSONL line (cryptographic tamper-evidence)valid_time: ISO 8601 UTC timestamp tracking when a fact occurred in reality (bi-temporal support)contests: Target entry ID being disputed/refuted (explicit belief-DAG support)
State Files
_state/cognition/ledger.jsonl— the canonical append-only ledger_state/cognition/state.json— current cognitive state_state/cognition/intent.md— current sprint intent
Dependencies
- Required:
hummbl-bus(bus writer for coordination messages) - Optional:
hummbl-governance(kill switch, security arbiter — install with[governance]extra) - Stdlib-only core — no other third-party runtime dependencies
Rules
- Ledger is APPEND-ONLY — never delete, never mutate entries
- Open Brain server binds
127.0.0.1only - Consolidator runs periodically via scheduler
Related
- hummbl-bus — coordination bus
- hummbl-governance — governance primitives
- hummbl-skills — agent skills registry
- hummbl-agent — governed control plane
Learn more at hummbl.io.
License
MIT.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hummbl_cognition-0.1.0.tar.gz
(223.6 kB
view details)
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 hummbl_cognition-0.1.0.tar.gz.
File metadata
- Download URL: hummbl_cognition-0.1.0.tar.gz
- Upload date:
- Size: 223.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b1016df04bd20e809c91df06995d56a2e30b54a113c114327098cb6b6d9ba8a
|
|
| MD5 |
280fcbdfa03d6572ff2d73102d0d158a
|
|
| BLAKE2b-256 |
0fe2f5425f8940eefe972b278d6c3e1ae5c0c2623c2e8fbbea113459499eee2c
|
File details
Details for the file hummbl_cognition-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hummbl_cognition-0.1.0-py3-none-any.whl
- Upload date:
- Size: 267.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c172fe8fe82f04490bf1a386c4eda11115267d53fca32f124d8b4b98906721a
|
|
| MD5 |
fb0fac02002404931ff5f34feb256a76
|
|
| BLAKE2b-256 |
0b3c4fd22539e2a0fddca46df8732034ac60c29edc4181ae496303313d89ccca
|