Code RoomAI-generated network changes under urgency
HardPrep Room Coding #4178

AI-generated network changes under urgency

Vibe & agenticAlgorithms & data structuresSenior–Staff~22 min

An engineer used an AI agent to generate a Python script that pushes BGP route-policy changes across a carrier's edge routers to mitigate a routing leak. The agent's diff looks correct and includes a confident explanation of each route-map. Network-wide misconfiguration here can black-hole traffic for millions of subscribers. The on-call wants to run it now to stop the leak. How do you handle the tension between urgency and the risk of AI-generated network changes?

Implement
approve_bgp_push(pop_names: list[str], subscriber_counts: list[int], human_signoff: bool, lab_validated: bool, rollback_timer_seconds: int, incident_active: bool) → str
Examples
in[["ams1","fra1","lon1"],[1200000,300000,800000],true,true,300,true]out"canary:fra1"
in[["ams1"],[1200000],false,true,300,true]out"block:no_human_signoff"
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.

0:00 of about 22 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.