INSIGHTS / AI & ENTERPRISE ARCHITECTURE / ESSAY
AI / ENTERPRISE SOFTWARE / TECHNOLOGY LEADERSHIP

AI in Modern Software Architecture: Beyond the Hype.

The most consequential AI decisions are not about impressive model output. They are about the product, the boundaries, and the responsibility we place around it.

BY VAHE KARAMIANAI ARCHITECTURE · PRODUCT STRATEGY
Jump to section

The conversation around artificial intelligence in software architecture often starts with an impressive demonstration. A model produces useful text, extracts information from documents, generates code, or completes a workflow that previously required several steps. The immediate question is predictable: How quickly can we put this into the product?

I think a more important question comes first: What responsibility are we asking this capability to carry?

That distinction changes the architecture. A model can be remarkably useful and still be the wrong component for a particular decision. A prototype can feel intelligent without being dependable. And a feature can perform well in isolation while introducing costs, security risks, and operational uncertainty into the larger system.

AI becomes valuable when it improves a real workflow—not when the model becomes the workflow.

My perspective is shaped by a broader lesson from enterprise software, connected systems, and immersive technology: the most difficult engineering decisions usually concern the boundaries around a capability. AI makes those boundaries more important, not less.

1. Start with the decision, not the model

Before selecting a model, I want to understand the task. Is the system helping someone discover information, prepare a draft, classify an item, identify an exception, or take an action? What decision follows the output? What happens if the output is incomplete or wrong?

These questions help distinguish genuinely useful AI from unnecessary complexity. If a well-defined rule or conventional search operation solves the problem more predictably, it may be the better design. If the work depends on ambiguity, language, context, or interpreting inconsistent material, an AI-assisted component may be worth evaluating.

The evaluation should also establish a baseline. How is the task performed today? What does it cost in time and effort? Which errors matter? A solution that sounds sophisticated but fails to improve the user's outcome has not earned its place in the architecture.

For product leaders, this is not a rejection of experimentation. It is a way to turn experimentation into evidence rather than allowing excitement about a tool to determine the product strategy.

2. Give probabilistic components clear boundaries

Traditional enterprise systems often rely on explicit contracts: an API returns a defined shape, a permission check authorizes an action, and a transaction commits or fails according to known rules. Generative AI introduces behavior that is less deterministic. The same request can produce different wording, different assumptions, or different interpretations.

That does not mean it cannot be used responsibly. It means the surrounding architecture must make its role explicit.

  • Define inputs: which data, documents, and context are needed for the task?
  • Constrain outputs: can results be validated against a schema, evidence, or business rules?
  • Separate recommendations from actions: an AI-generated suggestion is not automatically permission to change a production record.
  • Keep escape routes: can the user correct, reject, retry, or complete the task without the model?

For example, an assistant may help assemble a training scenario or propose content structure. That does not make it the authority for publishing, access control, versioning, or deployment. Those responsibilities still belong to governed application services and people with the appropriate roles.

I prefer architectures in which the model is an adaptable component behind a stable service boundary—not a shortcut around the boundaries the system already needs.

3. Data access is an architectural decision

Many useful AI applications depend on organization-specific information. This raises immediate questions about ownership, classification, retention, access, and the source of truth. A helpful answer that exposes the wrong information is not a successful result.

Retrieval-augmented approaches can bring relevant documents into a task without requiring that all proprietary knowledge be placed into a model. But retrieval adds its own responsibilities: permissions must be respected, information can be stale or contradictory, and the system must distinguish a source from the model's interpretation of it.

Good architecture starts with the existing data model and security boundaries. Who can retrieve each record? What happens when the search index is behind the operational system? Does a summary need supporting references? Can the user tell the difference between source-backed information and an inference?

Where sensitive material is involved, data minimization is as important as model selection. We should send only what the task requires, design access checks independently, and be deliberate about what the application retains for debugging or evaluation.

A model does not create trust merely by speaking confidently. Trust emerges from the way the entire system handles information.

4. Replace the demo with repeatable evaluation

A compelling single response is an encouraging experiment, not a measure of readiness. Production decisions need representative test cases: normal inputs, incomplete instructions, conflicting data, unusual terminology, adversarial content, and realistic edge conditions.

Evaluation must be tied to the actual workflow. A summarization feature may need to preserve critical facts; a technical assistant may need to cite the right source; a classification feature may need to recognize when evidence is insufficient. A system that can call tools must also choose the correct tool and use its result appropriately.

Some aspects can be tested automatically. Others require human review. Often the right answer is a combination: deterministic checks for structure and authorization, targeted quality evaluation for content, and expert review where judgment matters.

I would expect teams to version their test datasets, prompts, model configurations, and tool interfaces. When one of those changes, the product should be evaluated again. Otherwise, a seemingly routine update can change behavior without anyone understanding how or why.

Quality is not a fixed property of a model name. It is an observed property of a specific system performing a specific task under specific conditions.

5. Autonomy should be earned in stages

There is an enormous difference between suggesting an action and executing it. The first may create a useful draft for review. The second may modify records, send communications, spend money, or trigger downstream processes.

As AI systems gain access to tools and APIs, the permission model becomes central. Natural-language instructions are not a substitute for authorization. Untrusted documents and retrieved content should not be able to grant new privileges or override business rules.

My preference is progressive autonomy: begin with assistance, measure reliability, add constrained actions with explicit confirmation, and expand authority only when the system has demonstrated that it can operate within well-defined limits.

That approach may feel less dramatic than an unrestricted agent. It is also easier to reason about, support, audit, and explain to the people who must rely on it.

6. Engineer for cost, latency, and change

AI introduces a different operating cost profile. Each request may incur variable inference expense. Larger context windows and multi-step workflows can increase latency. External providers can change pricing, model availability, or service behavior. These are architecture concerns, not just purchasing concerns.

Not every task needs the most capable model. Teams should examine whether smaller models, deterministic processing, caching where appropriate, or a staged workflow can meet the same need. Sometimes the most economical architecture uses AI for a narrow judgment and conventional code for everything around it.

We should also plan for substitution. If a model is upgraded or a provider changes, can we evaluate the replacement without rebuilding the entire product? Clear interfaces, versioned configurations, and a limited number of integration points make those transitions less disruptive.

Cost has to be evaluated against value. The cheapest response is not useful if it creates rework, and the most capable model is not justified when a simple workflow would do.

7. Leadership remains accountable for the outcome

AI changes what teams can build and how quickly they can explore a problem. It does not remove the need for architecture, security, product judgment, or ownership. In many cases, it increases the importance of those disciplines because a feature can appear finished before its risks are understood.

Engineering leaders need to align several groups around one question: what level of reliability is appropriate for this use case? Product teams bring the user outcome. Engineers bring integration and maintainability. Security and legal teams bring constraints. Operations teams bring the reality of support, incidents, and change.

That conversation should decide the level of automation, acceptable failure modes, evaluation thresholds, human-review points, and responsibility after launch. These cannot be delegated to a prompt.

When something goes wrong, the organization should know which component failed, what the user experienced, and who can correct it. If those answers are unclear, the system is not ready to carry a critical responsibility.

8. Six questions I ask before an AI capability ships

I find it useful to reduce the discussion to a small set of decisions. Before releasing an AI-enabled capability, I would want clear answers to the following:

01 / VALUEWhich user task or organizational decision does this improve?
02 / EVIDENCEHow do we test the behavior against realistic, difficult examples?
03 / BOUNDARIESWhat data can it see, and what actions may it take?
04 / FAILUREWhat happens when it is wrong, slow, unavailable, or uncertain?
05 / ECONOMICSWhat are the real costs of operating and maintaining it?
06 / OWNERSHIPWho is accountable for quality and change after launch?

None of these questions requires an enormous process. Each requires an explicit answer. Together, they help move the discussion from a fascinating technical demonstration to a product decision that can withstand scrutiny.

Beyond the hype

I am optimistic about the role of AI in software engineering. It can compress the time between an idea and a working experiment, help people navigate complex information, and enable interactions that would once have been prohibitively expensive to build.

But the strongest products will not necessarily be the ones that place AI in the most visible position. They will be the ones that use it precisely, respect the boundaries around it, and remain dependable when the model is uncertain.

That is the distinction I would encourage organizations to make. Don't ask only what a model can do. Ask what your product can responsibly promise.

← BACK TO INSIGHTS