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.16.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.16.0
File Size Uploaded Provenance Actions
epistemic_ledger-0.16.0.tar.gz 218.5 kB With provenance Details for epistemic_ledger-0.16.0.tar.gz

Built distributions (wheels)

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

Total release size: 2.3 MB

Release files / epistemic_ledger-0.16.0.tar.gz

Download URL epistemic_ledger-0.16.0.tar.gz
Size 218.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9d386eb76aafdb44e74af26277eb9990ffd742582faa039e2bc50fd7b158048d
BLAKE2b-256 checksum
How to use checksums
9a4e8cebfa909ab988ed85426e7b900e26749c040e32c8dc88945a920129713a
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 19, 2026.

Transparency log

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

Download URL epistemic_ledger-0.16.0-py3-none-any.whl
Size 77.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbe8b1d031afc976ee835d7c0b8461ade95bf80a70ddfb928a1133c486acf296
BLAKE2b-256 checksum
How to use checksums
5a22cfe2a159cf10d403ea339de850f355d8eafe1e340fb17d715464c0c2d612
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 19, 2026.

Transparency log

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

Download URL epistemic_ledger-0.16.0-cp310-abi3-win_amd64.whl
Size 578.8 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
dbf069ce57dd37d6364a6ff04278d1b3437a0d8001441452010e532ef1872543
BLAKE2b-256 checksum
How to use checksums
b4ed2436f5dcee1934c4f569927eb56432a5c5c799557de2048c651948962df1
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 19, 2026.

Transparency log

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

Download URL epistemic_ledger-0.16.0-cp310-abi3-manylinux_2_34_x86_64.whl
Size 760.0 kB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
0107f5b40c4b75421ae0dbb086e70d32a95e7039072a3774408e305c6cd3da1f
BLAKE2b-256 checksum
How to use checksums
4746e37320972b0259dd8da7b0222f19c782e1b0142354da3040c3a42690122c
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 19, 2026.

Transparency log

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

Download URL epistemic_ledger-0.16.0-cp310-abi3-macosx_11_0_arm64.whl
Size 650.0 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
838d01b58720d473a7e98c63e26b0851c4bfdaae8127b6d084600d9d1dbed0e2
BLAKE2b-256 checksum
How to use checksums
9d4ca764ce68d8f32203f089a85402f25fba8cfcb2d4b8f3a58f6088e0f81605
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 19, 2026.

Transparency log

Security for epistemic-ledger 0.16.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.16.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 19, 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