Skip to main content

algovoi-keystone-connect

Build and test Keystone bolt-ons with almost no boilerplate. Two halves: build a data-plane connector from a declarative spec, and test any bolt-on at any stage of the flow offline. Every reference is "sha256:" + SHA-256(RFC 8785 JCS(payload)) — no magic, no AlgoVoi software in the trust base. Apache-2.0.

Build a connector in ~12 lines

from algovoi_keystone_connect import connector

keystone_s3 = connector("s3", writes={
    "put_object":    ("put",    lambda call: f"{call.kwargs['Bucket']}/{call.kwargs['Key']}"),
    "delete_object": ("delete", lambda call: f"{call.kwargs['Bucket']}/{call.kwargs['Key']}"),
})

client = keystone_s3(boto3_s3, decision_ref=decision_ref)
client.put_object(Bucket="receipts", Key="2026/r1.json", Body=b"{}")   # bound
ref = client.execution_ref

writes maps each write method to (action, scope_fn); scope_fn(call) reads call.kwargs / call.args for per-call values and call.client for fixed context (a container name, a queue entity). Reads pass through unbound. Records on client.executions drop straight into algovoi-keystone-validate, and the emitted execution_ref is byte-identical to a hand-written connector.

Test a bolt-on at any stage of the flow

You do not need a live gateway. synth_ref(stage) gives a content-addressed stand-in for whatever precedes your bolt-on, and the check_* battery verifies the keystone properties.

from algovoi_keystone_connect import check_connector, check_ref_builder, synth_ref

# execution stage: a connector
report = check_connector(keystone_s3, FakeS3(), [
    ("put_object", {"Bucket": "receipts", "Key": "r1"}),
])
assert report.ok   # recompute, decision-bound, tamper-evident, self-describing

# any stage: a ref-builder that aliases onto the chain (passport / mandate / policy / ...)
def mandate_ref(payload):
    return __import__("algovoi_keystone_connect").keystone_ref(payload)

report = check_ref_builder(
    mandate_ref,
    {"passport_ref": synth_ref("passport"), "limit": "100USD", "scope": "payments"},
    prev_field="passport_ref",   # checks it binds to its predecessor
)
assert report.ok   # deterministic, content-addressed, tamper-evident, predecessor-bound
print(report)

The battery catches broken bolt-ons: a connector that ignores decision_ref, or a ref-builder that is not content-addressed, fails report.ok.

Keystone-only edition, Apache-2.0. Built on the AlgoVoi substrate (RFC 8785 JCS + SHA-256).

Metadata

Release files for algovoi-keystone-connect 0.5.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 algovoi-keystone-connect 0.5.0
File Size Uploaded Provenance Actions
algovoi_keystone_connect-0.5.0.tar.gz 13.4 kB Without provenance Details for algovoi_keystone_connect-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 25.2 kB

Release files / algovoi_keystone_connect-0.5.0.tar.gz

Download URL algovoi_keystone_connect-0.5.0.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3d9795e9b3335bea7a49114ab21dcf2a396f1542ce849518667092e784c6e716
BLAKE2b-256 checksum
How to use checksums
4e3022c11fa45df495bc4593987318adefb161c4ade7ec6215a9c175344a759c
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_connect-0.5.0-py3-none-any.whl

Download URL algovoi_keystone_connect-0.5.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02a523f1ffd36b62279f73d56f6f2784a946d29be204aa0704bcb1c1cb7b0716
BLAKE2b-256 checksum
How to use checksums
a1124cd8c39698982d7e85a30f45064640666e4cfe758350b158112c13adfe56
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-connect 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.

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