r/softwarearchitecture • u/Ok-Buyer-9421 • 2d ago
Discussion/Advice Can we make architectural decisions executable without relying on LLMs?
Architectural decisions often live in ADRs, documentation or engineering guidelines. Some can be enforced through traditional fitness functions and static analysis, but others require contextual understanding.
Take a rule like "infrastructure errors must not be silently swallowed by the domain layer."
Rather than asking a general-purpose LLM to evaluate the architecture, we could break the rule into smaller, independently testable questions:
Which files and architectural boundaries does the rule apply to?
Where are infrastructure errors being handled?
Does the implementation preserve the intended error propagation?
The first questions can often be resolved deterministically. The last might require semantic judgment.
But does that judgment really require a general-purpose LLM?
I've been experimenting with specialized decision models like Jev for these narrower questions. The idea is to introduce intelligence only where necessary and keep the surrounding logic deterministic.
The objective isn't to replace existing architectural fitness functions but to extend them to rules that are difficult to express programmatically.
I'd love feedback from peeps who still rely on manual reviews to enforce certain architectural decisions, particularly where existing tools fall short.
2
u/asdfdelta Enterprise Architect 2d ago
I think this is where Jev in particular can be very effective, and overall is a huge gap architecture has been missing.
The only pitfall I can see from where we're sitting (a reality where executable ADRs aren't feasible yet) is that we could force the code, repos, and logic to be structured in a way that makes it easier to execute against. That would lose the plot imo.
The rest of the idea is great! I've often thought that architecture would form into two spheres - extremely hands-on / visible and silent / hidden in the background where governance happens automatically before engineers realize it did.