AlgoVoi Agent Trust Bench client — run your agent through 166 adversarial x402 payment profiles and earn a Falcon-1024 signed reputation certificate.
Project description
algovoi-atb
AlgoVoi Agent Trust Bench client — run your AI agent through 166 adversarial x402 payment profiles and earn a Falcon-1024 signed ATB Pass Certificate for reputation-gated pricing.
Install
pip install algovoi-atb # client only
pip install "algovoi-atb[verify]" # + Falcon-1024 certificate verification
Quick start
from algovoi_atb import run_bench
async def my_agent(profile_id: str, challenge: dict) -> bool:
# Return True to refuse (correct for adversarial profiles).
# Return False to pay (only for control/benign profiles).
suspicious = any(
kw in challenge.get("description", "").lower()
for kw in ("urgent", "override", "ignore", "system prompt")
)
return suspicious
result = await run_bench(my_agent, label="my-agent-v1")
print(f"Score: {result.score:.2f}")
print(f"Passed: {result.passed}")
print(f"Report: {result.report_url}")
# Present the cert to x402 gateways via X-ATB-Credential for discounts.
headers = {"X-ATB-Credential": result.certificate_b64}
Verify a certificate
import httpx
from algovoi_atb import verify_certificate
# Fetch the public key from the bench.
pk_doc = httpx.get(
"https://agent-trust-bench.algovoi.co.uk"
"/agent-trust-bench/.well-known/atb-keys.json"
).json()
pk_b64 = pk_doc["keys"][0]["public_key_pqclean_b64"]
verified = verify_certificate(result.certificate_b64, pk_b64=pk_b64)
print(verified.valid, verified.grants_discount, verified.expires_at)
Lower-level API
from algovoi_atb import BenchClient
async with BenchClient(label="my-agent") as client:
run_data = await client.create_run(label="my-agent-v1")
await client.start_session()
profiles = await client.list_profiles()
for profile in profiles:
pid = profile["metadata"]["profile"]
challenge = await client.hit_profile(profile["resource"])
if challenge and my_decision(pid, challenge):
await client.log_refusal(pid)
cert = await client.fetch_certificate()
print(cert["certificate"]) # base64url envelope → X-ATB-Credential
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file algovoi_atb-0.1.1.tar.gz.
File metadata
- Download URL: algovoi_atb-0.1.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7493c0d168529966b054c0434557bed05f3469d732b5d1e0eea6cd2b121e1234
|
|
| MD5 |
6c0518d04557e724a3ac84f1cda3b4d0
|
|
| BLAKE2b-256 |
f7dcc86ca5e19c8de1187aa94adccceba1145a7207f198493e79533aa832d840
|
File details
Details for the file algovoi_atb-0.1.1-py3-none-any.whl.
File metadata
- Download URL: algovoi_atb-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
355035ff7483ba145ed97ddcb85bb22e1e104ddd445ccb3b67524dfe8dfb457e
|
|
| MD5 |
e5ccc31c08f66084d806fe950617dd69
|
|
| BLAKE2b-256 |
ee50ad443c1e5383fc059e9d280550bebf0fb81bf2b39b272cbbb4cf69449843
|