<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sudhandhakshneswaran on Medium]]></title>
        <description><![CDATA[Stories by Sudhandhakshneswaran on Medium]]></description>
        <link>https://medium.com/@sudhandhakshneswaran?source=rss-b9bd410f79eb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*X_x5VPx8Ngg6q79iHjmDPA.jpeg</url>
            <title>Stories by Sudhandhakshneswaran on Medium</title>
            <link>https://medium.com/@sudhandhakshneswaran?source=rss-b9bd410f79eb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:46:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sudhandhakshneswaran/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Busting the Myths of Spec-Driven
Development]]></title>
            <link>https://medium.com/@sudhandhakshneswaran/busting-the-myths-of-spec-driven-development-525a35819687?source=rss-b9bd410f79eb------2</link>
            <guid isPermaLink="false">https://medium.com/p/525a35819687</guid>
            <category><![CDATA[agentic-workflow]]></category>
            <category><![CDATA[aifsd]]></category>
            <category><![CDATA[context-engineering]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[spec-driven-development]]></category>
            <dc:creator><![CDATA[Sudhandhakshneswaran]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 11:24:32 GMT</pubDate>
            <atom:updated>2026-09-23T11:35:56.031Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Summary</strong></p><blockquote>To unlock the true velocity of GenAI, we must stop writing code and start<br>engineering intent.</blockquote><p>We’re living in a time where AI can build in hours what used to take weeks. But we know AI hallucinates; that’s where SDD (Spec Driven Development) came in to solve the problem of how we can better harness it in a more responsible way. However, widespread misconceptions are limiting its adoption and effectiveness. We are here to debunk key myths about specs, agents, knowledge, and related topics closely related to SDD. This paper is the reflection of 8 months of rigorous work in this field by us.</p><p>Mainly discussing why “Spec as Source” is not the right thing to bet on. “Spec Anchored” , a more grounded approach, where humans can still jump in and make changes while the spec acts as a guiding reference, works just as well and is far more realistic for most teams. Expanding our discussion, on the AI side. Throwing your entire codebase and every doc you own at an LLM doesn’t make it smarter; instead, it actually makes things worse. The clearer your intent, the better your context. The best results come when agents know exactly where they stand, what the playground is, what they’re supposed to do and not to do.</p><p>Spec-Driven Development matters because it’s not a framework to hand the wheel to AI; instead, it’s a framework to make sure you stay in the driver’s seat while AI handles the heavy lifting. The spec, the constitution, and the structured workflow all of it exists to give AI something worth amplifying that is your “intent”.</p><h3>Introduction: The Intent Bottleneck</h3><p><strong>The Current Landscape:<br></strong>With the latest advancements in GenAI and LLMs, people tend to achieve a large piece of work in a very short amount of time. A DIY project that would take at least a weekend now takes only a few hours with the help of GenAI and LLMs, eventually helping us focus on the next problem to solve.</p><p>The software and IT industries have been the most affected and benefited by the rapid development of GenAI and LLMs. With each new release of models and techniques to use them in better ways, we are achieving record delivery times. Yes, there are problems we need to face and compromises we need to make to use GenAI and LLMs. These are a few key areas or general misconceptions that we are going to debunk now.</p><p><strong>The Real Problem:<br></strong>With the advancement of the model each and every day feels like we are closing the gap between non-reliable agent to fully autonomous and reliable agent. And to achieve this we shifted from our tradition of writing the code to start using LLMs to generate code for us. And people come up with new ways of doing so with multiple interesting ways. Two of the most popular ways to do so in the current AI world are,</p><blockquote>Vibe Coding<br>Spec-Driven Development.</blockquote><p>Though vibe coding is easy to start and easy to understand and unstructured using raw LLMs, this seems very good while doing POC and small pet projects. But when it comes to enterprises where we need structure and consistency, that is where the problem in vibe coding surfaced.</p><p><strong>Entering into Spec Driven Development (SDD):<br></strong>To efficiently use GenAI and LLMs without the problem of vibe coding but also leverage the intelligence and fast paced development of GenAI, there comes the Spec Driven Development. Which solves the problem of vibe coding with concrete architecture and solid principles to follow. Which helps to achieve the enterprise level standards.</p><p>Recently SDD got very good traction in this space and most of the people are trying out different ways to achieve the same. For new joiners or folks who are about to explore this space. There are three types of Spec Driven Development.</p><blockquote><strong>Spec-first:</strong> A well thought-out spec is written first, and then used in the AI-assisted development workflow for the task at hand.<br><strong>Spec-anchored: </strong>The spec is kept even after the task is complete, to continue using it for evolution and maintenance of the respective feature.<br><strong>Spec-as-source: </strong>The spec is the main source file over time, and only the spec is edited by the human, the human never touches the code.</blockquote><p><strong>What We Are Gonna Discuss In This Paper:<br></strong>As we discussed in the above points there is a good amount of people already trying out the SDD and with the surge in usage there is “Myth” which also surrounds the framework with bad understanding and minimal exploration of the actual architecture and try to fit in with existing understanding.</p><h3>Myth 1: The “Spontaneous Spec”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o02bM34W-bN8OcAfk1JTUg.jpeg" /></figure><p><strong>Myth</strong>: <em>In Spec-Driven Development, the specification is the absolute starting point. We sit down, write a machine-readable spec, and development begins.</em><br><strong>Reality</strong>: <em>Specs do not emerge from a vacuum. The true starting point is human intent — often captured as a messy user story, an epic, or a paragraph of business needs.</em></p><p><strong>Is Specification the ultimate starting point of Spec Driven Development ?</strong></p><p>Though we believe the specification is the ultimate starting point for the spec driven development, we often forget that even to define or generate or write spec we need business and technical details about the project. Specification in spec driven development is the structured document we carry information like what is the intent and what are the changes we are about to make and how we are going to do so. Also carries information like how the contract details will change and so on. So, it is the ultimate document that has a combined articulation of both user stories which explain the intent of the spec and code level details which have the details of how we are going to do the changes.</p><p>People often forget that a specification is not typically created first. Usually, business stakeholders bring their needs to the team, and senior developers help translate those into technical implementations. The ground reality is even spectacular, we use the user story or epic with the code level details to generate the specification. So the reality is even the specification is generated, not something manually written.</p><p><strong>Is an epic or user story a spec?</strong></p><p>With the above understanding and our knowledge user story is not the specification that needed for Spec Driven Development, but this is the ultimate starting point for a better specification. A good user story is a highly structured, behaviour-oriented artefact or a cohesive set of related artefacts authored in natural language that explains the intent of the business and describes what we need to achieve without explaining how to accomplish/achieve the same.</p><p>Why do End-to-End specifications always look and feel good in the AI world? Having a fully written spec seems to be more tempting and looks clean and perfect to start working on, as it feels you have more clarity and control over what you are building. But in the world of constant change and that too with AI the change is even sooner than expected. So, as we already know it’s ok and good to start with a minimum known and clear specification rather than to wait for the final version which might be outdated when you are finally ready to build.</p><h3>Myth 2: The “Sacred Markdown”</h3><p><strong>Myth</strong>: <em>To succeed with SDD, the written specification must be manually maintained at all costs. If the spec rots, the project fails.</em><br><strong>Reality</strong>: <em>The specification is a transient blueprint, not a sacred text. The ultimate artefact is the running state of the project, and AI allows us to reverse-engineer specs on demand.</em></p><p><strong>Does a spec need to be maintained?</strong></p><p>As we discussed the spec is nothing but a cumulative document of User Story and what is there in the code base. So the question is what we need to maintain and why ?. Do we need to maintain specification of each user story and epic. Then what is the difference between user stories in jira and specification. Maintaining spec comes with its own cost of maintenance overhead, there is a lot of question on how and what format and details that need to be maintained.</p><p>Before answering all these questions, why do we need to maintain specification. The ultimate reason to maintain specification is to make sure the story is developed in the right way during review or during the audit, all other reasons or invalided with the recent development in the GenAI space. If you would like to maintain the spec for the regeneration purpose then maintaining the each user stories spec will make it a tiring process with more stories being moved to done and more changes are made. For example a user story 1 may have a requirement to add a button on a screen to refresh. But user story 10 might ask to remove the same button. So with completing the user story 10 there is no refresh button at all.</p><p>Even for regeneration or for the context we still need the current state of the project not the document that explains how each story is implemented. Deriving the current state with this kind of data is not a reliable and difficult process as<br>well. Bidirectional SDD (Reverse Engineering) is the way to go forward? With all the details already in place, and a project or micro-service that doesn’t want to get into modernisation or doesn’t want to rewrite their entire application<br>just to adapt SDD. This is the state of most projects now.</p><p>Asking them to start from scratch is practically not possible or ethically not right. With current advancement in LLMs and their capabilities it’s genuinely easy to reverse engineer in Spec Driven Development, creating the spec from the source code. This is and always will be the best way to achieve Spec Driven Development in a project which is already in the best technology possible and wants to adopt SDD in their ways of working.</p><h3>Myth 3: The “One True Source” Myth</h3><p><strong>Myth</strong>: <em>Spec as a Source is the only true and is considered the real Spec Driven Development</em><br><strong>Reality</strong>: <em>Spec as a source of truth is an ideal, but it is not the only way to achieve SDD or this is not the ideal choice for all the use cases.</em></p><p><strong>Does the spec as a source really need to be achieved in Spec-Driven Development?<br></strong>Achieving the Spec as a source is the ideal place every business wants to be as that will remove the tight dependency with technology and can take up any business changes in a plain and natural language rather than follow through the different and difficult process to achieve the same.</p><p>Though this seems to be very good for business, achieving the spec as a source comes with a lot of practical difficulties like accountability and responsibility when something goes wrong. LLMs might not interpret the explanation in spec as sources as you have it in your mind and with current state, LLMs are generating multiple solutions and approaches or answers for the same question and we can’t expect consistency. The same change request tends to produce different implementation each time. And in spec as source you are not allowed to touch any part of the code manually. All the changes, even a simple screen text box name change, should be done through SDD. This may look simple but<br>practically this is not cost effective or a simple thing to do so in spec as a source.</p><p><strong>Why does Spec Anchored approach feel more reliable and practical ?</strong><br>Spec as a source is really tempting and seems like more control over what is built with very basic English. But the reality is spec as a source is not the right choice all because of the reason we discussed above. But when we start thinking about the spec anchored approach which seems like somewhere in the middle or a route to achieve the spec as a source feels more comfortable. Why ? Because that is practical and can be adopted by any project or enterprise at any stage of their solution or product.</p><p>The main and most important difference is in spec as source “humans should never touch the code” this is to maintain the spec’s integrity as if any manual change happens in the code and spec will drift and not be under compliance. But with a spec anchored approach humans still can make the changes and to be frank just to change the name of a button we are not ready to undergo so many steps and processes. This feels practical in a real world scenario. But during these incidents (manual changes) we should know that even in a spec anchored approach the spec is drifted. And it’s the user responsibility to update the spec as well to alight with the current state of the project.Why Spec as a source is not the ideal state SDD needs to move forward?</p><p>Even with all the advancement in LLMs problems like hallucination and inconsistent behaviour is still not solved. With this problem not answered or rectified properly, It is not right and advised to choose spec as source as of now. The fear of not being in control over how applications internally function and clarity on how to fix when things go wrong is another main reason not to adopting spec as a source.</p><h3>Myth 4: The “More Data is Better” Myth</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JXyt09ot50qfBN3die1vvg.jpeg" /></figure><p><strong>Myth</strong>: <em>To get the best results, just dump all your wikis, codebase, and docs into the LLM’s context window. The AI will figure it out.</em><br><strong>Reality</strong>: <em>Signal degradation is real. Over-priming confuses the LLM and dilutes the specification.</em></p><p><strong>Is knowledge priming helping Spec-Driven Development?</strong></p><p>The direct answer is YES. We constantly assume LLMs can predict the next word better if it has more context and this is true in most cases, but unfortunately in our programming world the context often exceeds the sweet spot of better prediction way earlier, all because our tokens (words) are not as simple as normal English. So once the LLM reaches its context window limit it leads to compress the current context. LLMs will work on this compressed context from that point which might miss a few important intent. This leads to inconsistent<br>results and more hallucination.</p><p>As you can see now why staying inside the context window is more important to have a better result. Now dumping all the information feels so wrong and we need to identify the sweet spot for the context. But how we are gonna do that in a code base which is like 3 million lines of code. Let’s see that next. Why is context engineering important, and will knowledge priming help in achieving better context? The knowledge priming helps you achieve the “the right amount of context” / “sweet spot” in the context ecosystem. So how we understand and use knowledge priming is when the LLM knows exactly what it wants and also knows how to get it with minimal interaction that would drastically reduce the<br>context loaded in the window. It’s like a map for LLMs to get to the place where it wants to go in your code base. When you dump all the details for LLMs it’s like searching for a person without knowing the name in Times Square or trying to find a specific ship’s location<br>without knowing what it is called and where it is from and heading to. It scans all the dumped data and does a complex pattern match to find the relevant context and things will get even worse if what you ask is not in the same naming convention in your context. So a simple indexing will do the magic ? We think not a simple index but a smart way of organising things will do the magic, and this is crucial for each domain<br>and solution, so that needs to be discussed while building the knowledge What amount of knowledge is the right amount of knowledge?<br>The right amount of context is when LLMs can find the piece of code or information with 10 or fewer tool calls would assure you that you have the right amount of the context which LLMs can use.</p><h3>Myth 5: The “Skill equals Workflow” Myth</h3><p><strong>Myth</strong>: <em>If an LLM can write a SQL query or generate a unit test (a skill), we have automated the software development workflow.</em><br><strong>Reality</strong>: <em>A skill is an isolated capability. A workflow is a structured orchestration of skills, validation, and feedback loops.</em></p><p>People often think each skill is a workflow! There is a strong misconception about how people think what skills are and how these skills are associated with agents. When people write a new skill and add it as part of the skill, what actually happens. LLMs identify the new skill and try to use the given skill when the right time and circumstances arrive. But will it actually make it as a workflow itself ? The answer is no and when you write a skill it will mostly concentrate on solving a very specific problem and when the problem arrives the agent will use the skill to solve the problem.<br>A workflow is something which is a set of work that needs to happen one after another to complete a given task in a controlled and approved way. So workflow is more like building a whole working car, but skill is like assembling the door of a car. Assembling a door to a car body is very specific work and that doesn’t require what happens prior and after the door is assembled. But building the whole car needs to cover multiple steps in the right way. Workflow may contain N number of skills to achieve the goal. Skill is an integral part of Workflow, but workflow<br>can still be created without any of the specific skill and can depend purely on the instructions and system prompts.</p><p><strong>What is the structure that amplifies the efficiency of the AI (LLMs)</strong></p><p>Each workflow is designed to complete a set of tasks in a way that achieves the desired outcome. When a workflow is created the ultimate aim of the workflow should be to address the issues the user faces if the same process is handled manually. So what should a workflow address basically ? From our understanding and experience, a very rigid workflow makes it very difficult for users to use it and get a positive outcome with it. But a loosely coupled workflow might not finish the task associated with it as it tends to deviate from the goal.</p><p>That being said we don’t want to call out having the right amount of rigidness here as we called out in the context. Workflows need to be rigid but with little leverage that helps the user to refactor their work done using the workflow like revalidate the previous step after a new finding in the next step. For example let’s say a class is structured in domain as part of a workflow but during the logical implementation we identified there need to be a new variable. Now the workflow should provide an option or way to refactor the previous step and also help the user to replan the next steps with this change. Reflection loop, human-in-the-loop and checkpoints are the other key points that workflow needs to take care of.</p><h3>Myth 6: The “Autonomous Magic” Myth</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nSDnzSpyQNbXxR8pfyhFYA.jpeg" /></figure><p><strong>Myth</strong>: <em>AI Agents in SDD operate like open-world general intelligence — they figure out how to build the app on their own.</em><br><strong>Reality</strong>: <em>Unconstrained agents build chaos. SDD agents are strictly governed engines of intent.</em></p><p><strong>How is an Agent in Spec-Driven Development different from an agent in the world of LLMs?</strong></p><p>To answer this question let me ask what is your first prompt you ever entered in ChatGPT ? Is it a very specific question or very generic one or very personal one. Possibly all. But still it manages to answer all of them right at least to an extent you understand and have a bit more clarity. That is exactly what LLM did, answer from training data or from the data it knows already. In the same way if you ask a generic agent to follow the workflow it follows and when there is some other general question you asked which might not be relevant to the current workflow. A general agent would still answer as it is not bound by any constraints. This behaviour of answering all the relevant and irrelevant questions might be useful for the vibe coding or for a general research. But when it comes to the enterprise level application, this general agent might not be the right fit to do a SDD workflow as it might tend to answer any irrelevant question from its trained data.</p><p>In order to improve efficiency and to increase the concentration of the work. A SDD agent must have a strong boundary and capabilities that prevent the user from changing the course of the work that needs to be completed. So when a user uses the SDD agent that should be concentrated on the work that needs to be completed.</p><p><strong>What is the actual role of the “Constitution”, and how important is it for SDD?</strong></p><p>What makes the SDD’s agent very different is its bounded context or setting the boundaries. And SDD also provided how to achieve this bounded context in the name of constitution. Where each constitution file will contain a set of instructions the LLMs or Agents or GenAI that need to follow. These constitutions define the boundaries of the LLMs on what are the different things it should never do in the SDD. How this works is when the constitution contains there should not be any PII data in logs as well as in the db traction. Then by default the Agent will always try to obey these rules by not logging in the PII data and also during implementation it should suggest and implement the solution that matches the constitution rules.</p><h3>Recommendations: What Actually Works in Reality</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hGe2flWglj3d5wvjumPHtg.jpeg" /></figure><p><strong>Start Small:</strong><br>In the world of GenAI everything seems to be achievable and would even look like an easy win at first and that’s a trap. That is the illusion created by GenAI. So before betting ALL IN for SDD, test the water with important pieces of work from your project and get the learning and decide if SDD is the way for your team and organisation. If you see the real values of context, code generation, agents and skills. And you can live with GenAI’s hallucinations. Then migrate step by step to achieve the end to end SSD enabled team. On the same note don’t drastically change the ways of working just to adopt a new paradigm, try to understand the fundamentals and see if you really need to change or you have a better way of adopting it to your existing ways of working. Once you identified these and adopted that means you are a GenAI enabled team or organisation by default. Spec Driven Development is not about who starts first, it’s about who finds the right pieces to solve the puzzles in the right way.</p><p><strong>Invest in Context over Prompts:</strong><br>Spend more time curating your Memory Bank and Constitution than tweaking individual prompts. When you start investing your time in understanding the Agents or GenAI or even the SDD framework, what you are actually doing is trying to give the right set of information to an algorithm which helps you to predict the RIGHT next word. So even with our general thought process, if a person has the right knowledge about a subject, they seem to find what would be next thing which is more appropriate to say or will happen in that space. The same way you need to give GenAI the right amount of context to solve a problem by predicting the next word.</p><p>And what is the right amount of context, there is no direct answer for that, each team and each repo may change as per the flavour of work it is doing. The ultimate thought process you need to have is, you don’t need to start from 100%. You just need to start from somewhere around 20–30 % and improve constantly to reach 100%. Investing time in building the knowledge and context will always repay you in multiple ways.</p><p>First you have a living document which any AI can read and understand without exposing your codebase. Second, if you create this document as a markdown file even your new joiner will have a wonderful onboarding document which is always up to date with code base. Third and most important is the reduced context window and tool call from reading through all the code to get the context which in turn reduces the token usage and also reduces the AI Credits consumption.</p><p><strong>Shift Left on Intent:</strong><br>In the trend of shifting left being with us for so many years we are finally on the very edge of the left. And this is what we are trying to achieve in our so many years of software development. Just writing the right requirement, nothing else is needed. As it seems so fascinating and interesting, the reality is this is just the beginning of the final shift left. And this might be the hard part, now code can be generated, tests can be generated but all of them are based on the specification we developed from requirements.</p><p>So it’s a huge responsibility of the user to review the specification and its artefacts to make sure what is intended and also delivered as intended. When this is right, the rest of the development process will fall into place by itself. Keeping the importance of specification we would urge all the people who are part of the specification and its artefacts (knowledge, commit messages, etc..) to review in the same way as we reviewed the codebase and its artefacts.</p><p><strong>Closing Thought:</strong><br>Reiterate that in the AI era, the companies that win will be the ones that master the clear expression of intent, not just the generation of code. We discussed a lot about the potential, problems and myths of the Spec Driven Development, now you folks might have two things in mind,</p><blockquote>“one, yeah we know all these problems what would you folks suggest to solve them. <br>Other, this is not a problem or myth this assumption is right from my perspective and for the problem i am facing”.</blockquote><p>Now let’s talk about where we stand and what we did or would to do address these problems to give you a clear idea. As you might know there are three types of Spec Driven Development we explored earlier. And you might also understand we never discussed even a single point of spec first approach. That is literally the structured version of vibe coding, no artefacts after the completion is too much of a process for a little gain (generating the code). In an ideal world when LLM is consistent (let’s assume) and when we can make an AI agent accountable for the production bug, spec as a source would be the perfect option. In which you never touch the code but just share the expectation and let LLM take over.</p><p>Now when you would start using the application that was built in spec as source, even QAing is an option if we have that tremendous performing LLM or GenAI. Do we have that right now? No. Even when you read the above you might already understand how fantasy the thought process is. Yes, you are right to do so. And what you thought is absolutely valid. This thought you had while reading the above is the perfect answer to “Can I choose Spec as a Source for my SDD?”. We know we are not there right now and we don’t know exactly when we will reach there as well. That leaves us with only one option in hand “spec anchored”, why this seems promising. There is more reason I can explain it now. But let’s just discuss a few key points.</p><blockquote>1. In spec anchored method devs/users still can touch the code and refactor.<br>2. Spec or artefacts of the spec is maintained, so once the story is done we will get something out of it except just code.<br>3. This is more than just a vibe coding, this is a structured and focused process.<br>4. When a spec anchored approach is in place, in theory it’s easy to upgrade to spec as source when all other factors which bothers us are fixed or rectified.</blockquote><p>That being said, think of spec anchored as a journey to achieve the ideal state or an intermediate stage where better of both world GenAI and Human consistency live together to solve the problem in the best way possible.</p><p>Co-Authored by: <a href="https://medium.com/u/80a1f3eef40c">Sofeiyakalaimathy</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=525a35819687" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>