← All articles

Tension in Software Design: Why Specifying More Isn’t Specifying Better

15 min readcomputer-sciencesoftware-engineeringartificial-intelligencesoftware-architecturesoftware-development

Machine-translated from Spanish. Read the original

ByFederico Sawady O'ConnorRagnagrok Academy

In traditional software engineering we take refuge in the safety of strict rules, such as low coupling, high cohesion, normalization up to third normal form or SOLID as gospel. For decades, some of these techniques were walls against chaos. And they made sense, back when our only counterpart was a deterministic toolchain (the compiler, the linter, static analysis).

But something changed. Advanced language models (GPT, Claude, Gemini and the ones still to come) are not static checks. They are probabilistic reasoners with a remarkable ability to navigate ambiguity. And when we treat them as if they were a validation pipeline — dictating airtight constraints to them — we get exactly what we deserve, which is code that follows the rules but may fail to solve the (business) problem.

True mastery isn't about dictating unbreakable laws. It's about making conscious tensions explicit.

The prompt prison as an antipattern

Many senior developers and tech leads, used to writing rigorous specs for human teams, replicate the same pattern with language models. The prompt becomes a prison of constraints:

Write this module strictly following SOLID, 
no external libraries, with 90% test coverage, 
using only constructor dependency injection, 
no abstract classes.

The result will work, but it could also turn out mediocre. Why?

Because every constraint shrinks the solution space the model can explore. By stacking constraints, you're not guiding the model toward the best solution — you're forcing it to optimize for your rules, and maybe not for your problem. It's the difference between telling an architect “design me a house” and telling them “design me a house with no windows, no wood, no more than one floor and no curves.” Technically they'll comply, but you've taken away all their ability to design.

Fred Brooks, in his famous paper “No Silver Bullet — Essence and Accident in Software Engineering” (1986), distinguished between essential complexity — the kind inherent to the problem you're solving — and accidental complexity — the kind we introduce ourselves through our tools and processes. Strict rules in prompts are, frequently, generators of accidental complexity. You're asking the model to solve your problem and also to navigate a maze of constraints that may have nothing to do with the real problem.

The specification debate, SDD and its nuances

This antipattern isn't limited to individual prompts. Right now the industry is living through a scaled-up version of the same dilemma with the rise of spec-driven development (SDD).

The promise, a seductive one, is that you stop “vibe coding,” write a formal specification and let the AI agent execute it. SpecKit has racked up 77,000 stars on GitHub. AWS built an entire IDE around the concept (Kiro). Tessl raised $125 million betting that specs — not code — should be the source of truth.

But the results don't always live up to the promise. At Scott Logic, Colin Eberhardt tried Spec Kit on two increments of an app of his own and estimated that, without SDD, he works around ten times faster and with less ceremony. With Spec Kit he got one small bug, and with his iterative way of working, none. Alvis Ng, in his article “Spec-Driven Development Is Waterfall in Markdown” (Medium, March 2026), compared SDD to the same bet the industry made with outsourcing, the belief that if you document something in enough detail, someone (or something) on the other side will execute it perfectly.

Correction (November 25, 2026). The first version called the Scott Logic post a "study" and said SDD had the same bugs. It's one developer trying it on one app, the "ten times" is his own estimate, and the Spec Kit version had a bug the iterative one didn't ("without any bugs in the implementation"). I found it in a review of the series. The paragraph's point holds, but as a reported experience rather than a measurement.

Now, the problem isn't specification as such. Specs can be valuable tools. The problem shows up when they're treated as closed contracts — exhaustive documents the agent must carry out to the letter — rather than as guides that leave room for reasoning.

A spec that says “implement OAuth2 authentication with refresh tokens, expiration handling and revocation” is useful. A spec that also says “the system will receive sporadic traffic in bursts of 10K simultaneous users during sales events, but the rest of the time it's nearly idle, and we want the solution to be cheap without sacrificing the experience during those peaks” is much more useful. The first describes the what. The second captures the why and the in what context — and that's what allows the model to make smart design decisions.

The quality of technical language matters

There's another factor the SDD debate tends to overlook, which is the quality of the technical language in specifications. Writing more isn't enough. You have to write well.

A language model is, ultimately, a system that operates on text. The precision of its output is directly tied to the precision of its input. A spec that says “make the API fast” will produce generic results. A spec that says “the p99 latency of the /checkout endpoint shouldn't exceed 300ms under a load of 500 requests/second” gives the model something concrete to reason, plan and even execute autonomously against.

This applies to design vocabulary too. Saying “the modules should be well separated” is not the same as saying “the billing module should be deployable independently of the inventory module.” The first is a vague aspiration; the second is an architectural constraint with concrete implications for API contracts, persistence and deployment.

Poorly written specs (imprecise, ambiguous, full of fuzzy jargon) aren't fixed by adding more detail. They're fixed with better technical thinking translated into better technical language. If the specification isn't well articulated, not even the best model in the world will infer what you meant.

My approach, specs with expert intuition and not set in stone

In practice, I don't throw specifications out. But I don't follow them to the letter either.

What I do is closer to writing user stories informed by an intuition for how the particular model I'm working with behaves. After working with a model for a while, you start to develop a sense of which kinds of instructions produce better results, such as where it pays to be specific and where it pays to leave some slack, which technical vocabulary the model handles most fluently or what kind of business context helps it make better design decisions.

My specs aren't exhaustive documents that try to cover every edge case. They're more like intent guides that aim to be “AI-friendly,” which is why they're written with an eye to how the model will process them, in total contrast to how a human would read them.

And after generation, I don't do code review in the traditional sense. What I do is an acceptance loop, in which I evaluate whether the result resolves the tension I laid out, I test the critical paths, and if something doesn't add up, I adjust the guide and iterate again. It's a cycle closer to a dialogue than to an inspection.

I don't expect magic. But I don't try to control every line either. The point is to take an active part in a process where the specification is a malleable starting point, not a fixed contract.

Tension as a design tool

What did change radically in my workflow is how I specify. Instead of prohibitive rules, I try to express explicit tensions.

A tension is a pair of conflicting forces that the model has to resolve. It's telling it “these two things matter, and they contradict each other — find the balance.”

Rule-based approach:

Normalize to 3NF. Don't use JSON columns. 
Indexes only on primary keys and foreign keys.

Tension-based approach:

Design this schema knowing that today we have a million records, 
but we'll probably scale to ten million within a year. 
I don't want premature over-engineering, but I need the path 
to sharding to be evident in the design.

In the second case there's no prohibitive rule. There's a load projection and a direction of evolution. The model understands that the optimal solution lives in the balance between present simplicity and future scalability. It can decide to denormalize a table if that simplifies the path to sharding, or it can keep things normalized if the volume doesn't justify it. The decision stays in the hands of the reasoner, which is exactly where it should be.

Second example, performance vs. maintainability

Rule-based approach:

Optimize for O(n log n) or better. 
Don't use more than 50 lines per function.

Tension-based approach:

Optimize this algorithm for latency, but assume the maintenance 
team is junior. If the micro-optimization makes the code 
incomprehensible, I'd rather have 20ms more latency and code that 
documents itself.

Here you're giving the model something rules can't capture, a hierarchy of values with a tolerance threshold. The model can decide the micro-optimization is worth it if the cost in readability is lower than expected, or it can go with the clearer solution if the performance delta is marginal.

Third example, pragmatic decoupling

Rule-based approach:

All modules must communicate through interfaces. 
Zero direct dependencies between layers.

Tension-based approach:

I want low coupling, but this feature has exactly three 
known use cases. I'd rather have a "dry-ish" solution that's easy 
to refactor than a generic abstract interface that 
nobody understands today. If we need to generalize it in six months, 
the refactor should be trivial.

Decoupling is a principle, not a dogma. Sometimes the abstraction needed to decouple two components introduces more cognitive complexity than it resolves. By expressing this as a tension, you give the model permission to make a conscious trade-off instead of following the rule blindly.

The theoretical foundations of why this works

This idea of “design by tension” isn't new. It has deep roots in systems thinking and in software design theory.

Christopher Alexander and conflicting forces

Christopher Alexander — the architect whose ideas inspired design patterns in software — never thought of patterns as fixed recipes. In A Pattern Language (1977) and especially in The Timeless Way of Building (1979), Alexander describes patterns as resolutions of spatial tensions. Each pattern exists because there are forces in conflict (light vs. privacy, circulation vs. intimacy), and the pattern is the way to resolve that conflict in a specific context.

The software community adopted Alexander's notation (name-context-problem-solution). In his OOPSLA 1996 talk he acknowledged that format as a useful vehicle of communication, but said he didn't see in software patterns the rest of what a pattern language has to do, which is to have a moral component (asking whether the result makes people's lives better) and to be generative, meaning that the system of patterns produces a coherent whole. The idea that good design doesn't apply patterns mechanically but resolves the tensions of each situation comes from his books, not from that talk. When we pose tensions to a language model, we're going back to what Alexander really meant.

Correction (November 25, 2026). The first version said that in his OOPSLA 1996 talk Alexander had pointed out that the software community ignored the idea of resolving the tensions of each situation. In the transcript he doesn't talk about forces or tensions, and what he misses is the moral component and generativity. I found it in a review of the series. The idea of conflicting forces is still his, but it comes from the books.

Richard P. Gabriel and “Worse is Better”

In 1989, Richard P. Gabriel wrote an essay that would become legendary in software engineering, “The Rise of ‘Worse is Better’” (originally a section of “Lisp: Good News, Bad News, How to Win Big”). Its central thesis is provocative, and holds that simplicity of implementation tends to matter more than perfection of design. A “worse” but simple, portable and working system has better “survival characteristics” than a perfect but complex one.

That's why, when we stack strict rules in a prompt, we're chasing “The Right Thing” — the perfect solution that meets every criterion. But as Gabriel argues, that solution takes too long to arrive and is too rigid to adapt. By admitting tensions — by telling the model “this is the ideal, but this other thing is the practical one, find the middle ground” — we're applying the worse is better principle, according to which an 80% correct solution now, one that can evolve, is worth more than a 100% correct solution that nobody understands.

Gabriel himself went back and forth on this idea for years — he even wrote an essay refuting his own thesis under the pseudonym “Nickieben Bourbaki,” and then another defending it again. That oscillation is, in itself, an unresolved tension. And that's probably where its power lies.

Fred Brooks and essential complexity

Brooks, in “No Silver Bullet” (1986), argues that most of the difficulty in building software is essential — it comes from the problem itself, not from our tools. Accidental complexity (the kind we create) can be reduced with better languages, better tools, better abstractions. But essential complexity remains.

Strict rules in prompts stay at the level of the accidental (code formatting, patterns to follow, technical constraints), and as I said earlier, they often add to it. Tension, on the other hand, goes after essential complexity, because it tells the model what the real problem is and which forces are at play. It's the difference between handing it a style guide and giving it an understanding of the domain.

Correction (November 25, 2026). The first version said that strict rules "go after" accidental complexity, which contradicted the first section, where the rules generate it. The rules operate on the accidental, but they don't reduce it, and they often add to it. I found it in a review of the series. The contrast with tension, which aims at the essential, doesn't change.

Goldratt and the Theory of Constraints

Eliyahu M. Goldratt, in The Goal (1984), proposes that every system has at least one constraint (a bottleneck) that determines its overall performance. His key insight is that optimizing any part of the system that isn't the constraint is a waste. Only improvements at the constraint move the needle.

Applied to our context, when we give a model a list of code rules (naming conventions, design patterns, cyclomatic complexity limits), we're optimizing parts of the system that probably aren't the project's real constraint. If instead we give it the business context — “we need to support 10M records,” “the maintenance team is junior,” “this service can't be down more than 5 minutes a month” — we're pointing out where the real constraint is. The model can then subordinate everything else to that constraint, which is exactly what Goldratt prescribes.

What changed in how I think

After months of working with advanced models, I notice that my best results share a pattern. It wasn't something deliberate at first, but rather a retrospective observation I kept refining over time.

The tension comes before the prompt. Before writing anything, what really helps me is asking myself which two or three forces are in conflict here. Performance vs. readability. Flexibility vs. simplicity. Delivery speed vs. robustness. If I can't articulate the tension, it's usually a sign that I don't understand the problem well enough yet, and probably no amount of rules will make up for that.

Business context pays off more than technical context. “This is the endpoint the checkout uses” tells the model much more than “latency under 200ms.” The model can infer the implications for performance, availability and error tolerance from the business context. Technical constraints are cheap to specify. Domain understanding is expensive, and it's where the model adds the most value when it has it.

The best solutions are the ones I didn't ask for. On many occasions I've found that the results that surprised me most were the ones where the model chose an approach I wouldn't have considered, but that resolved the tension more elegantly than my original idea. That only happens when the prompt leaves room for the unexpected. If every decision has already been made in the specification, you're paying for a reasoner and using it as a transcriber.

The rule has its moment, but it isn't the first one. This doesn't mean rules are useless. They're useful, but more as guardrails at the end of the process than as directives at the start. First the tension, then the exploration, and only then whatever hard constraints we need to impose. The order matters.

In conclusion, the programmer as orchestra conductor

In the era of advanced language models, the tech lead's role changes. It's no longer about being the “linting cop” who makes sure every line follows the rules. It looks more like an orchestra conductor who communicates the vision of the system as a set of conflicting forces, and lets each instrument, whether human or artificial, find the best way to resolve them.

Don't look for the perfect solution that follows every rule. Look for the right tension, the one that brings out the most elegant solution. Rules are there to serve the product, not the other way around. Knowing how to break them consciously is what separates a mere coder from a systems architect.

Support the blog

If this article was useful to you, you can sponsor the blog on GitHub. It helps me keep writing.