Warden is a zero-trust runtime security firewall for agentic AI. This MVP implements:
- Perception gateway with taint tagging
- Memory write gate
- 3-phase tool firewall (registry, SBOM, invocation)
- Auditor-worker decision path (supervisor)
- Viral loop detection
- Append-only cryptographic provenance ledger
- FastAPI REST + WebSocket APIs
- SQL-backed persistence wiring (sessions, artifacts, tool registry, append-only ledger entries)
- Python + TypeScript SDKs
- Concrete LangChain and MCP integration adapters
python -m venv .venv
source .venv/bin/activate
pip install -e .[dev]
uvicorn warden_api.main:app --reloadBy default, persistence is file-backed SQLite at ./warden.db.
- Runtime writes to both in-memory cache and SQL persistence adapter.
- Persisted entities: sessions, artifacts, tool registry, ledger entries.
- DB init is executed in API startup path (
warden_api.main).
Install integration deps:
pip install -e .[integrations]Use WardenLangChainCallbackHandler to pre-commit tool calls via Warden before execution.
Use WardenMCPGateway.call_tool(...) to gate MCP tool invocations and write_memory(...) for memory writes.
- Dashboard page:
http://127.0.0.1:8000/dashboard - Static assets served from:
/assets/* - Browser-side quick seed endpoint:
POST /v1/demo/seed
python scripts/mock_data.py --base-url http://127.0.0.1:8000 --sessions 8Use the workflow file:
/.windsurf/workflows/demo-dashboard.md
POST /v1/sessionsDELETE /v1/sessions/{id}POST /v1/ingestPOST /v1/tool-calls/pre-commitPOST /v1/memory/gate-writeGET /v1/ledger/{session_id}GET /v1/ledger/{session_id}/verifyGET /v1/alertsGET /v1/registry/toolsPOST /v1/registry/toolsDELETE /v1/registry/tools/{id}GET /v1/compliance/eu-ai-actGET /v1/compliance/soc2WS /v1/stream/{session_id}