Technical Whitepaper · Enterprise Agent Architecture

Engineering Robust
Multi-Agent Coding Pipelines

A Control-Plane Reference Architecture for Intent Integrity, Evaluation Integrity, and Contained Execution in Autonomous Software Teams.

Reference Architecture & Control Spec Evidence Taxonomy: Empirical Research, Docs & Preprints Focus: Planning/Execution Split, Evaluation Surface Immutability & Egress Isolation
Executive Abstract

Autonomous software agents can produce changes that appear credible, pass incomplete test suites, and still violate intended behavior, security constraints, or integration assumptions. These risks compound when multiple agents plan, implement, test, and merge changes across shared or partially isolated state. Prompt instructions, personas, and dynamically retrieved rulebooks remain useful for task guidance, but they are not authoritative enforcement mechanisms; their effect depends on probabilistic model behavior and context selection. A robust agentic software engineering pipeline therefore separates guidance from enforcement: agents propose and implement changes, while an external control plane constrains what they can modify, what they can access, how they are evaluated, and what evidence is required prior to merge. This paper presents a vendor-neutral reference architecture built around three distinct planes: a planning plane that produces versioned contracts and independently owned evaluation artifacts; an execution plane that operates in isolated, least-privilege environments; and a control plane that coordinates state, verifies artifacts, records evidence, and governs merge decisions. The architecture bounds—rather than eliminates—semantic divergence, evaluation gaming, coordination conflicts, and unauthorized external effects.

1. Scope, Definitions, and Assurance Levels

Before examining failure modes and mechanical controls, we establish operational boundaries, define terminology, and outline a graduated maturity model for pipeline assurance.

1.1 Definition of Mechanical Controls

In an agentic assurance context, we define a mechanical control as:

Mechanical Control Definition

An externally enforced, machine-evaluable constraint whose enforcement and verification are independent of the executing agent's natural-language compliance claim or probabilistic token generation. Examples include operating-system read-only volume mounts, signed artifact digest verification, capability-restricted tool invocation schemas, policy-enforced egress proxies, compiler type checks, AST lint rules, and branch protection merge barriers.

Mechanical controls are not assumed to be infallible or capable of discovering unstated intent; rather, their execution is independent of the agent under evaluation.

1.2 Operational Scope

This architecture addresses repository-level autonomous software modification wherein one or more LLM agents ingest source code, formulate technical plans, modify designated implementation files, execute approved tools, and submit candidate patches. The architecture operates under explicit boundary conditions:

1.3 Actor and Trust Zone Model

To eliminate ambiguity between agent capability and system authority, the architecture defines six operational entities across distinct trust boundaries:

Actor / Component Trust Level Permitted Actions Prohibited Actions
Human Approver Trusted Approve frozen contract schemas, authorize production branch merges, grant policy exception waivers. Bypass CI evidence requirements without an auditable, recorded waiver manifest.
Planning Agent Semi-Trusted Generate technical specifications, author typed schemas, propose frozen TDD suites, assign risk labels. Directly write to production branches, mutate CI workflows, or execute implementation code.
Execution Agent Untrusted for Enforcement Read approved contracts, edit allowlisted implementation files within an isolated guest workspace, invoke policy-checked tools. Modify test files, alter lockfiles, change CI definitions, access raw credentials, or contact unauthorized networks.
Control Plane Trusted Computing Base Provision isolated runners/worktrees, enforce write allowlists, mediate egress via host proxy, retain run evidence, govern merge gates. Generate unreviewed production code changes or bypass configured gating policies.
CI Evaluator Trusted Computing Base Execute pinned test suites against candidate patches, run mutation tests, emit verifiable CI attestations. Consume unpinned, executor-modifiable test configurations or unverified dependency sources.
External Services Conditionally Trusted Serve allowlisted package dependencies and verified API responses over proxy-mediated channels. Receive unredacted repository state, unmasked credentials, or unconstrained outbound network requests.
Table 1. Actor and trust boundary definitions across the agentic lifecycle.

1.4 Agentic Assurance Maturity Levels

Organizations adopt mechanical controls progressively. We define six assurance levels to structure deployment milestones:

Level Description Minimum Required Mechanical Controls
L0 Prompt-Managed System prompts, conversational conventions, manual copy-paste code reviews. No mechanical boundaries.
L1 Workspace-Isolated Separate Git worktrees or independent containers per agent run; protected main branch with pull request requirements.
L2 Evaluation-Protected Execution agents cannot alter evaluation surfaces; read-only test mounts, immutable CI workflows, writable file path allowlists.
L3 Capability-Contained Default-deny network egress, host-side credential mediation proxy, execution in dedicated microVM or sandbox runner, tool policy allowlists.
L4 Evidence-Attested Hermetic build images, pinned dependency lockfile digests, signed task manifests, structured tool-call audit logs, reproducible CI attestations.
L5 High-Assurance Independently governed test authorship (separated by role, context, model/provider where practical, and human review), risk-calibrated mutation score thresholds, dependency-aware conflict detection, and dual human approval for designated high-risk changes.
Table 2. Six-tier assurance maturity model for autonomous agent pipelines.

2. Why Prompt Guidance Is Not Enforcement

Natural-language instructions improve agent behavior, but they cannot establish an independently enforceable boundary. When an agent receives an instruction in its prompt, that same agent is responsible for interpreting the rule, evaluating edge cases, and asserting whether it complied. In safety- or integrity-sensitive software engineering pipelines, this conflates guidance with enforcement.

2.1 Statistical and Contextual Limits of Prompts

Empirical research identifies fundamental constraints in prompt-only governance:

2.2 The Three Orthogonal Pipeline Properties

To avoid conflating mechanisms, the architecture distinguishes three related but analytically separate properties:

Governance Layer Primary Purpose Typical Primitives Assurance Property
Agent Guidance Improve quality, efficiency, and stylistic alignment of candidate changes. Personas, domain skills, reference examples, coding conventions, retrieved API documentation. Probabilistic and advisory (non-binding).
Mechanical Control Plane Enforce non-negotiable security, integrity, and release boundaries. Read-only evaluation mounts, schema validators, egress proxies, capability policies, merge gates. Externally enforced and machine-auditable.
Table 3. Dual-layer governance model: Guidance vs. Mechanical Control Plane.

3. Documented Empirical Failure Modes

Engineering a robust control plane requires cataloging the specific failure modes observed in autonomous coding pipelines and mapping each to an empirical evidence base.

4. Reference Architecture: The Three-Plane Model

To systematically address these failure modes, we present a vendor-neutral reference architecture structured into three decoupled planes governed by a Trusted Computing Base (TCB).

┌─────────────────────────────────────────────────────────────────────────────┐
│                              HUMAN AUTHORITY                                │
│          • Contract Approval                • Production Merge Sign-Off     │
└──────────────────────────────────────┬──────────────────────────────────────┘
                                       │
┌──────────────────────────────────────▼──────────────────────────────────────┐
│                            CONTROL PLANE (TCB)                              │
│  • Task Manifest Registry            • Worktree / Runner Provisioner        │
│  • Filepath & Tool Policy Engine     • Host-Side Credential Proxy           │
│  • Egress Firewall Controller        • Immutable Attestation & Audit Log    │
└───────────────────┬─────────────────────────────────────┬───────────────────┘
                    │                                     │
         Frozen Spec & Test Bundle             Immutable Evaluation Attestation
                    │                                     │
┌───────────────────▼───────────────┐     ┌───────────────▼───────────────────┐
│          PLANNING PLANE           │     │         EVALUATION PLANE          │
│  • OpenAPI / JSON Schema Contract │     │  • Read-Only Test & Fixture Suite │
│  • Independent TDD Authoring      │     │  • Pinned Compiler / Linter AST   │
│  • Risk & Scope Manifest          │     │  • Mutation Testing Engine        │
└───────────────────┬───────────────┘     └───────────────▲───────────────────┘
                    │                                     │
           Signed Task Manifest                    Candidate Patch
                    │                                     │
┌───────────────────▼─────────────────────────────────────┴───────────────────┐
│                           EXECUTION PLANE (GUEST)                           │
│  • Isolated Git Worktree / MicroVM Sandbox (Least Privilege)                │
│  • Write-Allowlisted Implementation Surface (Evaluation Surface Immutable)  │
│  • Default-Deny Outbound Egress (Host Proxy Mediated)                       │
└─────────────────────────────────────────────────────────────────────────────┘
          
Figure 1. Three-plane reference architecture for intent integrity, evaluation integrity, and contained execution.

4.1 Control-Objective Matrix

The architecture maps explicit control objectives to required mechanical primitives, generated evidence artifacts, and acknowledged residual risks:

Control Objective Required Mechanism Evidence Artifact Residual Risk
Prevent Evaluation Tampering Read-only evaluation mounts; executor file write allowlist; immutable CI workflow definitions. Mount manifest digest, path write audit logs, signed CI attestation (including builder identity, manifest digest, evaluator digest, and verification material). Zero-day vulnerabilities in the underlying container runtime or virtualized filesystem driver.
Detect Stale Assumptions Versioned interface schemas; dependency-aware write checks; pre-merge conflict guards. Contract hash, observed-revision log, semantic overlap report. Syntactically valid merges that alter unstated emergent runtime behavior.
Prevent Credential Disclosure Host-side credential mediation proxy; scoped temporary tokens; no raw secret injection into guest environment. Proxy access audit log, token issuance records, guest environment variable dump. Agent misusing an authorized, proxied capability within its granted scope.
Restrict External Effects Default-deny DNS and IP egress; destination/method allowlisting; runner CPU/memory/token quotas. Network policy hash, blocked connection audit log, resource usage metrics. Allowlisted package registry serving a malicious or compromised upstream dependency.
Prevent Sensitive-Output Disclosure Log redaction, output-size limits, artifact classification, allowlisted result export, secret scanning before export. Redaction events, artifact manifest, export authorization log. Sensitive data not detected by rules or embedded in permitted output artifacts.
Ensure Test Adequacy Decoupled test authorship (Planning Plane); risk-calibrated mutation score thresholds; negative control tests. Test authorship provenance, mutation coverage report, baseline failure logs. High mutation score on incomplete business requirements or flawed specifications.
Ensure Pipeline Reproducibility Pinned base container digests; pinned package lockfiles; seeded pseudo-randomness; hermetic toolchains. OCI container digest, lockfile SHA-256 hash, hermetic build provenance record. Nondeterminism in underlying model inferences or concurrency-dependent race conditions.
Table 4. Control-objective matrix across the agentic lifecycle.

4.2 Control-Plane Specifications

To make the architecture actionable for platform engineering teams, we define the concrete data structures and policies enforced by the control plane.

Specification 1: Signed Task Manifest Schema

Before an execution agent is spawned, the control plane generates an immutable, signed manifest binding the agent to an approved scope:

NOTE: Illustrative schema definition; production implementations must define canonicalization (RFC 8785 / JCS) and key rotation policies.
TASK_MANIFEST_SCHEMA.JSON CONTROL PLANE SPECIFICATION
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AgentTaskManifest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "manifest_schema_version", "policy_engine_version", "task_id",
    "repository_url", "base_commit_sha", "contract_hash", "evaluation",
    "writable_path_patterns", "denied_path_patterns", "egress_policy",
    "budget_limits", "approver", "signature"
  ],
  "properties": {
    "manifest_schema_version": { "type": "string", "const": "1.0" },
    "policy_engine_version": { "type": "string", "minLength": 1 },
    "task_id": { "type": "string", "format": "uuid" },
    "repository_url": { "type": "string", "format": "uri" },
    "base_commit_sha": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
    "contract_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
    "evaluation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "bundle_digest",
        "runner_image_digest",
        "acceptance_command",
        "acceptance_command_digest",
        "environment_allowlist"
      ],
      "properties": {
        "bundle_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
        "runner_image_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
        "acceptance_command": {
          "type": "array",
          "minItems": 1,
          "items": { "type": "string", "minLength": 1 }
        },
        "acceptance_command_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
        "environment_allowlist": {
          "type": "array",
          "items": { "type": "string", "pattern": "^[A-Z_][A-Z0-9_]*$" },
          "uniqueItems": true
        }
      }
    },
    "writable_path_patterns": {
      "type": "array",
      "minItems": 1,
      "items": { "type": "string", "minLength": 1 }
    },
    "denied_path_patterns": {
      "type": "array",
      "minItems": 1,
      "items": { "type": "string", "minLength": 1 }
    },
    "egress_policy": {
      "type": "object",
      "additionalProperties": false,
      "required": ["policy_id", "policy_digest"],
      "properties": {
        "policy_id": { "type": "string", "minLength": 1 },
        "policy_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
      }
    },
    "budget_limits": {
      "type": "object",
      "additionalProperties": false,
      "required": ["max_retries", "max_wallclock_seconds", "max_tokens"],
      "properties": {
        "max_retries": { "type": "integer", "minimum": 0, "maximum": 5 },
        "max_wallclock_seconds": { "type": "integer", "minimum": 1, "maximum": 1800 },
        "max_tokens": { "type": "integer", "minimum": 1, "maximum": 500000 }
      }
    },
    "approver": {
      "type": "object",
      "additionalProperties": false,
      "required": ["identity", "timestamp"],
      "properties": {
        "identity": { "type": "string" },
        "timestamp": { "type": "string", "format": "date-time" }
      }
    },
    "signature": {
      "type": "object",
      "additionalProperties": false,
      "required": ["algorithm", "key_id", "signed_at", "payload_digest", "value"],
      "properties": {
        "algorithm": { "type": "string", "enum": ["Ed25519", "ECDSA_P256", "RSASSA_PSS_SHA_256"] },
        "key_id": { "type": "string" },
        "signed_at": { "type": "string", "format": "date-time" },
        "payload_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
        "value": { "type": "string" }
      }
    }
  }
}

Signer, Verifier & Time Trust Boundary: The execution agent must not possess a manifest-signing key or the ability to register a trusted signer. Manifest signatures are generated by a planning authority or control-plane service identity. Admission control and CI evaluate signature and token validity against a control-plane trusted time source; the execution guest's system clock is not authoritative for manifest expiry or attestation validity. Admission control verifies the manifest signature, payload digest, expiration timestamp, contract hash, and evaluation-bundle hash before provisioning the execution environment. CI repeats those checks before producing an acceptance attestation.

Evaluator Canonicalization & Environment Allowlisting: acceptance_command_digest is computed over the RFC 8785/JCS-canonicalized evaluator descriptor, including the argument array, working directory, declared environment allowlist, and runner-image digest; the execution agent cannot modify any component of that descriptor. The evaluator inherits no ambient environment variables except those explicitly allowlisted and recorded in the evaluator descriptor.

Path Authorization & Normalization Semantics: Path authorization is evaluated on canonicalized, repository-relative paths after symlink resolution. Deny rules strictly override allow rules. The control plane rejects path traversal (..), symlink escape, alternate data streams, case-folding ambiguities, and any write whose resolved destination falls outside the approved workspace root.

Specification 2: Immutable Evaluation Surface

The evaluation surface comprises all files and configurations that determine whether candidate code is accepted. Independently owned means that the executor lacks write authority over the test bundle, evaluator configuration, test command, dependency-resolution inputs, and acceptance criteria for its assigned task. The full evaluation surface must be cryptographically bound to the task manifest and immutable to the execution agent. Where evaluator artifacts are exposed within the guest, they must be mounted read-only; CI workflow definitions, acceptance commands, runner configuration, and protected-branch policies must be enforced outside the executor's write authority:

Specification 3: Sandbox Egress & Credential Containment Policy

Execution environments operate with default-deny network access. Necessary external communication is mediated through a host-side proxy. Raw credentials are not mounted in the guest; the proxy injects or exchanges scoped credentials only on the host side after policy evaluation. Docker Sandboxes documents a microVM-based execution model and configurable credential/network controls (Docker Inc., 2026); organizations should validate effective policy posture at deployment time and record the applied policy digest:

NOTE: Illustrative policy sketch; network isolation, metadata filtering, and proxy parameters must be validated against host runtime capabilities.
CONTAINMENT_POLICY.YAML HOST-SIDE ENFORCEMENT
version: "1.0"
metadata:
  policy_id: "pol-sbx-strict-v2"
  policy_digest: "sha256:7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069"
  enforcement_tier: "L3_CAPABILITY_CONTAINED"
  issued_at: "2026-09-01T00:00:00Z"
  expires_at: "2026-09-01T01:00:00Z"

filesystem:
  writable_paths:
    - "src/modules/billing/**"
    - "src/utils/math/**"
  read_only_mounts:
    - host_path: "/var/bundles/eval-task-4819"
      guest_path: "/workspace/tests"
  denied_paths:
    - ".git/**"
    - ".github/**"
    - "package.json"
    - "package-lock.json"

network:
  default_egress: "deny"
  dns:
    resolver: "host-controlled"
    allow_only_listed_hosts: true
    block_private_ranges: true
    block_link_local_ranges: true
    block_metadata_endpoints: true  # Blocks 169.254.169.254 / Cloud IMDS
  ingress: "deny"
  allowlist:
    - host: "registry.npmjs.org"
      port: 443
      protocol: "https"
      allowed_methods: ["GET", "HEAD"]
    - host: "pypi.org"
      port: 443
      protocol: "https"
      allowed_methods: ["GET", "HEAD"]

resources:
  cpu_cores: 2
  memory_mb: 4096
  disk_mb: 10240
  pids_max: 256
  max_wallclock_seconds: 1800
  max_processes: 128

output_controls:
  max_stdout_bytes: 1048576
  max_stderr_bytes: 1048576
  redact_secret_patterns: true
  permitted_artifact_exports:
    - "patch.diff"
    - "test-results.junit.xml"
    - "attestation.json"

logging:
  network_decisions: true
  file_write_attempts: true
  tool_invocations: true
  export_to_control_plane: true

security:
  allow_privilege_escalation: false
  raw_sockets: false
  host_pid_namespace: false
  host_network_namespace: false
  host_ipc_namespace: false
  host_mount_namespace: false
  credential_mediation:
    mode: "host_proxy"
    raw_credentials_mounted_in_guest: false
    secret_references:
      - proxy_token_id: "npm-read-token"
        scope: "read:packages"
        rate_limit_per_minute: 60

Egress Filtering, Destination Validation & IPv6 Handling: Destination validation occurs at the host-side proxy or network-policy enforcement point, after DNS resolution and before connection establishment. For HTTP(S), the proxy must re-evaluate each redirect target, enforce the allowlist against the resolved destination and SNI/Host metadata, deny IP-literal destinations unless explicitly authorized, and prevent credentials from being forwarded to a changed origin. The egress controller must evaluate the final resolved destination on every connection, normalize IPv4-mapped IPv6 addresses (e.g., ::ffff:169.254.169.254), block loopback (127.0.0.0/8, ::1/128), link-local (fe80::/10), cloud metadata (169.254.169.254), and prohibited private address ranges, prevent DNS rebinding, and deny direct IP connections unless explicitly authorized.

Build-Time vs. Runtime Dependency Caching: For high-assurance profiles, dependency resolution should occur before execution from a verified internal artifact mirror or content-addressed cache. Runtime registry access is an exception path and must be constrained by lockfile digests, package integrity metadata, provenance checks, and policy-logged retrieval.

Verifiable Attestation Content Model: To ensure evaluation evidence is machine-auditable and tamper-evident, the CI engine emits a structured attestation binding: (1) source repository URL and base commit SHA, (2) candidate patch commit SHA, (3) task-manifest digest, (4) control-policy digest, (5) evaluation-bundle digest, (6) runner image OCI digest, (7) exact test execution command, (8) test, static analysis, and mutation results, (9) builder identity and timestamp, (10) cryptographic signature, and (11) exception/waiver ID if applicable.

Specification 4: Dependency-Change Exception Policy

While standard execution tasks deny writes to package manifests (e.g., package.json, poetry.lock), real-world development periodically requires adding or upgrading libraries. To maintain evaluation integrity, dependency changes are never permitted inside standard implementation tasks. Instead, they follow a dedicated exception path:

Dedicated Dependency Change Workflow

A task requiring a dependency modification must be classified as a Dependency Change Task. It requires an isolated environment, automated Software Bill of Materials (SBOM) generation, vulnerability and license compliance scanning, lockfile hash verification, and mandatory human architect sign-off before being merged into the base evaluation bundle.

5. Operational Pipeline and Assurance State Machine

The reference architecture translates governance rules into an automated, multi-stage state machine with formal transition criteria and failure handling.

Stage Immutable Inputs Mutable Outputs Verification Gate Failure Disposition
1. Contract Approval Requirements, Architecture Decision Records (ADRs). Versioned OpenAPI / JSON schemas, typed interfaces, task manifest. Schema validation; explicit human approver signature. Reject to Planning; refine requirements.
2. Evaluation Bundle Creation Approved contract, base repository commit. Independent test suites, fixtures, runner manifest. Baseline runner verifies tests fail cleanly on empty stubs (red state). Reject to QA / Planning; rewrite invalid fixtures.
3. Execution Admission Frozen contract, evaluation bundle, task manifest. Isolated Git worktree, sandboxed microVM container. Policy engine validates file allowlist, path deny-rules, and egress rules. Halt sandbox startup; alert platform operator.
4. Implementation Execution Task manifest, allowlisted source files, read-only tests. Candidate patch diffs, local execution logs. Local retry budget (max 3), local compiler/linter AST checks. Quarantine branch; capture diagnostic evidence bundle.
5. CI Evaluation & Attestation Candidate patch, frozen evaluation bundle. CI build logs, mutation test scores, attestation record. Pinned test pass (exit 0), mutation threshold satisfied, conflict guard pass. Quarantine branch; return structured failure log to Planning.
6. Production Merge Decision Signed evidence bundle, verifiable CI attestation. Production branch merge commit or explicit rejection. Human review, CODEOWNERS policy check, risk matrix evaluation. Reject PR or grant time-bound waiver with recorded justification.
Table 5. Multi-agent lifecycle state machine: inputs, outputs, gates, and dispositions.

5.1 The Four Mechanical Assurance Rules

The state machine enforces four core operational rules:

  1. 1. Treat Automated Success as Bounded Evidence A successful build, type check, or test pass (exit 0) confirms conformance only to the specific assertions executed. It does not establish full behavioral correctness. Pipeline gates must require defense-in-depth verification (static analysis, schema conformance, mutation testing, and review) rather than relying on binary test results as a comprehensive oracle.
  2. 2. Preserve Total Evaluator Independence The full evaluation surface must be cryptographically bound to the task manifest and immutable to the execution agent. Where evaluator artifacts are exposed within the guest, they must be mounted read-only; CI workflow definitions, acceptance commands, runner configuration, and protected-branch policies must be enforced outside the executor's write authority.
  3. 3. Enforce Layered Adequacy Checks In safety-critical or core architectural modules, the CI evaluator must inject automated mutation testing (e.g., Mutmut, Stryker) to verify that the test suite detects intentional semantic mutations. For general codebases, mutation testing is applied on a calibrated risk-tier basis during PR evaluation or nightly regression runs.
  4. 4. Enforce Bounded Autonomy with Evidence-Preserving Quarantine When an agent exceeds its retry budget, triggers a policy violation, or fails evaluation gates, the control plane immediately revokes execution capabilities and quarantines the branch. Crucially, the system does not discard execution artifacts; it archives the task manifest, tool-call audit logs, patch diffs, test output, and container digests for post-mortem analysis and policy refinement.

6. Deployment Profiles and Residual Risk Analysis

Real-world adoption balances security assurance with operational complexity. We outline two implementation profiles and document unmitigated residual risks.

Dimension Minimum Viable Profile (Standard Repositories) High-Assurance Profile (Safety-Critical / Financial)
Isolation Boundary Isolated Git worktrees inside shared developer containers. Dedicated Firecracker microVMs or ephemeral hardened sandboxes per task.
Evaluation Immutability Separate evaluator checkout or immutable artifact bundle; server-enforced protected paths; executor runs without permission to alter the evaluator source, evaluator configuration, or CI acceptance command. Read-only OS volume mounts verified by cryptographic hash manifests.
Network Egress DNS filtering and environment variable secret stripping. Default-deny network isolation with host-side credential mediation proxies.
Test Adequacy Decoupled test authorship in planning plane; standard unit/integration suite. Risk-calibrated mutation score thresholds per module class; automated negative control tests.
Merge Authorization Single peer review on PR; passing CI checks. Dual human sign-off (CODEOWNERS + Security), signed CI attestation bundle.
Table 6. Minimum viable vs. High-assurance enterprise deployment profiles.

6.1 Residual Risk and Defense-in-Depth Mitigations

A rigorous reference architecture must explicitly identify residual risks that fall outside automated control-plane guarantees:

Residual Risk Failure Mode Description Recommended Defense-in-Depth Mitigation
Unstated Business Intent The code satisfies all formal schemas and unit tests but implements a commercially incorrect workflow. Mandatory human domain-expert review during contract approval; staged feature-flag rollouts.
Upstream Dependency Poisoning An allowlisted package repository serves a compromised sub-dependency that passes build gates. Software Bill of Materials (SBOM) scanning, dependency pinning, and vulnerability database auditing.
Proxied Capability Misuse An agent issues excessive or abusive API requests through an authorized host proxy. Granular rate limiting, path/method allowlisting, and anomaly detection on host proxy traffic.
Host / Hypervisor Escape A zero-day exploit in container or virtualization software breaches host isolation. Kernel hardening (e.g., seccomp, AppArmor), ephemeral VM destruction, least-privilege host daemons.
Timing & Concurrency Flaws Candidate patches pass single-threaded CI runs but deadlock under production load. Automated load/stress testing in staging environments; telemetry canary monitoring prior to 100% traffic shift.
Table 7. Residual risk taxonomy and corresponding organizational mitigations.

7. Primary Sources and Evidence Bibliography

SOURCE USE & EVIDENCE CLASSIFICATION

This reference architecture distinguishes among peer-reviewed research, academic preprints, official product documentation, and practitioner observations. Empirical findings are stated with their reported scope where possible. Product documentation is used to describe documented capabilities and configuration semantics; it does not independently certify the security or efficacy of a particular enterprise deployment.

• Evidence classes: research, preprints, product documentation, practitioner reports • Claims are scoped to the cited source and documented context
Evidentiary classification note: Academic preprints represent emerging evidence and may change through revision or peer review. Vendor documentation supports product-feature claims, not proof of a specific deployment's security posture. Practitioner materials provide operational observations and are not treated as universal empirical proof.
1. Peer-Reviewed Academic Research
2. Academic Preprints and Empirical Studies
3. Official Product Documentation and Security Specifications
4. Practitioner Observations, Talks, and Industry Audits

Appendix: Tool and Vendor Mapping to Architectural Roles

To maintain architectural portability, the three-plane model is vendor-neutral. Commercial and open-source tools function as execution hosts configured by pipeline policy, rather than standalone governance systems:

Architectural Role Representative Implementation Categories Configured Policy Primitives Operational Boundary
Planning Runtime Google Antigravity SDK, Anthropic Claude CLI, OpenAI Assistants. Structured Pydantic schemas, sub-agent spawning, declarative tool denial policies. May validate planning artifacts in a separate review runner but must not author or self-certify the candidate implementation it evaluates.
Isolated Coding Runtime Cursor 2.0 (Local / Cloud), GitHub Copilot Workspace, Aider. Git worktree checkouts, ephemeral execution environments, writable path allowlists. Egress and write boundaries must be enforced externally by the control plane.
Sandboxed Execution Runtime Docker Sandboxes, Firecracker-based microVM runners, gVisor-based containers. Rootless isolation, hardware virtualization, read-only volume mounts. Provides an isolation substrate; deployment hardening remains required.
Credential Mediation Service Host-side proxy, workload-identity broker, cloud secret broker. Ephemeral token exchange, header injection, access rate limiting. Holds raw credentials and authorizes scoped actions outside the guest.
Egress Policy Enforcement Host firewall, service-mesh egress gateway, proxy allowlist, cloud network policy. Destination IP/DNS allowlisting, link-local metadata filtering, packet inspection. Enforces destination, identity, method, and rate constraints.
State & Worktree Controller OpenOrchestrator (owt), custom Git CLI daemons, STORM coordinators. Automated worktree lifecycle, dependency-aware write checking, pre-merge overlap gates. Prevents concurrent index clobbering; requires schema gates for semantic agreement.
Evaluation & Attestation Engine GitHub Actions, GitLab CI, Buildkite, Dagger, Tekton. Hermetic test runners, mutation testing engines (Mutmut/Stryker), signed attestations. Reproducible execution of pinned suites, subject to declared nondeterminism controls; requires frozen inputs from the planning plane.
Table 8. Functional role mapping for common agentic tools and platforms.