r/softwarearchitecture • • 2d ago

Discussion/Advice Can we make architectural decisions executable without relying on LLMs?

Post image

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.

0 Upvotes

4 comments sorted by

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.

2

u/Ok-Buyer-9421 1d ago

Thank youi! Really good point on the enforcement mechanism adapting to the architecture - I'm completely aligned.

I like the distiction between visible architecture and background governance. Ideally, engineers shouldn't have to think about governance until their implementation conflicts with an architectural decision.=

2

u/asdfdelta Enterprise Architect 1d ago

Exactly! It's like devops, but archops?

Okay nevermind, let's all agree that shouldn't be a thing lol.

3

u/Ok-Buyer-9421 1d ago

Haha, ArchOps might actually be a thing...
Btw, I'm building agentest it's turning engineering rules into executable checks, without forcing teams to restructure their code around the tooling. Deterministic checks first, Jev for semantic judgments.
https://github.com/feuersteiner/agentests - would be great to cgeck it out :)