agent-iam-ratchet
Sensitivity Ratchet SDK — irreversible permission narrowing for AI agents.
Install
pip install agent-iam-ratchet
With framework integrations:
pip install 'agent-iam-ratchet[langchain]'
pip install 'agent-iam-ratchet[crewai]'
pip install 'agent-iam-ratchet[openai-agents]'
Quick Start
from agent_iam_ratchet import RatchetSession, Sensitivity
session = RatchetSession(scopes=["read:*", "write:*", "delete:*", "execute:*"])
# Agent reads a confidential document
session.access(Sensitivity.CONFIDENTIAL)
print(session.effective_scopes)
# {'read:*', 'write:*'} — delete and execute permanently removed
# Agent reads restricted data
session.access(Sensitivity.RESTRICTED)
print(session.effective_scopes)
# {'read:*'} — only reads remain
# Irreversible — even accessing public data won't restore permissions
session.access(Sensitivity.PUBLIC)
print(session.effective_scopes)
# {'read:*'} — still read-only
Why?
AI agents that access sensitive data can exfiltrate it by writing to lower-sensitivity channels. The sensitivity ratchet prevents this by permanently narrowing permissions after sensitive data access.
License
MIT
Release files for agent-iam-ratchet 0.1.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 | |
|---|---|---|---|
| agent_iam_ratchet-0.1.0.tar.gz | 8.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_iam_ratchet-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / agent_iam_ratchet-0.1.0.tar.gz
| Download URL | agent_iam_ratchet-0.1.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8200cb6170bfc504e86b8eee54fb1651e59f254f571e643409426694ed3b177e
|
|
BLAKE2b-256 checksum How to use checksums |
c566b39dc7d0812c637698802f060fb815f141cac97582b469dad1a5f05ae719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / agent_iam_ratchet-0.1.0-py3-none-any.whl
| Download URL | agent_iam_ratchet-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
254410851edec9170ec76b8af5f077276dcbad477b692f8df7ebbc4f0abe1278
|
|
BLAKE2b-256 checksum How to use checksums |
f73017643260279a2ab4ebc4cd0fdd3c68e89c5752c8740b12129b4b98b6fac2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|