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.4.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.4.0
File Size Uploaded Provenance Actions
algovoi_keystone_connect-0.4.0.tar.gz 13.5 kB Without provenance Details for algovoi_keystone_connect-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 34.6 kB

Release files / algovoi_keystone_connect-0.4.0.tar.gz

Download URL algovoi_keystone_connect-0.4.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1ab5faf2ebd4ab96dcc4476a118ff1712ab4993a8486b4787db4f1f1a2c81715
BLAKE2b-256 checksum
How to use checksums
91ef70b6591decf8a543105aaf84392522d686e524959613e71704b06f4d8ac1
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.4.0-py3-none-any.whl

Download URL algovoi_keystone_connect-0.4.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3eb57b3e4ea169b9dd0157cb188f302bb793c73b14747f8412730ded08305ef0
BLAKE2b-256 checksum
How to use checksums
ec7412fffae31c9c721cd1862b64ea8fa3d75661a1e612cd323befe226ecd45b
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.4.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