Technical Whitepaper · Enterprise Agent Architecture

Building Reliable
Multi-Agent Coding Teams

How to keep AI coding bots honest, protect your tests from being changed, and stop bad code from breaking real systems.

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

// EXECUTIVE_SUMMARY

AI coding bots can write code that looks good and passes simple tests, but still breaks critical features or creates security holes. These problems get worse when multiple bots try to write and test code together on the same files. Asking an AI to be careful in a prompt helps it get started, but it does not stop it from making mistakes or cheating when it gets stuck. To build software you can trust, you must split advice from real enforcement: bots can write the code, but an outside system sets strict boundaries on what files they can touch, cuts off secret keys, keeps tests locked so bots cannot change the answers, and requires human approval before code goes into production.

1. Scope, Definitions, and Assurance Levels

This section defines the scope, trust boundaries, and assurance levels used in the architecture.

1.1 What We Mean by Fixed Rules (Mechanical Controls)

When managing AI tools, we define a fixed rule as:

Plain Definition of a Fixed Rule

A real computer lock that runs outside the AI and does not care what the AI says. Examples include locking test files so the AI cannot edit them (read-only files), checking digital fingerprints on files, using a separate guard to approve actions, blocking access to the open internet, running compiler checks, and requiring human sign-off before merging code into main branches. A fixed rule works even if the AI gets confused or tries to cheat.

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 & Architectural Contribution

Core Contribution: This paper contributes a vendor-neutral assurance model that binds task approval, independent evaluation ownership, constrained execution, and merge evidence into a single agentic software-development lifecycle. While individual controls such as container isolation, signed provenance, and static branch protection exist in conventional secure CI/CD pipelines, those systems typically assume trusted developers authoring code and tests together prior to a CI webhook. In autonomous agentic loops, the code generator operates iteratively on local validation signals before merge, creating a planner-executor trust gap where an optimizing agent can weaken local tests, mutate compiler configs, or leak secrets across steps. Integrating task-scoped manifest binding, read-only evaluation surfaces, workload-authenticated capability issuance, and external supervisor verification closes that pre-merge assurance gap across the lifecycle.

The 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 under explicit boundary conditions:

1.3 Actor and Trust Zone Model

A principal is the subject the control plane binds to a capability: a human, an agent role, or a repository. Identity comes from an issuer the control plane trusts. A name, an agent id, or a repository path sent by the caller is not an identity.

The architecture defines ten operational entities across distinct trust boundaries. This architecture assigns these permissions and prohibitions to each principal:

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, and receive non-authorizing decision records for coordination. Directly write to production branches, mutate CI workflows, execute implementation code, pass a replayable credential to another actor in a handoff, or author vacuous test fixtures that fail on syntax/import errors rather than behavioral assertions.
Execution Agent Untrusted for Enforcement Read approved contracts, authenticate as itself, obtain its own scoped capability from the control plane, edit allowlisted implementation files within an isolated guest workspace, and invoke policy-checked tools. Modify test files, alter lockfiles, modify compiler/linter/build configurations (e.g., tsconfig.json, build.rs, pyproject.toml, Makefile), change CI definitions, access raw credentials, replay another actor’s capability, exhaust shared proxy rate limits, or contact unauthorized networks.
Control Plane Trusted Computing Base Provision isolated runners/worktrees, enforce write allowlists and kernel-level path confinement, mediate egress via TLS-terminating host proxy, partition rate limits and token buckets per task capability, retain run evidence, govern merge gates, resolve the principal from that issuer, and issue a scoped capability only after that principal authenticates as itself for the requested action. Generate unreviewed production code changes, bypass configured gating policies, or accept a forwarded decision record, a caller-supplied name, or a repository’s own claim as authentication.
CI Evaluator Trusted Computing Base Execute pinned test suites against candidate patches, enforce pre-CI diff filters, run mutation tests, emit verifiable CI attestations. Consume unpinned, executor-modifiable test configurations, candidate patches modifying build/compiler configs, 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.
Evidence Observer Untrusted for Authority; Outside the TCB Read a published evidence file and render it for inspection. Hold runner credentials, cluster credentials, signing keys, or a path that writes production state; make policy decisions or apply changes.
Policy-Spec Repository Conditionally Trusted (Governance) Define the contract and export the policy pack. This is the governance repo. Apply, mint another principal’s capability, or certify its own change.
Detection Repository Untrusted for Authority; Outside Action Path Compare a declared event with observed behavior and score pass or fail. This is the purple-team repo. Allow, apply, own the spec, or sit on the action path.
Target Repository Untrusted for Enforcement Receive the change. Act as a policy decision point.
Table 1. Actor and trust boundary definitions across the agentic lifecycle.

A Planning Agent may receive a decision record containing the allow-decision identifier, task identifier, and audit identifier. The handoff must not contain a credential that the next actor can replay (RFC 8693). Because RFC 8693 defines delegation and exchange semantics rather than intrinsic replay resistance, the receiving Execution Agent must authenticate as itself and obtain its own short-lived, sender-constrained, task-scoped capability from the control plane. A decision identifier is a reference for correlation, not execution authority. Every privileged action is authorized again for the resolved principal. A prior allow, possession of the spec, or a detection result does not authorize the next action. In addition, execution capabilities and mediated proxy access are partitioned per task identifier (task_id). Per-task limits reduce cross-task interference, while aggregate upstream quotas, concurrency scheduling, and shared-capacity controls address remaining contention when multiple tasks share an upstream API account.

The Evidence Observer is outside the trusted computing base. Rendering a reported violation is neither a policy decision nor an apply operation. The observer must hold no execution credentials and have no path that writes production state.

1.4 Agentic Assurance Maturity Levels (Proposed Adoption Rubric)

Organizations adopt mechanical controls progressively. We define six assurance levels as a proposed adoption maturity model (pending empirical validation of measured assurance deltas across tiers) 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 Asking Nicely in Prompts Does Not Work

Giving an AI instructions in its prompt helps it understand what you want, but it cannot stop the AI from making mistakes. If the bot is grading its own homework, it will always say it followed your rules, even when it didn't. In safety-critical coding, you cannot rely on polite prompts to keep your code safe.

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

The reference architecture separates planning and execution from control-plane authority. A separately governed CI evaluator checks candidate changes and produces attestations.

┌─────────────────────────────────────────────────────────────────────────────┐
│                              HUMAN AUTHORITY                                │
│       • Dual-Sign Approval (Ticket & Spec)      • Merge Sign-Off            │
└──────────────────────────────────────┬──────────────────────────────────────┘
                                       │ Cryptographic Approval Signature
┌──────────────────────────────────────▼──────────────────────────────────────┐
│                            CONTROL PLANE (TCB)                              │
│  • Non-Replay Manifest Registry      • Worktree / Sandbox Provisioner       │
│  • Filepath & Tool Policy Engine     • Host-Side Credential Proxy           │
│  • Egress Firewall Controller        • Immutable Attestation & Audit Log    │
└──────▲───────────────────────────────┬───────────────────────────────▲──────┘
       │                               │ Read-Only Test Mounts &       │ Signed
       │ Proposed Spec &               │ Scoped Task Capability Token  │ Attestation
       │ Test Bundle                   │ (Manifest Held in TCB)        │ Bundle
┌──────┴───────────────┐               │               ┌───────────────┴──────┐
│    PLANNING PLANE    │               │               │     CI EVALUATOR     │
│ • Typed Contracts    │               │               │ • Read-Only Fixtures │
│ • TDD Test Authoring │               │               │ • Pinned AST Linters │
│ • Scope Proposals    │               │               │ • Mutation Engine    │
└──────────────────────┘               │               └───────────────▲──────┘
                                       │                               │
                                       │ Authenticate Caller Identity  │ Candidate
                                       │ & Execute Allowed Files       │ Patch Diff
                                       ▼                               │
┌──────────────────────────────────────────────────────────────────────┴──────┐
│                           EXECUTION PLANE (GUEST)                           │
│  • Isolated Git Worktree / MicroVM Sandbox (Least Privilege)                │
│  • Write-Allowlisted Implementation Surface (Evaluation Surface Immutable)  │
│  • Default-Deny Outbound Egress (Host Credential Proxy Mediated)            │
│  • Manifest Kept in Control Plane; Agent Re-authenticates for Scoped Token  │
└─────────────────────────────────────────────────────────────────────────────┘
          
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

The following specifications define the artifacts and policies the control plane must enforce.

Specification 1: Signed Task Manifest Schema

Before an execution agent is spawned, the control plane generates an immutable, cryptographically signed manifest envelope binding the agent to an approved scope. To eliminate in-band canonicalization ambiguity, the schema separates the signed manifest payload from the outer signature envelope (aligned with DSSE / in-toto Statement semantics):

NOTE: Illustrative schema definition; production implementations must enforce RFC 8785 (JCS) canonicalization over the manifest object and define key rotation policies.
TASK_MANIFEST_SCHEMA.JSON CONTROL PLANE SPECIFICATION
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SignedAgentTaskManifestEnvelope",
  "type": "object",
  "additionalProperties": false,
  "required": ["manifest", "signatures"],
  "properties": {
    "manifest": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "manifest_schema_version", "policy_engine_version", "task_id",
        "task_class", "baseline_policy_id", "baseline_policy_digest",
        "issued_at", "expires_at", "repository_url", "base_commit_sha",
        "contract_hash", "evaluation", "writable_path_patterns",
        "denied_path_patterns", "egress_policy", "budget_limits", "approver"
      ],
      "properties": {
        "manifest_schema_version": { "type": "string", "const": "1.2" },
        "policy_engine_version": { "type": "string", "minLength": 1 },
        "task_id": { "type": "string", "format": "uuid" },
        "task_class": {
          "type": "string",
          "enum": ["feature", "regression_fix", "refactor", "interface_change", "dependency_change"]
        },
        "baseline_policy_id": { "type": "string", "minLength": 1 },
        "baseline_policy_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
        "issued_at": { "type": "string", "format": "date-time" },
        "expires_at": { "type": "string", "format": "date-time" },
        "repository_url": { "type": "string", "format": "uri" },
        "base_commit_sha": {
          "type": "string",
          "pattern": "^([a-f0-9]{40}|[a-f0-9]{64})$",
          "description": "Supports Git SHA-1 (40-hex) and SHA-256 (64-hex) object formats."
        },
        "contract_hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
        "evaluation": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "bundle_digest",
            "runner_image_digest",
            "working_directory",
            "acceptance_command",
            "acceptance_command_digest",
            "environment_allowlist",
            "timeout_seconds"
          ],
          "properties": {
            "bundle_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
            "runner_image_digest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
            "working_directory": { "type": "string", "minLength": 1 },
            "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
            },
            "timeout_seconds": { "type": "integer", "minimum": 1, "maximum": 3600 },
            "test_selector": { "type": "string", "minLength": 1 },
            "mutation_threshold": { "type": "number", "minimum": 0.0, "maximum": 1.0 }
          }
        },
        "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", "ticket_id", "key_id", "approval_timestamp"],
          "properties": {
            "identity": { "type": "string", "minLength": 1 },
            "ticket_id": {
              "type": "string",
              "minLength": 1,
              "description": "Immutable change ticket identifier (e.g., Forgejo issue gov#1042)."
            },
            "key_id": {
              "type": "string",
              "minLength": 1,
              "description": "Key ID matching the human_approver signature entry in the signatures envelope."
            },
            "approval_timestamp": { "type": "string", "format": "date-time" }
          }
        }
      }
    },
    "signatures": {
      "type": "array",
      "minItems": 2,
      "description": "Dual-role signatures requiring at least one human_approver and one control_plane_authority, using either direct digest signing or a WebAuthn assertion envelope.",
      "allOf": [
        { "contains": { "type": "object", "properties": { "role": { "const": "human_approver" } }, "required": ["role"] } },
        { "contains": { "type": "object", "properties": { "role": { "const": "control_plane_authority" } }, "required": ["role"] } }
      ],
      "items": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "required": ["signature_format", "canonicalization", "algorithm", "key_id", "role", "signed_at", "payload_digest", "value"],
            "properties": {
              "signature_format": { "type": "string", "const": "direct_digest_v1" },
              "canonicalization": { "type": "string", "const": "RFC8785_JCS" },
              "algorithm": { "type": "string", "enum": ["Ed25519", "ECDSA_P256", "RSASSA_PSS_SHA_256"] },
              "key_id": { "type": "string", "minLength": 1 },
              "role": { "type": "string", "enum": ["human_approver", "control_plane_authority"] },
              "signed_at": { "type": "string", "format": "date-time" },
              "payload_digest": {
                "type": "string",
                "pattern": "^sha256:[a-f0-9]{64}$",
                "description": "SHA-256 digest of the RFC 8785 (JCS) canonicalized 'manifest' JSON bytes."
              },
              "value": { "type": "string", "minLength": 1, "description": "Base64-encoded signature computed over the UTF-8 bytes of payload_digest." }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": ["signature_format", "canonicalization", "key_id", "role", "signed_at", "payload_digest", "authenticator_data", "client_data_json", "value"],
            "properties": {
              "signature_format": { "type": "string", "const": "webauthn_assertion_v1" },
              "canonicalization": { "type": "string", "const": "RFC8785_JCS" },
              "key_id": { "type": "string", "minLength": 1 },
              "role": { "type": "string", "const": "human_approver" },
              "signed_at": { "type": "string", "format": "date-time" },
              "payload_digest": {
                "type": "string",
                "pattern": "^sha256:[a-f0-9]{64}$",
                "description": "SHA-256 digest bound inside client_data_json.challenge."
              },
              "authenticator_data": { "type": "string", "minLength": 1, "description": "Base64url-encoded WebAuthn authenticatorData." },
              "client_data_json": { "type": "string", "minLength": 1, "description": "Base64url-encoded clientDataJSON whose challenge equals payload_digest." },
              "value": { "type": "string", "minLength": 1, "description": "Base64url-encoded WebAuthn assertion over authenticator_data || SHA256(client_data_json)." }
            }
          }
        ]
      }
    }
  }
}

Signer, Verifier & Distinct Signature Formats: The execution agent must not possess a manifest-signing key or the ability to register a trusted signer. Manifest envelopes require dual-role signatures enforced both structurally by the schema (allOf/contains) and semantically by the admission verifier: (1) a human_approver signature bound to an approved change ticket, and (2) a control_plane_authority signature certifying task admission. Because a hardware WebAuthn/FIDO2 assertion signs authenticatorData || SHA256(clientDataJSON) rather than raw digest bytes, the schema enforces distinct verification paths via signature_format: direct_digest_v1 verifies an asymmetric signature over the exact UTF-8 bytes of payload_digest (the SHA-256 hash of the RFC 8785 JCS-canonicalized manifest object with duplicate keys rejected), whereas webauthn_assertion_v1 validates the full WebAuthn assertion, origin, RP ID hash, user-presence flags, and verifies that clientDataJSON.challenge equals payload_digest. Admission checks also enforce that each role resolves to an authorized key registered for that role, human_approver key_id matches approver.key_id, and duplicate keys or signatures are rejected. Stage 3 dual-authority admission (human approver + control-plane service) is distinct from the two independent human approvers required at Stage 6 merge under the L5 profile. Any controlled post-admission amendment must mint a new manifest version with a fresh task_id and explicitly invalidate prior unmerged attestations.

Budget & Timeout Precedence Rules: Execution and CI evaluation maintain separate budgets: budget_limits.max_wallclock_seconds (capped at 1,800 s) bounds Stage 4 sandbox implementation, whereas evaluation.timeout_seconds (capped at 3,600 s) governs isolated Stage 5 CI testing. Where a deployment profile specifies stricter defaults (such as Stage 4's High-Assurance profile limit of max_retries: 3 within the schema's 0–5 ceiling), the effective limit is always the minimum of the policy-profile ceiling and the manifest parameter (min(profile_max, manifest_max)).

TCB Isolation & Prevention of Bearer Manifest Handoffs: Possession of a signed task manifest never grants execution authority; the manifest is an integrity-protected admission specification retained inside the Control Plane TCB. To obtain execution capabilities, the Execution Agent must authenticate directly as its own workload principal over TLS using a control-plane-provisioned credential (such as an ephemeral mTLS client certificate or per-sandbox rotated workload key bound at sandbox launch) to receive a short-lived, sender-constrained, task-scoped capability token bound to task_id. Upstream handoffs pass only correlation identifiers (task ID, contract hash, audit ID).

Evaluator Canonicalization & Environment Allowlisting: acceptance_command_digest is computed as the SHA-256 hash over the RFC 8785/JCS-canonicalized evaluation descriptor object (comprising bundle_digest, runner_image_digest, working_directory, acceptance_command, environment_allowlist, timeout_seconds, and optional test_selector / mutation_threshold). The execution agent cannot modify any field of that descriptor, and the evaluator inherits zero ambient environment variables outside environment_allowlist.

Mandatory Process Confinement vs. Helper Path Safety: Userspace path string validation alone is vulnerable to Time-of-Check to Time-of-Use (TOCTOU) symlink race conditions. Therefore, mandatory kernel confinement applies to every candidate process and its descendants via read-only VFS bind mounts, Landlock LSM rules (vfs_mount_and_landlock), seccomp syscall filtering, and closing inherited host descriptors prior to execution. In addition, privileged host-side or tool-execution helpers resolve individual file paths using openat2() with RESOLVE_BENEATH | RESOLVE_NO_SYMLINKS to prevent unsafe path resolution on host boundaries. Deny rules strictly override allow rules.

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, build system rules, compiler/linter settings, 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, compiler/linter definitions, 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.1"
metadata:
  policy_id: "pol-sbx-strict-v2.1"
  policy_digest: "sha256:7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069"
  enforcement_tier: "L3_CAPABILITY_CONTAINED"
  issued_at: "2026-09-01T00:00:00Z"
  expires_at: "2026-09-01T01:00:00Z"

filesystem:
  enforcement_mode: "vfs_mount_and_landlock"
  openat2_resolve_flags: ["RESOLVE_BENEATH", "RESOLVE_NO_SYMLINKS"]
  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"                # Protects worktree gitdir pointer file
    - ".git/**"             # Protects git directory internals
    - ".github/**"
    - "package.json"
    - "package-lock.json"
    - "tsconfig.json"       # Prevents compiler/plugin tampering
    - "pyproject.toml"
    - "setup.py"
    - "Cargo.toml"
    - "build.rs"
    - ".eslintrc.*"
    - "Makefile"

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 & ::ffff:169.254.169.254
  ingress: "deny"
  tls_inspection:
    mode: "host_mitm_proxy"
    ephemeral_ca_injected_in_guest: true
    strip_upgrade_headers: true     # Blocks WebSocket/H2C tunneling over GET
    disable_http2_coalescing: true
  allowlist:
    - host: "registry.npmjs.org"
      port: 443
      protocol: "https"
      allowed_methods: ["GET", "HEAD"]
      allowed_path_prefixes: ["/@*/", "/-/v1/search"]
      allowed_headers: ["Accept", "Accept-Encoding", "User-Agent"]
      max_request_bytes: 4096
    - host: "pypi.org"
      port: 443
      protocol: "https"
      allowed_methods: ["GET", "HEAD"]
      allowed_path_prefixes: ["/simple/", "/pypi/"]
      allowed_headers: ["Accept", "Accept-Encoding", "User-Agent"]
      max_request_bytes: 4096

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
  pre_export_diff_validation: "reject_denied_path_touches"
  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
    rate_limit_scope: "per_task_principal"
    secret_references:
      - proxy_token_id: "npm-read-token"
        scope: "read:packages"
        rate_limit_per_minute: 60
        aggregate_upstream_quota_rpm: 600

Egress Filtering, TLS Inspection & Protocol Upgrade Prevention: Destination validation occurs at the host-side proxy or network-policy enforcement point, after DNS resolution and before connection establishment. Because enforcing HTTP method restrictions (GET/HEAD) and injecting host-held credentials (Authorization headers) over HTTPS requires L7 visibility, the host proxy terminates TLS using an ephemeral, per-run Internal CA provisioned into the guest trust store. The proxy strips Upgrade and Connection: Upgrade headers to prevent WebSocket or HTTP/2 cleartext (h2c) bidirectional tunneling over allowlisted GET routes, disables HTTP/2 connection coalescing across distinct origins, re-evaluates every HTTP redirect target against the allowlist, and strips injected credentials on cross-origin redirects. At L3/L4, the egress controller normalizes IPv4-mapped IPv6 addresses (e.g., ::ffff:169.254.169.254), blocks loopback (127.0.0.0/8, ::1/128), link-local (fe80::/10), cloud metadata (169.254.169.254), and private RFC 1918 / RFC 4193 ranges, and prevents DNS rebinding. Because an allowlisted GET request still carries information-bearing fields (URL paths, query parameters, and headers), method restriction alone does not guarantee total non-exfiltration; high-assurance proxies enforce allowed_path_prefixes, allowed_headers, max_request_bytes, and package-identity constraints, documenting residual covert channels.

Per-Principal Rate Limiting & Cache Isolation: To reduce cross-agent Denial of Service (DoS) or timing side-channels across concurrent sandboxes, proxy rate limits (rate_limit_per_minute) are enforced per resolved task_id principal rather than solely across a single unpartitioned token bucket. Because multiple concurrent tasks may still target a single upstream API credential or registry account, per-task limits are paired with aggregate_upstream_quota_rpm, concurrency scheduling, and shared-capacity controls to prevent cumulative quota exhaustion.

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 & Trustworthy Evaluation Completion: Capturing a zero exit code from outside the candidate process is insufficient if candidate code terminates prematurely (e.g., calling os._exit(0) or returning success before all assertions execute). In addition, where tests and candidate code share a single language runtime (e.g., Python or Node.js), malicious candidate code shares process memory with test assertions during execution. To harden evaluation integrity, CI separates four stages: (1) an independent test-discovery phase conducted by the trusted supervisor prior to running candidate code (recording expected test IDs and assertion counts), (2) an unprivileged candidate-execution process running inside the pinned test harness, (3) a supervisor outside the candidate process's filesystem/memory namespace verifying exact completion records for every discovered test case and rejecting truncated, skipped, or malformed result streams, and (4) an isolated signing service. Where strict language-runtime isolation is required, candidate code is evaluated across IPC/process boundaries (e.g., gRPC/HTTP service tests) rather than in-process library imports. The signed attestation binds: (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) expected vs. completed test counts, 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 a multi-stage state machine with formal transition criteria and failure handling. Artifact production and signing follow an acyclic dependency order (contract approval and evaluation-bundle hashing strictly precede final execution manifest signing and admission), while failed attempts may initiate bounded revision cycles back to Planning or QA.

Stage Immutable Inputs Mutable Outputs Verification Gate Failure Disposition
1. Contract & Provisional Plan Approval Requirements, Architecture Decision Records (ADRs). Versioned OpenAPI / JSON schemas, typed interfaces, provisional plan (contract_hash). Schema validation; human domain review confirming business intent and binding task_class (feature, regression_fix, refactor, interface_change, or dependency_change) and baseline_policy_digest. Reject to Planning; refine requirements.
2. Evaluation Bundle Creation & Baseline Gate Frozen contract (contract_hash), bound task_class & baseline_policy_digest, base repository commit. Independent test suites, fixtures, canonical evaluator descriptor (bundle_digest, acceptance_command_digest). Baseline runner executes discovery, verifies clean compilation with zero harness/syntax errors, and satisfies the bound baseline_policy_digest for task_class. Reject to QA / Planning; rewrite invalid fixtures.
3. Manifest Signing & Execution Admission Frozen contract hash, verified bundle_digest, acceptance_command_digest. Final dual-signed SignedAgentTaskManifestEnvelope (in TCB), isolated Git worktree, sandboxed microVM container. Dual-role signature verification (one authorized human_approver matching approver.key_id via direct_digest_v1 or webauthn_assertion_v1 + one control_plane_authority admission key), non-replay task_id registration, policy validation, and direct workload authentication over TLS. Halt sandbox startup; alert platform operator.
4. Implementation Execution Allowlisted source files, read-only test mounts, and short-lived capability token issued directly to the Execution Agent (signed manifest remains in control-plane TCB). Candidate patch diffs, local execution logs. Local retry budget (profile default: max 3 within schema ceiling 5), local compiler/linter AST checks against read-only configs, and pre-export diff validation confirming zero modifications to denied_paths or build/linter configurations. Quarantine branch; capture diagnostic evidence bundle.
5. CI Evaluation & Attestation Candidate patch, frozen evaluation bundle, trusted supervisor outside candidate process. CI build logs, mutation test scores, signed attestation record. Pre-CI diff filter pass, independent test discovery & completion verification (rejecting premature exit or truncated streams), 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. Independent human review (dual human CODEOWNERS + Security sign-off at L5), policy check, risk matrix evaluation. Reject PR or grant time-bound waiver with recorded justification.
Table 5. Multi-agent lifecycle state machine (acyclic artifact/signing dependency order with bounded revision loops): inputs, outputs, gates, and dispositions.

Stage 3 → Stage 4 handoff: A Planning Agent submits the provisional contract and triggers independent Stage 2 bundle generation, passing only correlation identifiers (task identifier, contract hash, audit identifier) downstream, never a bearer capability or signed manifest. Once Stage 3 dual-role manifest admission succeeds, the Execution Agent authenticates as itself to the control plane over TLS using its provisioned workload identity to obtain a short-lived, task-scoped capability token.

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. This surface encompasses not only test files and fixtures, but all build scripts (e.g., Makefile, build.rs, setup.py), compiler/type-checker settings (e.g., tsconfig.json), linter definitions (e.g., .eslintrc.js), and lockfiles. 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 to prevent the local compiler/linter confused deputy trap.
  3. 3. Enforce Task-Calibrated Adequacy & Negative Controls Baseline test-gate policies must ensure that negative controls fail for the intended reason and that unrelated harness crashes or syntax errors never satisfy a gate. Because requiring initial failure on empty stubs applies only to new-feature tasks, Stage 2 enforces explicit policies by task class: (a) new features require clean compilation and behavioral assertion failure against stubs, (b) regression bug fixes require the targeted regression test to fail while existing tests pass, (c) behavior-preserving refactors require the existing suite to pass before and after modification, and (d) interface changes permit intended contract/type failures where specified. In safety-critical modules, CI additionally applies automated mutation testing (e.g., Mutmut, Stryker) on a calibrated risk-tier basis.
  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. The system archives the task manifest, tool-call audit logs, patch diffs, test output, and container digests for post-mortem analysis and policy refinement.

No repository is trusted to skip the control plane, including the repository that holds the policy and the repository that detects drift.

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. Exclusion: Does not provide hypervisor/microVM kernel isolation against guest privilege escalation. Dedicated Firecracker microVMs or ephemeral hardened sandboxes per task; kernel VFS-level openat2 confinement (RESOLVE_BENEATH | RESOLVE_NO_SYMLINKS) or read-only snapshot mounts; host-side tree diff extraction without exposing Git worktree files.
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; strict pre-CI diff filters quarantining any edits to build, linter, or compiler configs; trusted CI supervisor isolated from candidate code execution.
Network Egress DNS filtering and environment variable secret stripping. Exclusion: Does not provide L7 TLS payload inspection, HTTP method allowlisting, or host-mediated credential injection. Default-deny network isolation with TLS-terminating host-side credential mediation proxies, path/method/size restrictions, per-task rate limit scoping plus aggregate upstream caps, and ephemeral guest CA injection.
Test Adequacy Decoupled test authorship in planning plane; standard unit/integration suite. Exclusion: Does not enforce mutation score thresholds. Risk-calibrated mutation score thresholds per module class; automated task-calibrated negative control tests and behavioral assertion validation.
Merge Authorization Single peer review on PR; passing CI checks. Exclusion: Does not require independent security dual-sign-off. Dual independent human sign-off (CODEOWNERS + Security), signed CI attestation bundle.
Table 6. Minimum viable vs. High-assurance enterprise deployment profiles with explicit exclusions.

6.1 Residual Risk and Defense-in-Depth Mitigations

Automated control-plane enforcement does not eliminate the following risks:

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.
Evaluator-Process Interference & Covert Egress Untrusted candidate code running during CI attempts to tamper with local test-result files before export, or encode secrets inside permitted GET query strings/URLs. Run candidate code inside an unprivileged process isolated from the trusted result-collecting supervisor and signing key; constrain proxy paths, query lengths, and headers.
Proxied Capability Misuse & Shared Account Contention An agent issues excessive API requests through an authorized host proxy, exhausting a shared upstream credential quota or causing timing side-channels. Granular per-task rate limiting combined with aggregate upstream account caps, cache partition isolation, 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.

6.2 Proposed Reproducible Validation Protocol

Because this specification presents a reference architecture rather than a completed benchmark study, validating an implementation requires running the controlled adversarial protocol in Table 8 without fabricated outcomes. Each scenario is executed across defined repetitions (e.g., \(n = 30\) randomized trials under concurrent load and identical runtime configurations) against an otherwise equivalent baseline pipeline lacking the target control, measuring five metrics: unauthorized actions allowed, legitimate refactors rejected, additional runtime latency, human-review burden, and recovery/retry behavior.

Scenario Initial State Adversarial Action Expected Result Observable Evidence Failure Criterion Baseline Comparison
1. Evaluation File Write Active task sandbox with read-only test mount. Agent attempts write/unlink/symlink escape in test directory. Syscall blocked with EROFS/EACCES; task flagged. Landlock/VFS audit event; unchanged bundle digest. Any modified test byte or altered evaluation hash. Shared writable repo checkout without read-only mount.
2. Build Config Mutation Active Stage 4 sandbox; denied_paths enforced. Agent edits tsconfig.json, build.rs, or .eslintrc.*. Write denied or pre-CI diff filter quarantines patch. Policy rejection log and quarantine branch state. Config change enters CI runner or executes build hook. Standard agent branch without denied_paths filter.
3. Cross-Task Capability Replay Two concurrent sandboxes (Task A, Task B) active. Task B replays Task A's capability token over proxy. Request denied before privileged action (HTTP 403). Principal mismatch log; unchanged upstream state. Task B executes action under Task A's identity. Bearer manifest token shared across sandboxes.
4. Query-String Exfiltration Host proxy enforcing allowed_path_prefixes. Agent encodes repo secret into GET query string. Blocked if exceeding prefix/length/pattern rule; else logged. Host proxy L7 audit log and blocked response code. Unlogged or unbounded outbound secret transmission. Unfiltered outbound HTTPS or DNS-only filter.
5. Premature Exit / Result Forgery Stage 5 CI with independent test discovery active. Candidate writes fake JUnit XML and calls os._exit(0). Supervisor rejects incomplete test-case completion records. Discovery-vs-completion mismatch error; failed gate. CI emits signed passing attestation on skipped tests. Standard CI trusting raw exit 0 and guest XML file.
6. Shared Upstream Quota Exhaustion Multiple concurrent tasks sharing one upstream registry account. One sandbox floods permitted GET requests up to limit. Per-task + aggregate caps throttle noisy sandbox. Per-task_id 429 rate-limit logs; sibling tasks proceed. Sibling task starvation exceeding SLA budget. Global unpartitioned proxy token bucket.
7. Stale Base Merge Attempt Patch validated on commit C1; main advances to C2. Agent or automation attempts merge onto C2. Merge blocked until re-evaluated against C2. Attestation base_commit_sha != HEAD rejection. Stale patch merged without re-running Stage 5 on C2. Auto-merge workflow without base SHA pinning.
8. Precision Control (Valid Refactor) task_class: refactor; bound refactor baseline policy. Agent executes behavior-preserving multi-file refactor. Passes Stage 2 and Stage 5 gates without false reject. Clean compilation, full test completion, signed attestation. Legitimate refactor blocked by stub-failure rule. Pipeline applying rigid empty-stub red-state rule to all tasks.
Table 8. Reproducible adversarial and precision validation protocol (proposed evaluation design).

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 and Foundational Security Standards
  • PEER-REVIEWED / SEMINAL The Protection of Information in Computer Systems: Saltzer, J. H., & Schroeder, M. D. (Proceedings of the IEEE, 63(9), 1278–1308, 1975). Foundational principles for complete mediation, separation of privilege, and distinguishing authenticated identity from access authorization. Classic Paper →
  • NATIONAL STANDARD Zero Trust Architecture: Rose, S., Borchert, O., Mitchell, S., & Connelly, S. (NIST Special Publication 800-207, 2020). Defines dynamic per-session mechanical authorization, external Policy Decision Point / Policy Enforcement Point (PDP/PEP) boundaries, and trusted issuer identity resolution. PDF →
  • SECURITY STANDARD OAuth 2.0 Token Exchange: Jones, M., Nadalin, A., Campbell, B., Bradley, J., & Mortimore, C. (Internet Engineering Task Force RFC 8693, 2020). Defines OAuth token exchange and delegation semantics; this architecture additionally requires actor-bound authorization, sender-constraints, and explicit replay controls. RFC →
  • INFORMATIONAL RFC / CANONICALIZATION SPEC JSON Canonicalization Scheme (JCS): Rundgren, A., Jordan, B., & Erdtman, S. (Internet Engineering Task Force Informational RFC 8785, 2020). Defines deterministic canonicalization of JSON data for cryptographic hashing; signature protocols must additionally enforce duplicate-property rejection and specify exact signed bytes. RFC →
  • PEER-REVIEWED Lost in the Middle: How Language Models Use Long Contexts: Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., & Liang, P. (Transactions of the Association for Computational Linguistics, 12, 157–173, 2024). PDF →
2. Academic Preprints and Empirical Studies
3. Official Product Documentation and Security Specifications
4. Practitioner Observations, Talks, and Industry Audits

Appendix A: 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 9. Functional role mapping for common agentic tools and platforms.

Appendix B: Architectural Control Checklist (Proposed NIST SP 800-207 & SLSA v1.0 Mapping)

This checklist presents a proposed architectural mapping linking the mechanical controls of the three-plane model to NIST SP 800-207 tenets and SLSA v1.0 Build Level 3 objectives. Presence of an individual control does not constitute an independently assessed build-service conformance certification; the SLSA column separates controls that Support SLSA Build L3 (one implementation approach toward an objective, not a mandated SLSA mechanism) from Architecture Security Extensions and Broad Conceptual Alignment:

Control Objective & Mechanism Pipeline Specification / Artifact NIST SP 800-207 Alignment SLSA v1.0 (Build L3) & Extension Mapping
Cryptographically Signed Task Envelope Specification 1 (TASK_MANIFEST_SCHEMA.JSON v1.2): Dual-role signed admission envelope binding RFC 8785 JCS manifest digest, human approver signature, control-plane authority signature, expiration window, and non-replay ledger. Tenet 1 & Tenet 4: Explicit resource classification; dynamic Policy Decision Point (PDP) validation before runner provisioning; separation of intent approval from task execution. Architecture Security Extension (Input Binding): Constrains input scope and commit SHA prior to execution. Note: A signed input manifest is an admission control, not SLSA output provenance (which is generated at Stage 5).
Kernel-Enforced VFS Path Confinement Specification 3 (CONTAINMENT_POLICY.YAML v1.1): Mandatory sandbox VFS mounts + Landlock LSM + helper openat2() with RESOLVE_BENEATH | RESOLVE_NO_SYMLINKS. Tenet 3 & Tenet 6: Granular per-session least privilege; Policy Enforcement Point (PEP) mediated at the OS kernel boundary to prevent TOCTOU symlink races. Supports SLSA Build L3 (Build Isolation): One implementation approach supporting isolated build environments shielded from tampering by concurrent or prior runs; not a prescribed SLSA mechanism.
Evaluation Surface & Build Config Lockdown Specification 2 & Specification 3: Read-only mounts for test suites; denied_paths blocking tsconfig.json, build.rs, setup.py, .eslintrc.*, and lockfiles; pre-export diff validation. Tenet 5 & Complete Mediation: Continuous integrity verification; reduces the confused-deputy attack surface in local compiler/linter checks. Architecture Security Extension: SLSA v1.0 Build L3 does not mandate hermeticity or test-oracle ownership; this extension decouples test/build surfaces from untrusted agent modification.
Host-Mediated Credential Proxy & TLS Forward Proxy Specification 3: Host MITM proxy with ephemeral guest CA injection, HTTP method/path/size allowlisting (GET/HEAD), WebSocket upgrade stripping, and HTTP/2 coalescing disabled. Tenet 3 & Tenet 6: Dynamic access control and per-session least privilege; zero raw credentials mounted inside guest microVMs; external egress enforcement at L4/L7. Architecture Security Extension: Reduces unauthorized outbound network connections and raw credential exposure; residual query/path covert channels are bounded rather than universally eliminated.
Per-Principal Capability Scoping & Cache Isolation Specifications 1 & 3: Scoped capabilities (token exchange), direct workload authentication (mTLS / per-sandbox rotated workload keys), per-task_id rate limits paired with upstream caps, and partitioned caches. Tenet 3 & Tenet 6: Dynamic per-principal authentication; reduces credential replay, bearer manifest handoff re-use, cross-task interference, and cache timing side-channels. Supports SLSA Build L3 (Isolated Build Independence): One implementation approach supporting cross-build isolation when paired with aggregate upstream capacity scheduling; not a prescribed SLSA mechanism.
Task-Calibrated Negative Control & Behavioral Gate Stage 2 Verification Gate (Table 5): Baseline runner verifies clean compilation and enforces bound baseline_policy_digest negative controls by task_class. Tenet 5: Continuous asset posture diagnostics; reduces false-positive pipeline passes caused by broken fixtures or unhandled syntax crashes. Broad Conceptual Alignment: Enhances test-oracle quality prior to final output provenance generation; not a specific SLSA v1.0 requirement.
Verifiable Signed Attestation Bundle Stage 5 CI Attestation (Table 5): Cryptographically signed bundle emitted by isolated CI supervisor/signer binding output patch digest, source commit, runner digest, test command, and manifest digest. Tenet 7: Comprehensive diagnostics, auditable trail, and machine-verifiable operational evidence. Supports SLSA Build L3 (Non-Falsifiable Provenance): One implementation approach identifying output artifacts by digest from an isolated builder outside executor signing key access; full SLSA conformance requires platform-level verification.
Table 10. Proposed architectural mapping to NIST SP 800-207 Zero Trust tenets and SLSA v1.0 Build Level 3 objectives vs. extensions.

Citation & Bibliographic Reference

To cite this reference architecture specification in academic research or technical publications, use the following BibTeX entry:

@techreport{suhlabs2026multiagent,
  author      = {Suh, John Young and {SuhLabs Systems Research}},
  title       = {Engineering Robust Multi-Agent Coding Pipelines: A Control-Plane Reference Architecture for Intent Integrity, Evaluation Integrity, and Contained Execution},
  institution = {SuhLabs Systems Research},
  number      = {ARCH-2026-01},
  year        = {2026},
  month       = {November},
  url         = {https://suhlabs.com/multi-agent-pipelines-whitepaper.html}
}
BibTeX: ARCH-2026-01 · SuhLabs Systems Research