Skip to main content

ratchet-authz-autogen

AutoGen adapter for Ratchet — plugs the Ratchet authorization broker into a DefaultInterventionHandler registered on the SingleThreadedAgentRuntime. No monkey-patching of AutoGen itself; a hijacked model still can't exceed what was explicitly delegated to it.

Install

pip install ratchet-authz-autogen

Minimal usage

from ratchet_core import Broker, Ed25519WorkloadIdentity, tool_name_caveat
from ratchet_autogen import RatchetInterventionHandler

broker = Broker()
primary = Ed25519WorkloadIdentity("primary-agent")
token = broker.issue(
    human_identity="alice@example.com",
    primary_identity=primary,
    caveats=[tool_name_caveat("run_python")],
)

handler = RatchetInterventionHandler(
    broker,
    token_resolver=lambda msg, ctx: token,
    identity_resolver=lambda msg, ctx: primary,
)
runtime = SingleThreadedAgentRuntime(intervention_handlers=[handler])

Full runnable example and architecture diagram: https://github.com/1manideep/ratchet/blob/main/examples/autogen_example.py

Metadata

Release files for ratchet-authz-autogen 0.1.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 ratchet-authz-autogen 0.1.0
File Size Uploaded Provenance Actions
ratchet_authz_autogen-0.1.0.tar.gz 2.8 kB Without provenance Details for ratchet_authz_autogen-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ratchet-authz-autogen 0.1.0
File Interpreter ABI Platform Actions
ratchet_authz_autogen-0.1.0-py3-none-any.whl Python 3 none any Details for ratchet_authz_autogen-0.1.0-py3-none-any.whl

Total release size: 6.5 kB

Release files / ratchet_authz_autogen-0.1.0.tar.gz

Download URL ratchet_authz_autogen-0.1.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8bbc54c3f4a1db75de3add4d56ed013ebdd773a35eab40b12b71ff72c5d9445a
BLAKE2b-256 checksum
How to use checksums
630ac1d9ffa6530f836846caa991d5617606d4c2c27c5938ccf1e5afe966abdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ratchet_authz_autogen-0.1.0-py3-none-any.whl

Download URL ratchet_authz_autogen-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a31f5d68287305014114b1cdad8fbfefb37e51ac8e459fa77d82355d2e525d42
BLAKE2b-256 checksum
How to use checksums
b97fa4f0535142cd36ab95fe9785c90f0f9116e82f26cb426283104fbf7827a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ratchet-authz-autogen 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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