1 of 6

commit happens

DBZenith

Privacy-Preserving Autonomous PostgreSQL DBA

From real workload telemetry to safe, evidence-backed optimization — without giving AI direct access to raw production data or write access.

Real PostgreSQL telemetry

Privacy boundary

GNN + RL optimization

Human approval

SAFE OPTIMIZATION LOOP

PostgreSQL

Telemetry

Privacy�Gateway

GNN / RL

Sandbox

DBA Approval

AI proposes. Sandbox tests. Humans decide.

2 of 6

commit happens

THE IDEA

Idea Title — Turn database tuning into a safe optimization loop

02

The problem

PostgreSQL can become slow because of expensive scans, joins, poor estimates, redundant indexes and inefficient SQL.

• Telemetry is detailed but difficult to interpret at scale.

• Optimization changes can help one workload and hurt another.

• Testing directly on production is risky.

• AI should not see raw business data.

What DBZenith actually builds

1

Observe

Real pg_stat_statements + catalog telemetry

2

Protect

Mask literals + hash identifiers before AI

3

Understand

EXPLAIN JSON → plan graph → GNN bottlenecks

4

Optimize

RL selects safe tuning actions

5

Verify

HypoPG sandbox measures the candidate

6

Approve

DBA reviews before production change

Core promise: better database decisions without exposing raw production data or allowing autonomous production mutation.

3 of 6

commit happens

TECHNICAL APPROACH

Technical Approach — implemented architecture

03

End-to-end data path

PostgreSQL

pg_stat_statements�system catalogs�EXPLAIN JSON

Telemetry

snapshots�slow-query detection�frequency / I/O

Privacy Gateway

AST parsing�literal masking�SHA-256 identifiers

AI Engines

GCN bottlenecks�DQN actions�safe AST rewrites

Sandbox

Docker + HypoPG�hypothetical indexes�regression checks

Approval

RBAC�human sign-off�audit ledger

PRIVACY + SAFETY BOUNDARY

Raw literals / credentials / row values are blocked from AI. Production mutation is blocked. Optimization proposals require DBA / ADMIN approval.

Implemented stack

Frontend

React 18 • TypeScript • Vite

Backend

FastAPI • REST • Alembic

Database

PostgreSQL • pg_stat_statements • pg_qualstats (optional)

AI

PyTorch / PyG GCN • Gymnasium DQN • LangGraph

Optimization

HypoPG sandbox • SQL AST rewriter

Security

HMAC tokens • PBKDF2 • RBAC • audit ledger

4 of 6

commit happens

FEASIBILITY + VIABILITY

Feasibility & Viability — proven in the repository

04

Technical

Real telemetry collector�EXPLAIN JSON + plan analysis�GNN + DQN artifacts�Dockerized services

Operational

React DBA dashboard�11 technical views�REST APIs�Synthetic workload + E2E scenario

Security

Privacy gateway�RBAC + HMAC auth�Audit ledger�Human approval invariant

Cost / Scale

Open-source stack�Containerized components�Sandboxed experiments�Modular service boundaries

Repository evidence

105

unit / security / component tests reported passing in the project README

50

held-out RL evaluation episodes used for empirical comparison

+27.1%

mean latency improvement for DQN in the documented evaluation

0.0%

regression rate under the documented sandbox-gated RL evaluation

Important: GNN metrics are on the project's synthetic validation set; RL results are evaluation results in the implemented environment, not a claim of production-wide performance.

5 of 6

commit happens

IMPACT + BENEFITS

Impacts & Benefits — who gets a better database decision?

05

DBZenith

observe → explain�→ test → decide

DBA / Engineers

Less manual diagnosis�Evidence before change�Clear approval trail

Database

Lower latency targets�Better index / query choices�Regression-aware tuning

Security Teams

Raw data stays outside AI�Role-based actions�Immutable audit trail

Engineering Teams

Repeatable experiments�Versioned AI artifacts�Docker-based setup

The differentiator: autonomy is constrained by evidence, sandbox validation and human control.

6 of 6

commit happens

RESEARCH + REFERENCES

Research & References

06

Project documentation & technical foundations

PostgreSQL

pg_stat_statements, system catalogs, EXPLAIN

HypoPG

Hypothetical indexes for PostgreSQL planning experiments

PyTorch Geometric

GCN / graph learning implementation

Gymnasium

RL environment interface used by DatabaseOptimizationEnv

LangGraph

State-graph orchestration for the conversational DBA assistant

FastAPI

REST API gateway and backend service

React

Dashboard UI foundation

Project repository

DBZenith implementation, tests, docs and model artifacts

Implementation note: the deck intentionally lists only technologies, modules and evaluation evidence present in the supplied DBZenith repository.