Code Room
Vibe codingHard
Question
An AI wrote this blue-green deploy script. It exits 0 and the pipeline goes green, but one morning prod was serving a broken build while CI reported success. Walk through how this script lies about success.
#!/bin/bashset -e build_artifact=$(curl -s https://artifacts.acme.io/latest | jq -r .url)curl -s "$build_artifact" -o /tmp/app.tar.gztar xzf /tmp/app.tar.gz -C /opt/app health=$(curl -s localhost:8080/health | grep -c '"status":"ok"')if [ $health -gt 0 ]; then echo "Healthy, promoting" systemctl restart appfiecho "Deploy complete"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.
Learn the concepts
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.