Receipt-native AI safety toolkit
Project description
Assay
Stop filling out the AI compliance spreadsheet. Add one CI step. Every merge produces portable, signed evidence that anyone can verify.
When someone asks "prove what your AI did," you need more than logs. Logs live on your infrastructure, under your control. Assay produces signed evidence bundles they can verify independently -- no access to your systems required.
Install
pip install assay-ai
2-Minute Demo
pip install assay-ai
assay demo-incident
This runs a two-act scenario with synthetic data (no API key needed):
- Act 1: Agent uses gpt-4 with a guardian check. Result: integrity PASS, claims PASS.
- Act 2: Someone swaps the model and drops the guardian. Result: integrity PASS, claims FAIL.
That second result is an honest failure -- authentic evidence proving the run violated its declared standards. Not a cover-up. Not theater. Exit code 1.
assay demo-challenge # CTF-style: spot the tampered pack
assay demo-pack # build + verify from scratch
The Golden Path
# 0. Guided path (recommended)
assay onboard .
# 1. Find uninstrumented LLM calls
assay scan .
# 2. Instrument (one line)
# from assay.integrations.openai import patch; patch()
# 3. Produce a signed proof pack
assay run -c receipt_completeness -c guardian_enforcement -- python my_app.py
# 4. Verify + explain
assay verify-pack ./proof_pack_*/
assay explain ./proof_pack_*/
# 5. Lock the verification contract
assay lock write --cards receipt_completeness,guardian_enforcement -o assay.lock
assay verify-pack ./proof_pack_*/ --lock assay.lock --require-claim-pass
How It Works
Assay separates two questions on purpose:
- Integrity: "Were these bytes tampered with after creation?" (signatures, hashes, required files)
- Claims: "Does this evidence satisfy our declared governance checks?" (receipt types, counts, field values)
| Integrity | Claims | Exit Code | Meaning |
|---|---|---|---|
| PASS | PASS | 0 | Evidence checks out, behavior meets standards |
| PASS | FAIL | 1 | Honest failure: authentic evidence of standards violation |
| FAIL | -- | 2 | Evidence has been tampered with |
The split is the point. Systems that can prove they failed honestly are more trustworthy than systems that always claim to pass.
Commands
| Command | Purpose |
|---|---|
assay demo-pack |
Generate demo packs (no config needed) |
assay demo-incident |
Two-act scenario: passing run vs failing run |
assay demo-challenge |
CTF-style good + tampered pack pair |
assay onboard |
Guided setup: doctor -> scan -> first run plan |
assay scan |
Find uninstrumented LLM call sites |
assay run |
Wrap command, collect receipts, build signed pack |
assay verify-pack |
Verify a Proof Pack (integrity + claims) |
assay explain |
Plain-English summary of a proof pack |
assay ci init github |
Generate a GitHub Actions workflow |
assay lock write |
Freeze verification contract to lockfile |
assay lock check |
Validate lockfile against current card definitions |
assay doctor |
Preflight check: is Assay ready here? |
Documentation
- Quickstart -- install, golden path, command reference
- Deep Dive -- architecture, trust model, honest failure
- Decision Log -- every locked decision and why
- Semantic Simulation Matrix -- 7 drills for UX and comprehension
Related Repos
| Repo | Purpose |
|---|---|
| assay | Core CLI, SDK, conformance corpus (this repo) |
| assay-verify-action | GitHub Action for CI verification |
| assay-ledger | Public transparency ledger |
License
Apache-2.0
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 assay_ai-1.2.1.tar.gz.
File metadata
- Download URL: assay_ai-1.2.1.tar.gz
- Upload date:
- Size: 102.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b03fd0701f115971b0e5a38be7eac6c1336ab1328a3e64c50dc1a3807ce5724
|
|
| MD5 |
30e809e92cdad74d1ef25fd8e517d891
|
|
| BLAKE2b-256 |
3919c497a43349325fae1f177bcf08d7a48b4cf9e25cf36b378fe29c40551366
|
File details
Details for the file assay_ai-1.2.1-py3-none-any.whl.
File metadata
- Download URL: assay_ai-1.2.1-py3-none-any.whl
- Upload date:
- Size: 116.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b87e8d1834dc1d589bc9fd247886fd7d9d1657d9d21994054d2226100f69ada
|
|
| MD5 |
086b07e8ae33d4d9959549a0374c312c
|
|
| BLAKE2b-256 |
1a5c2305ff5d3f833ec576664ffdb3dc38dea22c16bb7f909f8e86155d1e6e1c
|