Version-Controlling Specs Alongside Code
A spec stored in a wiki or a separate docs tool decouples from the code it describes, and that decoupling is exactly what makes drift invisible. Specs belong in the same repo, same commits.
A spec stored in a wiki or a separate docs tool decouples from the code it describes, and that decoupling is exactly what makes drift invisible. Specs belong in the same repo, same commits.
Letting an agent draft the spec from a rough description is faster than writing it by hand. It also risks the agent filling ambiguous gaps with its own assumptions instead of flagging them.
Every spec-driven development example assumes you're building something new. Migrating an existing system needs a spec that documents current behavior before it can specify the target one.
Vibe coding is genuinely great for prototypes and genuinely dangerous for production. Here's why agentic coding agents specifically need a persistent spec, and what changes when you give them one.
If the spec already states acceptance criteria as checkable conditions, most of the test suite should be mechanically derivable from it — not written separately, after the fact, by memory.
A spec that described the system accurately at merge time slowly stops matching reality as follow-up changes land without updating it. That gap is spec drift, and it compounds silently.
Reviewing a spec before an agent implements it is far cheaper than reviewing the resulting code — but only if the review checks for the failure modes specs actually have.
A constitution doc that reads like a mission statement gets ignored by a coding agent the same way vague instructions always do. Here's what makes one actually enforceable.
Guardrails deserve more than a bullet point. A layered look at input validation, output validation, and action-level gates — and why none of them belong solely in the system prompt.
LLM judges fail in predictable, well-documented ways. Here's how I design rubrics, calibrate against human labels, and know when a judge score is actually trustworthy.