|
| 1 | +# Agent Governance Dashboard (Demo) |
| 2 | + |
| 3 | +Real-time governance monitoring dashboard for agentic systems, built with Streamlit. |
| 4 | + |
| 5 | +This demo visualizes: |
| 6 | +- Live policy evaluations (`allow` / `deny` / `escalate`) |
| 7 | +- Trust score heatmap between agents |
| 8 | +- Violation alerts with event drill-down |
| 9 | +- Policy coverage overview |
| 10 | +- Agent activity timeline |
| 11 | + |
| 12 | +## Project Structure |
| 13 | + |
| 14 | +- `app.py` - Streamlit dashboard entrypoint |
| 15 | +- `simulator.py` - Real-time governance event simulator and trust model |
| 16 | +- `requirements.txt` - Python dependencies |
| 17 | +- `Dockerfile` - Container image for the dashboard |
| 18 | +- `docker-compose.yml` - One-command launch |
| 19 | + |
| 20 | +## Local Run |
| 21 | + |
| 22 | +From `demo/governance-dashboard`: |
| 23 | + |
| 24 | +```powershell |
| 25 | +python -m venv .venv |
| 26 | +.\.venv\Scripts\activate |
| 27 | +pip install -r requirements.txt |
| 28 | +streamlit run app.py |
| 29 | +``` |
| 30 | + |
| 31 | +Open: `http://localhost:8501` |
| 32 | + |
| 33 | +## Docker Compose Run |
| 34 | + |
| 35 | +From `demo/governance-dashboard`: |
| 36 | + |
| 37 | +```powershell |
| 38 | +docker compose up --build |
| 39 | +``` |
| 40 | + |
| 41 | +Open: `http://localhost:8501` |
| 42 | + |
| 43 | +To stop: |
| 44 | + |
| 45 | +```powershell |
| 46 | +docker compose down |
| 47 | +``` |
| 48 | + |
| 49 | +## Usage Guide |
| 50 | + |
| 51 | +1. Enable `Live mode` to stream new policy events. |
| 52 | +2. Adjust `Refresh interval` and `Events per tick` in the sidebar. |
| 53 | +3. Filter by source agents, policy, or decision. |
| 54 | +4. Inspect `Violation Alerts` and select an `audit_id` for drill-down details. |
| 55 | + |
| 56 | +```markdown |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | +``` |
| 61 | + |
| 62 | +## Notes |
| 63 | + |
| 64 | +- Data is generated by an in-app simulator for demo purposes. |
| 65 | +- Events are retained in a rolling in-memory window for responsive UI updates. |
0 commit comments