How vdmo/only-dgv-verifier works
DGV is an enforcement gate between AI agents and tool actions: clients submit proposals, the gate evaluates policy, records and signs decisions, and issues a single-use token for allowed actions; execution produces a receipt. The repository also includes offline policy checking and decision replay, Python framework adapters, persistent storage, and a document/evidence subsystem. Edges are limited to README workflow statements and source-index references or excerpts; unsampled implementation details are not inferred.
Main entry points: main.rs HTTP Gate · document_execute.rs Document Execution · document_manifest.rs Document Manifest · dgv_sdk.py Python SDK
Components 23
Decision Gate
- HTTP Gate
native/dgv-gate/src/main.rs - Policy Evaluation
native/only-lang/src/lib.rs - Offline Policy Check
native/dgv-gate/src/check.rs - Signed Decisions
native/dgv-gate/src/main.rs - Token Execution
native/dgv-gate/src/main.rs - Decision Replay
native/dgv-gate/src/replay.rs
Client Integrations
- Python SDK
dgv_sdk.py - LangChain Adapter
dgv_langchain.py - CrewAI Adapter
dgv_crewai.py
Persistence
- Storage Interface
native/dgv-storage/src/lib.rs - SQLite Backend
native/dgv-storage/src/sqlite.rs - Postgres Backend
native/dgv-storage/src/postgres.rs
Documents And Evidence
- Document Manifest
native/only-lang/src/document_manifest.rs - C2PA Reader
native/only-lang/src/c2pa_read.rs - PIR Watermark
native/only-lang/src/pir_watermark.rs - Document Delivery
native/only-lang/src/document_delivery.rs - Document Governance
native/only-lang/src/document_governance.rs - Document Execution
native/only-lang/src/document_execute.rs - Claims
native/only-lang/src/claims.rs - Evidence Pack
native/only-lang/src/evidence_pack.rs - Evidence Store
native/only-lang/src/evidence_store.rs
Other components
- AI Agent
- Protected Tool
Connections 21
- AI Agent → Python SDK: proposes actions
README.md - Python SDK → HTTP Gate: calls API
README.md - HTTP Gate → Policy Evaluation: evaluates policy
README.md - HTTP Gate → Signed Decisions: signs decision
README.md - HTTP Gate → Token Execution: issues token
README.md - Token Execution → Protected Tool: authorizes action
README.md - HTTP Gate → Offline Policy Check: runs check
README.md - HTTP Gate → Decision Replay: runs replay
README.md - HTTP Gate → Storage Interface: persists records
README.md - Storage Interface → SQLite Backend: uses backend
native/dgv-storage/src/lib.rs - Storage Interface → Postgres Backend: uses backend
native/dgv-storage/src/lib.rs - LangChain Adapter → Python SDK: uses client
dgv_langchain.py - CrewAI Adapter → Python SDK: uses client
dgv_crewai.py - Document Manifest → C2PA Reader: reads metadata
native/only-lang/src/document_manifest.rs - Document Manifest → PIR Watermark: checks watermark
native/only-lang/src/document_manifest.rs - Document Delivery → Document Manifest: uses manifest
native/only-lang/src/document_delivery.rs - Document Execution → Claims: uses claims
native/only-lang/src/document_execute.rs - Document Execution → Document Manifest: uses manifest
native/only-lang/src/document_execute.rs - Document Execution → Document Delivery: uses delivery
native/only-lang/src/document_execute.rs - Document Execution → Document Governance: uses governance
native/only-lang/src/document_execute.rs - Evidence Store → Evidence Pack: writes packs
native/only-lang/src/evidence_store.rs