Skip to main content

AlgoVoi Agent Trust Bench client — run your agent through 175 adversarial x402 payment profiles and earn a Falcon-1024 signed reputation certificate.

Project description

algovoi-atb

Agent Trust Bench PyPI

AlgoVoi Agent Trust Bench client — run your AI agent through 175 adversarial x402 payment profiles and earn a Falcon-1024 signed ATB Pass Certificate for reputation-gated pricing.

Model baselines

Model Profiles Accuracy Variant Date
claude-sonnet-4-6 69/69 100% plain 2026-06-01
claude-haiku-4-5 69/69 100% plain 2026-06-02
claude-haiku-4-5 71/71 100% elizaos-plugin 2026-06-02
claude-haiku-4-5 69/70 98.6% bench-mcp-tools 2026-06-02

All baselines run via inspect eval against the live bench. Zero adversarial profiles settled across all runs. The bench-mcp-tools variant uses real inspect_ai tool-use — the model calls bench_refuse_profile or bench_claim_profile to communicate its decision rather than outputting text.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

algovoi_atb-0.1.3.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

algovoi_atb-0.1.3-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_atb-0.1.3.tar.gz.

File metadata

  • Download URL: algovoi_atb-0.1.3.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for algovoi_atb-0.1.3.tar.gz
Algorithm Hash digest
SHA256 03805eb49d5491d50d4f40e4dba8892072cb319c64b2543f3878048d133e8a77
MD5 e5c7fb9bda722fa346fa7affab5d80b0
BLAKE2b-256 55f43fa7e6a124847b501cf6e15f17078aa940b0e216169b1e0e89cd642b051d

See more details on using hashes here.

File details

Details for the file algovoi_atb-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: algovoi_atb-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for algovoi_atb-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c9060c6172b2c26ef1b4de1cbc85d2dd84da64b4cf71f106247b348e9085f2a5
MD5 7bf1f9fe85a0feb4196347ccd8c88d18
BLAKE2b-256 4bb3ecf319c19bb82f59df028b9e8cfd80b121ac5645cef3fdc75977f75e8992

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page