How jagmarques/asqav-sdk works
Asqav is a pair of client SDKs for producing signed AI-agent compliance receipts and a public verifier for checking them. The primary flow is agent action capture, optional policy/detector evaluation, cloud signing and receipt return; recipients can verify receipts online or offline, while peer hand-offs bind acknowledgments to the sender’s exact receipt. The graph preserves documented integrations, compliance exports and authorship evidence. Source excerpts are partial, so internal links are included only where the README or shown references support them.
Main entry points: client.py Python SDK · index.ts TypeScript SDK · verify_receipt.py Offline receipt verifier · core.ts TypeScript verifier
Components 18
SDK signing
- Python SDK
python/src/asqav/client.py - TypeScript SDK
typescript/src/index.ts - Compliance receipt
Capture and policy
- Detectors
python/src/asqav/_detectors.py - Framework integrations
python/src/asqav/extras - Harness hooks
python/src/asqav/cli_hook.py
Receipt verification
- Public verification
python/src/asqav/client.py - Offline receipt verifier
python/src/asqav/verifier/verify_receipt.py - Multi-format oracle
python/src/asqav/verifier/oracle/core.py - TypeScript verifier
typescript/src/verifier/core.ts - Canonicalization
typescript/src/verifier/canonical.ts
Governance workflows
- Peer receipt admission
python/src/asqav/acceptor.py - Counterparty binding
python/src/asqav/counterparty.py - Audit exports
python/src/asqav/compliance.py - Code authorship
python/src/asqav/code_authorship.py
Other components
- Agent developer
- Asqav signing service
- Counterparty agent
Connections 20
- Agent developer → Python SDK: uses
README.md - Agent developer → TypeScript SDK: uses
README.md - Python SDK → Asqav signing service: requests signing
python/src/asqav/client.py - TypeScript SDK → Asqav signing service: requests signing
README.md - Asqav signing service → Compliance receipt: returns receipt
README.md - Python SDK → Detectors: runs detectors
python/src/asqav/__init__.py - Framework integrations → Python SDK: signs interactions
python/src/asqav/extras/litellm.py - Harness hooks → Python SDK: captures actions
- Agent developer → Public verification: verifies receipt
README.md - Public verification → Asqav signing service: fetches verdict
README.md - Agent developer → Offline receipt verifier: checks offline
README.md - Agent developer → TypeScript verifier: checks offline
README.md - TypeScript verifier → Canonicalization: canonicalizes
- Offline receipt verifier → Multi-format oracle: delegates verification
- Python SDK → Peer receipt admission: admits peer receipt
README.md - Peer receipt admission → Counterparty agent: acknowledges
README.md - Python SDK → Counterparty binding: binds receipt bytes
python/src/asqav/client.py - Counterparty agent → Counterparty binding: supplies receipt
README.md - Agent developer → Audit exports: exports audit evidence
- Agent developer → Code authorship: submits authorship evidence