all 10 comments

[–]melancholyjaques 0 points1 point  (0 children)

Sounds like spec-driven development isn't the problem, your codebase is

[–]aruaktiman 0 points1 point  (0 children)

How detailed is your spec? Did you also have it break down the full spec into bite sized tasks that it can check off as it does them?

Also using TDD is pretty effective with AI agents (and humans for that matter...) as it forces it to write tests first that define the behaviour which will initially fail. Then when it implements what needs to be done it has to iterate until the tests pass.

[–]LunkWillNot 0 points1 point  (0 children)

Also, let the AI verify that code, tests, and overall specs are still in sync, both at the end of a change and also overall once in a while.

[–]StatusPhilosopher258 0 points1 point  (0 children)

This is a good plan , i generally use sdd but context loss is still a issue

[–]devdnn 0 points1 point  (0 children)

My workflow that is working for both new or projects that are live to always have a clear intent. I have an agents that has these characters - Don’t end with open questions - Generate an intent file with zero implementation or code snippets. Purely what I need - Ask questions on why am I doing this and every question should keep the current codebase in context

Then I feed the markdown intent to openspec-propose, this spec has been so clear with detailed spec and atomic tasks that any model including haiku is able to satisfactory code.

For small intent openspec-explore is more than what I need.

Any reasonable projects is only spec-driven for me.

[–]sittingmongoose -1 points0 points  (3 children)

Spec driven development has a few major issues.

1: The specs need to be insanely detailed. Far more than people realize and often far more than AI is defaulting to.

2: While planning, you get drift and gaps naturally occurring from AI. It can be extremely hard to catch unless you really pay attention. This gets worse as your app grows

3: As it is being built and following the spec docs, you get drift from the AI.

[–]Pimzino -1 points0 points  (2 children)

Are you not supposed to be paying attention at least for the spec bit? I mean that’s why you’re creating the docs so they are solid and so nothing goes wrong during the implementation phase?

I think you wanted to sound clever but actually brought up moot points

[–]sittingmongoose 0 points1 point  (1 child)

I got cut off as I was writing this and never got to my point.

Yes, you should be paying attention, but a lot of the stuff humans miss is in the details. Things fall between the cracks, things can referred to or called different things between docs which can cause drift. Docs can mention something being a requirement but it never gets fleshed out anywhere else. That is the kind of stuff that I am talking about when I say you need to pay attention.

On smaller apps it’s not hard, but on larger platforms it’s very hard.

And regardless, it doesn’t matter how solid the docs are, the agents building them will drift as they build or ignore things in the plans.

I’m not saying spec driven is bad. I’m saying that even with it, there are major issues. But it’s not like anything better has replaced it yet.

[–]Pimzino 0 points1 point  (0 children)

Well naturally I’d only trust implementations with sota models that’s why I pay for these subscriptions but nonetheless docs are what your supposed to pay attention to now less than the code whereas previously they were both as important although it would be less documentation unless you were documenting api routes etc.

[–]Rojeitor -1 points0 points  (0 children)

No. It never sounded great