Migrate logger signatures across repo
Your team has 40 TypeScript files using a deprecated `logger.warn(msg, meta)` signature that needs to become `logger.warn({ msg, meta })`. A colleague kicks off an autonomous coding agent and tells it to 'migrate all logger calls across the repo,' then watches it churn for 20 minutes, re-reading files and second-guessing edits. Would you have reached for an autonomous agent here? Lay out how you'd actually approach this and why.
rewrite_logger_calls(lines: list[str]) → list[str][["logger.warn(msg, meta);"]]out["logger.warn({ msg, meta });"][["logger.warn(\"user login failed\", { userId });"]]out["logger.warn({ msg: \"user login failed\", meta: { userId } });"]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.
Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.