Code RoomDependency mismatch in generated code
MediumPrep Room Coding #4348

Dependency mismatch in generated code

Vibe & agenticAlgorithms & data structuresEntry–Mid~12 min

An AI assistant gave you a clean, working TypeScript snippet to fetch data, but it uses `axios` and your whole codebase uses the built-in `fetch`. The snippet works if you just `npm install axios`. A teammate says 'it works, ship it.' What's the issue with dropping this in as-is, and what do you do instead?

Implement
flag_new_dependencies(snippet_imports: list[str], approved_packages: list[str]) → list[str]
Examples
in[["axios","./utils/http","node:fs"],["react","zod"]]out["axios"]
in[["react","react-dom/client"],["react","react-dom"]]out[]
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 12 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.