Code is Cheap. Intent is Not. | xtLogic
AI has made it much faster to produce code. Deciding what that code should do still takes judgment.
Ask a coding agent to add an onboarding flow and it can produce components, routes, validation, database migrations, and tests. But it still needs to know what onboarding means: who can join, what information is required, which permissions they receive, and what happens when something fails halfway through.
Without those decisions, an implementation can be technically competent and still solve the wrong problem.
The faster implementation becomes, the more expensive ambiguity can become. That is the problem spec-driven development, or SDD, addresses.
A specification that stays in use
The principle is straightforward: describe the intended behavior before implementation, preserve it somewhere the team can inspect, and use it to guide and verify the work.
An informal AI coding session can become a cycle of prompting, inspecting, correcting, and prompting again. That can be useful for exploration. It becomes difficult to manage when important decisions survive only in the conversation.
Idea → prompt → code → inspect → correct → prompt again.
The loop can produce working code while leaving the intended behavior implicit.
SDD makes the decisions explicit and connects them to implementation:
Idea → specification → clarification → technical design → tasks → implementation → validation against the specification.
The specification gives both implementation and review a shared reference.
The important change is that the specification remains active. It can be questioned before code is written, checked while the feature is built, and deliberately revised when the requirements change.
Writing a document at the start is only the beginning. Its value depends on whether people and agents keep using it.
Why conversation alone is fragile
Imagine a session that starts with “add organizations.” Later, the team adds members, administrators, and owners. Someone explains that administrators can invite members but cannot remove owners. Hours later, an administrator can delete the entire organization.
The conversation contained useful instructions. It did not necessarily contain a complete, consistent permission model.
A durable specification lets the team inspect those rules together. Who can create an organization? Who can invite people? Who can remove them? What happens to records when an organization closes?
The same applies to architectural constraints. If an organization is the tenant boundary, authorization happens on the server, and billing belongs to the organization, those decisions need to be available whenever an agent changes the relevant code.
This reduces the number of consequential decisions the agent has to infer. It also gives a human reviewer something more useful than a long chat transcript.
Describe the behavior before choosing the machinery
A useful specification makes the intended outcome testable.
Consider a clinic administrator inviting a doctor to join a clinic. “Add invitations” leaves too much open. A more useful description establishes who may invite, what the recipient receives, how acceptance works, and what happens when an invitation expires.
It should also address the uncomfortable cases: the doctor is already a member, an invitation is already pending, the administrator lacks permission, or the clinic has reached its account limit.
Those decisions define what must be true. The technical plan then explains how to make it true: the data model, authorization checks, delivery mechanism, interface states, and tests.
The distinction helps prevent a convenient implementation choice from quietly becoming a product rule. Existing infrastructure and known constraints still matter; the aim is to make their influence explicit.
A family of practices
There is more than one way to organize this work.
GitHub Spec Kit connects specifications to technical plans, tasks, implementation, and convergence. Kiro organizes requirements, design, and tasks, with different entry points for feature work and bug fixes. OpenSpec keeps requirements and proposed changes in inspectable artifacts and updates the specifications as changes are completed.
Project principles guide the work. A simplified lifecycle runs from specifying and clarifying the behavior through planning, defining tasks, implementing, and validating the result. Each stage makes decisions available to the next.
The durable idea is that intent should remain available before, during, and after implementation. The tool is one way to support that discipline.
The prototype can improve the specification
Rapid frontend prototyping adds something useful to this process: a way to discover requirements by interacting with the intended experience.
“Users should have a dashboard where they manage properties and reservations” sounds clear until somebody has to design it.
Are reservations shown across the portfolio or for one property at a time? Which information appears first? Can an operator change dates directly in the calendar? Where do failed actions appear? What happens on a phone?
A clickable prototype makes these questions tangible. It lets the team walk through the experience, expose assumptions, and identify missing states before committing to the full implementation.
Its job is to help the team learn. A convincing screen does not prove that authorization, persistence, integrations, or failure recovery work. Those still need to be specified and built.
The prototype becomes a visual companion to the written specification. Each can reveal gaps in the other.
A practical development loop
The sequence below is a useful starting point for product work. It should allow movement back and forth as the team learns.
1. Establish intent. Describe the problem, who experiences it, and what a useful outcome would look like. Give the work a reason to exist before committing to a solution.
2. Capture the initial requirements. Record the known users, roles, actions, business rules, and constraints. Make unresolved questions visible. This is a first version of the specification, not a promise that nothing will change.
3. Prototype the important interactions. Make the experience concrete enough to review. Include empty, loading, error, permission-denied, and success states where they affect the workflow. Use realistic examples without presenting simulated behavior as a working integration.
4. Walk through real scenarios. Check whether someone can complete the intended task. Identify missing information, confusing transitions, hidden assumptions, and the backend capabilities each interaction requires. Record what the prototype teaches you.
5. Refine the specification. Bring the written behavior and the reviewed experience into agreement. Define the scenarios, business rules, edge cases, and acceptance criteria. At this point, the team should be able to explain how it will recognize a correct implementation.
6. Make the technical decisions. Design the architecture, data models, API contracts, authorization, integrations, and operational behavior needed to support those requirements. For a risky dependency, a small technical experiment may be needed earlier. Feed what it reveals back into the specification.
7. Plan small, verifiable slices. Where practical, build a complete user capability through the relevant layers. Property creation, for example, can include the interface, validation, persistence, permissions, and tests. That gives the team a meaningful result to inspect before moving to the next capability.
8. Implement with the relevant context. Give the agent the specification, prototype, technical decisions, task, and applicable codebase conventions. Keep that context focused and current. A larger pile of documents is not automatically a clearer instruction.
9. Verify the behavior and the experience. Use tests, review, and interaction with the product to establish what actually works. Review the tests against the requirements too: an implementation and its tests can share the same mistaken assumption.
10. Reconcile the result with the intent. Compare the implementation with the specification. Correct an implementation gap, or deliberately revise a requirement when new evidence justifies it. Record unresolved gaps rather than treating a completed task list as proof of completion.
This last step is often called convergence. Spec Kit includes an explicit implementation-and-convergence loop. The broader discipline is useful regardless of the tooling: keep checking whether the system and its stated behavior still agree. GitHub Spec Kit
Verification asks several questions
Different forms of evidence answer different questions:
| Evidence | What it helps establish |
|---|
| Specification and acceptance criteria | Whether the implemented behavior matches the agreed requirements. |
| Tests and technical review | Whether the checked behavior works under the conditions exercised. |
| Prototype and experience review | Whether people can understand and complete the intended workflow. |
| Operational observation and user feedback | Whether the released product works in its actual setting and solves the intended problem. |
None of these is sufficient on its own. Passing a local test does not establish that an external provider behaves as expected. Matching a prototype does not establish that the product is useful. A specification can itself be wrong.
Release therefore continues the learning process. Feedback should change the requirements deliberately, so the next iteration starts from an updated understanding.
The complete loop is:
Idea → intent → initial specification → prototype → review → refined specification → technical design → tasks → implementation → verification → convergence → release → learning → updated specification.
The arrows describe a working sequence. They should never prevent a team from returning to a decision that new evidence has invalidated.
Keep the process proportionate
There is an obvious failure mode: enormous specifications, mandatory gates for every minor change, and documentation that costs more to maintain than it helps anyone understand.
Specification depth should scale with uncertainty, complexity, and consequence.
Changing button padding does not require a constitutional convention. Changing who can access another organization's financial records deserves explicit rules and careful verification.
Kiro's Quick Spec is one example of tooling that offers a shorter route for well-understood work. The underlying judgment remains with the team: decide what needs to be clarified and what evidence the change warrants.
For an existing product, start with the current behavior and the proposed change. Preserve the surrounding rules instead of rewriting the entire system specification for every feature.
Engineering context becomes part of the work
As agents take on more implementation, the environment around a task becomes increasingly important. Product intent, domain concepts, design decisions, interface references, contracts, tests, and existing system behavior all shape what the agent can reasonably produce.
This is part of the broader practice of context engineering: selecting and maintaining the information an agent needs for the task at hand. SDD provides a way to organize the intent and constraints within that context.
The prompt is still useful. Its effectiveness depends on the decisions and evidence behind it.
For product teams, the practical question becomes: can we describe the intended behavior clearly enough for an agent to implement it, for a reviewer to evaluate it, and for a human to understand why it should exist?
Specifications preserve those decisions. Prototypes make them tangible. Tests and observation expose where the result falls short. Human judgment connects the pieces and decides when the intent itself needs to change.
That is where the serious work remains, however quickly the code arrives.
Adapted for the xtL Library from the author's original LinkedIn article, published 18 August 2026. Join the discussion on LinkedIn.
Working through an idea with too many unanswered questions? [Tell us what you're working on](https://xtlogic.com/).