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.1.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.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coc_compliance-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 cfcad79bf486898671d0fc4591a0200d0254f66c4d126e071f3f7a1bc16cff33
MD5 712f7ff55478e5a5061a39ce3cc82f91
BLAKE2b-256 b1e12d4d111c8c9d4687a3148d199cb800d6a20440ebb0f18d5855038f8563c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: coc_compliance-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4f97cbbe85806068188d5885b10e40820025d39be7aee718000275716fe9cc4
MD5 085834e2c494ca8415060de3d5ba3cb3
BLAKE2b-256 15f9e46800361400fc8c33706e0fc753d228c190b5702801a9063ec5f258c8ee

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