Skip to navigation

Reference Architecture

View as MarkdownOpen in Claude

Typical Agent Execution Loop

Before the workspace pattern, the typical agent execution loop looks like this — a user query is handled by an agent that invokes an LLM, selects tools, runs them in a code-interpreter session (shell, code, filesystem), emits telemetry to an observability plane, and returns the result.

Typical agent execution loop

Figure 3 Typical agent execution loop

The agent, the model call, the tool execution, and the observability plane are all present — but nothing in this picture says where any of it runs, who the agent is authenticated as, what the tools can reach, or how policy is enforced. Those are the questions Secure Agent Workspace answers.

A note on future evolution. In this design the agent, its tools and execution context share the assigned workstation domain. An external orchestrator using a separate tool-execution sandbox is an additional design profile, out of scope here.

Secure Agent Workspace — Where Everything Fits

The Secure Agent Workspace pattern wraps the baseline loop in a managed environment. User and enterprise services sit outside the workstation domain; Secure Agent Workspace is the thing in between — the integrating concept that governs agent execution, state and access to external capabilities. Containment from the inside out: agent loop → runtime sandbox → single-user → assigned execution workstation → Secure Agent Workspace envelope.

Secure Agent Workspace: where everything fits

Figure 4 Secure Agent Workspace: where everything fits

Secure Agent Workspace — Seven Logical Planes

The architecture has seven logical planes: the user endpoint provides the interface; the control plane manages lifecycle; the bootstrap plane establishes the execution environment; access management authenticates and brokers sessions; the agent workspace holds tools and state; the safe runtime constrains execution; and enterprise services expose governed capabilities. The endpoint attaches, but the workspace executes. Physical placement follows the selected profile: optional DPU networking and telemetry support these same logical planes while the agent and tools remain in the assigned workspace. Policy authoring and release remain control-plane responsibilities; each profile declares where rules are enforced and who administers those enforcement points. An optional independent watchdog extends the infrastructure enforcement boundary without adding a logical plane. Keep its administration, policy and telemetry outside the workspace worker host where host-independent protection is required. The profile must identify the tool, data and model paths it can observe or block, including alternate attachments and local inference. Access outside its mediated paths must be denied or explicitly addressed by another trusted control.

The endpoint is the user’s interface - IDE, terminal, or coding agent. The managed workspace is the execution and policy boundary.

Secure Agent Workspace - seven logical planes

Figure 5 Secure Agent Workspace - seven logical planes

Architectural Invariants the Design Preserves

  • Keep raw provider credentials outside the agent process. This Phase II requirement is implemented through validated credential mediation; record the actual credential/handle semantics and exposure boundary. Implementation-specific Phase I exceptions must remain explicit.
  • No self-granted authority. Enforced at the runtime sandbox (Plane 6) and the control plane. The agent operates with a policy-defined subset of the user’s permissions, bound by the per-engagement delegation record; it cannot widen its own scope, tools, or policy — that requires a re-issued, signed delegation / policy from the control plane.
  • No connection to an unlisted destination. Enforced at two layers (defense-in-depth): the workspace network boundary (Plane 5 → 7) and runtime-sandbox egress (Plane 6), both deny-by-default. Outbound destinations come from the signed profile allowlist; adding one is a control-plane allowlist change, not a runtime approval the user or agent can request.
  • No tampering with system binaries. Enforced through runtime policy and OS-level filesystem controls (Plane 6). For agent processes, the filesystem is read-only outside the writable agent home, with LSM-level enforcement on supported kernels. These restrictions supplement the Phase 0 managed-OS baseline.
  • No agent-created persistence. Enforced in the runtime sandbox (Plane 6); Runtime policy must deny agent writes to shell startup files, hooks, operator-controlled instruction files, MCP-server and agent configuration, and other protected paths that create persistent execution. These paths change only through a control-plane operator action. Validate the protected paths and every mutation route for the selected image and runtime.
  • No agent-controlled lifecycle. Enforced at the control plane (operator-owned). Sandbox creation, policy change, and image upgrade are control-plane operator actions — not actions the agent can request.
  • No suppressed audit. Enforced outside the agent’s reach. Emit OCSF-normalized events from workspace-perimeter and runtime enforcement points outside the agent process; the agent must not be able to disable, alter or withhold that audit stream. Verify event coverage and loss detection. In-guest telemetry is best-effort under guest-root compromise; an independently enforced perimeter stream must continue and corroborate it where survival of guest compromise is claimed.

Network Architecture

Corporate-profile workspaces use approved brokered paths for user attachment and corporate-service access. The managed-VM tunnel profile below illustrates one implementation; other profiles must satisfy the same authentication, audit and no-bypass requirements:

  • Flow 1 (inbound). In the managed-VM tunnel profile, a consumer reaches the workspace through the trusted access broker over a secure tunnel such as SSH.
  • Flow 2 (outbound). In that profile, the agent inside the workspace reaches corp-net through the same broker over a per-session reverse tunnel.

For this tunnel profile, the broker is the only path for inbound user attach and for workspace-to-corporate-network access — nothing reaches the sandbox unbrokered, and nothing reaches the corporate network unbrokered. Internet egress to allowlisted external destinations is a separate outbound path, mediated by the platform-layer egress firewall rather than the broker (see below).

Secure Agent Workspace - Network Architecture

Figure 6 Secure Agent Workspace - Network Architecture

From inside the workspace, all internet egress is mediated by the platform-layer egress firewall against an allow-list of approved destinations — source repositories, partner agent endpoints, hosted inference, approved SaaS. These destinations are scoped policy targets, with L7 protocol-aware filtering further constraining access by protocol-specific attributes such as host, path and method for HTTP. Anything outside the allow-list is denied at the platform layer in Phase I; in Phase II the same allow-list is also enforced in-runtime by the runtime (for example, NVIDIA OpenShell) as deny-by-default.

Corporate network resources — internal model service, source control, ticketing and documentation — are reachable only through approved brokered paths. Each implementation defines the routing and trust boundary and must prevent direct access that bypasses those controls. With DPU networking, identify the checks offloaded to the device and those retained in software. Preserve the required runtime and service mediation across every network attachment; device access must not create an alternate route around those controls.

Trusted Access Broker — What It Is and What It Must Satisfy

The trusted access broker authenticates, scopes and audits attachment between the user’s endpoint and the agent workspace using enterprise SSO. A profile may also use it for corporate-service access, as in the managed-VM tunnel example. Where a separate service gateway mediates outbound access, declare that gateway’s authentication, authorization and audit boundary and deny bypass paths.

What the broker does:

  • Authenticates the user against the enterprise IdP (OIDC / SAML), with no alternative path.
  • Issues short-lived, browser-driven sessions — no long-lived session tokens, no client-side credential storage.
  • For the managed-VM tunnel profile, multiplexes per-session reverse tunnels for outbound agent traffic.
  • Audits every session and revokes on demand via an administrative kill switch.

What the broker must satisfy:

  • Single path. No route into the workspace bypasses the broker.
  • SSO-only. No local user database; identity is upstream.
  • OCSF audit. Every session emits OCSF-normalized events to the SIEM.
  • Revocation propagation. The broker-session closure target is within seconds of SSO entitlement revocation or a lifecycle kill. Specify and validate the maximum delay for the selected implementation. Measure denial of new mediated requests separately.

Session brokering and credential mediation are separate responsibilities. The broker governs attachment; the credential mediator supplies provider authorization on an approved request path. Use the credential contract below, including the selected trust boundary and any declared Phase I exception.

Revocation spans execution, broker sessions, delegated authority and downstream credentials. Declare and test each propagation bound, including pending actions, cached credentials and existing connections; stopping execution does not itself revoke downstream authority.

Credential Proxy — Where Tokens Live

The credential mediator sits on the approved egress path and supplies the credential accepted by each target service. For the Phase II target, service credentials remain under enterprise secret-store and trusted-mediator control. Token acquisition and refresh take place outside the agent process. The Phase II integration must authorize governed requests using trusted principal, agent and task context, keep raw credentials out of the agent process, and record their actual storage and exposure boundary. Credential substitution does not by itself establish short-lived delegated authority; provider scope, token lifetime and mediation require separate validation. Select in-guest or external placement according to the threat model.

Inference — A Hard Dependency, Not a Workspace Feature

Inference is a hard dependency for an agent’s model-driven reasoning loop. It is not a feature of Secure Agent Workspace itself; the workspace integrates with it. Model inference and tool execution are distinct operations. Routed inference and explicitly governed local inference remain dependencies outside the logical workspace boundary, even when physically colocated on the same host or cluster.

Two delivery modes:

  • Local inference. A model runs on a GPU assigned to the workspace or an adjacent host service. Keep the inference process outside the agent’s runtime sandbox and restrict access through the selected service and device controls. The agent may call the service but must not inspect or tamper with the inference process. Changes to inference or protected runtime configuration require an operator action or human review; the agent must not make them autonomously. Validate that boundary against the stated threat model; a separate container or namespace alone does not establish protection from guest-root compromise.
  • Routed inference (managed endpoint). A model runs in an approved internal service, external LLM gateway or partner endpoint. The workspace reaches it through the selected credential mediator and inference path, subject to model/data policy and the egress allowlist. Validate the actual credential and protocol boundaries.

GPU acceleration is independent of inference. A workspace may use a GPU for accelerated tools, scientific computing, or vector work without running local inference; a workspace using routed inference may have no GPU. GPU assignment, device exposure, and isolation must be defined and validated for the selected execution profile.