algovoi-keystone-langchain
Carry an AlgoVoi keystone decision into a LangChain run trace. The decision's content-addressed
execution_ref rides along as run metadata and a tag, under the vendor namespace
algovoi.keystone.* (never inside a LangChain reserved field). Anyone reading the trace recomputes
execution_ref from the run metadata alone with only JCS (RFC 8785) and SHA-256, and confirms the
agent's recorded action is consistent with the decision that authorized it. The reference is bound
to the decision, not merely correlated with a run.
from algovoi_keystone_langchain import keystone_config, verify_trace_execution_ref
# attach the keystone reference to a LangChain run
result = chain.invoke(
user_input,
config=keystone_config(
decision_ref="sha256:2a444c62...", # the pre-payment decision (from the keystone)
action_type="payment", scope="bilateral",
outcome="COMMITTED", executed_at_ms=1716460800000,
),
)
The run's metadata now carries algovoi.keystone.execution_ref and the keystone preimage fields, so
LangSmith (or any tracer) shows a recomputable reference. Verify it offline from the metadata:
verify_trace_execution_ref(run.metadata) # True iff execution_ref recomputes
keystone_trace_metadata(...) returns the framework-neutral attribute dict if you want to attach it
yourself; make_callback_handler(...) builds a LangChain callback handler (needs the langchain
extra) carrying the same metadata. Python and TypeScript (@algovoi/keystone-langchain) produce the
same execution_ref byte for byte. Apache-2.0.
Metadata
Release files for algovoi-keystone-langchain 0.5.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 |
|---|---|---|---|---|
| algovoi_keystone_langchain-0.5.0.tar.gz | 8.2 kB | Without provenance | Details for algovoi_keystone_langchain-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| algovoi_keystone_langchain-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for algovoi_keystone_langchain-0.5.0-py3-none-any.whl |
Total release size: 17.2 kB
Release files / algovoi_keystone_langchain-0.5.0.tar.gz
| Download URL | algovoi_keystone_langchain-0.5.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e23636ed7a935485fc5e6eb380cc8e7635b6c7126d894aebaf7ddaa359935b7
|
|
BLAKE2b-256 checksum How to use checksums |
80017c82930f7604d7b0493f20e4212a851e3ecf3367a769e979d972284bbff6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / algovoi_keystone_langchain-0.5.0-py3-none-any.whl
| Download URL | algovoi_keystone_langchain-0.5.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56f21fba1a995bf58bb360fb2d83a72b87e39dd24c45630a660d9e5d6417720f
|
|
BLAKE2b-256 checksum How to use checksums |
9da2a3b55e198f1d2de44d236ebd2db7035b865d41a1916f90f5500dee04e433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for algovoi-keystone-langchain 0.5.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.
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.