/zero-knowledge-gateway  (The Root Folder)
│
├── /backend             (Our Python Data Plane)
│   ├── main.py          (The FastAPI middleware & Supabase logic)
│   ├── semantic-firewall.yaml 
│   └── requirements.txt
│
├── /dashboard           (Our Next.js Control Plane)
│   ├── /app             (React pages & Tarpit UI)
│   ├── /components      (shadcn/ui buttons and tables)
│   ├── tailwind.config.js
│   └── package.json
│
├── .env                 (Shared environment variables!)
└── README.md


QUICK RECAP
The Wedge (Data Plane): A fast, dumb Python interceptor that catches bad SQL without slowing down normal traffic.

The Intelligence Layer: An out-of-band Gemini integration that forces autonomous agents to explain themselves and standardizes their stochastic text into rigid JSON.

The Anchor: A deterministic YAML policy engine that makes the final safety decision without relying on AI.

The State Manager: A Supabase database that parks the request.

The Control Plane: A Next.js web dashboard where a human can review the interrogation and pull the plug.

This is a complete MVP. Solved the "rogue agent" problem in a way that actually scales.