Autonomous Policy & Compliance Auditor — ingests internal documents and evaluates them against a regulatory/policy corpus (GDPR, SOC 2, internal security policy), producing per-control pass/fail reports with cited evidence and remediation.
See PROJECT_PLAN.md for architecture and phased roadmap, and PROGRESS.md for the live checklist.
- Docker + Docker Compose
- Python 3.11+
- (Optional, later phases) Groq / Gemini API keys — not required to start, everything defaults to a local Ollama model.
-
Copy the env template and adjust values:
cp .env.example .env
-
Start the core services (Postgres, Qdrant):
docker compose up -d postgres qdrant
-
Ollama: this repo defaults to reusing an already-running local Ollama instance at
http://localhost:11434(seeOLLAMA_HOSTin.env). If you don't have one running:docker compose --profile standalone-ollama up -d ollama # listens on OLLAMA_PORT instead docker compose exec ollama ollama pull llama3.1:8b
and update
OLLAMA_HOSTin.envtohttp://localhost:${OLLAMA_PORT}. -
Verify health:
docker compose ps curl -sf http://localhost:6333/collections # Qdrant curl -sf http://localhost:11434/api/tags # Ollama docker compose exec postgres pg_isready -U auditpilot -d auditpilot
-
Create a Python virtual environment and install dependencies:
python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt -
Apply database migrations (+ seed a small set of GDPR/SOC2 controls):
python scripts/apply_migrations.py --with-seed
# Policy Router auto-classifies the framework: python scripts/run_audit_cli.py --file path/to/document.pdf # ...or specify the framework/controls explicitly: python scripts/run_audit_cli.py --file path/to/document.pdf --framework gdpr # Resume a partially-completed run (retries only non-done work items): python scripts/run_audit_cli.py --resume-run-id <run_id> # Review escalated (high-risk or low-confidence) findings - stands in for # Slack Approve/Override/Request-Evidence until those credentials exist: python scripts/hitl_review_cli.py list-escalations --run-id <run_id> python scripts/hitl_review_cli.py decide --work-item-id <id> --reviewer [email protected] \ --decision approve --rationale "..." # Generate the per-control Markdown/HTML report: python scripts/generate_report.py --run-id <run_id> --output report
docker compose --profile orchestration up -d n8n— enable n8n (Phase 4+, once Slack/SMTP credentials are available; the CLIs above already implement the same logic and can be called from n8n Code/HTTP nodes).docker compose --profile ingestion-sidecar up -d unstructured— enable the unstructured parsing API sidecar only if in-process parsing (default) proves insufficient.
pytest # full suite (includes real Postgres/Qdrant/Ollama integration tests, ~1-2 min) pytest -m "not integration" # fast unit tests only (schema, agents with a fake LLM, parsing)