Skip to main content

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.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for algovoi-keystone-langchain 0.4.1
File Size Uploaded Provenance Actions
algovoi_keystone_langchain-0.4.1.tar.gz 8.2 kB Without provenance Details for algovoi_keystone_langchain-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for algovoi-keystone-langchain 0.4.1
File Interpreter ABI Platform Actions
algovoi_keystone_langchain-0.4.1-py3-none-any.whl Python 3 none any Details for algovoi_keystone_langchain-0.4.1-py3-none-any.whl

Total release size: 17.2 kB

Release files / algovoi_keystone_langchain-0.4.1.tar.gz

Download URL algovoi_keystone_langchain-0.4.1.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
78f4e35c2703e627011f21b3a7c050ea97d81214137a9f0f42ae8197658dfc0c
BLAKE2b-256 checksum
How to use checksums
403fb5b3652341c78afc176b00ba5d04b85efd02ead65d0112f203ba63753415
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.4.1-py3-none-any.whl

Download URL algovoi_keystone_langchain-0.4.1-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11c7e4a209a5df4c0cb3030e65f7c769924d5c6b2221b3648d32fb98af5b3ce2
BLAKE2b-256 checksum
How to use checksums
1889c6d8a789568c9961d76176780e8ec80cd83c611b6c796a1dc79dc779f54b
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.4.1

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.

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