coc-compliance
Auto-detect your agent setup and configure Chain of Consciousness (CoC) compliance logging.
Supports 7 compliance regimes: HIPAA, EU AI Act, SOC 2, PCI-DSS, NIST AI RMF, Generic Trust, and Insurance.
Install
pip install coc-compliance
Quick Start
coc-compliance init
The wizard will:
- Scan your environment for installed model SDKs (Anthropic, OpenAI, Google, Ollama, etc.) and agent frameworks (LangChain, CrewAI, AutoGen, etc.)
- Detect any existing CoC installation
- Present a checklist of compliance regimes to select
- Ask regime-specific questions (PHI handling, risk classification, trust criteria, etc.)
- Generate a
coc-compliance.jsonconfig and integration code - Install CoC if not already present
- Output a summary of what was configured and next steps
Commands
| Command | Description |
|---|---|
coc-compliance init |
Interactive setup wizard |
coc-compliance detect |
Scan environment only |
coc-compliance verify |
Check existing setup for issues |
coc-compliance regimes |
List available compliance regimes |
Options
coc-compliance init --dir ./my-project # Target a specific directory
coc-compliance init --verbose # Show pip install output
coc-compliance detect --json # Output detection as JSON
coc-compliance regimes --json # Output regimes as JSON
Supported Compliance Regimes
| Regime | Key | Description |
|---|---|---|
| HIPAA | hipaa |
Healthcare data protection — excludes 15 PHI identifier categories |
| EU AI Act | eu-ai-act |
AI transparency, risk classification, bias monitoring |
| SOC 2 | soc2 |
Trust services criteria (security, availability, integrity, confidentiality, privacy) |
| PCI-DSS | pci-dss |
Payment card data — masks PANs, blocks CVV/PIN logging |
| NIST AI RMF | nist-ai-rmf |
AI risk management (Govern, Map, Measure, Manage) |
| Generic Trust | generic-trust |
Basic transparency — reasoning, decisions, errors |
| Insurance | insurance |
Claims/underwriting — protects policyholder PII |
Output Files
After running init, you'll get:
coc-compliance.json— Configuration file with selected regimes, log types, and exclusionscoc_compliance_init.py(or.js) — Integration code snippet to import into your project./coc_logs/— Log directory (if using local storage) with.gitignore
Storage Options
| Option | Description |
|---|---|
local |
Logs stored on disk in ./coc_logs/ (default) |
free-hosted |
Free tier on api.vibeagentmaking.com (5 anchors/day) |
hosted |
Full hosted CoC with auto-anchoring |
For hosted options, set the COC_API_KEY environment variable.
Auto-Detection
The tool detects:
Model SDKs: Anthropic (Claude), OpenAI, Google Generative AI, Ollama, Cohere, Mistral AI
Frameworks: LangChain, CrewAI, AutoGen, Semantic Kernel, LlamaIndex, Haystack, Smolagents
CoC Packages: chain-of-consciousness, agent-trust-stack, agent-trust-stack-hosted
Cross-Platform
Works on Windows, macOS, and Linux. Python 3.10+.
Config Format
{
"version": "1.0",
"regimes": {
"hipaa": {
"name": "HIPAA",
"enabled": true,
"answers": {
"covered_entity": true,
"phi_handling": true
}
}
},
"logging": {
"storage": "local",
"path": "./coc_logs/",
"log_types": ["Access events (who accessed what data, when)", "..."],
"exclusions": ["Patient names", "Social Security numbers", "..."]
},
"encryption": true
}
License
MIT
Metadata
Release files for coc-compliance 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coc_compliance-1.0.1.tar.gz | 18.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coc_compliance-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.6 kB
Release files / coc_compliance-1.0.1.tar.gz
| Download URL | coc_compliance-1.0.1.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfcad79bf486898671d0fc4591a0200d0254f66c4d126e071f3f7a1bc16cff33
|
|
BLAKE2b-256 checksum How to use checksums |
b1e12d4d111c8c9d4687a3148d199cb800d6a20440ebb0f18d5855038f8563c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / coc_compliance-1.0.1-py3-none-any.whl
| Download URL | coc_compliance-1.0.1-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4f97cbbe85806068188d5885b10e40820025d39be7aee718000275716fe9cc4
|
|
BLAKE2b-256 checksum How to use checksums |
15f9e46800361400fc8c33706e0fc753d228c190b5702801a9063ec5f258c8ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|