This release is a pre-release and may not be stable for production use.
reasonledger-core
Framework-free domain logic for ReasonLedger — the audit-critical heart shared by the CLI and the MCP server.
This is a library. Most people want reasonledger
(the CLI) instead; install this directly only if you are building your own surface on top
of the same domain model.
What's in it
| Area | What it does |
|---|---|
decisions |
The Decision record format — frontmatter parse/write, round-trip, on-disk layout |
importer |
Bring-your-own-model extraction, propose-and-confirm staging, connection probe |
reasoning |
why resolution, conflict detection, staleness watchers, pluggable embeddings |
views |
build_ledger_view — a read-only projection of a repo's .reasonledger/ state |
policy |
Policy evaluation for CI gates |
privacy |
The PII linter |
provenance |
AI-authorship signals read from commit metadata |
No web framework, no ORM session, and no I/O beyond the files it is pointed at — so the same implementation backs every surface rather than being reimplemented per app.
Design properties worth knowing
- Secrets are structurally excluded.
ExtractorConfighas no field capable of holding a raw API key — only the name of the environment variable that supplies one. - Views never write.
build_ledger_viewre-evaluates watcher conditions on read; it cannot modify a decision file. - Deterministic by default. Embeddings resolve to a deterministic stub unless the local model is enabled, so tests and CI need no network and no model. Embeddings never use the network.
Requirements
Python 3.12+.
# --pre: every release is a pre-release for now, and pip skips those unless told otherwise
pip install --pre reasonledger-core
pip install --pre "reasonledger-core[embeddings]" # real embeddings via fastembed
Metadata
Release files for reasonledger-core 0.3.0a6
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 |
|---|---|---|---|---|
| reasonledger_core-0.3.0a6.tar.gz | 236.2 kB | Without provenance | Details for reasonledger_core-0.3.0a6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reasonledger_core-0.3.0a6-py3-none-any.whl | Python 3 | none | any | Details for reasonledger_core-0.3.0a6-py3-none-any.whl |
Total release size: 449.1 kB
Release files / reasonledger_core-0.3.0a6.tar.gz
| Download URL | reasonledger_core-0.3.0a6.tar.gz |
|---|---|
| Size | 236.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60b39fe4a185f0a9d932b9bbc7c644cc15c3e626fe812249b4de13458e99b8d7
|
|
BLAKE2b-256 checksum How to use checksums |
75a578acff9dc275a4eee7c4b5f439f3c99cf6ca92d8edc10d545c1c7b278d2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / reasonledger_core-0.3.0a6-py3-none-any.whl
| Download URL | reasonledger_core-0.3.0a6-py3-none-any.whl |
|---|---|
| Size | 212.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0acf7810fe910492e3c3985a87d13e9e68a4931c3674036c069b379bff8a4f7e
|
|
BLAKE2b-256 checksum How to use checksums |
b34f96d9fe73ccc1fd6602a04e35916c90e871190e699afba18710e4aff6d09f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for reasonledger-core 0.3.0a6
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.