Manuscript Offprint

arXiv:2611.09088

When Routine Operations Break Architectural Pattern Relationships in LLM Agent Harnesses

Boming Xia, Qinghua Lu, Dino Sejdinovic, Liming Zhu

Boming Xia*†‡, Qinghua Lu‡§, Dino Sejdinovic† and Liming Zhu‡§

*Responsible AI Research Centre †Adelaide University ‡CSIRO §UNSW

Abstract—LLM agent harnesses distribute tool mediation, state management and safety guardrails across native services, independently written plugins and configuration. Routine operations can change the runtime order or retained state that architectural pattern relationships require, without any code change. We study five relationships associated with the Guardrail Enforcement Point, Autonomy Controller and Blackboard patterns across five released harnesses, analysing a main sample of fourteen independently written plugins. Using PatternOps, our assessment procedure, we trace requirements from pattern descriptions, provider documentation and deployment profiles to the providers responsible for them and the records used to assess them. We then compare alternative allocations under supported operations. After a policy plugin was reapplied or an edit allow rule was saved, a prohibited edit executed without policy evaluation even though the participating plugins were active. Which alternatives qualified depended on the requirement. Allocations that kept the required order, or kept or rebuilt the needed state, held on their tested paths and operation sequences, while others prevented prohibited effects but missed edits rejected elsewhere. In these harnesses, a pattern relationship is a property of the running system and its history, so architects should evaluate it against the decision paths, state lifetimes and operation sequences their deployments use.

Index Terms—Architectural patterns, LLM agent harnesses, plugin composition, runtime conformance, empirical study

I. INTRODUCTION

An LLM agent harness can execute a prohibited edit while its policy and approval plugins remain active. Harnesses coordinate model and tool calls, manage execution state and mediate actions through mechanisms such as policy checks and operator approval [1]–[5]. Architectural patterns describe reusable arrangements of responsibilities and relationships for concerns such as guardrail enforcement, operator control and shared state [6]–[8]. Native services, independently written plugins and configuration realise these responsibilities jointly, so their runtime interactions decide whether the required relationships survive routine operations, such as reapplying a plugin, saving consent or compacting the history.

Consider policy participation, an assessed Guardrail Enforcement Point (GEP) requirement: the designated policy must decide before an action covered by the deployment executes, even when an operator approves it. In one harness, a policy plugin submits tool calls to a policy service and an approval plugin asks the operator [9]–[11]. Their callbacks form a chain of responsibility [12]: by default, they run in registration order until one answers without passing the call on [9]. We arranged policy-first order and confirmed that an initial edit in observe mode, used for calibration, reached

policy. The documented switch to enforce mode re-registered the policy callback behind the approval plugin. The operator then approved a prohibited edit, and it executed without a policy decision. Disabling and re-enabling the approval plugin re-registered it last and restored evaluation. The same enabled plugins and final settings thus gave different policy coverage after different operations (Fig. 1a).

Runtime order is one way to carry a relationship. Retained state is another: after an allow rule was saved, a policy reviewer that checks only requests still needing operator approval abstained, and a prohibited edit executed [13], [14] (Fig. 1b). Reapplying a plugin can also discard source provenance held in its instance. An allocation assigns responsibilities to harness parts, and a carrier is the runtime order or retained state on which a required relationship depends. Preservation through routine operations therefore depends on the allocation as a whole, not on any plugin in isolation.

These dependencies reflect established concerns in complete mediation, feature interaction, aspect precedence, safe dynamic update and architectural mismatch [15]–[20]. Recent studies examine runtime pattern conformance, interacting changes to agent harnesses, action-bound approval and contracts or shared decision cores for composed agent controls [21]–[25]. For an architect choosing where to enforce policy or retain decision state, the remaining question is which alternative allocations among a harness's native services and independently written plugins preserve a specified relationship through the operations a deployment supports, and what obligations each allocation introduces. Answering it requires knowing what carries each relationship and how operations and routes change it.

We investigate five assessed relationships across five released harnesses as a multiple-case study with controlled comparisons [26], analysing a main sample of fourteen independently written plugins from source. GEP is the principal case, covering policy participation and decision information, such as provenance needed for a policy decision. Supporting comparisons examine whether an Autonomy Controller (AC) response applies to its pending action, whether resumption repeats completed work under a task-derived requirement and whether a shut-down Blackboard member remains excluded under a specified deployment profile. Using PatternOps, our assessment procedure (Section III), we distinguish pattern duties, provider promises and deployment requirements. We trace each requirement to its allocation and carrier and judge

Figure

Fig. 1. Policy participation under supported operations. (a) A mode switch reorders callbacks in DeepSeek Harness. Native consent, the host's own approval question after the plugin chain, keeps policy reachable in enforce mode under the tested read-only profile. (b) A saved allow rule makes OpenCode's reviewer ineligible. Rows of (b) are matched arms in separate processes.

the assessed actions from records joined across providers¹. We ask:

  • RQ1: How are the assessed relationships realised across native capabilities, plugins and configuration, and what carries them?

  • RQ2: How do supported operations and execution routes preserve or break these relationships?

  • RQ3: Which alternative allocations preserve them under the tested conditions, and with what trade-offs?

The study contributes:

  1. An evidence-grounded account of how selected architectural relationships are allocated and carried across released agent harnesses (RQ1).

  2. Controlled evidence of operation-dependent losses and restorations, including different policy coverage with the same enabled plugins and final settings, and a state repair that fails after a subsequent operation (RQ2).

  3. Requirement-specific comparisons of alternative allocations, distinguishing prevention of prohibited effects from evaluation of every admitted edit, together with their tested conditions and operating obligations (RQ3).

References (51)