Skip to main content

hummbl-cognition

CI License

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.1 only
  • Consolidator runs periodically via scheduler

Related

Learn more at hummbl.io.

License

MIT.

Metadata

Release files for hummbl-cognition 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hummbl-cognition 0.1.0
File Size Uploaded Provenance
hummbl_cognition-0.1.0.tar.gz 223.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hummbl-cognition 0.1.0
File Interpreter ABI Platform
hummbl_cognition-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 491.0 kB

Release files / hummbl_cognition-0.1.0.tar.gz

Download URL hummbl_cognition-0.1.0.tar.gz
Size 223.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3b1016df04bd20e809c91df06995d56a2e30b54a113c114327098cb6b6d9ba8a
BLAKE2b-256 checksum
How to use checksums
0fe2f5425f8940eefe972b278d6c3e1ae5c0c2623c2e8fbbea113459499eee2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / hummbl_cognition-0.1.0-py3-none-any.whl

Download URL hummbl_cognition-0.1.0-py3-none-any.whl
Size 267.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c172fe8fe82f04490bf1a386c4eda11115267d53fca32f124d8b4b98906721a
BLAKE2b-256 checksum
How to use checksums
0b3c4fd22539e2a0fddca46df8732034ac60c29edc4181ae496303313d89ccca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for hummbl-cognition 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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page