Skip to content

Commit 534dbb6

Browse files
committed
feat(demo): add real-time agent governance dashboard with Streamlit
1 parent 0fa8234 commit 534dbb6

File tree

10 files changed

+688
-0
lines changed

10 files changed

+688
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.11.11-slim
2+
3+
ENV PYTHONDONTWRITEBYTECODE=1 \
4+
PYTHONUNBUFFERED=1
5+
6+
WORKDIR /app
7+
8+
COPY requirements.txt /app/requirements.txt
9+
RUN pip install --no-cache-dir -r /app/requirements.txt
10+
11+
COPY . /app
12+
13+
EXPOSE 8501
14+
15+
CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=8501"]
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
![Dashboard Overview](screenshots/dashboard-overview.jpeg)
58+
![Violation Drill-down](screenshots/violation-drilldown.jpeg)
59+
![Trust Heatmap](screenshots/trust-heatmap.jpeg)
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

Comments
 (0)