Source-linked AI summary

Agentic AI Containment Architecture for Security Hardening

Mohamed ElBendary

arXiv:2608.26108v1cs.SE

TL;DR

Multi-agent security is difficult to oversee as autonomy, speed, opaque reasoning, and continuous learning outpace human verification. This paper proposes a constraint-driven containment architecture with runtime-verifiable contracts, arguing that it enforces independently verified execution and supports defenses against several adversarial behaviors while leaving semantic risk bounded and explicit.

  • Problem

    Multi-agent systems challenge meaningful human oversight, so security remains an architectural concern rather than a post-deployment add-on.

  • Method

    The paper maps systems-analysis artifacts to runtime-verifiable contracts and uses six interacting constraints to enforce a Propose–Verify–Act–Verify execution model.

  • Results

    The architecture's propositions show that substituted contracts trigger escalation and compromised orchestrators cannot self-verify actions or suppress verification outcomes.

  • Takeaways & Limitations

    The work presents structural integrity as a verifiable outcome of constrained design and observable execution, while making semantic risk explicit and bounded.

  • Takeaways & Limitations

    Residual semantic misalignment risk depends on the deploying organization's inference-layer design and operational controls rather than being eliminated by the architecture.

Abstract

from arXiv · show

Multi-agent AI systems are increasingly deployed in contexts where autonomous coordination, tool use, and continuous learning introduce novel security and governance risks. The containment approach to multi-agent system security remains underdeveloped, primarily resorting to add-on layers post-design and sometimes post-implementation and deployment. This paper proposes an Agent Containment Architecture that treats security as an architectural property enforced through a set of explicit constraints that bound the design space of multi-agent systems. The architecture proposed in this paper introduces a novel formal organizational mapping from standard systems analysis artifacts to machine-verifiable contracts under a proposed constraint system. The architecture introduces six interacting constraints: separation of responsibility assignments, pre-deployment coherence checking, value stream binding, temporal isolation, strict knowledge verification before accumulation, and deterministic verification of structural and process integrity. Together, these constraints enforce a Propose-Verify-Act-Verify execution model in which all operations are contractually defined, independently verified, and traceable to specific execution contexts. The paper presents propositions and correctness reasoning arguments linking these constraints to defenses against key threat classes, including prompt injection, orchestrator manipulation, cross-session state poisoning, and emergent agent collusion. A resume screening case study demonstrates how the architecture produces auditable, policy-compliant outcomes under adversarial conditions. The work explicitly separates structural integrity from semantic safety, bounding residual risks while making residual semantic risk explicit and measurable.

1 Introduction

The introduction argues that multi-agent AI security must be architectural because autonomy, continuous learning, opaque reasoning, and execution speed weaken scalable human oversight. It proposes constraint-driven containment that enforces structural boundaries, separates structural integrity from semantic safety, and supports system-level correctness reasoning under explicit assumptions.

  • Introduction: Autonomous multi-agent systems undermine meaningful human oversight through human skill atrophy, marginalized verification, opaque reasoning, and execution speeds that do not scale for people.Continuous learning and interaction can also drive emergent behavior, further complicating oversight.
  • Introduction: The proposed architecture treats security as an architectural property, producing security outcomes through enforced structural boundaries rather than additive post-development or post-deployment features.It maps architectural constraints to classes of adversarial behavior to ground containment reasoning.
  • Introduction: Structural integrity is enforced through deterministic, contract-bound verification, while semantic safety is delegated to hardened inference layers.The design draws on software engineering and distributed-systems principles, including Design-by-Contract specifications for preconditions, postconditions, and invariants.
  • Introduction: The semi-formal propositions provide system-level correctness arguments rather than formal proofs, under explicit architectural assumptions.This positions the work between informal design patterns and fully formalized systems.

2 Related Work

Related work advances multi-agent orchestration, model-level alignment, formal verification, and AI-security defenses, but does not guarantee system-level accountability or treat security as a design-space constraint. The proposed architecture addresses this gap through six interacting constraints enforcing a Propose–Verify–Act–Verify model.

  • Multi-agent systems: Multi-agent frameworks increasingly orchestrate task decomposition, tool invocation, and iterative refinement across heterogeneous tools and environments, but rely largely on centralized orchestration.Their coordination produces emergent capability while leaving architectural security concerns insufficiently addressed.
  • Alignment and safety: RLHF, Constitutional AI, Process-based Supervision, and inference-time guardrails constrain individual model behavior but do not guarantee cross-agent accountability or other system-level properties.These approaches primarily operate within the semantic layer of model outputs.
  • Formal verification: Formal methods provide mathematical correctness assurances, yet model checking, type systems, and verification frameworks often face scalability and applicability challenges with probabilistic large language model components.Recent AI-verification work commonly focuses on bounded guarantees, adversarial robustness, or risk-constrained deployment.
  • AI security: AI-security research catalogs threats such as prompt injection, tool-use data exfiltration, reward hacking, and long-term memory poisoning, while industry guidance typically applies layered defenses.Recommended mechanisms include isolation, audit logging, and least-privilege access controls, rather than constraints shaping the system design space.
  • Research gap and contribution: The paper identifies a gap in existing approaches and introduces six interacting constraints that make security a structural outcome through a Propose–Verify–Act–Verify execution model.This reframes security from a reactive defensive layer into a property that bounds the design space.

3 Agentic Containment Architecture

The Agentic AI Containment Architecture treats role-structural security as an architectural property within a four-layer containment stack, using contracts and least-agency constraints to bound agent decisions and actions. Its role separation, coherence, value-stream, temporal, knowledge, and deterministic-verification constraints make contractual alignment a verifiable operational outcome.

  • Containment stack: The proposed security stack has four layers: infrastructure, role-structural, resource-access, and semantic, with this architecture focused on role-structural containment.The layers address identity and trust, agent decision and action bounds, least-privilege resource access, and inference-time semantic controls.
  • Agent roles: The architecture assigns precondition verifier, actor, and post-execution verification responsibilities so operations are checked before execution and documented through instrumentation and plans.The actor performs the assigned operation, produces instrumentation logs, and prepares a plan for evaluating the process followed.
  • Contractual operation model: Operations are aligned to normative business semantics through an Entry-Task-Validate-Exit pattern and contractually specified states, inputs, outputs, and exceptional conditions.Domain modeling and stepwise happy- and alternate-path analysis provide traceability from business processes to executable operation contracts.
  • Architectural constraints: Six constraints bound contractual alignment: responsibility separation, pre-deployment coherence checking, value-stream binding, temporal isolation, strict knowledge verification before accumulation, and deterministic integrity verification.These constraints require distinct verifiers, human-approved coherence checks, unique time-stamped execution identities, state resets, verified learning inputs, and deterministic contract enforcement.
  • Verification and integrity: Deterministic non-LLM verifiers enforce contract hashes, schemas, state resets, temporal isolation, escalation conditions, and cross-layer coherence, enabling replayability and auditability.The verifier constraint is intended to ensure structural and process integrity rather than semantic safety.

4 Operation Contract Discovery Process

The operation contract discovery process derives contracts from domain-operation semantics while requiring structural verifiability. It proceeds from bounded use-case selection and measurable benefits to data-maturity assessment and observable, verifiable state transitions.

  • Contracts are derived from domain-operation semantics and expressed in a semantically grounded, structurally verifiable form.Domain operation modeling identifies operation boundaries, input-output specifications, preconditions, postconditions, and success or failure conditions.
  • Use-case discovery selects a bounded, operationally significant business process and defines measurable benefits over a two- to four-quarter horizon.Success may be evaluated through performance, efficiency, risk reduction, or other relevant business metrics.
  • Data-maturity assessment verifies that required inputs and state variables are available, reliably captured, and observable at execution time.Retrieval-augmented generation may structure process activities as Entry–Task–Validate–Exit for human validation when data gaps exist, with required state transitions checked for observability and verification.

5 Threat Coverage Analysis · 5.1 Notation and Shared Definitions · 5.2 Hijacking via Contract Substitution

The threat-coverage analysis defines notation for designs satisfying all six constraints and shows that separation of responsibility assignments plus deterministic verification prevents silent contract substitution. Contract substitution necessarily produces an escalation event under these constraints.

  • 5.1 Notation and Shared Definitions: A compliant design d ∈ 𝒟 satisfies all six architectural constraints simultaneously.The notation establishes 𝒟 as the set of designs compliant with the architecture.
  • 5.1 Notation and Shared Definitions: The constraint nomenclature includes pre-deployment coherence checking, value stream binding, and temporal isolation, denoted P, V, and T.These symbols are used as shared definitions throughout the analysis.
  • 5.1 Notation and Shared Definitions: Strict knowledge verification before accumulation and deterministic verifier agents are denoted K and D.The notation identifies the two constraints as K and D.
  • 5.1 Notation and Shared Definitions: Each operation uses a uniquely hashed contract c_i, verifier v_i, actor a_i, value stream VS_j, instrumentation log L(i_n), plan π, and persistent memory M(a).The definitions distinguish contract, verifier, actor, execution, logging, planning, and memory entities.
  • 5.2 Hijacking via Contract Substitution: For any compliant design satisfying S and D, an adversarially substituted contract c′ ≠ c_i cannot be silently admitted to verifier v_i.This is stated as Proposition 1 for the contract-substitution threat.
  • 5.2 Hijacking via Contract Substitution: Separation binds v_i to one externally supplied contract c_i, while deterministic non-LLM verification compares its globally unique hash h(c_i).Externalization prevents state manipulation from silently overwriting the contract, and deterministic hash matching makes the verification behavior fixed.
  • 5.2 Hijacking via Contract Substitution: Any adversarial contract substitution therefore triggers an escalation event, making silent admission impossible under S and D.The conclusion follows from the conjunction of responsibility separation and deterministic verification.

5.3 Orchestrator Manipulation and Rogue Orchestration · 5.4 Cross-session State Poisoning and Memory Contamination

Sections 5.3 and 5.4 show that separated deterministic verification limits orchestrator manipulation, while temporal isolation and knowledge screening block cross-session and persistent memory contamination under explicit integrity assumptions.

  • 5.3 Orchestrator Manipulation and Rogue Orchestration: Verification bypass is detectable through missing transition records in L(i_n), but only when instrumentation logs are tamper-resistant.Without tamper-resistant logging, the structural-gap detection argument does not hold independently.
  • 5.3 Orchestrator Manipulation and Rogue Orchestration: Under S and D, a compromised orchestrator cannot self-verify its actions or suppress verification outcomes.Actor and verifier roles are mutually exclusive, making self-verification structurally unavailable.
  • 5.3 Orchestrator Manipulation and Rogue Orchestration: Deterministic contract-hash verification detects substituted verifiers bound to mismatched contracts and triggers escalation.An LLM-based replacement could be induced to accept a mismatched contract, whereas deterministic verification removes that vector.
  • 5.3 Orchestrator Manipulation and Rogue Orchestration: Separation of responsibility bounds any individual verifier compromise to the single contract it governs.No verifier is shared across multiple contracts, preventing propagation of failures to other operations.
  • 5.4 Cross-session State Poisoning and Memory Contamination: Under T and K, execution content cannot enter persistent agent memory without verifier-mediated screening, and working state does not persist across instantiations.This proposition assumes correct state reset and tamper-resistant instrumentation logs.
  • 5.4 Cross-session State Poisoning and Memory Contamination: Temporal isolation discards working memory after each value-stream traversal, so the next instantiation begins from its last coherent baseline.The mechanism depends on correctly implemented and verifiable state reset.
  • 5.4 Cross-session State Poisoning and Memory Contamination: Persistent plans enter M(a) only after submission, log retrieval, log matching, and successful verifier confirmation.A malicious π* must match L(i_n), which requires the actual execution to have followed π*; this defense depends on the broader PVAV model.
  • 5.4 Cross-session State Poisoning and Memory Contamination: Together, T and K close both structural contamination vectors, restricting M(a) growth to verifier-confirmed, log-consistent knowledge increments.T eliminates cross-session working-memory contamination, while K eliminates unverified persistent accumulation within a session.

5.5 Unsanctioned Goal Generalization

Value stream binding prevents agents from silently generalizing behavior across contexts by requiring distinct contracts for meaningfully divergent operations. Under pre-deployment coherence checking and deterministic verification, unsanctioned cross-stream generalization is either blocked before deployment or escalated at runtime.

  • 5.5 Unsanctioned Goal Generalization: Value stream binding requires each operation to be anchored to a uniquely identified value stream instantiation.Meaningfully different behavior across value streams must be modeled as separate operations with separate contracts, exposing divergence at design time.
  • 5.5 Unsanctioned Goal Generalization: For designs satisfying V, P, and D, agents cannot generalize sanctioned behavior across distinct value streams without authorization or detection.This is stated as Proposition 4 for value streams VS_j and VS_k where j ≠ k.
  • 5.5 Unsanctioned Goal Generalization: Runtime cross-stream generalization is detected when a VS_k execution tag violates the contract binding for VS_j.Deterministic non-LLM verification prevents bypass through adversarial prompting or semantic manipulation and triggers escalation.
  • 5.5 Unsanctioned Goal Generalization: Design-time conflation of operations across value streams violates contract coherence and must be resolved before deployment.Pre-deployment checking surfaces the violation and requires human approval before the design can be deployed.

5.6 Emergent Agent Collusion

Under tamper-resistant instrumentation logging, the S, V, and K constraints make unsanctioned agent coordination detectable through plan-log mismatches. Separation of responsibility also bounds a compromised verifier’s effects to its single governed contract.

  • 5.6 Emergent Agent Collusion: Under the tamper-resistant logging assumption, designs satisfying S, V, and K cannot coordinate outside sanctioned interaction paths without producing detectable anomalies.This is Proposition 5’s central containment claim for emergent agent collusion.
  • 5.6 Emergent Agent Collusion: Sanctioned interagent interactions are contract-defined, value-stream-tagged, recorded in L(i_n), and subject to verification rather than constituting covert collusion.Value stream binding makes legitimate operations architecturally visible in instrumentation logs.
  • 5.6 Emergent Agent Collusion: Unsanctioned operations lack corresponding log entries, so K causes verifier reconciliation to detect plan-log mismatches and reject the plan.The verifier compares the submitted plan π against instrumentation log L(i_n).
  • 5.6 Emergent Agent Collusion: By S, a compromised verifier affects only the operations governed by its single contract and cannot propagate verification failures across other contracts.No verifier is shared across multiple contracts, and no actor agent controls its own verifier.

5.7 Specification Gaming and Loophole Exploitation

The architecture addresses specification gaming by checking contract coherence before deployment, preventing statically detectable loopholes from reaching production. Residual risk remains because incomplete knowledge representation can leave attack surfaces.

  • Pre-deployment coherence checking: Pre-deployment coherence checking verifies the contract set before deployment, directly defending against exploitation of underspecified or contradictory rules.Coherence is assessed before runtime rather than discovered after deployment.
  • Residual risk: Incomplete knowledge representation remains a residual attack surface because coherence checking is only as reliable as the modeled knowledge.The architecture therefore addresses statically modeled contradictions and omissions, not every possible incompleteness in system representation.
  • Formal guarantee: For any design d ∈ 𝒟 satisfying P, no loophole detectable by static cross-contract coherence analysis can survive to production deployment.This proposition applies when the design satisfies the pre-deployment coherence constraint P.
  • Loophole definition: A loophole satisfies one contract in isolation but violates the contract set through inter-contract contradiction or a coverage gap admitting unsanctioned behavior.The architecture checks the contract set as a whole before deployment, with additional human approval required.

5.8 Semantic Adversarial Content Attacks

Under deterministic verification, semantic attacks are structurally confined to the model invocation layer IL(d), while the architecture makes no guarantee about IL(d)’s effectiveness. Residual semantic risk therefore depends on IL(d)’s design and operation, with boundary contamination remaining possible through adversarial structured outputs.

  • Structural containment: Deterministic verification confines the semantic attack surface to IL(d) at the model invocation boundary.Semantic content cannot directly reach the contract verification path; it must pass through IL(d) before influencing agent behavior.
  • Semantic safety scope: Whether residual semantic risk satisfies the deployment-specific bound t depends exclusively on IL(d)’s design and operational strength.R_sem(d) measures the probability that IL(d) fails to intercept a semantic attack from the deployment’s operational threat environment.
  • Semantic safety scope: Structural constraints S, P, V, T, and K cannot substitute for a correctly specified and maintained IL(d) when R_sem(d) exceeds t.Those constraints govern structural and process integrity but do not evaluate semantic content.
  • Residual risk: Semantic inputs can still contaminate structured artifacts by causing actor agents to emit schema-valid but adversarially constructed outputs.This residual boundary risk does not directly manipulate deterministic verification through semantic content, but it can influence the structured outputs entering verification.
  • Residual risk: Reducing R_sem(d) is exclusively an IL(d) design and operational problem because the architecture cannot further reduce the semantic attack surface under D.Further reduction would require deterministic verification as a blanket constraint for all verifiers.

6 Case Study: Resume Screening Value Stream

The case study instantiates the containment constraints in a resume-screening value stream exposed to adversarial inputs, bias, and regulatory requirements. It demonstrates auditable structural integrity while leaving residual semantic risk dependent on the inference layer.

  • Case Study: Resume Screening Value Stream: Resume screening decomposes into parsing, criteria extraction, candidate evaluation, compliance checking, and decision formation, with each operation contract-bound and assigned disjoint actor and verifier agents.Each contract has a globally unique hash, and responsibility assignments separate execution from verification.
  • Case Study: Resume Screening Value Stream: Each operation follows Propose–Verify–Act–Verify: plans are checked against preconditions, execution produces outputs and logs, and verifiers test postconditions against recorded traces.Deviations from contract specifications or incoherent execution are subject to verification checks.
  • Case Study: Resume Screening Value Stream: Temporal isolation resets working memory for every instantiation, while verified reconciliation with instrumentation logs governs persistent memory accumulation and prevents cross-candidate contamination.These controls address adaptive-system risks in which prior interactions influence later screening decisions.
  • Case Study: Resume Screening Value Stream: Contract-bound verification structurally constrains prompt injections and explicit protected-attribute bias by enforcing feature usage and output schemas independently of model interpretation.The controls target adversarial resume content and prohibited evaluation behavior without claiming to eliminate all semantic bias.
  • Case Study: Resume Screening Value Stream: Instrumentation logs capture contract references, execution traces, and verification outcomes, enabling auditability and regulatory analysis while semantic risks remain dependent on inference-layer effectiveness.The case study therefore frames structural integrity as an emergent property of constrained execution and bounds residual semantic risk to the inference layer.

7 Conclusion

The Agent Containment Architecture uses six interacting constraints to enforce a Propose–Verify–Act–Verify model in which operations are contractually defined and independently verified. It makes structural integrity verifiable while explicitly bounding semantic risk and identifies formalization, governance, prototyping, and adversarial validation as future work.

  • 7 Conclusion: Six interacting constraints enforce a Propose–Verify–Act–Verify execution model in which every operation is contractually defined and independently verified.This makes structural integrity a verifiable outcome of constrained design and observable execution.
  • 7 Conclusion: Structural integrity is verifiable through constrained design and observable execution, while semantic risk is explicitly bounded and delegated to the inference layer.
  • 7 Conclusion: Future work includes formalizing coherence checking, specifying verifiable contract-governance models, and validating effectiveness and performance trade-offs through prototypes and adversarial testing.The passage identifies production-environment evaluation as necessary for quantifying practical effectiveness and performance trade-offs.
Loading 2608.26108v1…