Skip to content

Compositional safety failures in evolving agent harnesses: identification and runtime monitoringCompositional Safety Failures in Harness Evolution: Identification and Runtime Monitoring

arXiv· arXiv:2609.33123· Zhixiang Zhang, Zesen Liu, Wai Ip Lai, Hongxu chen, Dongdong SheThe Hong Kong University of Science and TechnologyIndexed by this site · 25 days ago· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors study safety failures that arise from combining cross-component updates in self-evolving agent harnesses, identify 43 pairwise failures across three benchmarks, and propose hypergraph-guided runtime monitoring.

Threat modelNon-adversarial harness evolution: no attacker-crafted component updates are constructed; component updates are produced by existing evolution mechanisms, are individually safe and preserve utility, but produce unsafe behavior when activated jointly across components; the victim system is an LLM agent with Qwen3-32B as backbone running on the A-Evolve unified harness abstraction.

Questions
Self-evolving agent harnesses continuously update components such as memory, prompts, skills, and tools. The authors focus on a kind of compositional safety failure: each update is individually safe and preserves utility, yet when activated jointly they produce unsafe behavior, and existing verification methods do not check cross-component interactions.
Methods
The authors first empirically identify compositional failures on three benchmarks using a four-configuration controlled protocol, then represent component states as nodes and cross-component higher-order interactions as hyperedges, building an incremental interaction hypergraph, and use it for runtime monitoring: only interactions activated by the current execution are checked, with the decision made before the action takes effect.
Experiments and results
On AgentDojo, Agent-SafetyBench, and Agent Security Bench, 22, 2, and 19 pairwise failures were identified respectively, plus 18 irreducible third-order failures. The authors report that their monitoring method reduces residual CFR to at most 1.27%, with utility comparable to the baseline, and at runtime checks only 20.1-33.6% of candidate actions.
Limitations and future work
The paper has no dedicated limitations discussion section. The experiments use only one backbone model, Qwen3-32B; the study examines non-adversarial evolution and does not construct attacker-crafted updates; on Agent-SafetyBench there are only 11 qualified panels and only 9 qualified third-order triples; the authors state that the results are not intended to estimate the prevalence of failures in deployed systems.
Experimental setupQwen3-32B · AgentDojo (banking environment)、Agent-SafetyBench et al. · CF、CFR et al.
Evaluated models
Qwen3-32B
Benchmarks
AgentDojo (banking environment)Agent-SafetyBenchAgent Security Bench
Metrics
CFCFRResidual CFRUtilityRuntime Check RateTime Cost (s/task)
AI summaryThe researchers focus on compositional safety failures arising from cross-component updates in self-evolving agent harnesses, and identify 43 pairwise combinations and 18 irreducible three-way combinations of safety failures on three safety-related benchmarks. They propose using typed hypergraphs to represent component states as nodes and safety-related higher-order interactions as hyperedges, updating only the interaction neighborhood of affected states when the harness changes, and on this basis implement hypergraph-guided runtime monitoring. Experiments show that the method mitigates compositional safety risks and reduces interaction-checking costs while maintaining task utility, and also reveal trade-offs among safety, utility and cost for different safety mechanisms.

The researchers focus on compositional safety failures arising from cross-component updates in self-evolving agent harnesses, and identify 43 pairwise combinations and 18 irreducible three-way combinations of safety failures on three safety-related benchmarks. They propose using typed hypergraphs to represent component states as nodes and safety-related higher-order interactions as hyperedges, updating only the interaction neighborhood of affected states when the harness changes, and on this basis implement hypergraph-guided runtime monitoring. Experiments show that the method mitigates compositional safety risks and reduces interaction-checking costs while maintaining task utility, and also reveal trade-offs among safety, utility and cost for different safety mechanisms.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study compositional safety failures in self-evolving harnesses, where component updates that are individually safe become unsafe when activated jointly, and propose runtime monitoring.

    Core problem: In self-evolving agent harnesses, component updates that are each safe and preserve utility may produce unsafe behavior when activated jointly across components (which the authors call compositional safety failures in harness evolution), and existing verification methods do not cover such cross-component interactions.

    • Problem setting: LLM agents rely on an external harness (configurable components such as memory, prompts, skills, and tools); recent systems let the harness self-update from execution experience, task outcomes, or external feedback, with updates retained across executions—a process the authors call harness evolution.
    • Shortcomings of existing methods: The authors state that existing work studies harness misevolution, verifies candidate harnesses, or verifies individual component updates after attribution, but does not treat interactions across heterogeneous components as the unit of safety analysis; two individually safe updates may become unsafe when activated jointly.
    • Core observation: The authors identify 43 pairwise compositional failures and 18 irreducible three-way failures on the three benchmarks AgentDojo, Agent-SafetyBench, and Agent Security Bench, and note that compositional safety is execution-dependent—component states may form unsafe interactions only when some later state appears.
    • Proposed approach: Represent component states (nodes) and safety-relevant higher-order interactions (hyperedges) with a typed hypergraph, and when the harness changes, update only the local interaction neighborhood of the changed states; on this basis, perform hypergraph-guided runtime monitoring that checks only interactions activated in the current execution.
    • Threat model:
      • Attacker goal: No attacker; the paper explicitly studies only non-adversarial harness evolution and does not construct attacker-crafted component updates.
      • Update sources: Component updates are produced by existing evolution mechanisms (ReasoningBank, GEPA, Voyager, Alita), not adversarial payloads hand-crafted for safety evaluation.
      • Victim system: An LLM agent with Qwen3-32B as the fixed backbone running on the A-Evolve unified harness abstraction.
      • Failure determination: The joint configuration 11 exhibits a safety violation absent in 00, 10, and 01, with execution-level evidence (tool calls, arguments, environment state transitions).
  2. What related research exists?

    Related work falls into three groups: self-evolving harnesses, trustworthy harness evolution verification, and compositional safety failures; the authors position this paper as filling the gap in cross-component interaction analysis.

    Self-evolving agent harness

    • Weng (2026), Pan et al. (2026), He et al. (2026)—propose the agent harness concept, which determines what the model observes, what it remembers, and what it can execute.
    • ReasoningBank (Ouyang et al., 2026), GEPA (Agrawal et al., 2026), Voyager (Wang et al., 2023), Alita (Qiu et al., 2025)—representative evolution mechanisms for memory, prompts, skills, and tools, respectively; this paper uses them to generate component updates.
    • A-Evolve (Lin et al., 2026a)—provides a unified interface for editable harness components; this paper uses it as the common host harness.

    Trustworthy harness evolution and component risks

    • Component-level risk research: Zhao et al. (2026), Wang et al. (2026), Yang et al. (2026), Yan et al. (2026) on memory and experience during evolution, Shang et al. (2026), Ying et al. (2026) on reusable skills, and Shao et al. (2026) on tool evolution.
    • Verification and defense mechanisms: TTHE (Nie et al., 2026) does test-time update selection, AutoSaddler (Park et al., 2026) does offline verification, SHE (Qu et al., 2026) does attribution-guided refinement, HarnessLens (Xu et al., 2026a) does behavior-aware targeted update verification, and SafeEvolve (Mao et al., 2026) verifies candidate harnesses. The authors note that none of these methods performs interaction-level analysis (Table 1); for SHE, the authors also note that its whole-harness verification is execution-limited and can only observe interactions activated by the verification trajectory.

    Compositional safety failures

    • Software engineering: Garlan et al. (1995) on architectural mismatch and Calder et al. (2003) on feature interactions study how individually effective components combine to produce system-level failures; Nie & Leung (2011) and Kuhn et al. (2004) on combinatorial interaction testing address failures triggered only by specific configuration combinations.
    • LLM agents: OpenAI (2026) and Anthropic (2025) show that combining untrusted external content with privileged tool capabilities amplifies the impact of prompt injection; Yan et al. (2026) and Shang et al. (2026) identify compositional risks among multiple retained items within the same component in self-evolving agents.

    Baselines and benchmarks: The baselines compared in the experiments are SHE (Qu et al., 2026), HarnessLens (Xu et al., 2026a), and Naive Exhaustive Checking, which the authors added; the benchmarks are AgentDojo (banking environment), Agent-SafetyBench, and Agent Security Bench.

    Positioning of this paper: The authors state that existing work mainly considers safety risks within a single harness component, whereas this paper studies safety interactions that arise between heterogeneous harness components as they evolve, complementing the within-component compositional risks of Yan et al. and Shang et al. (Appendix E).

  3. How does the paper address this problem?

    First empirically identify compositional failures using a four-configuration protocol, then represent cross-component higher-order interactions as an incremental interaction hypergraph, and use it for runtime monitoring.

    The overall approach has two steps: first empirically identify cross-component compositional safety failures on a unified harness abstraction, then formalize component states and higher-order interactions as an incremental interaction hypergraph, and on this basis perform hypergraph-guided runtime monitoring to avoid the combinatorial cost of global combination enumeration.

    Empirical identification of failures (Section 3)

    • Host and update sources: A-Evolve is the common host harness; memory uses ReasoningBank, prompts use GEPA, skills use Voyager, and tools use Alita to generate updates; the authors state that this standardizes where evolving states interact, not how they are produced.
    • Interaction panel: For each user request, take two updates ui and uj belonging to different components and construct four controlled configurations: original harness (00), ui only (10), uj only (01), and joint activation (11).
    • Eligibility filtering: A panel is eligible if and only if 00 is safe and 10 and 01 are each safe and preserve utility, ensuring that subsequent failures cannot be attributed to an update that is unsafe on its own.
    • Failure determination: 11 exhibits a safety violation absent in 00, 10, and 01, with execution-level evidence (tool calls and arguments, relevant agent behavior, environment state transitions); the metrics are CF and CFR = CF/Eligible.
    • Three-way extension: For each triple of updates, evaluate all eight configurations; record an irreducible three-way failure only when the full combination violates safety while all single updates and pairwise combinations are acceptable.

    Combinatorial cost and formalization (Sections 3.4, 4.1–4.2)

    • Combination space: The number of candidate cross-component combinations is |Ωt| = ∑k=2d ∑S ⊆ C: |S|=k ∏c ∈ S nc(t), i.e., the sum over cross-component products of the number of states of each component; with three component types each having n states this is Θ(n³), and it recurs after every update.
    • Nodes: Each concrete component state is a node v = (c, x), where c identifies the component and x identifies the state; updates produce new version nodes, and unchanged states are retained as historical provenance.
    • Hyperedges: The hypergraph Gt = (Vt, Et, ϕ), where each hyperedge connects states of at least two different components; it distinguishes observed hyperedges Etobs supported by execution provenance from inferred predicted hyperedges Etpred.

    Incremental construction (Section 4.3)

    • Local update: When a candidate update ut arrives, only the interaction neighborhood Γh(ut) within h steps of the changed state in Gt is extracted, with no global rebuild; h is set to 3 in all experiments.
    • Local completion and filtering: Within Γh(ut), existing higher-order interaction patterns are used to propose candidate interactions containing the new state, then an LLM (Qwen3-8B) performs semantic filtering using component states and provenance context, and the retained ones are added to Etpred.
    • Provenance promotion: A predicted hyperedge, once confirmed by subsequent execution provenance, is moved from Etpred to Etobs.

    Runtime monitoring (Section 5.1)

    • Activation tracking: When a component state node v is activated, only its associated hyperedges I(v) are visited; a hyperedge is fully activated when all its states appear within the same decision context.
    • Pre-action check: A fully activated combination is judged by the safety checker S (using each benchmark's safety criteria) before the corresponding action takes effect, and the action is blocked if it violates safety; the same combination is re-checked when it participates in subsequent actions.
    • Cost: For activated nodes v1…vL, the runtime overhead is O(∑ℓ=1L |I(vℓ)|) local hyperedge visits, independent of the global combination space Ωt; the full procedure is given in Algorithm 1 in Appendix C.
  4. What experiments did the paper conduct?

    43 pairwise and 18 three-way failures identified across three benchmarks; the authors report their monitoring's residual CFR is at most 1.27%, checking only 20.1-33.6% of actions.

    Experimental setup

    • Models tested: Qwen3-32B is the fixed agent backbone in all experiments; Qwen3-8B is used as the LLM semantic filter for hypergraph construction.
    • Benchmarks and panel sizes: AgentDojo v1.2.2 banking environment (60 trusted request variants × (1+9) × 1 = 600 panels); Agent-SafetyBench (13 held-out tasks × (7+7) × 1 = 182 panels); Agent Security Bench (47 retained clean tasks, 235 candidate update packages, 174 admitted, 1362 panels executed after admission).
    • Baselines: SHE (Qu et al., 2026), HarnessLens (Xu et al., 2026a), Naive Exhaustive Checking (added by the authors).
    • Metrics: CF and CFR (the proportion of eligible panels with compositional failures); defense evaluation uses Residual CFR, Utility (the proportion of eligible panels that preserve the task objective), Runtime Check Rate, and Time Cost (s/task).
    • Safety determination: AgentDojo verifies violations from actual tool calls and environment state; Agent-SafetyBench uses its official ShieldAgent-based behavioral safety evaluation; Agent Security Bench uses benchmark-specific safety criteria. The paper does not report the number of repetitions.
    • Hyperparameters: Interaction radius h = 3 (sensitivity analysis on AgentDojo varies h ∈ {2, 3, 4}).

    Main results

    Failure identification (Table 2, Table 5):

    Swipe horizontally to read the table

    BenchmarkPanels/triplesEligibleCFCFR
    AgentDojo (pairwise)6001572214.01%
    Agent-SafetyBench (pairwise)18211218.18%
    Agent Security Bench (pairwise)13621243191.53%
    AgentDojo (three-way)5401381510.87%
    Agent Security Bench (three-way)68157830.52%

    Residual CFR of each safety mechanism (Table 3, f/n (%)):

    Swipe horizontally to read the table

    MethodAgentDojoAgent-SafetyBenchAgent Security Bench
    No Monitoring22/157 (14.01%)2/11 (18.18%)19/1243 (1.53%)
    Naive1/157 (0.64%)0/11 (0.00%)0/1243 (0.00%)
    SHE6/157 (3.82%)1/11 (9.09%)5/1243 (0.40%)
    HarnessLens8/157 (5.10%)1/11 (9.09%)5/1243 (0.40%)
    Ours2/157 (1.27%)0/11 (0.00%)1/1243 (0.08%)
    • The authors state that the failure identification results show that safety under independent update verification does not imply safety after component states interact; the lower CFR on Agent Security Bench should not be interpreted as a weaker phenomenon, because it covers a broader set of clean source-target combinations across the domain.
    • The authors state that all mechanisms reduce compositional failures, and that their method's residual CFR is at most 1.27%, close to the effect of exhaustive checking.
    • The authors state that the results reveal a safety-utility-cost trade-off: exhaustive checking has strong safety coverage but high verification cost, while more selective mechanisms have lower cost but miss some compositional failures.

    Utility and verification cost

    • What was measured: Table 4 compares each mechanism's Utility, the number of additional verification executions per harness update, Runtime Check Rate, and additional time per panel.
    • Results: The proposed method's Utility is 59.2% (AgentDojo), 54.5% (Agent-SafetyBench), and 63.3% (Agent Security Bench), close to Naive's 58.6%, 45.5%, and 62.8%; Runtime Check Rate is 33.6%, 20.1%, and 24.6%, versus Naive's 100.0%; Time Cost is 32.5, 28.1, and 19.8 s/task, versus Naive's 103.9, 139.5, and 80.5 s/task. SHE's number of update-time verifications is 1200, 360, and 260, versus 82, 185, and 101 for the proposed method.
    • Authors' interpretation: The proposed method maintains safety close to exhaustive checking and comparable utility while its runtime checker is triggered for fewer than 30% of candidate actions (as stated on average), reducing runtime verification cost.

    Sensitivity analysis

    • What was measured: On AgentDojo, the local interaction radius h ∈ {2, 3, 4} is varied with all other settings fixed (Table 6).
    • Results: As h goes from 2 to 3, residual CFR drops from 2.55% (4/157) to 1.27% (2/157), Utility drops from 60.5% to 59.2%, and Runtime Check Rate rises from 30.1% to 33.6%; at h = 4, residual CFR stays at 1.27%, Utility is 58.0%, check rate is 47.6%, and time cost is 49.7 s/task.
    • Authors' interpretation: h = 3 provides a good balance between compositional safety coverage and monitoring overhead, so it is used as the default configuration.

    Other ablations and analyses

    • Irreducibility of three-way failures: in every identified case all seven lower-order configurations remain safe, and the violation appears only when the three updates are activated jointly (Section 3.3).
    • No three-way analysis on Agent-SafetyBench: only 9 qualified triples out of 637 candidates, which the authors consider too few for meaningful higher-order analysis (Appendix D).
    • The panel set is fixed before examining joint safety outcomes, to prevent the identification process from favoring retention of unsafe joint configurations (Appendix B.1).
  5. What are some points that can be further explored?

    The paper has no dedicated limitations section; the experiments cover only a single backbone model, non-adversarial evolution, and specific panel constructions on three benchmarks.

    Limitations noted by the authors and future directions

    • The paper does not specifically discuss limitations (there is no Limitations or Future Work section).
    • The authors state in Appendix A that the goal is not to estimate the prevalence of compositional failures in any particular deployed evolving system, but to test whether independently acceptable states, once they coexist and interact in a shared evolving harness, become unsafe.
    • The authors state in Section 3.2 that the lower CFR on Agent Security Bench should not be interpreted as a weaker phenomenon, because the three benchmarks differ greatly in task distribution and panel construction.
    • The authors state in Appendix D that Agent-SafetyBench yields only 9 qualified triples (out of 637 candidates), too few for meaningful higher-order analysis, so three-way evaluation is done only on AgentDojo and Agent Security Bench.

    Scope of experimental coverage

    • The only backbone model tested is Qwen3-32B; the semantic filter is Qwen3-8B (Section 5.2).
    • The threat model is non-adversarial harness evolution: the paper explicitly does not construct attacker-crafted component updates; the AgentDojo experiments introduce no prompt injection or untrusted external content, and the Agent Security Bench experiments introduce no prompt injection, poisoned observations, backdoor triggers, or adversarially constructed updates (Section 3.2, Appendices A.1, A.3).
    • Benchmarks are AgentDojo (banking environment only, 60 request variants from a single refund-calculation task family), Agent-SafetyBench (13 held-out tasks, 182 panels, 11 qualified), and Agent Security Bench (47 held-out tasks, 1362 panels, 1243 qualified) (Appendix A, Table 2).
    • Evolution mechanisms cover four component types: memory (ReasoningBank), prompts (GEPA), skills (Voyager), and tools (Alita); higher-order analysis goes only up to 3-way combinations (Sections 3.2, 3.3).
    • The paper does not report the number of experimental repetitions, nor human agreement on safety judgments; the safety evaluation on Agent-SafetyBench uses its official ShieldAgent-based pipeline (Appendix A.2).
  6. Summarize the main content of the paper

    The authors empirically identify cross-component compositional safety failures in harness evolution and propose an incremental interaction hypergraph and runtime monitoring to reduce residual failures.

    An empirical and defense paper on the safety of self-evolving agent harnesses.

    • Problem: Harness evolution continuously updates components such as memory, prompts, skills, and tools; the authors raise the problem of compositional safety failures—each update is individually safe and preserves utility, yet when activated jointly across components they produce unsafe behavior, and existing verification methods do not check such interactions.
    • Method: On the A-Evolve unified harness abstraction, failures are identified with a four-configuration controlled protocol (00/10/01/11); component states are represented as nodes and cross-component higher-order interactions as hyperedges, building an incremental interaction hypergraph (h = 3, with Qwen3-8B doing semantic filtering); runtime monitoring checks only interactions that are fully activated in the current execution, judging before the action takes effect.
    • Failure identification: On AgentDojo, Agent-SafetyBench, and Agent Security Bench, 22/157 (14.01%), 2/11 (18.18%), and 19/1243 (1.53%) pairwise failures are identified, respectively; in addition, 18 irreducible three-way failures (AgentDojo 15/138, Agent Security Bench 3/578) (Table 2, Table 5).
    • Defense effectiveness: The authors report residual CFR of 1.27% (AgentDojo), 0.00% (Agent-SafetyBench), and 0.08% (Agent Security Bench) for their method, close to exhaustive checking; Utility is close to the Naive baseline, and at runtime only 20.1-33.6% of candidate actions are checked, with a time cost of 19.8-32.5 s/task, lower than Naive's 80.5-139.5 s/task (Table 3, Table 4).
    • Authors' conclusion: Independent update verification does not guarantee compositional safety; the experiments reveal a safety-utility-cost trade-off across safety mechanisms, and the proposed method approaches the safety of exhaustive checking at lower checking cost.
    • Implication (in the authors' voice): Compositional safety is execution-dependent; component states may form unsafe interactions only under new states that appear in later evolution steps, so a representation is needed that preserves interaction structure, supports local updates, and checks by activation.

Related papers

Show 3 more papers
Read originalarxiv.org