The 2027 Software Stack: What Should Be Human, Deterministic, or AI-Driven?

The 2027 Software Stack: What Should Be Human, Deterministic, or AI-Driven?

Suppose you are designing an e-commerce platform with an AI-powered customer support system. A customer reports that an order arrived damaged and requests a refund. The system needs to understand the complaint, retrieve the order, examine the refund policy, calculate the eligible amount, decide whether an exception is justified, issue the refund, and notify the customer. Which of these responsibilities should belong to an AI model? Which should remain in conventional application code? Which require a human decision? These are architectural questions, not model selection questions. A language model might be capable of performing most of these operations through tool calls. That does not mean giving it responsibility for all of them is a good design choice. For developers entering 2027, the software architecture discussion needs to move beyond databases, frameworks, microservices, and AI providers. Another dimension deserves attention: how responsibility is distributed between different forms of decision-making. Software systems may increasingly need three distinct layers: human judgment, deterministic execution, and AI-driven reasoning. The challenge is deciding where one layer ends and another begins. The Technology Stack Is Becoming a Responsibility Stack Traditionally, developers describe software architecture through its technical components. The frontend handles user interaction, the backend processes business logic, databases maintain application state, and infrastructure supports execution. AI introduces a different kind of architectural boundary. A language model is not simply another backend service returning predictable results. It interprets information, generates possible answers, and selects actions based on statistical patterns. Its behavior may vary even when the surrounding application remains unchanged. Recent software development statistics and trends highlight a broader shift in engineering work toward system design, architectural decisions, and human oversight as AI becomes part of the development process. That shift matters at runtime as well as during development. Engineers need to decide not just how software components communicate, but which components are allowed to make decisions. A useful way to examine this problem is to divide application responsibilities into three layers. Layer Primary responsibility Example Human Judgment, exceptions, accountability Approving an unusual refund Deterministic Rules, transactions, state, permissions Calculating the refundable amount AI-driven Interpretation, classification, reasoning Understanding a customer complaint These are logical responsibility boundaries, not necessarily separate services. An application can contain all three within the same deployment architecture. What matters is that their authority remains distinguishable. Layer One: Human Judgment Human involvement in software should not be treated simply as a fallback for poor AI performance. Certain decisions require responsibility that cannot be assigned entirely to an automated system. Approving a policy exception, changing a customer's contractual terms, accepting unusual financial risk, or resolving a dispute may require consideration beyond the information available to an application. Consider a customer who requests a refund after the permitted return period. The conventional system identifies the request as ineligible. An AI model reviews the complaint and identifies circumstances that might justify an exception. Neither component necessarily has the authority to approve that exception. A human reviewer can consider information that is difficult to formalize, including previous commitments, unusual circumstances, customer relationships, and the broader consequences of making an exception. The human layer should not be responsible for repeatedly performing calculations that software can handle. Its role is to resolve situations where policy, context, and accountability intersect. This requires a proper application interface. A reviewer should receive relevant evidence, an explanation of why the request needs attention, available actions, and the consequences of each action. Simply displaying an AI-generated recommendation with an approval button can encourage reviewers to accept decisions without examining them. Human review should be a designed part of the system, not an afterthought. Layer Two: Deterministic Execution The deterministic layer is responsible for operations whose correctness can be defined through explicit rules and authoritative application state. Authentication, access control, payment calculations, database constraints, inventory updates, and transaction processing are common examples. If a customer has already received a full refund, the application must prevent another refund from exceeding the original payment. This is not a question that requires language interpretation. The relevant payment records, refund history, and transaction rules should determine the result. Deterministic does not mean infallible. Conventional code can contain bugs, operate on stale information, or fail because of network conditions. Distributed systems may also exhibit different execution sequences because of concurrency. The distinction is that developers can specify the conditions under which an operation is valid and enforce those conditions independently of AI output. This becomes particularly important when multiple components interact with the same application state. If an AI model recommends a refund of $150, the payment service must independently establish whether $150 is permitted. The model's recommendation should not override the customer's actual payment history. The deterministic layer therefore acts as the application authority for state changes and enforceable rules. Layer Three: AI-Driven Reasoning The AI layer is valuable when a task contains uncertainty that would be difficult or expensive to express through conventional rules. Understanding an unstructured complaint, extracting information from documents, identifying similarities between support tickets, interpreting conflicting descriptions, and suggesting possible next steps are good examples. Imagine a customer writes: I ordered this for my daughter's birthday, but the box arrived crushed and the product inside doesn't switch on. I don't want another one because the event is already over. A conventional rules engine could struggle to identify the relevant meaning without extensive natural language processing. An AI model can recognize that the customer is reporting damaged merchandise, requesting a refund rather than a replacement, and describing circumstances that might affect how the case is handled. That interpretation is useful. It can reduce manual work and help the application select an appropriate workflow. What it should not do is silently transform that interpretation into an authorized financial transaction. The AI layer should produce proposals, classifications, extracted information, or recommendations within the responsibilities assigned to it. Developers can then evaluate those outputs before they influence authoritative application state. A Practical Example: Designing an AI-Assisted Refund System Consider a hypothetical refund platform with the following requirements: Customers can submit complaints using natural language. AI can categorize complaints and extract relevant information. Refund amounts must respect payment records and company policies. Certain exceptions require human authorization. Duplicate refund transactions must be prevented. Every financial action must be traceable. Instead of assigning the entire workflow to an autonomous agent, we can distribute responsibility across the three layers. Customer Complaint | v AI Reasoning Layer Interpret intent and extract evidence | v Deterministic Policy Layer Verify records and evaluate eligibility | +---- Eligible ----------------+ | | +---- Review Required ----+ | | | | | Human Review | | | | Reject Approve | | | | | v | | Revalidate | | | | | | | | v | | Payment Service | | ^ | | | | | | | | | | | | +---- Rejected ------+ | | Eligible ------------+ | v Record and Notify In this architecture, the AI model understands the request. The policy service determines the available actions. A human reviewer handles permitted exceptions. The payment service owns the financial transaction. No single component is responsible for everything. The boundaries also allow different parts of the system to change independently. A team can replace its language model without rewriting refund calculations. It can modify refund policies without retraining an AI model. It can change approval rules without altering the payment provider. These are useful properties when software needs to operate for several years rather than survive a product demonstration. Define What Crosses Each Architectural Boundary A responsibility boundary becomes meaningful only when the application defines what information and authority can cross it. Suppose the AI layer returns the following structured proposal: { "requestId": "REQ-4821", "orderId": "ORD-1842", "intent": "refund", "reason": "damaged_item", "requestedAmountMinor": 15000, "currency": "USD", "evidenceIds": ["PHOTO-21", "MSG-84"] } The amount is expressed in minor currency units to avoid floating-point arithmetic problems in financial calculations. This object represents a proposal. It does not represent a validated refund, an approved exception, or a completed transaction. The receiving service needs to verify that the order belongs to the relevant customer, the currency matches the original transaction, the evidence identifiers are accessible, and the requested amount is permitted. It also needs to treat evidence supplied through the customer complaint as potentially untrusted information. The AI model should not be allowed to introduce authority by adding a field such as: { "approved": true } Approval should originate from a trusted policy service or an authenticated reviewer acting within defined permissions. This distinction extends the argument in The Most Dangerous AI Bug Might Return HTTP 200. A syntactically valid AI response can still contain misleading information. For a three-layer architecture, the additional question is whether the receiving component recognizes which decisions the sender has the authority to make. One way to enforce these boundaries is to represent different stages of a decision using separate application types. Here is a simplified TypeScript example. type RefundProposal = { requestId: string; orderId: string; amountMinor: number; currency: string; }; type RefundDecision = | { status: "approved"; decisionId: string } | { status: "review"; caseId: string } | { status: "rejected"; reason: string }; async function processRefund( proposal: RefundProposal, actor: AuthenticatedActor ): Promise { const order = await orders.get(proposal.orderId); await permissions.assertCustomerAccess(actor, order); const decision = await refundPolicy.evaluate({ order, proposal, actor }); switch (decision.status) { case "approved": return decision; case "review": await reviewQueue.enqueue(decision.caseId); return decision; case "rejected": return decision; } } The model can supply a RefundProposal, but the policy service controls the resulting RefundDecision. Actual refund execution should happen through a separately protected operation that retrieves the trusted approval record and verifies that the approval remains valid. A client-provided decision identifier alone must not authorize a payment. The examples here are architectural sketches, not runnable production code. Real financial workflows also require input validation, concurrency controls, transactional safeguards, currency checks, durable state, idempotency, and reconciliation with the payment provider. The important design choice is that the model cannot directly manufacture the authority required to complete a sensitive operation. Who Owns the Application State? State ownership is another area where the distinction between the three layers matters. Imagine the AI model generates a refund proposal, a human approves it, and the payment service starts processing the transaction. Before the transaction completes, the application receives another request regarding the same order. Or perhaps the network connection drops just after the payment provider processes the refund. What should happen next? The answer should not depend on whether the model remembers the earlier conversation. Authoritative workflow state belongs in durable application storage. A refund request could move through the following states: State Responsible component Received Application service Interpreted AI layer Policy checked Policy service Pending review Workflow service Approved Policy service or authorized reviewer Execution pending Transaction service Refunded Verified payment transaction Rejected Policy service or authorized reviewer Reconciliation required Transaction service There is an important detail here. The AI layer may generate information associated with the interpreted state, but the application service should validate and record the transition. Similarly, a payment should move to the refunded state only after the application obtains trustworthy confirmation of the transaction. A lost network response does not necessarily mean the transaction failed. It may require reconciliation rather than an immediate retry. Without clear state ownership, several components may develop conflicting views of what happened. The AI model believes a refund was completed, the database records it as pending, and the payment provider has already transferred the money. That is no longer a model-quality problem. It is a software architecture problem. Human Approval Should Have an Expiration Date Human-in-the-loop architecture is often described as though approval permanently resolves uncertainty. In reality, the information supporting a decision can change between approval and execution. Suppose a reviewer approves a $150 refund at 10:00 AM. Before the workflow executes it, another customer service representative issues a partial refund against the same order. The original approval may no longer be valid. A useful approval record can include: The identity and authorization of the reviewer. The exact action parameters being approved. The relevant application state version. The policy version used during review. The time at which the approval expires. A unique identifier linking the approval to the proposed action. Before executing the refund, the transaction service should recheck the relevant state. If the available refund amount has changed or the approval has expired, the application should return to policy evaluation or human review rather than proceeding automatically. This guards against a time-of-check to time-of-use problem, where an operation is valid at the time of approval but no longer valid when it executes. Human authorization and deterministic enforcement are complementary responsibilities. One should not remove the need for the other. Use the Smallest Reasoning Mechanism That Solves the Problem A three-layer architecture does not mean every customer interaction requires a large language model. Some requests arrive through structured forms with known order identifiers and explicit refund reasons. In these cases, conventional validation and policy rules may be sufficient. Other requests may need a focused classification model rather than a general-purpose autonomous agent. The choice can be made according to the uncertainty involved. Software responsibility Suitable approach Calculate tax or transaction fees Deterministic code Enforce account permissions Authorization service Interpret an unstructured complaint Language model Classify routine support tickets Classifier or focused model Investigate conflicting documents Bounded AI reasoning Approve an unusual policy exception Authorized human Execute a financial transaction Transaction service Resolve an ambiguous payment status Reconciliation workflow This relates to an earlier discussion in The Cost of Letting AI Agents Make Too Many Decisions, which examined the overhead associated with unnecessary agent decisions. At the architectural level, avoiding an unnecessary model call is not just a way to reduce inference expenditure. It can also remove an uncertain dependency from a path that never required one. A system becomes easier to reason about when each component uses an appropriate level of complexity. How to Test Software With Three Different Responsibility Layers Conventional unit tests remain useful, but a hybrid software architecture introduces several different classes of behavior. Each layer requires its own testing approach. The deterministic layer should be tested against business rules, boundary conditions, concurrency scenarios, invalid inputs, and repeated transactions. The AI layer needs evaluation datasets containing ambiguous language, incomplete information, conflicting evidence, and adversarial inputs. The human layer requires testing of approval interfaces, reviewer permissions, escalation paths, expired approvals, and incomplete evidence. The boundaries between layers need particular attention because an individually functioning component can still participate in an invalid workflow. Test scenario Expected application behavior Model generates an excessive refund amount Policy service rejects or routes the request for permitted review Customer submits the same request twice Application prevents duplicate financial execution Reviewer approves an expired request Workflow requires renewed evaluation Model service becomes unavailable Structured refund request remains available AI returns an unrelated order identifier Ownership validation rejects the request Payment succeeds but network response is lost Transaction enters reconciliation Policy changes after approval Application checks whether approval remains valid Customer message contains instructions to bypass policy Deterministic authorization remains unchanged Consider including an evaluation where the AI model returns a perfectly formatted response containing an unauthorized action. The test should pass because the application refuses to execute the action, even though the model has produced an unsuitable recommendation. This is an important distinction. The goal is not necessarily to make every AI response correct. The architecture must also prevent incorrect responses from creating unacceptable outcomes. Design for Partial Failure, Not Total Shutdown Once an AI component becomes embedded in a software application, teams need to decide which functionality remains available when it fails. A refund platform should ideally retain access to order history, existing refund status, and structured refund forms when its language model becomes unavailable. A human reviewer should still be able to investigate an existing case. The transaction service should still be able to reconcile earlier payment requests. These operations do not necessarily depend on continued model availability. The same principle applies to changes introduced through software releases. Teams should be able to disable AI-assisted interpretation without disabling the entire refund system. As discussed in Release Engineering for AI Features: Rollouts, Rollbacks, and Runtime Risk, meaningful control boundaries make production failures easier to contain. A three-layer architecture provides natural opportunities for those boundaries. The AI component can become unavailable without removing deterministic enforcement or human authorization. The review interface can experience an outage without permitting the AI component to bypass approval. Each failure should have a defined consequence rather than silently transferring responsibility to another component. What Should Engineering Teams Measure in 2027? Teams need measurements that reveal whether the responsibility model is working. Tracking model requests or counting automated tasks provides only a partial picture. A useful set of measurements might include the percentage of AI proposals rejected by policy enforcement, the frequency of repeated transactions prevented by safeguards, human review waiting times, approval expiration rates, and the proportion of workflows that remain accessible during model outages. These measurements can reveal architectural problems that conventional availability metrics may overlook. A high rejection rate might indicate that the model produces poor proposals. It could also suggest that the application is sending the model tasks it should not be handling. A growing review queue might indicate that approval thresholds need adjustment, reviewers need more useful evidence, or the business process itself requires attention. A high automation rate is not necessarily desirable if the automated path creates financial errors or unpredictable customer outcomes. The objective is to understand whether responsibility has been assigned appropriately, not simply to reduce human involvement. A Responsibility Matrix for New Software Features Before introducing another AI-powered capability, engineering teams could document five aspects of the proposed feature. Architectural question What the team should establish Who interprets the input? AI, conventional parser, classifier, or human Who determines permissible actions? Trusted policy and authorization services Who owns authoritative state? Application or transaction service Who approves exceptions? Identified human or explicitly authorized policy Who handles failure? Defined fallback, recovery, or escalation workflow This matrix becomes particularly useful during design reviews. It exposes responsibilities that have been left implicit. If the answer to every question is the AI agent, the architecture may contain a concentration of authority that deserves closer examination. If every exception requires manual approval, the design may introduce unnecessary operational delays. If nobody owns recovery after a partially completed action, the application may be unable to establish its actual state after a failure. A well-designed system may use all three responsibility layers within a single user interaction without making their boundaries visible to the user. Better Software Might Need Less Intelligence in the Right Places The software stack of 2027 may contain increasingly capable language models, autonomous agents, conventional services, event-driven infrastructure, and human review mechanisms. Adding intelligence to a component is relatively straightforward compared with deciding how much authority that intelligence should have. Conventional code remains useful because it can enforce explicit rules. AI adds value by handling uncertainty and interpreting information. Humans contribute judgment when decisions require context, exceptions, and accountability. None of these responsibilities needs to disappear for the others to become more valuable. The architecture challenge is making their relationships explicit. A customer should not receive two refunds because an agent forgot an earlier action. A reviewer should not authorize a transaction using information that is no longer current. A valid JSON response should not acquire permission simply because it was generated by an advanced model. The systems worth building in 2027 will not necessarily be those with the greatest amount of artificial intelligence embedded in their architecture. They will be the systems that know where intelligence helps, where rules must prevail, and where a human decision still matters. That is a different way of thinking about a software stack. Less about which technologies it contains, and more about which responsibilities each technology is trusted to carry.

Original Source

Read the full article at Hackernoon →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.