โน๏ธ About this demo
A product-management case study prototype for a Technical Program Manager / Digital Product Management role. It asks one question: does AI-assisted investigation add measurable value to an otherwise resilient, deterministic banking platform?
How it fits together
- 1Simulation engine
Deterministic TypeScript model of five partners, retail banking and a shared gateway. Runs in the browser and is replayed by the server.
- 2Gateway protections
Per-partner concurrency limits, timeouts, circuit breakers, retail reservation and bounded scale-out. Always on unless an operator turns them off; AI cannot change them.
- 3Investigation
AI ON: configured LLM with schema-validated output and a labelled fallback. AI OFF: the rule-based investigator and runbook.
- 4Policy engine
Validates every proposed action against deterministic rules at proposal time and again at approval time.
- 5Human approval
Approve / reject / cancel. Server-signed, idempotent, scoped to the current incident and investigation.
- 6Measurement
Paired runs, a golden benchmark and interactive runs. Every number is derived from recorded simulation events.
Separation of responsibilities: the LLM investigates and recommends; the policy engine validates; a human approves; the simulator executes and measures. AI is never in the transaction path โ if the AI provider is slow, failing or not configured, the simulation, protections, fallback assessment and metrics keep working.
Architecture
- Next.js (App Router) modular monolith on Vercel. TypeScript strict; zod runtime validation on every API input and on LLM output.
- Stateless, server-authoritative sessions: the browser runs the deterministic engine for responsiveness. AI results and approvals are HMAC-signed by the server and re-verified by full deterministic replay on every privileged request. No server memory is required between requests.
- LLM provider abstraction (OpenAI-compatible: Groq, any compatible endpoint; local Ollama for development only). Model and key come from server-side environment variables.
- Supabase PostgreSQL for incidents, investigations, recommendations, audit logs, telemetry snapshots and comparison runs. RLS is on for all tables; only the server (service role) writes.
Where to start
- Use Start Guided Demo (top bar) for a 3โ5 minute walkthrough of one incident.
- Incident simulator โ trigger scenarios AโE, toggle protections, load golden scenarios, inject AI faults.
- AI comparison โ paired runs, golden benchmark, business-value estimate.
- Methodology โ every assumption, threshold and formula.