PiQrypt cryptographic audit trail bridge for CrewAI
Project description
piqrypt-crewai-integration
Verifiable AI Agent Memory_Cryptographic audit trail for CrewAI agents.
Every agent decision, task execution, and crew result — signed, hash-chained, tamper-proof.
pip install piqrypt-crewai
The problem
CrewAI agents make decisions autonomously. When something goes wrong — or needs to be proven right — your logs are editable. PiQrypt fixes that.
Quickstart
from piqrypt_crewai import AuditedAgent, AuditedCrew, stamp_task
# Drop-in replacement for Agent
researcher = AuditedAgent(
role="Researcher",
goal="Find accurate information on AI compliance",
backstory="Expert in regulatory frameworks",
identity_file="researcher.json" # piqrypt identity
)
writer = AuditedAgent(
role="Writer",
goal="Write clear compliance reports",
backstory="Technical writer",
identity_file="writer.json"
)
# Drop-in replacement for Crew
crew = AuditedCrew(
agents=[researcher, writer],
tasks=[research_task, write_task],
identity_file="crew-coordinator.json"
)
result = crew.kickoff(inputs={"topic": "EU AI Act compliance"})
# Export tamper-proof audit trail
crew.export_audit("eu-ai-act-audit.json")
# $ piqrypt verify eu-ai-act-audit.json
Decorator pattern — minimal change
from piqrypt_crewai import stamp_task
@stamp_task("research", identity_file="my-agent.json")
def research(topic: str) -> str:
return your_research_logic(topic)
@stamp_task("write_report", identity_file="my-agent.json")
def write_report(research: str) -> str:
return your_writing_logic(research)
What gets stamped
| Event | When |
|---|---|
agent_initialized |
Agent creation |
task_start |
Before task execution |
task_complete |
After task execution (with result hash) |
crew_kickoff |
Before crew runs |
crew_complete |
After crew finishes (with result hash) |
task_executed |
When using @stamp_task decorator |
All events are Ed25519-signed, SHA-256 hash-chained, stored locally.
No content is stored — only SHA-256 hashes of inputs and outputs.
Verify
piqrypt verify crewai-audit.json
# ✅ Chain integrity verified — 12 events, 0 forks
Scope
| Use case | AISS profile |
|---|---|
| Development / PoC | AISS-1 (Free, included) |
| Non-critical production | AISS-1 (Free) |
| Regulated production | AISS-2 (Pro — pip install piqrypt[aiss2]) |
Links
- PiQrypt core: github.com/piqrypt/piqrypt
- Integration guide: INTEGRATION.md
- Issues: github.com/piqrypt/piqrypt/issues
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 piqrypt_crewai_integration-1.0.0.tar.gz.
File metadata
- Download URL: piqrypt_crewai_integration-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d47c201010384b9357cd76376b34430850f36e0d1b6a3758e2d8129924e7780
|
|
| MD5 |
0e49b3b45807cdf3d331119809222c72
|
|
| BLAKE2b-256 |
2687feb6fbc7a6e0213c6c1b83a1f801de24ef77d51bd3ae63be63a6eca2d5d1
|
Provenance
The following attestation bundles were made for piqrypt_crewai_integration-1.0.0.tar.gz:
Publisher:
publish.yml on PiQrypt/piqrypt-crewai-integration
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
piqrypt_crewai_integration-1.0.0.tar.gz -
Subject digest:
3d47c201010384b9357cd76376b34430850f36e0d1b6a3758e2d8129924e7780 - Sigstore transparency entry: 991675829
- Sigstore integration time:
-
Permalink:
PiQrypt/piqrypt-crewai-integration@8292d13a8445bbce0aa22829fd5ba70dab26a5df -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/PiQrypt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8292d13a8445bbce0aa22829fd5ba70dab26a5df -
Trigger Event:
release
-
Statement type:
File details
Details for the file piqrypt_crewai_integration-1.0.0-py3-none-any.whl.
File metadata
- Download URL: piqrypt_crewai_integration-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76d32db8cd83e46e32d6530d38f7c6328f7766705dc28b0d4d056ccfdd2a274e
|
|
| MD5 |
54e7ae1b780b432c6247e1550216bb93
|
|
| BLAKE2b-256 |
c0d7a1bf9c6db32407c5300e16479607b3b38a1168954a76693908d0ee0eed01
|
Provenance
The following attestation bundles were made for piqrypt_crewai_integration-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on PiQrypt/piqrypt-crewai-integration
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
piqrypt_crewai_integration-1.0.0-py3-none-any.whl -
Subject digest:
76d32db8cd83e46e32d6530d38f7c6328f7766705dc28b0d4d056ccfdd2a274e - Sigstore transparency entry: 991675833
- Sigstore integration time:
-
Permalink:
PiQrypt/piqrypt-crewai-integration@8292d13a8445bbce0aa22829fd5ba70dab26a5df -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/PiQrypt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8292d13a8445bbce0aa22829fd5ba70dab26a5df -
Trigger Event:
release
-
Statement type: