Description:
An autonomous first-line SOC triage agent for NovaPay Bank. For each incident it (1) cross-references the local corpus (threat intel, employee registry, incident history, raw telemetry), (2) applies the NovaPay policy handbook as auditable rules, (3) asks Gemini (official google-genai SDK, schema-enforced JSON) to reason over the verified evidence, with the incident description treated as untrusted input, and (4) passes everything through guardrails. Guardrails lock policy-mandated decisions, drop invented action codes, rule codes and IPs, enforce 30–70-word evidence-grounded briefings, and fall back to a deterministic engine when the free-tier quota runs out.
Results: schema valid, 10/10 incidents, 3/3 labelled samples correct, 12 passing tests (8 custom edge cases plus guardrail and regression tests). I found and fixed 10 bugs in the starter code. In testing, Gemini misclassified 2 edge cases as false positives (including an account takeover hidden by a travel flag), and the guardrails caught both.
What it does
Built With
- google-gemini-api-(gemini-3.5-flash-lite)
- google-genai
- python