Skip to main content

Epistemic Ledger

A living epistemic ledger: an append-only database where every conclusion carries a fluid certainty score, and new facts automatically trigger re-evaluation of the conclusions — and their dependents — that they affect, instead of any judgment ever being final.

pip install epistemic-ledger

On Linux, macOS, and Windows the install brings a compiled Rust core with it (the chained, signed store below); everywhere else the same package works in pure Python with the functionality noted as core-backed unavailable.

from epistemic_ledger import Ledger

ledger = Ledger("my-ledger")
claim = ledger.assert_claim("the bridge design is safe", 0.60)
fact = ledger.ingest_evidence("load test passed", 0.90)["fact_id"]
ledger.add_support(claim, fact, "evidential", p_given=0.95, p_given_not=0.30)
print(ledger.get_score(claim))  # the score moved; the history kept both

The four properties

  1. Append-only records. Conclusions are never changed or deleted. A correction is a new record that supersedes the old one; the full history of what was believed, and when, stays queryable.
  2. Fluid certainty scores. Every conclusion carries a score that moves as evidence accumulates — today's result is tomorrow's starting point — instead of a one-time yes-or-no verdict.
  3. Dependency-tracked revisits. Each conclusion records why it is held. When a new fact arrives, the change spreads along the dependency graph and re-evaluates exactly the conclusions it touches, plus their dependents.
  4. A trigger discipline. Not every new fact warrants a revisit. A layered rule — dirty-flagging, precise invalidation, then a materiality threshold — decides when recomputation is required.

What is inside

  • An event-sourced, bitemporal store (append-only JSONL event log as the write model, SQLite bitemporal tables as the read model).
  • A revisit loop using Jeffrey conditionalization for uncertain evidence, with an early cutoff and materiality flags.
  • Joint likelihoods (noisy-AND / noisy-OR), Dempster–Shafer belief intervals where ignorance must be explicit, and automatic contradiction detection with entrenchment-ordered resolution.
  • Governance: writer trust tiers, signed verdicts (Ed25519), named graph authority ceilings, and predicate policies — all stored as bitemporal facts in the ledger they govern.
  • The five kill criteria the design set for itself, instrumented from day one (epistemic-ledger kill-metrics <dir>).
  • An offline LLM consolidation pass and caller-owned abstention policies.

The chained store (compiled core)

  • A hash-chained, Ed25519-signed append-only store with RFC 9162 Merkle checkpoints, a single-writer lock, and torn-tail recovery at open — middle damage fails loudly, never silently.
  • Verified writes: every append is read back and checked before it is acknowledged, on both the Rust and Python paths.
  • Anchoring: signed tree heads with inclusion and consistency proofs, plus a pure-Python standalone verifier — a reader with no trust in this package (or in the writer) can check a store's history against a pinned tree head.
  • Tenant partitions and key governance: one chained store per tenant, with key enrollment and revocation recorded in the chain itself and a governed verification mode that rejects records signed outside a key's window.
  • Commitments and erasure: identified payloads stay out of the chain as per-tenant keyed HMAC commitments; an erasure record attests the act while the chain — and its proofs — still verifies in full.
  • Provenance export to W3C PROV (JSON), byte-for-byte deterministic for a given chain.
  • Legacy stores migrate with attestation: the migration is itself the new chain's first record.
  • A read-only query language, a command line, and a stdlib MCP server (12 tools).

Measured on CI runners (yours will differ): sustained appends above 2,000 records/second with per-append fsync and read-back, full-chain verification above 50,000 records/second, and a 1,000,000-record store that opens in about 2 seconds and verifies end to end. A stress program — crash kill-point sweeps, bit-rot sweeps, soak runs, fuzz campaigns, and resource floors — runs on every pull request, nightly, and before each release; its results are reported as what was proven and what was not.

The Python layer is standard library only. The platform wheels add the compiled core; no runtime dependencies either way, and no network at runtime.

Command line

epistemic-ledger demo                      # end-to-end scenario
epistemic-ledger verify path/to/ledger     # integrity check
epistemic-ledger kill-metrics path/to/ledger

Documentation

Full documentation — the framing paper, the design memos, the measured results, and the API reference — is at https://epistemic-ledger.readthedocs.io/ and in the GitHub repository: https://github.com/AXIOVEX/epistemic-ledger

License

The code is under the MIT License (see LICENSE in the repository). The framing paper, design memos, and research documents in docs/ remain all rights reserved, © 2026 Axiovex Systems, LLC (see LICENSE-DOCS.txt in the repository).

Metadata

Release files for epistemic-ledger 0.15.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 epistemic-ledger 0.15.0
File Size Uploaded Provenance Actions
epistemic_ledger-0.15.0.tar.gz 191.1 kB With provenance Details for epistemic_ledger-0.15.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for epistemic-ledger 0.15.0
File Actions
epistemic_ledger-0.15.0-py3-none-any.whl Python 3 none any Details for epistemic_ledger-0.15.0-py3-none-any.whl
epistemic_ledger-0.15.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for epistemic_ledger-0.15.0-cp310-abi3-win_amd64.whl
epistemic_ledger-0.15.0-cp310-abi3-manylinux_2_34_x86_64.whl CPython 3.10 abi3 Linux glibc 2.34+ x86-64 Details for epistemic_ledger-0.15.0-cp310-abi3-manylinux_2_34_x86_64.whl
epistemic_ledger-0.15.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for epistemic_ledger-0.15.0-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 2.2 MB

Release files / epistemic_ledger-0.15.0.tar.gz

Download URL epistemic_ledger-0.15.0.tar.gz
Size 191.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d8f2efd440e6580fb4f701272e65cf6c93b65812c4bffc156b042aa613e644ae
BLAKE2b-256 checksum
How to use checksums
7bb905547c1e360c6e36fff3409c701615173a5e6f3ae4d768cb804309aa8bfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

Release files / epistemic_ledger-0.15.0-py3-none-any.whl

Download URL epistemic_ledger-0.15.0-py3-none-any.whl
Size 75.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7c180ab5e8bfaf6a2b8d5824d303ca4f229f8f199a8a3b427a65b28404cad33
BLAKE2b-256 checksum
How to use checksums
049b22bfac139206316f3f56f2af23c61017cd183bc79c8850fcc5dcc6c9bf5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

Release files / epistemic_ledger-0.15.0-cp310-abi3-win_amd64.whl

Download URL epistemic_ledger-0.15.0-cp310-abi3-win_amd64.whl
Size 575.1 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
21b4fac7659da60cb58a2155e8277ffc9dbd9453ebcd33acd68f1f8df5d4f515
BLAKE2b-256 checksum
How to use checksums
1214581fdfa612fefcd9eadc6bfb40822474fd553427a3d95faea112e9043fe6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

Release files / epistemic_ledger-0.15.0-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL epistemic_ledger-0.15.0-cp310-abi3-manylinux_2_34_x86_64.whl
Size 755.6 kB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
149e1404336ccdaac1fa3124ddac8c4ed113f810704b11e75bc24f8b8667daf8
BLAKE2b-256 checksum
How to use checksums
b3390dd9b09310cd16bc20f33846f42acb3443c5144990a12eb12609665768af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

Release files / epistemic_ledger-0.15.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL epistemic_ledger-0.15.0-cp310-abi3-macosx_11_0_arm64.whl
Size 647.6 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7e84cc1359e7669e2d388c9f59b70d2d3c4a85f9950435b0272a31e6c6dc3407
BLAKE2b-256 checksum
How to use checksums
f765cac4dad9e4913f0174c8122c5a22195cb7a4f7f4ca4bbb8d11b00dbd7b07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

Security for epistemic-ledger 0.15.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 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for epistemic_ledger-0.15.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 Nov 1, 2026.

Transparency log

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.

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