Skip to main content

ArkHive — the tamper-evident memory ledger

One file. Zero dependencies. Nothing leaves the box.

ArkHive is a self-contained, hash-chained memory ledger for AI agents: SQLite + SHA-256, ~95 lines of Python. Identities ("souls") are born once and bound immutably; every memory block chains to the previous one, so any tampering is provable.

pip install arkhive-ledger
import arkhive

me = arkhive.birth("scout", {"laws": ["do no harm"]})
arkhive.remember(me["soul_id"], "OBSERVED", {"what": "first light"})

arkhive.recall(me["soul_id"])   # last blocks for this soul
arkhive.verify()                # {"tamper_evident": True, "verdict": "INTACT — ..."}

# deterministic veto rules — no LLM in the loop
arkhive.govern("send_email", flags=["untrusted_input"],
               rules=[{"trigger": "untrusted_input", "action": "block"}])

Why

  • Tamper-evident — every block's hash covers the previous block's hash. verify() walks the whole chain and reports any broken link.
  • Identity is earned — remember() refuses actors that were never birth()-ed.
  • Local-first — one SQLite file (~/.arkhive/chain.db, override with ARKHIVE_DB). No network, no telemetry, no accounts.
  • Governance — govern() applies deterministic trigger→veto rules.

The bigger picture

This ledger is the open core of ArkHive by ZagAIrot Technologies — governed, tamper-evident memory for AI agents (MCP server, REST API, and the #HumaneIntelligence movement). See the repository and dondatabrain.com.

License

Apache-2.0

Metadata

Release files for arkhive-ledger 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 arkhive-ledger 0.1.0
File Size Uploaded
arkhive_ledger-0.1.0.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arkhive-ledger 0.1.0
File Interpreter ABI Platform
arkhive_ledger-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / arkhive_ledger-0.1.0.tar.gz

Download URL arkhive_ledger-0.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
111e381858d3122a8eb900c6255dec4e6508919f1b3b554cf957791927e484fd
BLAKE2b-256 checksum
How to use checksums
2015738347161360d6c96c12cc6127e99f8f50f10086b8ef712503c443071b4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

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

Download URL arkhive_ledger-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69a5bb7a5a256b81357daaf9c2e14a4c50d618db97f4e20545a6685e0807db93
BLAKE2b-256 checksum
How to use checksums
c70e9274487a664a6ac13a16b0f62c93cff1cf1467062fb6426ba11c01810e70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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