Code Room
Vibe codingHardvc-g140
Subject Ai judgment limitsLevel Senior–Staff~19 minCommon in Security interviewsIndustries Software development

Question

A teammate wants to let an agent generate the core of a new authentication flow — token issuance, signature verification, session rotation, and the password-reset path — to move fast on a deadline. You're uneasy. Make the case for when you would and wouldn't let an AI agent own security-critical code like this, what specific failure modes make it the wrong tool here, and how you'd still use the agent without ceding the dangerous parts.

What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it — tests, edge cases, reading critically — and how you’d re-prompt or decompose to get it right.

Describe your solution

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.