Paper deep dive
The Third Restructuring of Software Form: From the Three-Tier Architecture to Storage, Models, and Agents
Wei Lin, Tao Zhou, Zhaofei Xie, Changgui Hong
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 91%
Last extracted: 8/21/2026, 4:18:23 AM
Summary
The paper proposes a 'Software 3.0' paradigm where software form converges into three core elements: a generalized database (persistent state), a large model (intelligence core), and an agent (execution loop). This architecture replaces the traditional three-tier model by absorbing the user interface and business logic layers into the model's generative and reasoning capabilities, while elevating the data layer to the sole persistent infrastructure. The authors provide a formal thesis, a reference architecture, and a proof-of-concept in intelligent production scheduling, while defining boundaries based on determinism, cost, security, and verifiability.
Entities (10)
Relation Signals (14)
Software 3.0 â consistsof â Large Model
confidence 95% ¡ its terminal form converges to three elements: ... a large model (the intelligence core...)
Software 3.0 â consistsof â Agent
confidence 95% ¡ and an agent (the execution loop connecting the first two)
Software 3.0 â consistsof â Generalized Database
confidence 95% ¡ its terminal form converges to three elements: a generalized database... a large model... and an agent
Large Model â performs â Reasoning
confidence 95% ¡ the intelligence core that performs reasoning and generation
Generalized Database â provides â Persistent State
confidence 95% ¡ the unified abstraction of all persistent state and memory
Agent â connects â Generalized Database
confidence 93% ¡ agent (the execution loop connecting the first two)
Agent â connects â Large Model
confidence 93% ¡ agent (the execution loop connecting the first two)
Agent â implements â Execution Loop
confidence 93% ¡ an execution loop structured as planâmemoryâtool-use
Data Layer â â
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Software form has undergone two paradigm shifts since its inception: Software 1.0, in which instructions determine behavior, and Software 2.0, in which data determines behavior (machine learning). This paper argues that a third shift - Software 3.0, in which context and reasoning determine behavior - is now underway, and contends that its terminal form converges to three elements: a generalized database (the unified abstraction of all persistent state and memory), a large model (the intelligence core that performs reasoning and generation), and an agent (the execution loop connecting the first two). The core argument is as follows: in the traditional three-tier architecture, the user-interface layer will be absorbed by the model's ability to generate interfaces on demand, the business-logic layer will be re-partitioned along "expressibility x criticality" into model reasoning and storage constraints (with residual deterministic logic retained as tools), and only the data layer will be elevated into the sole persistent infrastructure. We formalize this convergence thesis, present a minimal reference architecture, report evidence from real prototypes and a live model, and systematically analyze both the conditions under which it holds and the boundaries where it fails - determinism, cost, security, and verifiability delimit the thesis's domain of applicability. We argue that the thesis holds in task domains that are expressible, verifiable, externally stateful, and tool-complete, and that it will reshape the roles of developers, the database industry, and the software-engineering discipline.
Tags
Links
- Source: https://arxiv.org/abs/2608.20201v1
- Canonical: https://arxiv.org/abs/2608.20201v1
Trouble viewing inline? Open PDF directly â
Full Text
48,917 characters extracted from source content.
Expand or collapse full text
The Third Restructuring of Software Form: From the Three-Tier Architecture to Storage, Models, and Agents Wei Lin1, Tao Zhou1, Zhaofei Xie1, Changgui Hong1 Affiliation: 1Nanjing Liancheng Intelligent Technology Group, Nanjing, China Email: linwei, zhoutao, xiezhaofei, hongchanggui@chinaliancheng.com Abstract Software form has undergone two paradigm shifts since its inception: Software 1.0, in which instructions determine behavior, and Software 2.0, in which data determines behavior (machine learning). This paper argues that a third shiftâSoftware 3.0, in which context and reasoning determine behaviorâis now underway, and contends that its terminal form converges to three elements: a generalized database (the unified abstraction of all persistent state and memory), a large model (the intelligence core that performs reasoning and generation), and an agent (the execution loop connecting the first two). The core argument is as follows: in the traditional three-tier architecture, the user-interface layer will be absorbed by the modelâs ability to generate interfaces on demand, the business-logic layer will be re-partitioned along âexpressibility Ă criticalityâ into model reasoning and storage constraints (with residual deterministic logic retained as tools), and only the data layer will be elevated into the sole persistent infrastructure. We formalize this convergence thesis, present a minimal reference architecture, report evidence from real prototypes and a live model, and systematically analyze both the conditions under which it holds and the boundaries where it failsâdeterminism, cost, security, and verifiability delimit the thesisâs domain of applicability. We argue that the thesis holds in task domains that are expressible, verifiable, externally stateful, and tool-complete, and that it will reshape the roles of developers, the database industry, and the software-engineering discipline. Index Terms: software form, large language models, agents, database, Software 3.0, LLM OS, agentic computing I Introduction Software is the medium by which humans prescribe machine behavior, and its form has never been constant: it restructures itself whenever the cost of expressing behavior drops. Marc Andreessenâs claim that âsoftware is eating the worldâ presupposes that software is cheap enough to build and easy enough to reuse [1]. When large language models (LLMs) reduce the cost of translating natural language into executable behavior to an unprecedented low, the form of software itself ceases to be a given and becomes a variable worth re-examining. This paper pursues a question that appears radical yet already shows abundant signs: if interfaces can be generated instantaneously by a model, and business rules can be reasoned about instantaneously by a model, what remains of traditional software? Our answer: only three things remainâstate (storage), intelligence (model), and execution (agent). This thesis does not arise from a vacuum; it surfaces simultaneously across several independent research strands. Andrej Karpathyâs âLLM OSâ casts the large model as a kernel and the database as a file system [2, 3]. Work such as DBOS argues for making the database, rather than the operating system, the foundation of distributed applications [4]. Agent researchâReAct, Toolformer, AutoGPT, Voyagerâdemonstrates that models can autonomously complete multi-step tasks through thinkâactâobserve loops [5, 6, 7, 8]. Work on retrieval-augmented generation (RAG) and MemGPT shows that external storage and memory are the key to transcending the context window and acquiring long-term state [9, 10]. These strands are independent, yet they point toward the same convergence. Our contributions are as follows: ⢠Thesis formalization: we elevate âsoftware = storage + model + agentâ from a slogan to a discussable, testable proposition, with precise boundaries and relations among the three elements (Section I). ⢠Collapse mechanism: we systematically argue why each layer of the three-tier architecture is either absorbed or elevated (Section IV). ⢠Minimal reference architecture: we give an end-to-end architecture showing how the three elements compose into a complete, working software system (Section V). ⢠Boundary analysis: we state the conditions under which the thesis holds and the counterexamples where it fails, so the vision does not degenerate into a slogan (Sections VIâVII). ⢠Implications: we discuss what the thesis means for developers, the database industry, the software-engineering discipline, and governance (Section VIII). I Background and Related Work This section reviews the four strands that support the thesis and locates our contribution relative to them. I-A âSoftware 2.0â and âSoftware 3.0â In 2017, Karpathy introduced âSoftware 2.0â: software behavior is no longer specified by explicit code but is implicit in neural-network weights trained on data [2]. This insight captures the first shift, from âprogram-specified behaviorâ to âdata-determined behavior.â Along the same logic, the community has begun to sketch âSoftware 3.0â: a further decision factorâcontext and reasoningâis layered on top of Software 2.0; a model is no longer a static, trained function but a system that dynamically decides behavior at runtime based on prompts, tool feedback, and external memory. Our thesis can be read as the most radical version of Software 3.0: once context and reasoning dominate behavior, the only durable part of software is storage. I-B The LLM Operating System Since the Transformer architecture [11] and GPT-style scaled pretraining [12] established large models as general intelligence cores, Karpathyâs 2023 âLLM OSâ analogy casts the large model as the kernel (CPU/RAM), external tools as peripherals (I/O), and the database/file system as persistent storage [3]. The analogy is evocative but remains metaphorical. This paper asks the follow-up question: if the metaphor is taken literally, what is the minimal composition of a system with a model as its core and storage as its foundation? Our answer: storage, model, and agent together suffice to close the loop. I-C Agents and Tool Use The breakthrough that lets models ânot only speak but also actâ comes from two lines of work. The first couples reasoning with action: building on the step-by-step reasoning capability established by chain-of-thought prompting [13], ReAct proposes an interleaved thinkâactâobserve paradigm in which a model invokes external tools during reasoning and learns from feedback [5], and Toolformer shows that models can learn to call APIs through self-supervised learning [6]. The second closes the autonomous task loop: AutoGPT/BabyAGI demonstrate an automatic goalâplanâexecute cycle [7], and Voyager goes further by letting an agent accumulate reusable capabilities through a skill library in Minecraft [8]. Together these works establish the agent as an independent execution loopâneither the model itself, nor hand-written glue code, but the institutional carrier of the planâmemoryâtool-use dynamics. I-D The Convergence of Databases and AI A fourth independent strand is the convergence of databases and AI. On the query side, text-to-SQL translates natural language into structured queries, sharply lowering the barrier to data access. On the storage side, vector databases make semantic similarity a first-class capability that directly serves RAG [9]. On the memory side, MemGPT proposes a hierarchical memory architecture that lets a model manage context the way an operating system manages memory, with an external database serving as the modelâs âlong-term memoryâ [10]. DBOS approaches the same destination from the opposite direction, arguing that the databaseânot the OSâshould be the foundation of distributed applications, with transactions, scheduling, and logging all provided as database primitives [4]. The shared implication of this strand is that the database is being elevated from a passive storage appendage into an active infrastructure. I-E Gaps in Prior Work and Our Positioning These strands each make progress, but share a common blind spot: they study âhow a model becomes the kernel,â âhow an agent becomes the execution loop,â and âhow a database becomes the foundationâ separately, yet few works unify all three into a single convergence thesis at the macro level of software form, and answer the question âwhat gets replaced, what does not, and under what conditions.â This paper fills that gap with an integrated treatment of the thesis, its argument, an architecture, and its boundaries. Software 2.0 / 3.0 LLM OS Agents & Tool Use Database Ă AI Large Model Agent Generalized Database Fig. 1: Convergence of four independent research strands onto the three elements; each strand contributes to one or more elements, jointly pointing toward the storageâmodelâagent convergence. I-F A Skeptical View and Our Response A substantial body of work cautions against overstating LLM capability. Surveys of code hallucination document that models generate plausible but incorrect outputs with no correctness guarantee [14], and empirical studies of industry needs report that reliability and explainability remain the top concerns that current academic approaches fail to address [15]. These findings are often read as evidence against agentic software. This paper does not dispute them; rather, the convergence thesis is built to be compatible with them. We do not claim the model is reliableâwe claim the model should not have to be. By confining the model to the expressible, non-critical tier and guaranteeing the critical tier through deterministic storage constraints (Section IV-B), the thesis limits the damage of hallucination to the region where verification can catch it (Section VII). The skeptical view therefore strengthens, rather than weakens, the central role the thesis assigns to the storage layer. I Formalizing the Thesis I-A Statement Let a software system S be the composition of the three traditional tiers: S=(U,L,D)S=(U,L,D) (1) where U is the user-interface layer, L is the business-logic layer, and D is the data layer. Our central thesis is: Convergence Thesis: within the task domain satisfying the conditions of Section VI, U is absorbed by the modelâs on-demand generation, L is absorbed by the modelâs reasoning and tool use, and the software form converges to: Sâ˛=(,âł,)S =(D,M,A) (2) where D is the generalized databaseâthe unified storage abstraction of all persistent state, constraints, memory, and knowledge (a single semantic layer over heterogeneous relational, vector, graph, key-value, and object stores); âłM is the large modelâthe intelligence core carrying understanding, reasoning, generation, and decision-making; and A is the agentâan execution loop structured as planâmemoryâtool-use, acting as the dynamic connector between model and storage. I-B Precise Definitions of the Three Elements To keep the thesis from degenerating into a slogan, we define the three concepts precisely: 1. The generalized database is not a single database product, but a unified abstraction of the functional role of âpersistent state.â It encompasses structured relational data, semi-structured documents, unstructured vectors and objects, together with the constraints (schemas, integrity rules, permissions) and version history that describe them. Its defining property is that it is the only part of the system possessing persistence, auditability, and transactionality. 2. The large model is the carrier of the functional role of âintelligence.â We presuppose no specific model, but require two indispensable capabilities: reasoning (making decisions under a given context) and generation (translating decisions into executable actions or interfaces). 3. The agent is the carrier of the functional role of âexecution loop.â Its essence is a closed loop: perceive context â plan â invoke tools (read/write D) â observe results â update memory â continue. The agent stitches the stateless reasoning of the model and the stateful storage together into a whole that keeps working over time. The relation among the three can be summarized as: storage is the softwareâs âpastâ (memory and state), the model is its âpresentâ (reasoning and decision), and the agent is its âfutureâ (advancing past and present into the next moment). IV Argument: Why the Three-Tier Architecture Collapses This section argues, layer by layer, why each tier is absorbed or elevated. IV-A The UI Layer Dissolves: Interfaces Generated on Demand The traditional UI layer exists to present business capability in a human-perceivable form. But a UI is, at bottom, a translation from state to presentation. When a model can perform this translation reliably, statically pre-built interfaces are no longer a necessityâan interface can be generated at each interaction from the current state, user intent, and device context. This trend is already visible in âgenerative UIâ and âchat-as-interface.â But âdissolutionâ must be qualified precisely, lest we repeat the mistake of treating reliability as a free premise. A UI is not monolithic; it splits into two layers: a deterministic projection layer and a generative decoration layer. The former carries information that âmust be presented correctlyââaccount balances, contract amounts, compliance disclosures, medical warnings, accessibility semanticsâwhose probabilistic mis-generation constitutes a substantive safety/compliance failure, not a cosmetic blemish; it must be obtained as a deterministic projection of stored state (state-driven UI). The latterâlayout, wording, interaction rhythm, and other âexpressible and non-criticalâ presentationâmay be delegated to on-demand generation by the model. In other words, the UI layerâs dissolution obeys the same law as the business-logic layerâs differentiation: the expressible and non-critical part goes to the model, and the must-be-correct part anchors on storage. The UI layer therefore does not vanish; it is restructured from âa pre-hard-coded wholeâ into âa deterministic projection of storage plus a generative decoration by the model.â This restructuring also exposes the traditional usability costs of a UIâconsistent mental models, branding, accessibilityâwhich belong to the part the deterministic projection layer must retain, not the latitude of the generative layer. IV-B The Business-Logic Layer Dissolves: Reasoning and Tool Use Replace Hard-Coded Rules The business-logic layer (L) is the most expensive and the most perishable part of software: it consists of large amounts of branching, rules, and glue code, and it corrodes as requirements drift. When a model can reason about business rules from context and trigger side effects through tool calls, L is re-partitionedânot into a clean dichotomy, but along the two axes of âexpressibility Ă criticalityâ into three kinds: 1. Expressible and non-critical: rules that can be clearly stated in language and whose errors are tolerable, absorbed by the modelâs reasoning; 2. Critical but declaratively expressible: rules that map onto deterministic primitives such as uniqueness, foreign keys, CHECK constraints, triggers, and transactions, sunk into storage constraints on D; 3. Critical yet not declaratively expressible: multi-step cross-system orchestration with external calls, temporal dependencies, and intricate exception branchesâthese exceed the expressive ceiling of declarative constraints and cannot be carried cleanly; this part does not vanish, but survives as verified, deterministic code exposed to the agent as controlled tools. In short, business logic does not undergo a clean âpolarizationâ: it differentiates into three kinds, the third of which constitutes a crucial correction to the thesisâs most naive readingânot all logic can be absorbed by model or constraints, and the thesisâs scope is precisely delimited by how small this third kind can be made. Table I grounds the three kinds in a concrete domainâintelligent production scheduling (APS)âwhich we carry through Section V. TABLE I: The three-way differentiation of business logic, instantiated with rules from an intelligent production-scheduling (APS) system. Kind Example scheduling rule Lands in Expressible, non-critical âWhy is order #A delayed?â; summarize todayâs plan Model reasoning Critical, declaratively expressible One machine runs one operation at a time; an operation starts only after its predecessors; capacity is never exceeded Storage constraints (uniqueness, precedence, CHECK) Critical, not declaratively expressible Minimize total tardiness / makespan; balance due dates against changeover cost Deterministic solver tool (e.g., CP-SAT) IV-C The Data Layer Rises: The Generalized Database Becomes the Sole Persistent State Once U and L retreat, D becomes the only surviving durable layerâand its status rises, not falls. Three reasons. First, model reasoning is stateless; long-term state must be externalized, and the database is the only reliable carrier. Second, the modelâs capability boundary is precisely determined by âwhat state it can see,â so the database becomes the ceiling of the modelâs ability. Third, under hard requirements of auditability, rollback, and transactionality, only the database can provide deterministic guarantees [16]. The data layer thus rises from âan appendage dominated by the logic layerâ to âthe foundation of the entire systemââmutually reinforcing DBOSâs âdatabase-as-foundationâ argument [4]. IV-D The Agent: The Execution Loop Connecting Model and Storage With U and L gone and D elevated to the foundation, the system still needs a mechanism that connects the stateless model to stateful storage so that software can keep working rather than merely answer once. That is the agentâs role, A. The agent is not a new layer conjured from nothing; it is the institutionalization of the planâmemoryâtool-use loop. It decides what state to read next, which tool to call, what result to write back, and what to remember. In this sense, the agent replaces precisely the âmain loopâ that was frozen into the control flow of traditional software. In summary, the collapse of the three-tier architecture can be expressed in one sentence: the UI regresses into a model output, the logic differentiates into model reasoning, storage constraints, and residual deterministic tools, the control flow is reconstructed as the agentâs loop, and only the state survivesâand is elevated. Table I summarizes the mapping. TABLE I: From the three-tier architecture to three elements. Traditional Converged form User interface layer Generated on demand by the model Business logic layer Three-way split: model reasoning, storage constraints, residual deterministic tools Data layer Generalized database (sole persistent state, plus constraints and history) Control flow (implicit) Agent execution loop (planâmemoryâtool) V A Reference Architecture: A Minimal StorageâModelâAgent System This section gives the thesis a concrete landing form, showing how the three elements compose into a complete, working system. V-A Overall Architecture Agent Layer (Execution Loop) Model Layer Storage LayerPlannerMemoryToolDispatcherLarge LanguageModelRelationalVectorGraphObject/KVConstraints / HistoryExternalWorldretrieveread / write Fig. 2: A minimal reference architecture for a storageâmodelâagent system: a stateless model core, an agent execution loop, a heterogeneous generalized database, and the external world reached only through tools. V-B Storage Layer: Unified Semantics over Heterogeneous Stores The storage layer is not âone database,â but a unified abstraction over heterogeneous relational, vector, graph, and object storesâcontinuing the âone-size-fits-all no longer appliesâ line of specialized engines [17]âaugmented with two kinds of semantics: (1) constraintsâthe parts of business logic that âmust be correctâ are sunk into deterministic storage-level constraints (uniqueness, foreign keys, transactions, stored procedures, triggers), guaranteed by the database engine rather than the model; and (2) version and historyâthe full evolution trace of state is preserved for auditing, rollback, and verifiability, the source of reliability and interpretability for long-running agents. V-C Model Layer: A Stateless Intelligence Core The model layer does three things: it parses user intent and context into a plan; it decomposes the plan into executable actions; and it synthesizes raw tool results into a user-comprehensible presentation. The model itself remains statelessâall long-term state is hosted in the storage layer. This âstateless core + stateful external memoryâ division is a continuation, in a new era, of the classical database/stateless-service layering. V-D Agent Layer: PlanâMemoryâTool The agent layer consists of three cooperating modules: the Planner, which decomposes a goal into steps, decides which tools to call and in what order, and revises the plan dynamically based on feedback; the Memory, which maintains short-term context and long-term memory (persistent knowledge written into the storage layer), transcending the modelâs context-window limit [10]; and the Tool Dispatcher, which executes reads/writes to the storage layer and calls to the external world in a controlled mannerâthe sole exit through which the agent produces side effects. V-E A Proof-of-Concept: Intelligent Production Scheduling We ground the architecture in an intelligent production-scheduling (APS) scenarioâa long-lived, constraint-rich domain where the convergence thesis applies most directly. A conventional APS is a monolithic application coupling a scheduling interface, hard-coded dispatching rules, and a relational database. In the converged form it reduces to three elements. Storage layer. Orders, operations, machines, and material inventories are persisted as state, together with the declarative constraints that must never be violated: one machine executes one operation at a time (an exclusion constraint), an operation starts only after all its predecessors finish (a precedence constraint), and a schedule must respect machine capacity and material availability (integrity constraints). These are enforced by the database engine, not by the model. Model layer. The model interprets natural-language requestsââre-schedule shop floor A around the urgent order #2047,â or âwhy is order #1881 slipping?ââinto a plan over the available tools, and renders the returned schedule and its rationale back into prose. Agent layer. For a re-scheduling request, the Planner decomposes the goal into steps: read the affected orders and current assignments from the storage layer, invoke the solver tool (a deterministic constraint/optimization routine, e.g., a CP-SAT solver) to compute a new feasible schedule under the stored constraints, write the resulting assignment back, and update Memory with the incident context. The Tool Dispatcher is the sole channel through which the solver and the shop-floor systems are invoked. The three-way split of Section IV-B is visible end to end: the expressible, non-critical partsâdiagnosing a delay or summarizing a planâare model reasoning; the critical, declaratively expressible partsâmutual exclusion, precedence, capacityâare storage constraints; and the critical, non-declarative partâthe combinatorial search for a schedule minimizing tardinessâremains a deterministic tool. A query such as âwhy is order #1881 late?â is answered entirely by reading state and reasoning over the stored precedence and capacity facts; a request to re-schedule is executed by the agent loop while the storage layer guarantees the result remains feasible. V-F Preliminary Evidence from a Minimal Prototype To make the storage layerâs role concrete, we implemented a minimal prototype in Python and SQLite: a job shop of 10 machines and 200 unit-time operations (four precedence chains per machine), in which machine exclusion is a UNIQUE(machine, slot) constraint and precedence is a BEFORE INSERT trigger that raises on violation. The planner is a deliberately noisy scheduler that perturbs a fraction Îľ of its assignments to random machineâslot pairs, standing in for an imperfect model. Table I reports the result. Regardless of the plannerâs error rateâup to 30% of assignments perturbedâthe persisted schedule remains feasible, because the storage constraints reject every violating proposal (16, 33, and 45 rejections at Îľ=0.1 =0.1, 0.20.2, and 0.30.3, respectively). Enforcement costs about 1.1 ms per 200 operations in SQLite. The prototype is intentionally minimalâthe âmodelâ is simulatedâbut it demonstrates the thesisâs central mechanism: correctness is guaranteed by the storage layer, independent of upstream reasoning quality. TABLE I: Storage-as-arbiter: the persisted schedule stays feasible regardless of the plannerâs error rate Îľ . Îľ Proposals Rejected Persisted Feasible Time (ms) 0.0 200 0 200 yes 1.23 0.1 200 16 184 yes 1.14 0.2 200 33 167 yes 1.11 0.3 200 45 155 yes 1.08 The second experiment replaces the placeholder with a production solver. We model the combinatorial objectiveâminimizing makespan in a job shop, the kind of rule that is critical but not declaratively expressibleâwith OR-Tools CP-SAT, and run it on reproducible synthetic job-shop instances (fixed seeds). Table IV reports solve time and makespan. The objective is solved to optimality in well under a second for most instances, but one hard 12Ă1212Ă 12 instance takes 9.679.67 sâillustrating that this tier carries real, variable computational cost, and is therefore correctly isolated as a residual tool rather than fused into model reasoning or storage constraints. TABLE IV: The residual tool (OR-Tools CP-SAT) on reproducible synthetic job-shop instances. Instance Makespan Time (s) Status 6Ă6 594 0.01 optimal 8Ă8 756 0.02 optimal 10Ă10 857 0.16 optimal 12Ă12 944 9.67 optimal 15Ă15 1143 0.56 optimal V-G A Live Model: The Storage Layer Catches Real Hallucinations The preceding experiments simulated the model. To test the arbiter against a real model, we asked a live LLM (Qwen-Plus, via a production API) to schedule the three-job, three-machine instance of Table V directly, without a solver tool, in twenty independent trials. The model returned well-formed schedules every time, yet zero of them were feasible: all twenty violated machine exclusion, and eighteen also violated precedence, with apparent makespans of 77â1010 (mean 8.98.9) that are meaningless precisely because they ignore machine contentionâthe true optimum is 99. The storage layer rejected all twenty violating schedules, a 100% catch rate, so the persisted state remained feasible throughout. This is the thesisâs central mechanism at work: the model need not be reliable, because correctness is enforced by the storage layer. TABLE V: A live model (Qwen-Plus) scheduling a 3Ă33Ă 3 job shop directly: 0% feasible, 100% caught by storage constraints. Metric Value Trials 20 Feasible schedules produced directly 0 / 20 Machine-exclusion violations 20 / 20 Precedence violations 18 / 20 Violating schedules rejected by storage 20 / 20 Apparent makespan, mean (optimum =9=9) 8.9 Mean latency per call 3.84 s The contrast with a tool-using agent completes the picture. When the same model is instructed to delegate to the deterministic solver tool rather than reason directly, it requests the tool in all ten trials and reports the correct makespan (99) and feasibility every time (Table VI). The two experiments together show that the modelâs 0% feasibility is not a limitation of the model per se, but of entrusting combinatorial correctness to reasoning: correctness comes from delegating to the deterministic tool and is enforced by the storage layer, exactly as the thesisâs three-way split prescribes. TABLE VI: Tool-using agent (Qwen-Plus, 10 trials): 100% correct via delegation to the solver tool. Metric Value Requested the solver tool 10 / 10 Reported correct makespan (=9=9) 10 / 10 Stated the schedule is feasible 10 / 10 Mean latency per call 4.82 s V-H Hand-Written vs. Declarative Enforcement The three-way split places the critical, declarative rules in the storage layer. To justify that placement, we compare two ways of expressing the same three scheduling constraints (machine exclusion, precedence, capacity): hand-written checks inline in application code, versus declarative constraints in the storage layer. The enforcement code is comparable in size, but the difference appears under fault injection: when a single checkâthe capacity ruleâis forgotten in the hand-written version, over-capacity schedules leak through (Table VII); the same rule declared as a storage constraint is enforced regardless of what the application code does. This is not a claim that declarative constraints are novelâdatabases have long provided themâbut that their role becomes critical when the upstream logic is an unreliable model (Section V-G) rather than careful human code: centralized, unavoidable enforcement is the safety net that makes the converged form trustworthy. TABLE VII: Fault injection: a single forgotten check leaks in hand-written code; declarative storage constraints always enforce. Case Hand-written Hand-written (missing capacity) Storage valid caught caught caught overlap caught caught caught precedence caught caught caught capacity caught leaked caught VI Conditions for the Thesis to Hold The thesis does not hold unconditionally. This section states four necessary conditions; in task domains that fail them, the thesisâs applicability sharply weakens (Section VII). VI-A Expressibility and Verifiability of the Task The modelâs capability boundary is determined by two properties: whether the task can be clearly expressed in language (otherwise the model cannot reason about it), and whether the result can be objectively verified (otherwise the modelâs errors cannot be detected and corrected). When a task is both expressible and verifiable, model reasoning plus verification feedback forms a reliable feedback loop; otherwise the task reverts to traditional implementation. This condition directly echoes Suttonâs âbitter lessonââwhatever can be solved by computation and data will eventually be solved by general methods [18]. VI-B Externalization of State The thesis requires that all long-term state be externalized into the storage layer. If the taskâs state is naturally embedded in the model (a one-shot, side-effect-free question answering), the storage-plus-agent loop is meaningless; only when software must maintain state across time, sessions, and subjects does the elevation of the storage layer make sense. The thesis therefore applies to stateful, long-lived software, not stateless one-off computation. VI-C Completeness of the Tool Boundary An agent can act on the world only through tools. The thesis therefore presupposes that the side effects required by the domain (reading/writing external systems, operating devices, calling services) can all be exposed to the agent as controlled tools with clear permission boundaries. But this condition contains an inherent dilemma: 1. Completeness and closedness cannot both hold. If the toolset is written down in advance, it is safe but incompleteâany unforeseen side effect becomes inexpressible, and the thesis reverts to âstill hand-writing code.â If the toolset is open (letting the agent bootstrap new tools, as in Voyagerâs skill library [8]), it is complete but unboundedââcompletenessâ degenerates into unlimited trust in the modelâs self-bootstrapping, which is no condition at all. 2. A single toolâs permission boundary cannot express multi-step composed side effects. Even when every tool is individually well-scoped, the workflow-level side effects produced by an agent composing multiple tools exceed the expressive power of a per-tool permission modelâjust as individually safe queries can jointly infer private information through their sequence. Together these yield a constructive corollary: since authorization cannot be fully closed at the individual-tool level, the final enforcement point of authorization can only be the storage layerâwhere every state change converges and can be constrained and audited (cf. Section VIII-D). The tool boundary is thus not a premise satisfiable once and for all, but an engineering constraint that the storage layer must continuously backstop. VI-D Economic Threshold Even if the first three conditions hold, the thesisâs realization depends on economics. But the comparison needs clarifying: what actually faces off is not âthe latency/cost of one inferenceâ versus âone execution of compiled logicââthese are differently structured costs. The cost of hand-writing U and L is dominated by development and maintenance (labor and requirement drift), with near-zero marginal runtime cost; the cost of the storageâmodelâagent form is dominated by marginal runtime cost (per-inference latency and billing), while its development and maintenance cost declines as model capability improves. The true dividing line is therefore not âcall frequencyâ but the value density of a decisionâthe ratio of the cost of a single inference to the value of the decision it produces. For low-value, high-concurrency decisions (each request worth a fraction of a cent), inference cost dominates and hand-written logic is more economical; for high-value, low-concurrency decisions (a single approval that averts a million-dollar loss), inference cost is a rounding error and the model form dominates. This boundary is also dynamic and engineerable: inference cost declines over the long run while maintenance cost does not, and caching, distillation, small models, and batching further compress runtime cost. âCore high-frequency transactionsâ is thus only a static snapshot; the true economic boundary is moving, over time, in the thesisâs favor. VI-E Non-Triviality of the Thesis The conditions above may invite a criticism: if the thesis holds only in the domain where model reasoning and storage constraints happen to work, is it nearly tautological? We argue not, for two reasons. First, the conditions are not vacuous relaxations but are jointly satisfiable by a real, identifiable, and continuously expanding class of softwareâlong-tail, natural-language-interfaced, stateful business workflows; Suttonâs âbitter lessonâ implies that, as model capability grows, this class only expands [18]. Second, the thesisâs substance is not the truism that âmodels perform well in their home domain,â but a falsifiable architectural claim: after the collapse of traditional software, the only remaining durable artifact is exactly storageânot âstorage plus a thin layer of business logic.â It is this âexactlyâ that gives the thesis predictive content against future evidence, rather than rendering it a tautology. VII Counterexamples and Boundaries: When the Thesis Fails The greatest danger of a vision paper is overpromising. This section enumerates four boundary classes where the thesis fails, and how they delimit its domain. VII-A Determinism and Correctness Relational databases have endured because they offer the deterministic guarantees of transactions, types, and constraints (ACID). Model reasoning is fundamentally a probabilistic computation and cannot promise the same guarantees. For scenarios where errors are unacceptableâfunds settlement, aerospace, medical dosingâbusiness logic must be guaranteed by formally verifiable code or database constraints, not by model reasoning. This boundary means the thesis does not apply to strongly deterministic, formally verified core tasks; in such tasks L does not vanish, but merely sinks into storage constraints or verified code. VII-B Performance, Latency, and Cost Model inference latency (seconds) and cost (per-call billing) far exceed the direct execution of compiled logic (nanoseconds, nearly free). In high-frequency, low-latency, large-scale scenarios (trade matching, real-time recommendation, network forwarding), freezing logic into dedicated implementations remains the only choice. In these scenarios the thesis fails, or degrades to a compromise where âthe model only generates code, but does not reason at runtime.â VII-C Security, Permissions, and Compliance Handing execution authority to an agent that âdecides its next move by reasoningâ opens a new attack surface and new compliance risks: prompt injection can hijack the agentâs decisions; an ill-designed tool-permission boundary becomes a channel for privilege escalation (the composed-side-effect problem of Section VI-C); and regulation (in finance and healthcare, for instance) often requires behavior to be predictable, auditable, and attributable, which conflicts with the opacity of model reasoning. The hardest of these is the attribution problem, whose depth exceeds what âadding audit logsâ can resolve: attribution demands an answer to âwho is responsible for a wrong decision,â yet an agentâs decision is an emergent result of model reasoning, stored state, and historical tool feedback, with no single accountable subject to point to. Audit logs can tell us what happened, not who is to blame. Nor is âhuman-in-the-loopâ an easy fallback: the responsibility paradox is that the model amplifies the capacity to act while the humanâs capacity to understand and to bear responsibility does not scale in kindâthe human can neither grasp the modelâs full decision trace nor vouch for every action at scale. This problem, in turn, reinforces one of the thesisâs conclusions: since attribution must anchor on something deterministic and auditable, its only anchor can be the storage layerâwho committed what state, when, and which constraint was violated; the model and the agent are not accountable, and the storage layer is the ultimate carrier of accountability. But this also exposes a structural gap in strongly regulated domains: the pure converged form leaves storage as the only deterministic anchor, and the âhumanâ component is absent. In such domains the thesis must therefore degrade to âstorage constraints + human-in-the-loopââand how an unintelligible, hard-to-scale âhumanâ is to backstop a superlinearly growing agent is a question the thesis has not answered. VII-D Verifiability and Hallucination Model hallucination means its output may be superficially plausible yet factually wrong [14]. When a taskâs result cannot be objectively verified, hallucination cannot be detected, and the thesisâs feedback loop collapses. This again echoes Section VI-A: verifiability is the thesisâs lifeline. A notable corollary: in the converged form, the database plays the role of an âarbiter of consistencyâ rather than an âarbiter of factââany model output that conflicts with already-stored state can be vetoed by the storage layer (a consistency constraint); but the database cannot adjudicate fabricated novel facts that conflict with nothing already stored (e.g., inventing an entity that does not exist in the database), because such hallucinations violate no existing constraint. Correctness assurance for novel outputs must therefore come from external oracles, cross-checks, or humans-in-the-loop; the storage layer can only confine hallucinationâs harm to the âexpressible but not yet persistedâ segment. VII-E Software Categories That Will Not Be Replaced Synthesizing the above boundaries, we can state precisely which software the thesis will not replaceâwhich, counterintuitively, strengthens the thesisâs credibility: TABLE VIII: Software categories not replaced by the convergence thesis, and the thesisâs applicable form for each. Category Why it is not replaced Applicable form Database / storage engine Source of determinism, transactions, performance Implementation of D OS / runtime / compiler Demand correctness, nanosecond performance Invoked by A as tools High-frequency transaction systems Latency, determinism Keep L; model offline only Regulated / safety-critical systems Accountability, auditability Storage constraints + human-in-the-loop Model training / inference frameworks Carrier of âłM The thesisâs core, not replaceable VIII Discussion: Implications for Industry, Developers, and Governance If the thesis holds within its domain, it carries several far-reaching implications. VIII-A For Developers: From âWriting Codeâ to âDefining State and Constraintsâ The developerâs core work shifts from âwriting control-flow code that implements a specific behaviorâ to âdefining the state model, designing constraints, encapsulating tools, and debugging the agentâs behavior.â This is not âthe disappearance of programmersâ but an upward shift of the center of programming: from specifying âhow to do itâ line by line, to precisely describing âwhat is correct and what is forbidden.â This shift is already foreshadowed by âvibe coding,â but its mature form is constraint-driven developmentâdevelopers invest effort in verifiable constraints rather than perishable glue logic [19]. VIII-B For the Database Industry: From Passive Storage to Active Infrastructure The database rises from âpassive storage beneath applicationsâ to âactive infrastructure above them.â This elevation is not idle speculationâits first half is already observable: vector retrieval has spawned an independent database category [9], text-to-SQL has sharply lowered the barrier to structured-data access, and DBOS argues for rebuilding the foundation of distributed applications on database primitives [4]. What this paper further predicts is its second halfâthe database assuming the new responsibilities of âarbiter of consistencyâ and âgovernor of stateâ: the authoritative source and final adjudicator of agent behavior. This prediction is falsifiable: if, in a future âagent + databaseâ form, state governance still requires a separate control plane outside the database, then this thesisâs claim that âstorage is elevated into the sole foundationâ is correspondingly weakened. In other words, the value of the database industry will no longer be priced by âaccess performanceâ alone, but by âhow many deterministic semantic anchorsââconstraints, audit, rollback, adjudicationâit can supply. VIII-C For the Software-Engineering Discipline: Repositioning Correctness Assurance The foundation of traditional software engineering is âcorrectness by construction.â Under the converged form, correctness assurance polarizes into two poles: probabilistic correctness (model reasoning, secured by a verification-feedback loop) and deterministic correctness (storage constraints and formal verification, secured by mathematics). The central question of software engineering thus partially shifts from âhow to write correct codeâ to âhow to design constraints and verification such that a probabilistic system is, on the whole, trustworthy.â VIII-D Risk and Governance The converged form brings new governance challenges: agent behavior must be auditable (fully recorded to the storage layer), attributable (clear responsibility for agent errors), and limitable (least-privilege tools and storage constraints). We argue that the healthy evolution of the converged form depends on folding âgovernanceâ itself into the storage layerâs constraint and audit semanticsâmaking governance part of the foundation rather than an after-the-fact patch. IX Conclusion This paper proposes and argues for a convergence thesis about software form: within task domains that are expressible, verifiable, externally stateful, tool-complete, and economically viable, the traditional three-tier architecture will collapse into three elementsâgeneralized database + large model + agentâwith the UI regressing into model output, the business logic differentiating into model reasoning, storage constraints, and residual deterministic tools, the control flow reconstructed as the agentâs loop, and only the state surviving and being elevated into the foundation. We have also delineated the thesisâs boundaries: determinism and correctness, performance and cost, security and compliance, and verifiability and hallucinationâthese four constraint classes determine the thesisâs domain, and in doing so illuminate which software will not be replaced. The value of this paper lies not in declaring a utopian âend of software,â but in offering a testable framework: one that points out the direction of software-form convergence while also marking the endpoint and the limits of that convergence path. Future work can proceed in three directions: first, scale the experiments of Sections V-F and V-G to larger instances and a full tool-using agent, and compare against a hand-written baseline; second, formalize the mechanism of âstorage constraints as the arbiter of consistency over model outputs,â and study whether it can provide a quantifiable correctness backstop for probabilistic reasoning; third, investigate the methodology and toolchain of âconstraint-driven developmentâ from a software-engineering perspective. We believe that whether the thesis is ultimately confirmed or refuted, the very act of posing it will deepen our understanding of what software truly is. Artifact Availability The prototype and all experiment scripts are available at https://github.com/kyloTyn/software-form-convergence. The two live-model experiments call Qwen-Plus through the Alibaba DashScope compatible-mode API and require a key supplied via the DASHSCOPE_API_KEY environment variable; no key is stored in the repository. All other experiments are deterministic and depend only on Python and OR-Tools. References [1] M. Andreessen, âWhy software is eating the world.â The Wall Street Journal, 2011. [2] A. Karpathy, âSoftware 2.0.â Medium (Andrej Karpathy blog), 2017. [3] A. Karpathy, âLLM OS.â X (Twitter) thread, 2023. [4] Q. Li, P. Kraft, K. Kaffes, A. Skiadopoulos, D. Kumar, J. Li, M. Cafarella, G. Graefe, J. Kepner, C. Kozyrakis, M. Stonebraker, L. Suresh, and M. Zaharia, âDBOS: A DBMS-oriented operating system,â Proceedings of the VLDB Endowment, vol. 15, no. 12, p. 21â30, 2022. [5] S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao, âReAct: Synergizing reasoning and acting in language models,â in International Conference on Learning Representations (ICLR), 2023. [6] T. Schick, J. Dwivedi-Yu, R. DessĂŹ, R. Raileanu, M. Lomeli, E. Hambro, L. Zettlemoyer, N. Cancedda, and T. Scialom, âToolformer: Language models can teach themselves to use tools,â in Advances in Neural Information Processing Systems (NeurIPS), 2023. [7] S. Gravitas, âAutoGPT.â GitHub repository, 2023. [8] G. Wang, Y. Xie, Y. Jiang, A. Mandlekar, C. Xiao, Y. Zhu, L. Fan, and A. Anandkumar, âVoyager: An open-ended embodied agent with large language models,â 2023. [9] P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. KĂźttler, M. Lewis, W. tau Yih, T. Rocktäschel, S. Riedel, and D. Kiela, âRetrieval-augmented generation for knowledge-intensive NLP tasks,â in Advances in Neural Information Processing Systems (NeurIPS), 2020. [10] C. Packer, S. Wooders, K. Lin, V. Fang, S. G. Patil, I. Stoica, and J. E. Gonzalez, âMemGPT: Towards LLMs as operating systems,â 2023. [11] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ĺukasz Kaiser, and I. Polosukhin, âAttention is all you need,â in Advances in Neural Information Processing Systems (NeurIPS), 2017. [12] T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, et al., âLanguage models are few-shot learners,â in Advances in Neural Information Processing Systems (NeurIPS), 2020. [13] J. Wei, X. Wang, D. Schuurmans, M. Bosma, B. Ichter, F. Xia, E. Chi, Q. Le, and D. Zhou, âChain-of-thought prompting elicits reasoning in large language models,â in Advances in Neural Information Processing Systems (NeurIPS), 2022. [14] C. Gao et al., âA systematic literature review of code hallucinations in LLMs,â 2025. [15] H. Yu et al., âAligning academia with industry: An empirical study of industrial needs and academic capabilities in AI-driven software engineering,â 2025. [16] J. M. Hellerstein, M. Stonebraker, and J. Hamilton, âArchitecture of a database system,â Foundations and Trends in Databases, vol. 1, no. 2, p. 141â259, 2007. [17] M. Stonebraker and U. Ăetintemel, ââone size fits allâ: An idea whose time has come and gone,â in Proceedings of the 21st International Conference on Data Engineering (ICDE), 2005. [18] R. S. Sutton, âThe bitter lesson.â incompleteideas.net blog, 2019. [19] Y. Ge et al., âA survey of vibe coding with large language models,â 2025. Author list and volume to be re-verified before submission.