SpecGraph
All posts
spec-driven1 December 20264 min read

What a year of spec-driven development taught us

Brownfield matters more than greenfield. Approvals have to block. Specs need history and sync. Agents need contracts. The lessons, including the ones we learned the hard way.

ST

SpecGraph team

We started this year with a simple belief: coding agents ship the wrong thing because they get a vague brief, and a better brief fixes most of it. That belief held up. Almost everything around it changed.

Here is what we got wrong, what we got right, and what we would tell a team starting spec-driven development today.

Brownfield matters more than greenfield

Our first demos were greenfield. An empty repo, a fresh spec, an agent building from nothing. They made clean demos. They are not where most teams live.

Most teams have a codebase with years of decisions in it. Their problem isn't writing a spec for a new product. It is that nobody has a spec for the product they already have, and the agent they just pointed at it has to guess.

So we put more of our effort into brownfield. A discovery skill reverse-specs an existing repository into a draft the team reviews. /sg-sync keeps that spec honest as the code keeps changing. Greenfield is where every pitch starts. Brownfield is where the work is.

Approvals have to block

Early on, our multi-department sign-off was thinner than it looked. Phases could be locked, but a review step that never stopped anything was mostly a label. Our own internal review put it bluntly: a single player wearing a team t-shirt.

The lesson is that an approval which doesn't hold back the next step stops being treated as one. Changing a locked phase is now a deliberate act: an amendment the phase owner applies, or an explicit unlock. When an upstream phase changes, downstream phases are flagged for review. And handoff readiness holds back pack generation until its checklist is green.

A sign-off that doesn't stop anything is decoration. If skipping an approval is free, it will be skipped.

Specs need history and sync

We treated the spec as a document that gets finished. Real specs keep changing after they are sealed. A stakeholder raises a constraint, an engineer fixes an endpoint in the file, a hotfix changes a limit. A spec without history can't explain itself, and a spec that isn't synced with the repository drifts away from the code within weeks.

That pushed us towards git, not away from it. Specs now live in the team's own repository as ordinary commits. Edits come back in one field at a time. Earlier versions can be restored. And story IDs stay put as both sides change, because references that move are worse than no references at all.

Agents need contracts, not conversations

The most consistent pattern of the year: agents do well with a contract and badly with a conversation. Given a sealed pack, clear rules in CLAUDE.md and a way to ask when something is ambiguous, an agent behaves like a careful engineer. Given a chat thread and a running list of “oh, and also”, it behaves like an eager intern.

The contract also has to work in both directions. Agents read the spec over MCP, but they write back too: story status, commits, test results and questions. The writes we trust most are the narrow ones. /sg-synccan propose a spec change, but it can't make one. Read widely, write narrowly, and let people decide.

What we would tell a team starting now

  • Start with the codebase you have. A rough spec of the existing system is worth more than a perfect spec of a new one.
  • Make one approval block something real before you add more approvals.
  • Put the spec in version control from day one, next to the code, and review spec changes the way you review code changes.
  • Give your agent a contract and a way to raise its hand. Then hold it to both.

A year in, the brief is still the leverage point. What changed is that we stopped treating it as a document you finish and started treating it as one you maintain.

  • spec-driven
  • lessons
  • brownfield
  • agents

Stop vibe-coding solo.Ship with the whole org aligned.

Coding agents are fast, and they are obedient: they build exactly what the spec says. SpecGraph makes the spec worth obeying. Every department on the record, conflicts settled before code, one sealed pack your agent works from.

Request access

0%