Skip to main content

Auto-detect your agent setup and configure Chain of Consciousness compliance logging

Project description

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:

  1. Scan your environment for installed model SDKs (Anthropic, OpenAI, Google, Ollama, etc.) and agent frameworks (LangChain, CrewAI, AutoGen, etc.)
  2. Detect any existing CoC installation
  3. Present a checklist of compliance regimes to select
  4. Ask regime-specific questions (PHI handling, risk classification, trust criteria, etc.)
  5. Generate a coc-compliance.json config and integration code
  6. Install CoC if not already present
  7. 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 exclusions
  • coc_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

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

coc_compliance-1.0.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

coc_compliance-1.0.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file coc_compliance-1.0.0.tar.gz.

File metadata

  • Download URL: coc_compliance-1.0.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for coc_compliance-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8f42d8dce3dd48c19f4eac53ceaa324d7303b04bde35e724375c1b484e391d15
MD5 10af02d9a3745ce4e20acd74938f5c35
BLAKE2b-256 9bb48f4de0bde83d19ae7e8dae6368f4d82b2c5468e099c37615ac5bc89d4948

See more details on using hashes here.

File details

Details for the file coc_compliance-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: coc_compliance-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for coc_compliance-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a44023ec5ffdf80cb887773beb9caefe0f168c712d77a4997e1a55003ef40fc
MD5 be354fc94516874d6257bac523bf2113
BLAKE2b-256 c77b03aebefedb824aef8d49dc661701c70392223708c48330f6394a2b481c84

See more details on using hashes here.

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