How matamdinesh0802/sentinel-ai-governance works
Sentinel governs agent tool calls at the MCP boundary: an agent submits a call, the gate evaluates it, records and signs the decision, and quarantines failing trajectories before the proxy can forward them. Separate branches provide the Streamlit SOC console, dashboard API, and offline ledger verification. The README documents the major runtime capabilities; several backend and UI implementations were not excerpted, so those relationships are included only where documented or indexed, and some internals are represented at directory level.
Main entry points: gate.py Governance gate · main.py MCP proxy · evals Ten evaluations · streamlit_app.py Streamlit app
Components 20
Call governance
- MCP proxy
apps/proxy/main.py - Call models
apps/proxy/models.py - Governance gate
apps/gate.py
Evaluation
- Agent policies
apps/evals/policies.py - Eval pipeline
apps/evals/pipeline.py - Ten evaluations
apps/evals - Eval interface
apps/evals/base.py - LLM judge
apps/evals/judge.py
Audit and response
- Governance database
apps/db.py - Signed ledger
apps/ledger/signer.py - Ledger verifier
apps/ledger/verify.py - Quarantine engine
apps/quarantine/engine.py - Chat notifications
Interfaces
- Dashboard API
apps/api/main.py
SOC console
- Streamlit app
streamlit_app.py - Console pages
ui/pages.py - UI components
ui/components.py - In-process demo
ui/demo.py
Other components
- Agent
- Downstream tool
Connections 23
- Agent → MCP proxy: submits call
README.md - MCP proxy → Governance gate: processes call
README.md - MCP proxy → Call models: uses models
- Governance gate → Eval pipeline: evaluates call
apps/gate.py - Eval pipeline → Ten evaluations: runs checks
apps/evals/pipeline.py - Ten evaluations → Eval interface: implements interface
apps/evals/pipeline.py - Eval pipeline → Agent policies: applies policy
- Ten evaluations → Agent policies: consults rules
apps/evals/unauthorized_scope.py - Ten evaluations → LLM judge: requests judgments
apps/evals/prompt_injection.py - Governance gate → Governance database: persists records
apps/gate.py - Governance gate → Signed ledger: appends decision
apps/gate.py - Signed ledger → Governance database: stores entries
apps/ledger/signer.py - Governance gate → Quarantine engine: freezes failures
apps/gate.py - Quarantine engine → Chat notifications: sends alerts
apps/quarantine/engine.py - MCP proxy → Downstream tool: forwards approved
- Ledger verifier → Signed ledger: verifies chain
apps/ledger/verify.py - Dashboard API → Governance database: reads dashboard data
apps/api/main.py - Streamlit app → Console pages: renders pages
streamlit_app.py - Streamlit app → UI components: uses components
streamlit_app.py - Console pages → UI components: renders
ui/pages.py - Streamlit app → In-process demo: drives demo
streamlit_app.py - In-process demo → Governance gate: calls in process
ui/demo.py - Console pages → Dashboard API: reads dashboard