Independent readback verification for AI agents and automations. Unknown fails closed.
pip install verify-outcomes==0.4.1 Copy PIP instructions
Your agent says "done". Verify checks the system of record.
AI agents and automations report success from their own logs. Verify ignores the claim, reads the system of record back with a separate read-only credential, and returns one of five verdicts. Anything it can't confirm fails closed.
Agent says: 3/3 "Refund issued ✅" Verify (Stripe test mode, independence=full): PASS L2 FAIL L2 refund.amount 2500 ≠ 5000 NOT_OBSERVED L1 refund never reached Stripe Verified success rate: 1/3 hash chain intact: True Real output, Stripe test mode, 2026-11-07. The same run on Zendesk: 1/3.
pip install verify-outcomes # or: pip install git+https://github.com/abhishekshankar/verify verify --version verify init stripe # writes contracts/ and an example claim verify selfcheck # all verdicts, tamper detection, every adapter offline verify demo local # SQLite stands in for Stripe + Zendesk verify ledger demo_out/ledger.db verify validate contracts/*.json # reject bad contracts before any action runs verify ledger export demo_out/ledger.db audit.jsonl && verify ledger verify audit.jsonl Live adapters (test accounts only; keys come from env vars, never from code):
STRIPE_AGENT_KEY=sk_test_... STRIPE_VERIFY_KEY=rk_test_... verify demo stripe ZENDESK_SUBDOMAIN=... ZENDESK_AGENT_OAUTH=... ZENDESK_VERIFY_TOKEN=... verify demo zendesk STRIPE_VERIFY_KEY should be a restricted key with Charges and Refunds set to Read. ZENDESK_VERIFY_TOKEN should be an OAuth token with scope read. HUBSPOT_VERIFY_TOKEN should be a private-app token with only crm.objects.deals.read. INTERCOM_VERIFY_TOKEN should be an Intercom app access token with only the Read conversations permission. SHOPIFY_SHOP (the *.myshopify.com subdomain) and SHOPIFY_VERIFY_TOKEN should come from a custom app with only read_orders. Live Stripe keys are refused.
Write a contract once, then check each claim the agent makes. The exit code is 0 only on pass, so it can gate a pipeline. A claim missing a field the contract needs is rejected (exit 2) before anything is read.
STRIPE_VERIFY_KEY=rk_test_... verify check contracts/refund.full.stripe.json claim.json --ledger verify.db claim.json holds what the agent says it did, e.g. {"actor": "support-agent", "charge_id": "ch_...", "refund_id": "re_...", "amount": 5000} (see examples/).
Many claims at once (one JSON object per line; exit 0 only if every claim passes):
verify check-batch contracts/refund.full.stripe.json claims.jsonl --ledger verify.db Hosted ledger (optional) hosted/ is an append-only, multi-tenant ledger API (SQLite or Postgres). Push a local ledger to it with VERIFY_HOSTED_KEY=... verify push verify.db --to https://ledger.example.com. Deployment to AWS us-east-2 is in hosted/deploy/ (Terraform; not applied).
python -m verify.mcp_server is an MCP server with verify_check and verify_validate (see docs/MCP.md). Framework examples are in examples/.
Python API: verify.check(contract, claim, reader); see docs/ADAPTERS.md. Contracts: docs/CONTRACTS.md.
src/verify/core.py holds evaluation, the ledger and the verify loop; contract.py loads and validates contracts (contracts/*.json). The adapters are stripe.py, zendesk.py, hubspot.py (deals), intercom.py (conversations), shopify.py (refunds, Admin GraphQL) (the last three offline-tested, live run pending) and local.py.
v0.4, pre-production. Not yet a stable API. MIT licence.
Both files in this release have provenance metadata.
ai-agents verification audit stripe zendesk hubspot llmops
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Both files in this release have been uploaded with provenance metadata.
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.




