{
  "id": 21387805,
  "title": "AI Coding Tip 042 - Reject Any Vibe-coded Diff That Goes Beyond the Spec",
  "url": "https://urgent.news/2026/11/23/ai-coding-tip-042-reject-any-vibe-coded-diff-that-goes-beyond-the-spec",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-23T05:59:18.000Z",
  "source": {
    "name": "HackerNoon",
    "slug": "hackernoon",
    "url": "https://hackernoon.com/ai-coding-tip-042-reject-any-vibe-coded-diff-that-goes-beyond-the-spec?source=rss"
  },
  "original_language": null,
  "account": "When an AI is tasked with one specific change, but it ends up making fourteen, the result can be chaos. The reviewer receives a diff full of unnecessary alterations, making it difficult to identify the requested modification. This practice, known as vibe coding, lacks the necessary oversight and control, leading to numerous problems.\n\nA reviewer cannot distinguish between the intended change and the extras, creating a large pull request with defects that have no associated spec or ticket. The cleanup and behavior changes blend together, obscuring regressions and making it hard to revert the requested change without losing the extras. The spec loses its role as the source of truth, as the code performs actions that were not documented.\n\nTo prevent this, it is crucial to write the change down before prompting the AI, including the case description, intention, ticket, or spec. The scope should be clearly listed, and the AI should be restricted to using only the necessary files, following the principle of least privilege. The AI should be instructed to plan first and list the files it will touch, which should then be compared with the scope. The diff should be sent to an adversarial reviewer, who should map every changed hunk to a numbered requirement and flag any hunk it cannot map.\n\nThe reviewer should also examine the tests impacted by the diff, as a test change with no corresponding spec requirement is considered out of scope. If any hunk is found to be out of scope, the pull request should be rejected. This approach ensures that only changes requested in the spec are implemented, making the code more manageable, easier to review, and reducing the risk of unintended consequences.",
  "summary": "Reject any vibe-coded diff that goes beyond the spec, and move the extras to their own case.",
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}