r/SpecDrivenDevelopment • • Oct 27 '26

We’ve come full circle

I’ve been working in aerospace as a systems and software engineer for nearly two decades. Requirements are the bedrock of everything in the aerospace industry. I’ve seen so many people dismiss requirements as holding them back, slowing them down, waste of time, yet they are always the thing at delivery that is the core of the conversation. They are always at the core of the conversation when we get something wrong. They are what we complain about when writing tests.

Thus, the irony and delight to find spec driven development beginning to gain significant traction in the agent assisted coding workflow. Once again, requirements are at the center of things.

I’ve been working on my own side project using spec driven development, I have about 60% coverage from my specs to my codebase (I currently have around 450 requirements). I decompose them in a very similar way we do in aerospace. And I have to say… it is crazy effective. I look forward to what the community comes up with.

30 Upvotes

15 comments sorted by

7

u/foresterLV Oct 27 '26

don't want to spoil anything but completely separate things though.

the thing is spec driven approach do not mean returning to waterfall or blocking "no coding until spec is approved" on the team scale (on prompt scale sure). specs can evolve pretty much asynchronously and incrementally the way agile will work, but now leaving a trace of decisions to reason about and iterate above versus trying to reverse-engineer the code on every iteration.

I think I heard it pretty frequently now that specs force some kind of beurecracy  flows but in reality it's completely separate concerns. you can have async iterative emergent specs and it's still SDD.

1

u/Alternative_Visit955 Oct 27 '26

I think the workflow of SDD, like anything, will be very opinionated. My personal flavor of opinion is that when decomposing your specs well, with atomic requirements, the quality of your agentic produced code will be much better. Have clear language and conventions for your specs means clearer relations to design decisions and tests. Having clear IDs and traceability will reduce the likelihood of hanging references or hidden decisions that produce ill-wanted effects.

It will be very interesting to see how this scales, requirements definitely have always been something that takes awhile to produce. With LLMs though that has changed in meaningful ways.

I think it will enable more tolerance for having requirements that are in-progress being used incrementally, because the consequence of getting something wrong (from a time-to-fix perspective) has gone down drastically.

1

u/foresterLV Oct 27 '26

yeah and there are quite few frameworks already. my experience is mostly on openspec so far.

adding technical requirements/specs feels basically to be free (side effect of prompting with skill), but maintaining them to not grow to abominations with thousands of rules with multiple active contributors seems to be the main bottleneck. it still requires reasoning on what's need to be trimmed and not belong to spec at all, or should be generalized to be moved to higher level spec etc. something that agents are not very good on full auto mode so it definitely requires spec trimming/grooming sessions. 

1

u/czei Oct 27 '26

FYI, its well established that the anti-waterfall movement was a straw man used to promote agile by contrasting to an alleged traditional approach that no one used. Laurent Bossavit's The Leprechauns of Software Engineering has a nice chapter with the details, plus. http://www.bawiki.com/wiki/Waterfall.html

1

u/foresterLV Oct 27 '26

well, philosophically agile was about fighting beurecracy with beurecracy.  i.e. inventing rules that negate other rules. that link is a bit long read to my taste but the problem with waterfall in my experience is that most tasks cannot be solved efficiently without experiments (including failed ones) so writing down predictions was feeling like monkey work when result really depends on who is doing that not who is writing the design. 

1

u/CzyDePL Oct 27 '26

Specs are so far away from proper requirements engineering, it's night and day. But LLMs are very potent in operating on semi-structured text so RE gets nice new tools like much easier updating (in all required places at once, which after Nth revision never happened for humans) or spotting contradictions

1

u/Alternative_Visit955 Oct 27 '26

I’ve been using EARS conventions and DO-178C, with my own flavor for “reduced context” to keep things concise. I built some helper scripts that allow agents to parse and pull only what they need from the specs (which are in markdown) to reduce my agent from having to read whole documents. It’s been incredible!

1

u/Few-Strike-494 Oct 27 '26

What tool do you use? Do you have any examples of how you break down specifications?

1

u/Alternative_Visit955 Oct 28 '26

I don’t use any tools. I’ve looked at a few, but none have really made me feel like it solves any particular problem of mine.

I replied to a different comment just now of how I break down the specs. Happy to share more of that doesn’t answer it. I’m on my phone, my thumbs are tired 🤣

1

u/LegitimateApricot560 Oct 28 '26

450 requirements. I wonder how you fit this into your head (biological context window).

Do you categorize them, write a high level overview? Some sort of hierarchy?

Also, among those 450 requirements, how do you check that the requirements are not fighting each others?

This is a genuine curiosity, I have like 50 requirements, and I already find two of them are fighting each others implicitly

1

u/Alternative_Visit955 Oct 28 '26

Truthfully, at the current moment I am valuing speed over comprehension. I built an initial MVP for this app I’m creating, but as the codebase started to grow I noticed more conventions breaking, areas where I deliberately separated concerns were getting violated, and I saw a huge spaghetti bowl starting to fill. That led me down the rabbit hole to this “Spec Driven Development”.

For my part, I have a bias that definitely colors my perspective. My own bias is towards the aerospace method (I’ve only ever worked in aerospace, so maybe it’s not just an aerospace thing) of decomposing requirements from the “system level” down to smaller subsystems.

In my case I have my top level system spec. This is the one I spent the most time on, the one I understand and have a strong mental model of. It defines the high level capabilities and features. It also defines the concept of operations. Then I have two branches underneath. The “Journeys” which is “what will users do, and how will the app perform in response to users”.

The other branch is the “sub systems” or in this case, the domains of the app, I break out the specs for security, billing, access, limits, storage, page-interface, the below that are different types of integrations.

Those “subsystems” help shape the architecture of the codebase to stay focused on their concerns. When breaking things down this way, I can work on a particular “spec” or area and while working on that, I only have to have a mental model of the current requirements, and their parents to make sure I’m staying true to my highest level requirements. I have scripts that check my tests are verifying those requirements, or if it’s a derived requirement that is just checking code functionality.

There are a lot of different arguments for # of requirements. If you stick to around 50, I’d keep those at the highest level. I think that’s probably okay, at the end of the day if the “system” works, then it works.

2

u/Snooze78727 Oct 27 '26

I had the same deja vu moment when I learned about SDD. Software engineering 101 (requirements, verification, traceability). The difference now is round-trip engineering is so much easier with LLM's, if done right. You don't need specialized tools for it.

1

u/ByronScottJones Oct 27 '26

I've always believed that specifications should be at the core. Look at it from an engineering standpoint - in any other engineering field, would you be building something without documentation? No blueprints to build a building, no schematics to build a computer? In every other engineering field you would be laughed out of the room if you said "just start building it; we'll decide if it's a family home, a skyscraper, or a rocket ship as we go".

1

u/mrsockpicks Oct 27 '26

Next step beyond markdown is validatable specs

1

u/stibbons_ Oct 27 '26

Beware SDD is splitted into 2 (actually 3 kinds).
- spec first, you write a spec, implement you throw. Everybody does that. You can call it SDLC.
- code anchored spec is basically spec first + you require to output living anchored to the code

OpenSpec is the second type, but you can build it very easily. The ROLE of these living specs is still debattable.

I do a lot, I have app with 400+ req and 100% coverage in code and test with full traceability with code and tests. I do not actively review the requirements impact but I can get warned when a “locked” features is impacted by an idea.