r/SpecDrivenDevelopment • • 29d ago

How much drift is acceptable

How do guys measure drift and how much is acceptable in your project? I am interested more in industry standards. I am aware that 0% is not achievable.

5 Upvotes

9 comments sorted by

1

u/Bulky-Dog-7958 29d ago

What do you mean by drift? Is it diff from what was planned vs what was delivered?

1

u/cryptoLover696969 29d ago

Yes what's in spec vs what has been implemented.

1

u/Bulky-Dog-7958 29d ago

Got it, It will obviously vary from team to team. But if you are following spec driven development and you have created the PRD with detailed acceptance criteria than than drift shoudl be <5-10%.

But if you are just prompting and coding it out then it can be 20-30%.

Earlier because dev lifecycle was long lot of things would change mid way and you could easily see drift of 20-30% but with AI if you plan well then the code can be pushed pretty quickly so time where things can changes has also shorten and hen drift is less, also AI ships what you tell that also contribute to less drift.

Also measurement is done against the defined scope and its function how well defined your PRD and feature request is.
Drift is not always a bad thing, if you learn something new so its wise to incorporate it mid way rather than shipping something that does not add value to customer.

Ideally you should be shipping incrementally and in iteration of small batches, that would also reduce the drift.

2

u/czei 29d ago

I get zero drift because other models are watching and evaluating what's been created vs the spec, plan, and task list. https://czei.org/blog/multi-llm-spec-driven-development/

1

u/Entuaka 29d ago

And do you evaluate that you don't have "bugs" in your specs? Complex specs have higher risks of bugs

2

u/czei 28d ago

In SDD the spec is a high level statement of functionality, not a detailed implementation plan.

Specs (and requirements that come before them) are written by domain experts, but the details of the automated reviews are explained in the article I linked to. A multi-model team of unrelated LLMs evaluate for completeness and ambiguity, consistency and feasibility, and testability. This is done with access to the existing code and details about future plans for a series of complex SSD projects.

The next two steps would be to generate an implementation plan, and then a task list. At each point the details in the spec, plan, and task list are compared to the specification and requirements. Before coding starts humans would have reviewed the requirements, specification, and design.

SpecCompleteness and ambiguity. Missing requirements, undefined terms, error and edge behavior nobody wrote down.Consistency and feasibility. Requirements that contradict each other, can't coexist, or quietly grow the scope.Testability. Can every requirement be verified? Acceptance criteria that are measurable, not vibes.

1

u/simasch 29d ago

I have very few drift will https://unifiedprocess.ai
There is coverage check

1

u/Plastic-Lettuce-7150 29d ago

If I ask for a change to the code using OpenSpec it will update the project artifacts as well.

1

u/Competitive_Boot6914 24d ago

I'd measure spec-to-code coverage and confirmed mismatches separately. "5% drift" says little without a denominator, and one broken permission rule can matter more than twenty wording differences. For a feature, track checked relations, unverified ones, and mismatches by severity.

We built Reqode's alignment checks around linked specs and implementation units. Each result records the revisions checked, and concrete mismatches become Findings. If behavior changed intentionally, update the spec. If either revision changes, the old "aligned" result doesn't prove the current pair still matches.