Skip to main content

PiQrypt cryptographic audit trail bridge for CrewAI

Project description

piqrypt-crewai-integration

Standard: AISS v2.0 · Full stack: piqrypt.com

Verifiable AI Agent Memory_Cryptographic audit trail for CrewAI agents.

PyPI Downloads License: MIT PiQrypt

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


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

piqrypt_crewai_integration-1.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

piqrypt_crewai_integration-1.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file piqrypt_crewai_integration-1.1.0.tar.gz.

File metadata

File hashes

Hashes for piqrypt_crewai_integration-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6cedfd28c08d746b6b85a6dbb37cef05cb5fa7c7c6aad3546bb73bae6e091de6
MD5 5b98f5393fe5f7062eeb679d67f5dca2
BLAKE2b-256 6dd00b531266c5c813f67122c83eb431a4e9195af757a9c0f93a965554617c4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for piqrypt_crewai_integration-1.1.0.tar.gz:

Publisher: publish.yml on PiQrypt/piqrypt-crewai-integration

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file piqrypt_crewai_integration-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for piqrypt_crewai_integration-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73094736ab17617a48febf4c50d6802dffcdd7cc13e2c7c1f49b0c4bb93409e7
MD5 fafc5799558631b074232b16740f4eb5
BLAKE2b-256 83e89519a61eec0e73cde80cd1c3c79c95fef3194b7f8e8398a3e979efa14615

See more details on using hashes here.

Provenance

The following attestation bundles were made for piqrypt_crewai_integration-1.1.0-py3-none-any.whl:

Publisher: publish.yml on PiQrypt/piqrypt-crewai-integration

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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