Agentic Transaction: Towards ACID-Compliant Agent Systems
Summary
The paper introduces the concept of agentic transactions and proposes an ACID-compliant agent system framework for LLM agents, enhancing reliability and consistency with experimental improvements over state-of-the-art agents.
View Cached Full Text
Cached at: 08/17/26, 10:06 AM
# Agentic Transaction: Towards ACID-Compliant Agent Systems
Source: [https://arxiv.org/html/2608.13900](https://arxiv.org/html/2608.13900)
###### Abstract\.
Large language model \(LLM\) agents are evolving from conversational assistants into autonomous systems that execute long\-horizon tasks through reasoning, tool use, code generation, and workspace manipulation\. As agents increasingly operate over persistent environments and multi\-step workflows, they face challenges analogous to those addressed by transactional database systems: reliable execution, consistent outcomes, safe concurrency, and durable state management\. We introduce the concept of an*agentic transaction*and propose an*ACID\-compliant agent system*framework that reinterprets the classical ACID properties for agent execution through four semantic guarantees:Semantic Atomicity,Semantic Consistency,Semantic Isolation, andSemantic Durability\. Together, these properties provide a principled foundation for building reliable agent systems despite model uncertainty and dynamic execution environments\. To instantiate this framework, we develop an ACID\-compliant data agent that realizes these guarantees through transactional exploration\-execution\-validation cycles, transactional skill hubs, confidence divergence\-based validation, semantic dependency\-aware isolation, and transaction\-aware semantic state management\. Experimental results on widely used benchmarks show that our system achieves a 10\.6% improvement over state\-of\-the\-art agents, including Claude Code\. This work opens a broader research agenda on extending transactional principles and system architectures toward building trustworthy, scalable, and self\-evolving AI agent systems\.
## 1\.Introduction
Recent advances in large language models \(LLMs\) have demonstrated strong capabilities in instruction following, planning, reasoning, coding, tool use, and data processing\([17](https://arxiv.org/html/2608.13900#bib.bib4);[18](https://arxiv.org/html/2608.13900#bib.bib11);[21](https://arxiv.org/html/2608.13900#bib.bib3);[7](https://arxiv.org/html/2608.13900#bib.bib10);[20](https://arxiv.org/html/2608.13900#bib.bib14);[25](https://arxiv.org/html/2608.13900#bib.bib13);[24](https://arxiv.org/html/2608.13900#bib.bib12);[19](https://arxiv.org/html/2608.13900#bib.bib15)\)\. As a result, LLM usage is shifting from single\-round conversational interactions toward long\-horizon production tasks, where agents operate over repository\-level workspaces and autonomously coordinate iterative reasoning, code execution, and feedback\-driven refinement over extended periods\. We refer to such a multi\-round task\-centered interactions between LLMs and execution environments as anagentic transaction\(see[Figure 1](https://arxiv.org/html/2608.13900#S1.F1)\), where execution operates over semantic task states rather than structured database states\. Although agent systems differ fundamentally from databases, they face analogous challenges in ensuringreliable execution, consistent outcomes, safe concurrency, and persistent state management\. Motivated by these parallels, we envision an*ACID\-Compliant Agent System*that reinterprets the classical ACID properties\([5](https://arxiv.org/html/2608.13900#bib.bib7)\)for agentic transactions:
Figure 1\.An Example of ACID\-Compliant Data Agent\.Table 1\.ACID properties for agentic transactions\. Unlike conventional database transactions, agent transactions combine non\-deterministic reasoning with heterogeneous, potentially non\-transactional effects\. The proposed semantics constrain committed effects rather than requiring deterministic execution traces\.PropertyAgent\-Transaction SemanticsSystems ChallengeTechniquesAtomicityA dependency\-aware set of model invocations, tool calls, document mutations, and external actions\. Its effects become visible only if all required operations and postconditions succeed; otherwise, all recoverable effects are rolled back or compensated\.Agent workflows are long\-running, dynamically generated, and may invoke external tools\. Failures can therefore leave partially updated workspaces, duplicated external actions, or outputs unsupported by completed execution\.Treating each exploration\-execution\-validation cycle as a semantic transaction unit with commit\-or\-retry semantics, validated effect\-only commits, and test\-driven transactional skill hubs\.ConsistencyThe execution trace may be non\-deterministic, but its committed outcome must satisfy the transaction’s preconditions, postconditions, and evidence obligations\.LLM\-generated plans can be syntactically executable yet semantically invalid because of incorrect tool selection, unsupported claims, schema or policy violations, stale observations, and divergence between the user’s intent and the committed outcome\.A confidence\-based validation mechanism that integrates multiple reliability signals, including execution errors, decision/code confidence divergence, and LLM\-based reflection feedback, with materialized skill reuse\.IsolationConcurrent agent transactions must not observe or produce semantically invalid interference\. Their committed effects should be equivalent to an execution permitted by a declared isolation level, while allowing safe information sharing and collaboration\.Conflicts extend beyond reads and writes to encompass prompts, memory, intermediate artifacts, tool budgets, external side effects, and derived semantic state\. Moreover, conflicts often cannot be identified in advance because agents discover resources dynamically during execution\.Isolating agent and operation contexts through dependency\-aware isolation policies, isolated environments, versioned workspaces, and validation\-based state control\.DurabilityOnce committed, a transaction’s effects, evidence, and recovery metadata persist across failures, enabling its state to be reconstructed and audited independently of the transient LLM context\.Agent state is distributed across conversation context, model outputs, tool responses, files, databases, and external services\. Model and prompt evolution complicate deterministic replay and long\-term interpretation of prior executions\.Maintaining transaction\-aware memory and append\-only workspaces through LLM\-managed knowledge\-graph evolution, provenance tracing, and version\-aware recovery\.Semantic Atomicity\.Similar to how database systems encapsulate recurring application logic into reusable procedures and transaction abstractions, agent systems increasingly rely on reusable skills that package tools, workflows, and domain knowledge into coherent operational units\([1](https://arxiv.org/html/2608.13900#bib.bib2)\)\. We define*semantic atomicity*as the property that an agent transaction treats a dependency\-aware sequence of model invocations, tool calls, document mutations, and external actions as a single semantic unit of execution: its effects become visible only after required operations and validations succeed; otherwise, recoverable effects are rolled back or compensated\. The challenge is that agent workflows are long\-running, dynamically generated, and often involve non\-transactional external resources, where partial execution may leave inconsistent workspaces or unsupported results\([3](https://arxiv.org/html/2608.13900#bib.bib8);[12](https://arxiv.org/html/2608.13900#bib.bib9)\)\. For example, as shown in[Figure 1](https://arxiv.org/html/2608.13900#S1.F1), conventional coding agents such as Claude Code may propagate intermediate decisions directly\. In contrast,ACID\-Agenttreats each exploration\-execution\-validation cycle as a semantic transaction, and only*validated updates*are committed and propagated to subsequent steps\.
Semantic Consistency\.Similar to consistency guarantees in databases, agent systems must ensure that committed results remain aligned with intended semantics despite potentially non\-deterministic execution\([6](https://arxiv.org/html/2608.13900#bib.bib1)\)\. We define*semantic consistency*as the property that an agent transaction produces outcomes that satisfy task objectives, execution constraints, and available evidence, even when intermediate reasoning traces vary across executions\. This property is challenging because LLM\-driven agents may generate syntactically executable plans that are semantically invalid due to incorrect tool selection, unsupported claims, stale observations, or divergence between user intent and execution results\. For example, as shown in[Figure 1](https://arxiv.org/html/2608.13900#S1.F1), ourACID\-Agentemploys a confidence\-based validation mechanism that integrates multiple reliability signals, including execution errors, divergences in decision and code confidence, and feedback from LLM\-based reflection\. The mechanism grounds its assessments in evidence gathered during exploration and triggers refinement whenever confidence falls below a threshold\.
Semantic Isolation\.Similar to concurrency control in database systems, modern agent systems increasingly execute multiple sub\-agents in parallel to solve complex tasks\([21](https://arxiv.org/html/2608.13900#bib.bib3)\)\. We define*semantic isolation*as the property that concurrent agent transactions do not observe or produce semantically invalid interference: their committed effects should be equivalent to an execution permitted by a declared isolation policy, while still allowing safe information sharing and collaboration\. For example, as shown in[Figure 1](https://arxiv.org/html/2608.13900#S1.F1),ACID\-Agentisolates intermediate workspace states and interaction histories from failed retries, ensuring that unsuccessful attempts do not propagate to subsequent executions or agent memory\. The challenge is that agent conflicts extend beyond traditional data accesses to prompts, memories, intermediate artifacts, tool budgets, external side effects, and derived semantic states, while resource dependencies are often discovered dynamically during execution\.
Semantic Durability\.Similar to how database systems preserve transactional state and AI\-native databases leverage historical transactions to improve future execution\([23](https://arxiv.org/html/2608.13900#bib.bib5);[11](https://arxiv.org/html/2608.13900#bib.bib6);[17](https://arxiv.org/html/2608.13900#bib.bib4)\), agent systems must preserve semantic state beyond individual executions\. We define*semantic durability*as the ability to maintain committed execution states, supporting evidence, and recovery metadata beyond the lifetime of a transaction, enabling future executions to reconstruct and interpret prior results independently of transient LLM contexts\. For example, as shown in[Figure 1](https://arxiv.org/html/2608.13900#S1.F1),ACID\-Agentmaintains an append\-only workspace that records committed transaction states, updating memory only with validated execution units while discarding failed attempts\. This property is challenging because agent state is distributed across conversations, model outputs, tool interactions, files, databases, and external services, while evolving models and prompts complicate reliable replay and long\-term interpretation\.
Figure 2\.Overview of ACID\-Compliant Data Agent System\.Contributions\.In summary, we make the following contributions: \(1\) We introduce a novel concept of*agentic transactions*and an*ACID\-compliant agent system framework*, which extends the classical ACID properties to agent execution and provides a principled foundation for designing reliable agent systems\.
\(2\) We propose an ACID\-compliant data agent system:\(A\)introduces semantic atomicity by modeling exploration\-execution\-validation cycles as transaction units with commit\-or\-retry semantics, supported by transactional skill hubs and staged execution;\(C\)ensures semantic consistency through confidence divergence\-based validation of critical decisions and generated code, integrating execution signals and LLM feedback to detect unsupported behaviors and trigger evidence\-guided retries;\(I\)enables semantic isolation by regulating dependencies among agents, contexts, and operations through adaptive coordination strategies, isolated execution environments, and versioned workspaces;\(D\)achieves semantic durability through transaction\-aware memory, append\-only workspace management, and persistent execution traces for recovery and long\-horizon reasoning \(see Section[2](https://arxiv.org/html/2608.13900#S2)\)\.
\(3\) Our preliminary experimental results demonstrate the potential advantages of transactionally designed agent systems \(see Sections[3](https://arxiv.org/html/2608.13900#S3)\)\. We also provide open research problems for extending agentic transactions to the full lifecycle of agent systems \(see Section[4](https://arxiv.org/html/2608.13900#S4)\)\. The source code is available at[https://github\.com/TsinghuaDatabaseGroup/ACID\-Agent](https://github.com/TsinghuaDatabaseGroup/ACID-Agent)\.
## 2\.Agentic Transaction
### 2\.1\.Preliminaries
LLM\-based agents can solve tasks through long\-horizon cycles of LLM reasoning, tool/skill invocation, and execution feedback\. We refer to such multi\-round task\-centric interactions between LLMs and environments asagentic transactions\.
###### Definition 2\.1 \(Agentic Transaction\)\.
An agentic transaction,τ\\tau, is a bounded unit of agent execution comprising a finite sequence of LLM\-driven interactions between an agent and its execution environment, undertaken to accomplish a task\. Formally, given a tool setTTand a skill setSS, an agentic transactionτ=⟨r1,…,rn⟩\\tau=\\langle r\_\{1\},\\dots,r\_\{n\}\\ranglecomprisesnnsteps\. Each stepri=\(ci,ai,fi\)r\_\{i\}=\(c\_\{i\},a\_\{i\},f\_\{i\}\)consists of an LLM contextcic\_\{i\}\(including the tools inTTand skills inSSavailable at that step\), an agent actionaia\_\{i\}that invokes a tool or skill, and the resulting feedbackfif\_\{i\}from the environment\. The transactionτ\\taucommits only if its execution satisfies the required task conditions and preserves all semantic invariants\. Otherwise, its intermediate effects are rolled back or compensated for to ensure that no invalid side effects remain\.
For example,[Figure 1](https://arxiv.org/html/2608.13900#S1.F1)presents a data\-agent transaction\. It begins with LLM\-driven exploration of datasets and schemas, followed by iterative analysis steps that invoke tools, update the workspace, and refine decisions based on feedback\. Each exploration\-execution\-validation cycle forms a semantic transaction unit whose effects are propagated only after validation\. Failed units are discarded or recovered without affecting the committed state\.
[Table 1](https://arxiv.org/html/2608.13900#S1.T1)summarizes representative challenges and techniques for achieving the ACID properties of agentic transactions\.
### 2\.2\.An ACID\-Compliant Data Agent System
Data agents aim to automate data science workflows, derive insights from heterogeneous data, and manage data systems\. Based on agentic transaction principles, we propose an*ACID\-compliant data agent system*, as shown in[Figure 2](https://arxiv.org/html/2608.13900#S1.F2), providing reliability guarantees for exploration, execution, and transactional state evolution\.
Figure 3\.Consistency of Agent Performance Across Three Runs on 10AgenticDataBench\([18](https://arxiv.org/html/2608.13900#bib.bib11)\)Tasks\. Bars show mean performance; error bars show the square root of the average per\-task variance across runs\. SA=Smolagents, DA=DA\-Agent, CC=Claude Code, CX=CodeX\. ➀=Qwen3\.5\-397B\-A17B, ➁=Kimi\-K2\.5, ➂=Claude Sonnet 4\.6\.#### 2\.2\.1\.Semantic Atomicity
We propose two mechanisms for semantic atomicity: an offline skill hub that embeds transactional safeguards into reusable skills, and an online staged\-execution framework that enforces commit\-or\-retry semantics via validation gates\.
Offline Skill Hub Creation\.Under semantic atomicity, tools and skills become first\-class transactional objects with lifecycle interfaces, and only validated effects are committed\. We envision targeted skill hubs that automatically enforce transactional semantics, including rollback and commit, without requiring agents to perform manual transaction management\. First, for workspace\-modifying skills, this requires preventing invalid partial updates and side effects through idempotency keys, write\-ahead action logs, checkpointing, and automatic compensation\. Second, for system optimization skills, it further requires avoiding regressions caused by conflicting skill interactions\. Realizing such skill hubs requires distilling existing data management expertise into deployable agent skills with adaptive routing and built\-in transactional guarantees\. We address this by packaging existing repositories as agent skills with standardized CLIs and validating their behavior through LLM\-generated test suites derived from established benchmarks\. We further develop a workload\- and data\-aware skill router that periodically analyzes historical system logs, uses LLM to summarize evolving workload characteristics, and dynamically adjusts feature importance for both skill retrieval and LLM\-based skill selection\.
Online Semantic Transaction Execution\.When existing skills with built\-in safeguards are unavailable, we enforce semantic atomicity through an online semantic transaction framework\. Specifically, we model the agent trajectory as a sequence of exploration\-execution\-validation cycles, with each cycle treated as a semantic transaction unit governed by commit\-or\-retry semantics\. First,*confidence\-guided data exploration*enables agents to iteratively collect and consolidate evidence while avoiding redundant exploration\. Second,*confidence\-based consistency validation*verifies the reliability of agent decisions and generated code by integrating execution errors, confidence divergence, and LLM\-based reflection signals\. Violations beyond predefined thresholds trigger retry\. The failed execution steps are discarded by isolating their intermediate contexts from memory and excluding their workspace updates, ensuring atomic state evolution through an append\-only workspace\.
We first describe confidence\-guided data exploration and defer the second component to Section[2\.2\.2](https://arxiv.org/html/2608.13900#S2.SS2.SSS2)\. Specifically, given a task, the exploration sub\-agent iteratively generates read\-only exploration code using the task description and recent exploration summaries as context\. After execution, the observations are summarized into exploration memory\. To avoid redundant exploration, we use LLM confidence\-based validation to compare the current exploration observation with and without previous observations as context \(detailed in Section[2\.2\.2](https://arxiv.org/html/2608.13900#S2.SS2.SSS2)\)\. A large confidence divergence indicates that the current exploration is heavily dependent on prior observations and provides limited new information\. We terminate exploration when redundant exploration exceeds a predefined threshold\. Exploration summaries are further consolidated to resolve potential conflicts and maintain a consistent evidence base\.
#### 2\.2\.2\.Semantic Consistency
Data agents exhibit execution inconsistency under workflow and model uncertainties, with repeated runs showing substantial variance and occasional intent violations \(see[Figure 3](https://arxiv.org/html/2608.13900#S2.F3)\)\. Thus, we develop complementary offline and online mechanisms\. Offline, we reuse validated workflows and enhance model\-level behavioral stability\. Online, we detect and correct execution deviations through trajectory\-level consistency validation\.
Offline Consistency Enhancement\.\(i\)\(i\)*Workflow\-Level Materialization\.*Similar to materialized views in databases, successful execution workflows can be materialized into reusable agent skills with semantic validation logic\. These skills are retrieved based on task semantics and execution context, with details discussed in Section[2\.2\.1](https://arxiv.org/html/2608.13900#S2.SS2.SSS1)\.\(ii\)\(ii\)*Model\-Level Stability\.*Consistency also depends on model reliability\. Existing benchmarks focus on single\-run correctness or best\-of\-N performance while overlooking execution stability\. We envision consistency\-oriented benchmarks to measure stability and guide targeted fine\-tuning\.
Online Consistency Validation\.To maintain execution consistency with task requirements and supporting evidence, we propose a confidence\-based validation mechanism that integrates multiple reliability signals, including execution errors, decision/code confidence divergence, and LLM\-based reflection feedback\. A retry is triggered when any signal exceeds its predefined threshold, with the validation feedback incorporated into the agent context to guide subsequent exploration\-execution attempts\. The process terminates upon successful validation or reaching the retry limit\.
To operationalize confidence\-based validation, we quantify LLM confidence as the exponential of the average token\-level log probability over the target output\. Confidence divergence between two contexts is then measured by comparing their corresponding confidence scores\. We instantiate this measure for different agent outputs as follows\.\(i\)\(i\)Decision Confidence Divergence\.For critical decisions \(e\.g\., filter predicates\), we use LLMs to extract explored decisions from exploration summary and executed decisions from code\. Given the task and recent exploration summaries as context, we measure their confidence divergence; a low divergence indicates that the executed decision does not gain stronger evidence support than alternative explored decisions\.\(ii\)\(ii\)Code Confidence Divergence\.For code generation, we identify decision\-relevant code spans through static code analysis \(e\.g\., control flows\), and evaluate their confidence with and without exploration evidence\. A low confidence divergence indicates that the generated code is insufficiently grounded in supporting evidence and warrants inspection\.
#### 2\.2\.3\.Semantic Isolation
Unlike traditional transactions that mainly isolate conflicting data accesses, agentic transactions require isolation over semantic dependencies among agents, contexts, workspaces, and operations\. We consider two levels of isolation: agent–agent isolation and operation–operation isolation\.
Agent\-Level Isolation\.Different dependency structures among sub\-agents introduce distinct coordination requirements, motivating adaptive isolation strategies supported by agent spawning tools\. We formulate isolation selection as a semantic parameter tuning problem, where isolation policies \(e\.g\., access constraints, branching strategies, communication intervals, and termination conditions\) are determined based on sub\-task semantics and dependencies\. This enables learning\-based optimization of isolation policies, where a dedicated LLM can be fine\-tuned to predict suitable configurations for different tasks, analogous to LLM\-based database knob tuning\([7](https://arxiv.org/html/2608.13900#bib.bib10)\)\. Specifically,\(i\)\(i\)*Independent sub\-agents*address semantically disjoint sub\-tasks \(e\.g\., summarizing large collections of independent documents\), where each sub\-agent operates on an exclusive subset of resources with isolated permissions and fully parallel execution\.\(ii\)\(ii\)*Collaborative sub\-agents*jointly construct a shared artifact \(e\.g\., soft engineering involving coordinated code evolution and integration over a shared codebase\), where agents maintain independent workspace branches, periodically synchronize intermediate results through structured context exchange, and merge changes using a Git\-like workflow\.\(iii\)\(iii\)*Competitive sub\-agents*explore alternative hypotheses or solution strategies \(e\.g\., conducting in\-depth research by analyzing related literature, validating claims, and synthesizing evidence\), where each agent executes in an isolated virtual environment \(e\.g\., Docker\) and the final result is selected from the most promising trajectory\. Efficiency can be further improved through copy\-on\-write initialization and early termination of under\-performing branches\.
Operation\-Level Isolation\.At the operation level, the skill hub enforces execution isolation through effect annotations and inference, versioned workspaces, snapshot\-based execution, and optimistic validation, preventing failed or conflicting operations from contaminating shared states\.
#### 2\.2\.4\.Semantic Durability
We provide semantic durability through\(i\)\(i\)transaction\-aware semantic state management during execution, and\(ii\)\(ii\)persistent execution tracing and recovery\.
Transaction\-Aware Semantic State Management\.Unlike traditional databases that maintain explicit structured states, AI systems operate over evolving semantic states generated from interactions, workspace updates, tool executions, and intermediate artifacts\. Preserving these states is critical for downstream reasoning, but growing interaction histories quickly exceed finite context windows\. Existing approaches typically rely on step\-wise LLM summarization to compress interaction histories\. However, this process often fails to preserve transaction\-level semantic structure, either over\-compressing critical information or retaining irrelevant step\-level details that are not useful for downstream reasoning\. To address this challenge, we propose a transaction\-aware evolving memory that maintains semantic states throughout the transaction lifecycle\. The memory evolves as a knowledge graph, with insertion, merging, splitting, and deletion operations performed by a specialized LLM\. Training supervision can be automatically derived from agent trajectories, where information referenced by future execution steps serves as a signal of long\-horizon relevance\.
Execution Tracing and Recovery\.Beyond maintaining semantic states during execution, we preserve durable execution histories to support auditing and recovery\. Our append\-only workspace records provenance information, LLM interactions, tool invocations, and versioned artifacts throughout the transaction lifecycle\. These traces enable faithful reconstruction of execution environments, diagnosis of failures, and version\-aware failure recovery\([4](https://arxiv.org/html/2608.13900#bib.bib23)\)\.
## 3\.Experiments
### 3\.1\.Experimental Setup
All experiments are conducted on a Linux server with 256GB RAM, Intel\(R\) Xeon\(R\) Silver 4110 CPU @ 2\.10GHz CPU, and NVIDIA GeForce RTX 2080 Ti\. Although agentic transactions represent a broader concept, we first validate our ACID\-compliant data agent system as an initial proof of effectiveness\.
Dataset\.We use KramaBench\([10](https://arxiv.org/html/2608.13900#bib.bib19)\), a representative benchmark for data agents\. It contains 104 natural language tasks over 1,700 real\-world data files collected from 24 data sources across 6 domains\. Each task specifies a data science objective, requires reasoning over heterogeneous datasets, and involves multi\-step workflows\.
Evaluated Methods\.We evaluate state\-of\-the\-art LLMs, including Qwen3\.5\-397B\-A17B\([16](https://arxiv.org/html/2608.13900#bib.bib18)\)and GLM\-5\.2\([22](https://arxiv.org/html/2608.13900#bib.bib16)\), provided by the Bailian platform\([2](https://arxiv.org/html/2608.13900#bib.bib17)\)\. We use default temperatures\. We evaluate three representative data\-agent harnesses:\(i\)\(i\)Claude Code\([14](https://arxiv.org/html/2608.13900#bib.bib21)\), a general\-purpose ReAct\-style harness with long\-horizon planning, environment interaction, and context management;\(ii\)\(ii\)ACID\-Agent, using a local Qwen3\-0\.6B\([15](https://arxiv.org/html/2608.13900#bib.bib22)\)for confidence estimation since API\-based LLMs lack token probabilities\. We set the maximum number of semantic units to 20, retain up to 15 historical units, and allow 2 retries per unit\. Exploration uses an adaptive budget of 1–4 rounds, decreasing by one round every two units, and terminates early when confidence divergence exceeds 0\.45\. Retries are triggered when decision confidence divergence is below 0\.25 or the maximum code\-span confidence divergence is below 0\.50;\(iii\)\(iii\)DA\-Agent\([8](https://arxiv.org/html/2608.13900#bib.bib20)\), a data science agent with Bash, Python, and SQL tools for reactive execution with feedback, serving as an ablation variant ofACID\-Agentthat removes ACID designs\.
Table 2\.Scores \(%\) and Trajectory\-level Metrics on KramaBench\. ➀=Qwen3\.5\-397B\-A17B, ➁=GLM\-5\.2\.HarnessLLMScoreDomain Scores\#Code Steps\#Tokens \(K\)Cost \($\)ArchaeologyAstronomyBiomedicalEnvironmentLegalWildfireClaude Code➀ Qwen64\.041\.754\.244\.470\.273\.371\.79\.44050\.08➁ GLM74\.250\.054\.255\.690\.080\.084\.28\.82890\.12ACID\-Agent➀ Qwen74\.641\.758\.355\.690\.083\.383\.722\.83480\.10➁ GLM77\.450\.058\.377\.895\.080\.083\.122\.53670\.61
Evaluation Metrics\.We evaluate agents from three perspectives: task quality, execution efficiency, and result consistency\. Task quality is measured by the benchmark score, while efficiency is evaluated by trajectory\-level statistics, including coding steps, token consumption, and execution cost\. Consistency is measured by the square root of the average per\-task variance across multiple runs\.
### 3\.2\.Main Results
We evaluateACID\-Agenton KramaBench from two perspectives: overall performance and execution consistency\. We measure task scores and quantify consistency using the average per\-task variance across three independent runs\.
Overall Evaluation\.As shown in[Table 2](https://arxiv.org/html/2608.13900#S3.T2),ACID\-Agentconsistently achieves higher overall scores thanClaude Codeacross different LLM backbones, with improvements observed in most domains\. Powered by Qwen3\.5\-197B\-A17B,ACID\-AgentoutperformsClaude Codeby 10\.6% in overall score\. Moreover,ACID\-Agentwith Qwen3\.5\-397B\-A17B even surpassesClaude Codewith the larger GLM\-5\.2 backbone, demonstrating the effectiveness of our harness design beyond model scaling\. This improvement comes at the cost of additional code steps and token consumption, mainly due to exploration and retry mechanisms\. The results demonstrate that leveraging a lightweight local model \(Qwen3\-0\.6B\) for consistency validation effectively complements much stronger backbone LLMs\.
Consistency Evaluation\.As shown in[Table 3](https://arxiv.org/html/2608.13900#S3.T3),ACID\-Agentachieves lower task\-level score variation thanClaude Code, indicating that confidence\-guided exploration and validation can mitigate the non\-deterministic deviations from transactional semantics\.
Table 3\.Consistency of Agent Performance Across Three Runs on the Environment Domain of KramaBench \(mean±avg\(Var\)\\mathrm\{mean\}\\pm\\sqrt\{\\mathrm\{avg\}\(\\mathrm\{Var\}\)\}\)\. All agents are based on Qwen3\.5\-397B\-A17B\.Data AgentScore\#Code Steps\#Tokens \(K\)Cost \($\)Claude Code63\.9±\\pm30\.98\.5±\\pm2\.9372±\\pm1610\.07±\\pm0\.03ACID\-Agent88\.9±\\pm18\.625\.1±\\pm9\.8421±\\pm2000\.13±\\pm0\.06
### 3\.3\.Ablation Study
The ablation results are shown in[Table 4](https://arxiv.org/html/2608.13900#S3.T4)\.\(i\)\(i\)*Semantic Transaction Unit*\.ACID\-AgentoutperformsDA\-Agent, demonstrating the effectiveness of exploration\-execution\-validation cycles compared with conventional ReAct\-style execution\.\(ii\)\(ii\)*Failed Step Isolation*\. We remove the isolation mechanism for failed steps, allowing intermediate failures to directly update the workspace and context memory\. This variant reduces the score by 11\.7%, demonstrating that propagating failed states can contaminate subsequent execution\.\(iii\)\(iii\)*Effect of More Tokens*\.ACID\-Agentoutperforms majority\-votingClaude Codeacross three runs with fewer tokens\. This indicates that the improvement does not come from increased inference budgets, but from the ACID\-inspired harness design\.
Table 4\.Ablation Study on the Environment Domain of KramaBench\. All agents are based on Qwen3\.5\-397B\-A17B\.Data AgentScore\#Code Steps\#Tokens \(K\)Cost \($\)DA\-Agent65\.28\.5620\.0175\.225\.611210\.21ACID\-Agent\(No\-Isolation\)78\.320\.13330\.10ACID\-Agent90\.025\.54440\.13
## 4\.Open Problems
Beyond ACID\-compliant data agents, building ACID\-compliant general\-purpose agentic systems raises several open research questions\. Foratomicity, how can we build scalable skill ecosystems with executable semantics, quality assurance, and safety guarantees that support reliable skill composition and evolution? Forconsistency, how can we ensure reliable reasoning and stable execution across runs through new architectures, benchmarks, model alignment techniques, execution harnesses, machine\-checkable contracts, and typed tool interfaces? Forisolation, how can multi\-agent systems safely coordinate access to shared contexts, tools, artifacts, and semantic states? Addressing this challenge requires transactional abstractions and integrated database–LLM serving mechanisms for managing context, ownership, and conflicts\([9](https://arxiv.org/html/2608.13900#bib.bib24);[13](https://arxiv.org/html/2608.13900#bib.bib25)\)\. Fordurability, how can we turn agent memory into systematic infrastructure that supports transactional state management, failure recovery, and persistent evolution for lifelong agents?
## References
- \[1\]\(2026\)Agent skills \- claude api docs\(Website\)External Links:[Link](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview)Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p2.1)\.
- \[2\]\(2026\)Bailian console of the large model service platform\(Website\)External Links:[Link](https://bailian.console.alibabacloud.com/)Cited by:[§3\.1](https://arxiv.org/html/2608.13900#S3.SS1.p3.1)\.
- Chang and Geng \(2025\)E\. Y\. Chang and L\. GengSagaLLM: context management, validation, and transaction guarantees for multi\-agent llm planning\.VLDB18\(12\),pp\. 4874–4886\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p2.1)\.
- Donget al\.\(2026\)Y\. Dong, J\. He, S\. Liu, Y\. Hou, D\. Du, Z\. Xu, S\. Yu, B\. Yang, Y\. Xia, and H\. ChenDeltaBox: scaling stateful ai agents with millisecond\-level sandbox checkpoint/rollback\.arXiv preprint arXiv:2605\.22781\.Cited by:[§2\.2\.4](https://arxiv.org/html/2608.13900#S2.SS2.SSS4.p3.1)\.
- Härder and Reuter \(1983\)T\. Härder and A\. ReuterPrinciples of transaction\-oriented database recovery\.ACM Comput\. Surv\.15\(4\),pp\. 287–317\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p1.1)\.
- Huanget al\.\(2025a\)L\. Huang, W\. Yu, W\. Ma, W\. Zhong, Z\. Feng, H\. Wang, Q\. Chen, W\. Peng, X\. Feng, B\. Qin, and T\. LiuA survey on hallucination in large language models: principles, taxonomy, challenges, and open questions\.ACM Trans\. Inf\. Syst\.43\(2\),pp\. 42:1–42:55\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p3.1)\.
- Huanget al\.\(2025b\)X\. Huang, H\. Li, J\. Zhang, X\. Zhao, Z\. Yao, Y\. Li, T\. Zhang, J\. Chen, H\. Chen, and C\. LiE2ETune: end\-to\-end knob tuning via fine\-tuned generative language model\.VLDB18\(13\),pp\. 5540–5554\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p1.1),[§2\.2\.3](https://arxiv.org/html/2608.13900#S2.SS2.SSS3.p2.1)\.
- Huanget al\.\(2024\)Y\. Huang, J\. Luo, Y\. Yu, Y\. Zhang, F\. Lei, Y\. Wei, S\. He, L\. Huang, X\. Liu, J\. Zhao,et al\.DA\-code: agent data science code generation benchmark for large language models\.InEMNLP,pp\. 13487–13521\.Cited by:[§3\.1](https://arxiv.org/html/2608.13900#S3.SS1.p3.1)\.
- Kanget al\.\(2026\)H\. Kang, Z\. li, W\. Xu, X\. Yang, Y\. Chen, J\. Wang, B\. Chen, T\. Krishna, C\. Xu, and S\. AroraThunderAgent: a fast, simple, and program\-aware agentic inference system\.InICML,Cited by:[§4](https://arxiv.org/html/2608.13900#S4.p1.1)\.
- Laiet al\.\(2025\)E\. Lai, G\. Vitagliano, Z\. Zhang, O\. Chabra, S\. Sudhir, A\. Zeng, A\. A\. Zabreyko, C\. Li, F\. Kossmann, J\. Ding,et al\.Kramabench: a benchmark for ai systems on data\-to\-insight pipelines over data lakes\.arXiv preprint arXiv:2506\.06541\.Cited by:[§3\.1](https://arxiv.org/html/2608.13900#S3.SS1.p2.1)\.
- Liet al\.\(2025\)Z\. Li, S\. Song, H\. Wang, S\. Niu, D\. Chen, J\. Yang, C\. Xi, H\. Lai, J\. Zhao, Y\. Wang, J\. Ren, Z\. Lin, J\. Huo, T\. Chen, K\. Chen, K\. Li, Z\. Yin, Q\. Yu, B\. Tang, H\. Yang, Z\. J\. Xu, and F\. XiongMemOS: an operating system for memory\-augmented generation \(MAG\) in large language models\.CoRRabs/2505\.22101\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p5.1)\.
- Mohammadiet al\.\(2026\)B\. Mohammadi, N\. Potamitis, L\. Klein, A\. Arora, and L\. BindschaedlerAtomix: timely, transactional tool use for reliable agentic workflows\.arXiv preprint arXiv:2602\.14849\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p2.1)\.
- \[13\]\(2026\)Oceanbase/seekdb: the ai\-native search database\. best for agent storage, it unifies vector, text, structured, and semi\-structured data into a single engine\. this all\-in\-one database makes agents smarter, easier to run, and more stable\.\(Website\)External Links:[Link](https://github.com/oceanbase/seekdb)Cited by:[§4](https://arxiv.org/html/2608.13900#S4.p1.1)\.
- \[14\]\(2026\)Overview \- claude code docs\(Website\)External Links:[Link](https://code.claude.com/docs/en/overview)Cited by:[§3\.1](https://arxiv.org/html/2608.13900#S3.SS1.p3.1)\.
- \[15\]\(2026\)Qwen/qwen3\-0\.6b · hugging face\(Website\)External Links:[Link](https://huggingface.co/Qwen/Qwen3-0.6B)Cited by:[§3\.1](https://arxiv.org/html/2608.13900#S3.SS1.p3.1)\.
- \[16\]\(2026\)Qwen/qwen3\.5\-397b\-a17b · hugging face\(Website\)External Links:[Link](https://huggingface.co/Qwen/Qwen3.5-397B-A17B)Cited by:[§3\.1](https://arxiv.org/html/2608.13900#S3.SS1.p3.1)\.
- Sunet al\.\(2025a\)Z\. Sun, J\. Wang, X\. Zhao, J\. Wang, and G\. LiData agent: A holistic architecture for orchestrating data\+ai ecosystems\.CoRRabs/2507\.01599\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p1.1),[§1](https://arxiv.org/html/2608.13900#S1.p5.1)\.
- Sunet al\.\(2026\)Z\. Sun, S\. Zhong, D\. Wen, J\. Han, G\. Li, Y\. Yan, P\. Zhang, Y\. Su, X\. Qi, B\. Sun,et al\.AgenticDataBench: a comprehensive benchmark for data agents\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p1.1),[Figure 3](https://arxiv.org/html/2608.13900#S2.F3),[Figure 3](https://arxiv.org/html/2608.13900#S2.F3.5)\.
- Sunet al\.\(2025b\)Z\. Sun, X\. Zhou, G\. Li, X\. Yu, J\. Feng, and Y\. ZhangR\-bot: an llm\-based query rewrite system\.VLDB18\(12\),pp\. 5031–5044\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p1.1)\.
- Sunet al\.\(2025c\)Z\. Sun, X\. Zhou, J\. Wu, W\. Zhou, and G\. LiD\-bot: an llm\-powered dba copilot\.InSIGMOD Companion,pp\. 235–238\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p1.1)\.
- Team \(2026\)K\. TeamKimi K2\.5: visual agentic intelligence\.Vol\.abs/2602\.02276\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p1.1),[§1](https://arxiv.org/html/2608.13900#S1.p4.1)\.
- \[22\]\(2026\)Zai\-org/glm\-5\.2 · hugging face\(Website\)External Links:[Link](https://huggingface.co/zai-org/GLM-5.2)Cited by:[§3\.1](https://arxiv.org/html/2608.13900#S3.SS1.p3.1)\.
- Zhouet al\.\(2022\)X\. Zhou, C\. Chai, G\. Li, and J\. SunDatabase meets artificial intelligence: A survey\.TKDE34\(3\),pp\. 1096–1116\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p5.1)\.
- Zhouet al\.\(2024a\)X\. Zhou, G\. Li, Z\. Sun, Z\. Liu, W\. Chen, J\. Wu, J\. Liu, R\. Feng, and G\. ZengD\-bot: database diagnosis system using large language models\.VLDB17\(10\),pp\. 2514–2527\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p1.1)\.
- Zhouet al\.\(2024b\)X\. Zhou, Z\. Sun, and G\. LiDb\-gpt: large language model meets database\.Data Science and Engineering9\(1\),pp\. 102–111\.Cited by:[§1](https://arxiv.org/html/2608.13900#S1.p1.1)\.Similar Articles
Agentic Trading: When LLM Agents Meet Financial Markets
This paper presents a systematic survey and evidence map of 77 studies on LLM-based trading agents, finding that architectural experimentation is expanding rapidly but evaluation protocols, execution semantics, and reproducibility remain critical bottlenecks.
EASy: Towards Efficient LLM-Based Agentic System
The paper proposes EASy, a trainable agentic framework that uses reinforcement learning to jointly optimize task performance and computational efficiency, introducing a milestone-plan-act workflow, dependency-aware execution graphs, and tree-structured rollout for training.
Beyond Agent Architecture: Execution Assumptions and Reproducibility in LLM-Based Trading Systems
This paper reviews and audits execution realism in LLM-based trading research, proposing clearer reporting standards for reproducibility and evaluation comparability.
TradingAgents: Multi-Agents LLM Financial Trading Framework
This paper introduces TradingAgents, a multi-agent LLM framework that simulates real-world trading firms to improve stock trading performance. It utilizes specialized agents for analysis and risk management, demonstrating superior results in cumulative returns and Sharpe ratio compared to baselines.
Agentic Context Management: Solving Agent Memory and Cost by Treating Them as Lifecycle and Architecture Problems
This paper proposes Agentic Context Management (ACM), treating agent memory as a lifecycle problem with five primitives, and presents Maximem Synap, a reference implementation achieving strong benchmark results.