arXiv:2611.12300cs.AINov 2026

Manuscript Offprint

arXiv:2611.12300

Reconfigurable Action Theories: A Formal Foundation for Dynamically Composable Agent Harnesses

Jianmin Ji

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Action theories typically fix their vocabulary and causal laws, whereas agent harnesses can change their tools, providers, and policies during execution. We introduce Reconfigurable Action Theories (RAT), in which actions can change the action theory itself. A theory module in RAT contains a vocabulary, causal laws, and an initializer. A RAT configuration records the active modules and the world state. Module loading and unloading are represented by actions governed by ordinary causal laws. RAT retains the standard causal action semantics of its language fragment when the active module set is fixed. We give sufficient conditions for at most one next configuration, preservation of existing behavior when a module is added, and equal results when modules are loaded in either order. We establish the computational complexity of reasoning tasks in RAT and translate finite RAT systems into nonmonotonic causal theories and Answer Set Programming (ASP), preserving bounded executions. Experiments compare finite RAT models with executions of official DeepSeek Harness, Pi, and OpenHands implementations. RAT provides a formal basis for checking how component changes affect a harness's available actions, behavior, and reachable goals.

Keywords: Reasoning about Actions, Action Languages, Dynamic Reconfiguration, Agent Harnesses, Answer Set Programming

1. Introduction

Action theories describe how actions change a world. A conventional action description fixes a vocabulary of fluents, which represent changeable facts, and actions, together with the causal laws governing them, while states or histories evolve [1-5]. We study actions that also change the vocabulary and causal laws used to describe later actions.

Agentic AI provides a concrete setting for this problem. An agent repeatedly proposes actions, invokes tools, observes results, and updates its context while pursuing a goal [6-8]. The surrounding agent harness constructs model context, exposes and validates tools, selects providers, dispatches calls, maintains sessions, enforces policies, and records effects [9]. Several harnesses support runtime changes to components, tools, or provider bindings [10-13]. For example, loading a tool can introduce new calls, while replacing a provider or changing a policy can alter when a call is permitted and what it does. To reason about these changes, we need to represent both the current action description and the actions that change it.

Consider a ReAct agent [8] asked to compute 23×1723 \times 17 when no calculator tool is initially available. Loading a calculator module should introduce its multiplication action, causal laws, and private state. Removal should withdraw that contribution. A fixed description can encode availability through fluents and guarded, predeclared laws, but the vocabulary and laws themselves remain fixed. We make the module structure explicit: which action-description fragments are in force, and how actions change their selection.

∗^{*}Corresponding author.

Email address: jianmin@ustc.edu.cn (Jianmin Ji)

We introduce Reconfigurable Action Theories (RAT), a minimal extension in which actions can change the action theory itself, using the ordinary nonmonotonic causal foundation [3, 14]. A theory module is a named action-description fragment. A configuration C=⟨K,s⟩\mathcal{C} = \langle K, s \rangle records active optional modules KK and world state ss, alongside an always-active “core”. The actions load(MM) and unload(MM) select or deselect module MM, without rewriting its laws. Ordinary causal laws govern their world effects and qualification, while RAT fixes their effect on KK.

Runtime theory change itself is not new. Modular action languages assemble reusable descriptions, while evolving logic programs, domain update, and action-theory revision address changes of rules or theories [15–19]. RAT instead makes module selection explicit, distinguishes its roles before and after an action, and studies preservation and reordering of module changes. For a fixed execution bound, a causal theory can represent the same executions. RAT keeps module declarations and their changes explicit, so conditions for preserving behavior can be stated in terms of the modules rather than the auxiliary rules of an encoding. Section 9.1 discusses this role of RAT alongside its causal-theory translation.

The central semantic issue is which laws govern a step that changes the theory itself. Write D[K]\mathcal{D}[K] for the ordinary action description formed by the core and the modules in KK and ⟨K,s⟩\langle K, s \rangle for its configuration. At time tt, an action ata_t labels a transition

⟨Kt,st⟩→at⟨Kt+1,st+1⟩.\langle K_{t}, s_{t} \rangle \xrightarrow{a_{t}} \langle K_{t+1}, s_{t+1} \rangle.

We call the state before the action its source state and the state after it its target state. We check executability using the nonexecutability laws of D[Kt]\mathcal{D}[K_t] and the current module set KtK_t. Dynamic laws also come from D[Kt]\mathcal{D}[K_t]. Their effects depend on conditions evaluated in sts_t and st+1s_{t+1}. Loading or unloading changes KtK_t to Kt+1K_{t+1}. The static laws of D[Kt+1]\mathcal{D}[K_{t+1}] determine within-state causal consequences, jointly with effects, inertia, and initialization. A newly loaded module contributes no executability or direct-effect law to its loading step, but its static laws already govern the resulting state and may cause indirect changes to existing fluents (Figure 1).

Figure

Figure 1: An action may change both the world state and the action theory. The description D[Kt]\mathcal{D}[K_t], formed by the core and the modules in KtK_t, supplies the executability and direct-effect laws for ata_t. Loading or unloading changes KtK_t to Kt+1K_{t+1}; the resulting description D[Kt+1]\mathcal{D}[K_{t+1}] supplies the static laws governing st+1s_{t+1}.

For finite ground RAT models whose initialization conditions are represented by propositional formulas, a proposed transition can be checked in polynomial time. Successor existence is NP-complete, while unbounded reachability is PSPACE-complete. Thus finite module selection does not raise these worst-case bounds above ordinary finite-state causal reasoning and planning. For finite RAT systems, causal theories and Answer Set Programming (ASP) [20, 21] give bounded planning, diagnosis, and counterexample search.

RAT is a specification for reasoning about a harness, not a replacement for its scheduler or tool runtime. A designer can use it to ask whether a tool can be loaded, whether existing actions retain their behavior, or whether a goal remains reachable after a module change. Reproducible experiments compare finite RAT models with local executions of official DeepSeek Harness1^1, Pi2^2, and OpenHands [22] implementations. We also test ASP-based configuration computation and

1^1https://www.deepseek.com/en/harness/

2^2https://pi.dev/ planning on generated models, measuring how running time and ground-program size grow with problem size.

The main contributions are:

(1) RAT and its properties. We define how actions change both world state and the modules forming an action description. For actions other than loading and unloading, RAT has the ordinary causal action semantics of the active description. We give sufficient conditions for at most one successor, for preserving existing behavior when adding a module, including through a read-only shared interface, and for the same possible final configurations when loading two modules in either order. We also show why unloading and reloading need not restore the earlier state. Experiments compare RAT predictions with recorded tool calls and component changes in three harness implementations.

(2) Reasoning tasks and complexity. We define transition checking, successor existence, possible and necessary goal satisfaction, execution of a supplied action sequence, and reachability. We establish their complexity for finite ground inputs with formula-represented initialization conditions.

(3) Causal and ASP representations. For finite RAT systems, we give a bounded causal translation and prove that its explanations represent exactly the executions. An established causal-to-ASP translation then represents these executions as answer sets, for fixed action sequences or bounded action choice.

Section 2 fixes the logical foundations. Sections 3–6 give RAT's language, semantics, properties, and translations. Section 7 reports executable checks. Section 8 compares related work, including Cordis. Section 9 discusses use in harnesses, limitations, and further work. The separate Supplementary Material³ supplies expanded proofs, implementation checks, and reproduction details.

References (24)