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
- 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.
- 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.
- 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.
- 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.14.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 | Actions |
|---|---|---|---|---|
| epistemic_ledger-0.14.0.tar.gz | 180.5 kB | With provenance | Details for epistemic_ledger-0.14.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| epistemic_ledger-0.14.0-py3-none-any.whl | Python 3 | none | any | Details for epistemic_ledger-0.14.0-py3-none-any.whl |
| epistemic_ledger-0.14.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for epistemic_ledger-0.14.0-cp310-abi3-win_amd64.whl |
| epistemic_ledger-0.14.0-cp310-abi3-manylinux_2_34_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.34+ x86-64 | Details for epistemic_ledger-0.14.0-cp310-abi3-manylinux_2_34_x86_64.whl |
| epistemic_ledger-0.14.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for epistemic_ledger-0.14.0-cp310-abi3-macosx_11_0_arm64.whl |
Total release size: 2.2 MB
Release files / epistemic_ledger-0.14.0.tar.gz
| Download URL | epistemic_ledger-0.14.0.tar.gz |
|---|---|
| Size | 180.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9399831da14d9287317c40455a27a9a12f18f9124891336cf40965818b906441
|
|
BLAKE2b-256 checksum How to use checksums |
f92ecef2031aa2baaf8077ac41b94f4ce986c195ad8e1a3688805717523b645f
|
| 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 Oct 31, 2026.
Transparency logRelease files / epistemic_ledger-0.14.0-py3-none-any.whl
| Download URL | epistemic_ledger-0.14.0-py3-none-any.whl |
|---|---|
| Size | 70.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1c94f37c2d77cb02b5d22f2a0cbec8cf5f32e3b9d4b743561732a755d978564
|
|
BLAKE2b-256 checksum How to use checksums |
21c4404c8aba3ed10525d37d5c7bee57f98d0ef24312e7b67a49e616a98595cf
|
| 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 Oct 31, 2026.
Transparency logRelease files / epistemic_ledger-0.14.0-cp310-abi3-win_amd64.whl
| Download URL | epistemic_ledger-0.14.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 570.9 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0ecea286f63cd5bd413068112f3f4e7cd8497a3c665cd889e8f62bf2915ba52c
|
|
BLAKE2b-256 checksum How to use checksums |
e409880e18ca7e9745c93cbd1ea252bc7dde34406fb68bd0b5c14ff680618753
|
| 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 Oct 31, 2026.
Transparency logRelease files / epistemic_ledger-0.14.0-cp310-abi3-manylinux_2_34_x86_64.whl
| Download URL | epistemic_ledger-0.14.0-cp310-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 750.7 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
279c82fa35ca727ac03060a52a8ba288764368d2bfb8993465c1930f1e45cf06
|
|
BLAKE2b-256 checksum How to use checksums |
bed23eadb0d7ea0b23d0e933b3bc4a425250db2518ea803b3fd441d0fb978619
|
| 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 Oct 31, 2026.
Transparency logRelease files / epistemic_ledger-0.14.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | epistemic_ledger-0.14.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 642.7 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
09337f53c3bef86c03f140fc5dbe948aafedb3763560905fe2c00c28d92beab1
|
|
BLAKE2b-256 checksum How to use checksums |
17f6b48210645ea771cef30e2580294489dd9722256e531ace32c7a59532351c
|
| 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 Oct 31, 2026.
Transparency logSecurity for epistemic-ledger 0.14.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.
Attestation for epistemic_ledger-0.14.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 Oct 31, 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.