Code Room
Vibe codingHardvc-g010
Subject Ai prompt specLevel Senior–Staff~20 minCommon in Concurrency interviewsIndustries Technology, Software development

Question

You need a Go worker pool that processes a stream of jobs with a bounded number of goroutines, graceful shutdown on SIGTERM, and a cap on in-flight work. Write the spec you'd give an AI agent. Which concurrency guarantees must you spell out, and what does a casual 'write a goroutine worker pool' prompt get subtly wrong?

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.