Skip to content

Design

Status: plan on paper. Nothing described here is deployed, and no part of it has run on a GPU, under KVM, or on a real cluster. The pinned versions were checked against upstream sources and by an offline render (make virtual-test); see compatibility.md for the evidence behind every version claim and for what is still unknown. Where this document states a fact about an upstream project, the row ID in brackets (for example [B3]) points to that evidence.

All values and manifests referenced below exist in this repository and are labelled unvalidated on real hardware.

Scope after the owner's decisions of 2026-11-27 (section 10). This document is the design of the Cloud option. The second option, Local on the owner's Mac Mini, is in deployment-options.md, together with the changes the new demo makes to the Cloud GPU budget. The demo itself is now a live photo-editing web application, described in demo.md; it replaces the terminal-driven coding-agent task this document was written around. The parts that describe the harness on the MacBook (sections 3.11 and 5, the demo step in section 4) are kept as the record of that earlier design and are marked where they are superseded. Since the owner's decision that the harness runs in the cluster through its SDK (section 10), section 3.11 leads with the new placement; the request paths in section 5 still start from the MacBook and are to be redrawn when the demo application exists.

Second iteration of the demo (owner decisions of 2026-11-27, section 10). The demo is now a three-act show; all tool calls of the agent go through Agentgateway, which closes the long-open "MCP path" decision; and the stack gains one component, distributed tracing (Jaeger), which the Local option can switch off. This document carries the parts that concern the Cloud deployment: Jaeger (3.4a), the Gateway's second listener and its MCP endpoint (3.5, 3.5a), the install steps (4), the execution path and the traces (5). The show itself is in demo.md. Wherever an older passage says that MCP goes directly to OpenSandbox, it is marked as superseded.

The sandbox runtime is a pluggable choice, and the default is gVisor (owner decisions of 2026-11-27, section 10). Kata Containers is an opt-in (SANDBOX_RUNTIME=kata). Sandbox pods are therefore gVisor containers on cp-0 unless Kata is selected, in which case they are QEMU guests there. The comparison is in sandbox-options.md; the runtimes are in section 3.2.

1. Topology

Two Vultr servers in one region, joined by one Vultr VPC, forming one K3s cluster.

cp-0 gpu-0
Vultr product Bare Metal Cloud GPU (a virtual machine with a passed-through GPU)
Candidate plan vbm-6c-32gb: Xeon E-2286G, 6 cores / 12 threads, 32 GB RAM, 2x 960 GB SSD vcg-l40s-16c-180g-48vram: 16 vCPU, 180 GB RAM, 1200 GB disk, 1x NVIDIA L40S 48 GB
Constraint that drives it Bare metal, so that it exposes KVM for the Kata opt-in [E1, E2]; whether a Vultr VM offers nested virtualization is unknown [E3]. The default runtime, gVisor, would not need it [M11]. Kept on bare metal by owner decision until experiment 2 has run; to be revisited afterwards (section 10) Exactly one L40S 48 GB, the GPU the model plan and experiment 1 are written for
K3s role server (control plane, datastore) and worker agent (worker)
Carries the GPU No Yes
Runs sandbox pods (gVisor by default, Kata if selected) Yes No
Other workloads Monitoring, Agentgateway, OpenSandbox control plane, PowerContext, kagent (full) The two vLLM replicas, the image model, speech to text, the HAMi device plugin
Node labels agentic-infra-lab/node=cp-0, agentic-infra-lab/gvisor=true; with the Kata opt-in also agentic-infra-lab/kata=true agentic-infra-lab/node=gpu-0, gpu=on (HAMi's default device-plugin selector [D10])
Profiles all three minimal, full

Why this split:

  • Sandboxes stay off the GPU node. Whatever the runtime, agent-generated code does not run on the node that holds the GPU.
  • Kata, when selected, goes where KVM is. The GPU instance is a VM; Kata needs VT-x/SVM on the host [E1]. This is now the only reason cp-0 is bare metal: gVisor, the default, runs on an ordinary VM. The owner keeps bare metal until experiment 2 has compared the runtimes, then revisits it (a regular instance would be cheaper).
  • The control plane goes on the cheaper, longer-lived node. The GPU instance is the expensive part and can be destroyed and recreated without losing cluster state. The external-api profile then needs cp-0 only.
  • VKE is not used because it cannot take bare-metal workers (unchanged from the architecture document).

Pods without a node constraint (Agentgateway, the llm-d EPP, monitoring) may land on either node. Nothing in the plan depends on where they land. Pods that do depend on a node are pinned: vLLM, the image model and speech to gpu=on, sandboxes through the RuntimeClass of the selected runtime, and PowerContext to cp-0, the only node that holds its locally built image.

Plans, prices and availability: to be confirmed

Read anonymously from the Vultr public API on 2026-11-26. Prices and availability change and may differ per account; all of this is to be confirmed by the owner before make provision is written against it.

Plan Listed price Availability on 2026-11-26
vcg-l40s-16c-180g-48vram (1x L40S 48 GB) 1.671 USD/h, 1122.91 USD/month Listed in no region [J2]
vcg-a40-24c-120g-48vram (1x A40 48 GB), possible substitute 1.712 USD/h, 1250 USD/month lax, lhr
vcg-a100-12c-120g-80vram (1x A100 80 GB), possible substitute 2.397 USD/h, 1750 USD/month ewr
vbm-6c-32gb (bare metal) 0.253 USD/h, 185 USD/month 17 regions, including lhr, ewr
vbm-4c-32gb (bare metal, E3-1270, 4 cores / 8 threads), cheaper option 0.164 USD/h, 120 USD/month ams, lax, sgp, sjc

The L40S plan not being listed anywhere is the first open decision (section 9). A substitute GPU changes a controlled variable of experiment 1.

Network

  • Both servers attach to one VPC; Vultr documents VPC support for both products [J3]. That the two reach each other well enough for K3s is inferred [J4].
  • K3s uses the VPC interface for node traffic (--node-ip, --flannel-iface); flannel VXLAN (UDP 8472) and the kubelet (TCP 10250) stay on the VPC.
  • Nothing in the cluster is published: no LoadBalancer, no ingress, no NodePort. K3s ServiceLB and Traefik are disabled, and the Gateway's Service is ClusterIP [B13]. The photo-editing demo needs one public HTTPS entry for audience phones; how to provide it is an open decision in demo.md, section 4. Until it is made, this statement stands. What will be published is decided: the Gateway's public listener (port 8080) and nothing else. Model routes and the MCP endpoint are on the other listener and stay inside [N23].
  • The MacBook reaches the Kubernetes API on cp-0, TCP 6443. Assumption: a Vultr firewall group allows 6443 and 22 from the owner's address only. Not confirmed.

2. Node software baseline

Planned. The exact kernel and driver package versions are recorded at first bootstrap.

Item cp-0 gpu-0 Source
OS Ubuntu 24.04 LTS x64 (Vultr OS id 2284) same Vultr public API
Kernel Ubuntu 24.04 stock kernel, with kvm_intel loaded and /dev/kvm present Ubuntu 24.04 stock kernel to be recorded; Kata host requirement is KVM only [E7]
cgroup v2 (unified hierarchy), the Ubuntu 24.04 default same to be confirmed on the node: stat -fc %T /sys/fs/cgroup prints cgroup2fs
Kubernetes K3s v1.37.2+k3s1 = Kubernetes v1.37.2 same [A1]
Container runtime containerd v2.3.7-k3s1, runc v1.4.2, both embedded in K3s same [A1]
NVIDIA driver none r580 branch or newer (at least 580.65.06), installed on the host the vLLM image bundles CUDA 13.0.3 [C9], which needs driver 580+ [C10]
NVIDIA Container Toolkit none v1.20.2, installed on the host pinned; HAMi states no version [D5]
Kata Containers (only with the opt-in SANDBOX_RUNTIME=kata) 4.4.0, installed by kata-deploy not installed [E4]
gVisor (the default sandbox runtime) release-20261123.1: runsc, the containerd shim and gvisor-bin on the host, plus a containerd drop-in not installed [M3]; on these x86_64 nodes inferred [M11]

The driver and toolkit are installed on the host rather than by the NVIDIA GPU Operator: one GPU node does not justify another operator, and HAMi documents the host-managed path [D1].

K3s server flags that matter: --disable=traefik, --disable=servicelb, --disable=gateway-api-crd (K3s bundles Gateway API v1.6.3 CRDs [B6]; we install the same upstream release ourselves so that the K3s and kubeadm paths are identical), --node-ip and --flannel-iface on the VPC, --tls-san for the public address.

full profile only: three Kubernetes feature gates, because Agent Substrate, which kagent requires, signs pod certificates with them (3.10a) [O5, P20]: --kube-apiserver-arg=feature-gates=ClusterTrustBundle=true,ClusterTrustBundleProjection=true,PodCertificateRequest=true, --kube-apiserver-arg=runtime-config=certificates.k8s.io/v1beta1=true, and the same feature-gates value as --kube-controller-manager-arg on the server and as --kubelet-arg on every node. They are set when K3s is installed, so a cluster built for minimal has to be reinstalled or restarted with them to become full. They change the API server for every component. In the local probe the gateway, Jaeger, gVisor and OpenSandbox ran on a K3s started with them [P20]; HAMi, vLLM and llm-d have not [P30].

Runtime classes

RuntimeClass Created by Handler Used by Node
(none: default) - runc everything else both
nvidia K3s (manifests/runtimes.yaml) [D2] nvidia, registered by K3s when nvidia-container-runtime is installed vLLM pods, HAMi device plugin gpu-0
kata-qemu-runtime-rs kata-deploy chart kata-qemu-runtime-rs (QEMU, Rust runtime) OpenSandbox sandbox pods, with the opt-in SANDBOX_RUNTIME=kata cp-0
gvisor components/gvisor/manifests/runtimeclass.yaml runsc, registered by a containerd drop-in placed at bootstrap OpenSandbox sandbox pods (the default) nodes labelled agentic-infra-lab/gvisor=true (cp-0)

kata-qemu-runtime-rs is the chart default since Kata 4.0 and the shim upstream CI runs on K3s; the Go runtime's kata-qemu is deprecated upstream [E4]. The rendered RuntimeClass carries a pod overhead of 250m CPU / 320Mi memory and a node selector on the labels kata-deploy puts on nodes it has installed.

3. Components

Common to every entry: the values file or manifest named is the complete configuration for the minimal profile, and "verified after install" is the planned make verify check, not something that has been run.

3.1 Gateway API and Inference Extension CRDs

Install Official manifests, kubectl apply --server-side
Versions Gateway API v1.6.3 standard-install.yaml; Inference Extension v1.6.2 v1-manifests.yaml (InferencePool, inference.networking.k8s.io/v1)
Why these Agentgateway 1.7.x supports Gateway API 1.4 to 1.6 [B4]; llm-d v1.0.0, its router and Agentgateway v1.7.0 all use Inference Extension v1.6.2 [B1, B2, B3]
Needed by Agentgateway, llm-d
Profiles Gateway API: all. Inference Extension: minimal, full
Verified after install kubectl api-resources --api-group=gateway.networking.k8s.io and --api-group=inference.networking.k8s.io list gateways, httproutes, inferencepools

3.2 Sandbox runtime: gVisor, Kata Containers or runc

Which container runtime sandbox pods get is a choice per deployment, with a default:

SANDBOX_RUNTIME What a sandbox is Needs on the node Steps it adds Status
gvisor A container behind a user-space kernel The gVisor binaries and a containerd drop-in; no KVM gvisor (a RuntimeClass) The default in every profile (owner, 2026-11-27). Probed once on a Mac in OrbStack, arm64 [M3 to M8]; on the x86_64 cloud nodes inferred only [M11]
kata A QEMU guest with its own kernel KVM, so bare metal (Cloud) or nested virtualization (Local, Lima) kata (chart), kata-monitor scraping Opt-in. Kept for experiment 2 and for VM-level sandboxes. Probed once on a Mac under Lima [K6 to K10]
runc An ordinary container on the node's kernel Nothing none Baseline for experiment 2; not for the demo

Each profile lists the three in sandbox_runtimes, default first; make <target> SANDBOX_RUNTIME=<name> selects another. OpenSandbox learns the choice from one of components/opensandbox/runtime-{kata,gvisor,runc}.yaml, layered on its shared values. The virtual test renders every profile for all three [M20].

gVisor (default)

Install No chart. At node preparation: the release tarball release-20261123.1 for the node's architecture, unpacked so that runsc, containerd-shim-runsc-v1 and the gvisor-bin directory are together on K3s's PATH; components/gvisor/node/containerd-runsc.toml as a K3s containerd drop-in; node label agentic-infra-lab/gvisor=true. Then the gvisor step applies the RuntimeClass [M3, M9]
Images None
Dependencies containerd 2.x drop-in directory of K3s. No KVM, no CRDs
Limits and open points OpenSandbox's egress sidecar does not work under it, so egress is closed by a NetworkPolicy instead [M6, M7]; not every system call is implemented, and the demo's image code has not been run under it [M12]; a command sent right after a sandbox is created can fail and must be retried [M8]; nothing was run on x86_64 [M11]. Risks R22 to R25
Resources About 60 MiB of runtime processes per sandbox, observed once [M4]
Verified after install kubectl get runtimeclass gvisor; a test pod with that RuntimeClass reports the kernel release 4.19.0-gvisor

Kata Containers (opt-in)

Install Helm chart kata-deploy 4.4.0, oci://ghcr.io/kata-containers/kata-deploy-charts/kata-deploy, app version 4.4.0
Images quay.io/kata-containers/kata-deploy:4.4.0, quay.io/kata-containers/kata-monitor:4.4.0, ghcr.io/kata-containers/k8s-job-dispatcher:0.3.0, quay.io/kata-containers/kubectl:latest (floating tag from the chart; resolve to a digest at bootstrap)
Namespace kube-system
Values components/kata/values.yaml: k8sDistribution: k3s; node selector agentic-infra-lab/kata=true; only the qemu-runtime-rs shim; monitor.enabled: true
Dependencies KVM on cp-0; containerd 2.3 or newer [A5]. No CRDs
Resources kata-monitor: 200m CPU / 300Mi. Each sandbox pod adds the RuntimeClass overhead: 250m CPU / 320Mi
Verified after install kubectl get runtimeclass kata-qemu-runtime-rs; a test pod with that RuntimeClass on cp-0 reports a kernel release different from the host's (uname -r)

3.3 HAMi

Install Helm chart hami 2.11.0, repo https://project-hami.github.io/HAMi/, app version 2.11.0
Images docker.io/projecthami/hami:v2.11.0, registry.k8s.io/kube-scheduler:v1.37.2, registry.k8s.io/ingress-nginx/kube-webhook-certgen:v1.6.9@sha256:01038e7d...
Namespace kube-system
Values components/hami/values.yaml: devices.nvidia.runtimeClassName: nvidia; deviceListStrategy: envvar; nvidiaDriverRoot: / and toolkit-ready check off (host-managed driver and toolkit); device-plugin Service ClusterIP instead of the default NodePort 31992; kube-scheduler tag pinned to v1.37.2
Dependencies NVIDIA driver and Container Toolkit on gpu-0; node label gpu=on; RuntimeClass nvidia from K3s. No CRDs
Resources Chart sets none
Verified after install Node gpu-0 advertises nvidia.com/gpu (10 with the default deviceSplitCount); a test pod requesting nvidia.com/gpu: 1, nvidia.com/gpumem: 2048 runs nvidia-smi and sees 2048 MiB total

3.4 Monitoring

Install Helm chart kube-prometheus-stack 93.11.1, repo https://prometheus-community.github.io/helm-charts, release name monitoring
App versions Prometheus Operator v0.95.2, Prometheus v3.16.0-distroless, Grafana 13.3.2 (grafana chart 14.6.1), kube-state-metrics v2.20.0, node-exporter v1.13.1 [I1]
Namespace monitoring
Values components/monitoring/values.yaml: etcd, controller-manager, scheduler and kube-proxy scrape jobs off (K3s [A15]); Alertmanager off; retention 24h / 8 GB; monitor selectors opened to all namespaces; 10 Gi volume on local-path; Grafana admin from a Secret created at deploy time
CRDs Brings the Prometheus Operator CRDs (monitoring.coreos.com/v1). Must be installed before Agentgateway, llm-d, vLLM and PowerContext, which create ServiceMonitor/PodMonitor objects
Extra manifest components/monitoring/manifests/scrape-bootstrap-components.yaml: monitors for HAMi and kata-monitor, which are installed before these CRDs exist
Resources Prometheus 250m / 1Gi (limit 3Gi); Grafana 100m / 256Mi (limit 512Mi)
With tracing components/jaeger/grafana-datasource-values.yaml is layered on: Grafana gets Jaeger as a data source (built in, no plugin)
Verified after install Every expected target is up in Prometheus (/api/v1/targets)

3.4a Tracing: Jaeger

A new component, by owner decision of 2026-11-27 (section 10). Why Jaeger and not Grafana Tempo, and why no OpenTelemetry Collector: demo.md, section 10.

Install Helm chart jaeger 4.20.1, repo https://jaegertracing.github.io/helm-charts, release name jaeger, app version 2.23.0 [N25, N26]
Image jaegertracing/jaeger:2.23.0, one image for collector, storage and query
Namespace tracing
Values components/jaeger/values.yaml: Jaeger's own all-in-one configuration cut down to OTLP in (gRPC 4317, HTTP 4318), memory storage bounded at 20000 traces, the query API and interface (16686). Nothing is persisted: a restart loses every trace
Wiring components/jaeger/manifests/tracing-wiring.yaml: an AgentgatewayPolicy that makes the Gateway's proxy export spans to Jaeger and sample every request, except the tap route of the demo's third act at 2% [N33]; and a ConfigMap of environment variables that PowerContext reads if it exists. The llm-d EPP is switched on in its chart values and vLLM by a flag in its manifests (3.6, 3.6b, 3.7)
Who emits traces Agentgateway, the llm-d EPP, vLLM, PowerContext. Not vLLM-Omni, OpenSandbox or the DeepSeek Harness [N40, N41, N44]; so one request is several traces (section 5, risk R26)
Dependencies The namespaces step; the Agentgateway CRDs and the Gateway, for the policy. No CRDs of its own, no storage
Profiles All. Always on in minimal, full and external-api; off by default in local, where TRACING=on adds it (owner decision, section 10)
Resources 100m / 256Mi (limit 1Gi): an assumption. In a local probe, with the local overlay, it used 30 to 48 Mi [N27]
Verified after install GET /api/v3/services on port 16686 lists agentgateway; one request through the Gateway appears as a trace [N28]

3.5 Agentgateway

Install Helm charts agentgateway-crds v1.7.0 then agentgateway v1.7.0, oci://cr.agentgateway.dev/charts/..., app version v1.7.0
Images cr.agentgateway.dev/controller:v1.7.0 (control plane), cr.agentgateway.dev/agentgateway:v1.7.0 (proxy, created by the controller for each Gateway)
Namespace agentgateway-system (controller); the Gateway and its proxy live in inference
Values components/agentgateway/values.yaml: inferenceExtension.enabled: true (default is false) [B9]; Istio RBAC off; monitoring on
Manifest components/agentgateway/manifests/gateway.yaml: Gateway inference-gateway, class agentgateway, and AgentgatewayParameters making its Service ClusterIP [B13]. Two HTTP listeners since the second iteration of the demo: default on port 80, for model traffic and the MCP endpoint, admitting routes of its own namespace; public on port 8080, for the demo application, admitting routes of the demo namespace only [N23]
Dependencies Gateway API CRDs v1.6.3; Inference Extension CRDs v1.6.2 (for InferencePool backends); Prometheus Operator CRDs (for its monitors)
CRDs it brings agentgateway.dev/v1alpha1: AgentgatewayBackend, AgentgatewayModel, AgentgatewayParameters, AgentgatewayPolicy
Resources Controller 100m / 128Mi (chart default). Proxy: chart default, not set here
Verified after install kubectl get gatewayclass agentgateway is Accepted; kubectl get gateway inference-gateway -n inference is Programmed

3.5a Agentgateway as MCP gateway, and the demo's public routes

By owner decision of 2026-11-27 (section 10) every tool call of the agent goes through Agentgateway. The reasoning, the tools and the limits: demo.md, section 3.

Install Two plain manifests, after the Gateway: steps mcp and demo-entry
MCP endpoint components/agentgateway/manifests/mcp.yaml: AgentgatewayBackend tools with three MCP targets over Streamable HTTP (sandbox, image, camera), failureMode: FailOpen; HTTPRoute tools for /mcp on the default listener [N1 to N3]
Authentication AgentgatewayPolicy tools-authn: Agentgateway's API-key check against the Secret mcp-api-keys, created at deploy time. No identity provider [N4]
Authorisation AgentgatewayPolicy tools-authz: a CEL rule per tool. Key role agent may call capture_frame, command_run and edit_image; key role operator may call command_run. Everything else the three servers offer is hidden and refused [N5, N6]
Network NetworkPolicy opensandbox-mcp-from-gateway: the OpenSandbox MCP server accepts connections from the Gateway's proxy pods only. The sandbox NetworkPolicy is not touched by the MCP path [N14]; it has since gained one opening, for sandbox egress (3.5b)
Public routes components/demo/manifests/demo-entry.yaml, namespace demo: HTTPRoutes on the public listener for the demo application; local rate limits of 20 requests a second on /api/tap and 30 a minute on POST /api/jobs [N17, N18]; a NetworkPolicy admitting the Gateway's proxy pods and Prometheus to the application
Not there yet The three MCP servers. The OpenSandbox MCP server has no upstream image [N7] and is to run from the demo application's image; the image target is the demo application; the camera target is the camera tool on a machine on stage, here a placeholder host to be replaced by a tunnel's name at deploy time [N11]. The profiles declare these Services as unbuilt so that the virtual test accepts the references
Probed The local variant of the MCP manifest and the public routes were applied once on K3s v1.37.2 with stand-ins for the missing servers [N6, N8, N9, N18]
Verified after install tools/list on /mcp with the agent key returns three tools, and without a key the Gateway answers 401; /v1/models on the public listener answers 404

3.5b Agentgateway as the sandboxes' egress proxy

By owner decision of 2026-11-27 (section 10; variant V1 of observability-options.md) sandbox HTTP egress goes through Agentgateway, so that a refused request is a gateway decision. Behaviour and staging: demo.md, section 10 (b).

Install One plain manifest, step sandbox-egress, after mcp: components/agentgateway/manifests/sandbox-egress.yaml. The listener itself is in the Gateway manifest of each profile
Listener egress, port 3128, HTTP, on the Gateway inference-gateway; routes from its own namespace only
Routes sandbox-egress-deny: no host name, no backend, answered by the gateway with 403 (a directResponse policy). sandbox-egress-check: host egress-check.invalid, answered with 200, for rehearsal and make verify. No route forwards anything: the demo's sandboxes need no destination. An allowed destination would be one more HTTPRoute naming its host [P10]
HTTPS Policy sandbox-egress-connect: frontend.connect.mode: Route, so a CONNECT request meets the same catch-all and gets 403 instead of the gateway's default 405 [P12]. The API accepts this policy on a Gateway or a port, not on one listener [P13], so it also holds for the other two listeners, where CONNECT now gets 404
How a sandbox uses it The demo application sets http_proxy and https_proxy on every sandbox it creates, to the Service's cluster IP and port 3128 (sandboxes have no DNS)
Enforcement sandbox-network-policy.yaml: sandbox pods may connect to the Gateway's proxy pods on TCP 3128 and to nothing else. Without it the proxy can be bypassed [P15]
What it shows Status 403; agentgateway_requests_total{listener="egress",route="inference/sandbox-egress-deny",status="403",reason="DirectResponse"}; a log line and a span with the host asked for [P11, P16]
What it does not do Tell sandboxes apart by identity (it sees an address); allow HTTPS destinations; see traffic that does not use the proxy
Virtual test Check sandbox-egress: the policy opens exactly the listener's port to exactly the Gateway's pods; the listener has one catch-all refused with a 4xx; any forwarding route names a host
Probed As committed, from a gVisor sandbox created by OpenSandbox, on K3s v1.37.2, arm64 [P10 to P16]
Verified after install From a sandbox: http://egress-check.invalid/ returns 200; any other URL returns 403; a request with --noproxy '*' fails

3.6 vLLM

Install Plain manifest in this repository, shaped after the llm-d v1.0.0 model-server recipe (same labels, port, probes and tool-call flags) [C5]
Image docker.io/vllm/vllm-openai:v0.31.0 [C1]
Namespace inference
Manifest components/vllm/manifests/vllm.yaml: Deployment qwen3-4b-decode, 2 replicas, strategy: Recreate, runtimeClassName: nvidia, node selector gpu=on, plus a PodMonitor
Model Qwen/Qwen3-4B at revision 1cfa9a7208912126459214e8b04321603b3df60c, BF16 as published; not gated, so no Hugging Face token. Weights (about 8 GB) are cached on gpu-0 in a hostPath shared by both replicas
Flags --max-model-len=8192, --tensor-parallel-size=1, --gpu-memory-utilization=0.90, --enable-auto-tool-choice, --tool-call-parser=hermes, --reasoning-parser=qwen3 [C4, C5]; --otlp-traces-endpoint pointing at Jaeger, for tracing [N38]
Dependencies HAMi (resources), RuntimeClass nvidia, Prometheus Operator CRDs
Resources Per replica: 4 CPU / 16Gi requested, 24Gi memory limit, nvidia.com/gpu: 1, nvidia.com/gpumem: 11264 (MiB, 11 GiB) [D8]
Verified after install Both pods Ready; GET /v1/models on each lists Qwen/Qwen3-4B; hami_vgpu_memory_limit_bytes shows 11 GiB for each

3.6a Image-editing model (vLLM-Omni)

Install Plain manifest in this repository, shaped after the llm-d v1.0.0 omni-serving recipe for image-to-image (same command and flags) [L4]
Image docker.io/vllm/vllm-omni:v0.30.0, the tag that recipe ships [L4, L12]
Namespace inference
Manifest components/vllm-omni/manifests/flux2-klein.yaml: Deployment flux2-klein-edit, 1 replica, strategy: Recreate, runtimeClassName: nvidia, node selector gpu=on; Service; HTTPRoute image-edit (exact path /v1/images/edits, which wins over the llm-d route's catch-all); PodMonitor
Model black-forest-labs/FLUX.2-klein-4B, Apache-2.0, not gated, revision e7b7dc27f91deacad38e78976d1f2b499d76a294 pinned by pre-pulling it into the node cache (about 15 GiB) [L5, L6, L7]
Routing One replica, so no InferencePool and no EPP for it
Dependencies HAMi, RuntimeClass nvidia, the Gateway, Prometheus Operator CRDs, the vllm ServiceAccount
Resources 3 CPU / 24Gi requested, 40Gi memory limit, nvidia.com/gpu: 1, nvidia.com/gpumem: 18432 (18 GiB)
Verified after install Pod Ready; an edit of a test image through the Gateway returns an image; hami_vgpu_memory_limit_bytes shows 18 GiB

Untested combination: the upstream recipe serves Qwen-Image-Edit on a whole H100; this model, a HAMi slice and an L40S are not covered by any source [L9, L14].

3.6b Speech to text (Whisper on vLLM)

Install Plain manifest in this repository
Image docker.io/vllm/vllm-openai:v0.31.0, the same image as the LLM replicas
Namespace inference
Manifest components/vllm/manifests/whisper.yaml: Deployment whisper-turbo, 1 replica; Service; HTTPRoute speech (exact path /v1/audio/transcriptions); PodMonitor. The same tracing flag as the LLM replicas [N38]
Model openai/whisper-large-v3-turbo, MIT, revision 41f01f3fe87f28c78e2fbf8b568835947dd65ed9 [L3, L13]
Resources 1 CPU / 4Gi requested, 8Gi memory limit, nvidia.com/gpu: 1, nvidia.com/gpumem: 3072 (3 GiB)
Verified after install Pod Ready; a transcription of a test clip through the Gateway returns text

Unknown: whether the vllm-openai image carries the audio dependencies Whisper needs [L28], and its memory behaviour inside 3 GiB [L23].

3.7 llm-d

Install Helm chart llm-d-router-gateway v1.0.0, oci://ghcr.io/llm-d/charts/llm-d-router-gateway, release qwen3-4b. This is llm-d's "with Kubernetes Gateway API" mode; only the EPP and basic routing are used
Image ghcr.io/llm-d/llm-d-router-endpoint-picker:v1.0.0
Namespace inference
Values components/llm-d/values.yaml: provider.name: agentgateway [B12]; httpRoute.create: true towards inference-gateway; InferencePool selecting pods labelled llm-d.ai/guide: ail-minimal on port 8000; the optimized-baseline plugin set (prefix-cache-aware); EPP resources reduced from the upstream 4 CPU / 8Gi; router.tracing on, exporting to Jaeger and sampling every request that arrives with a sampled parent [N36]
Creates InferencePool qwen3-4b (inference.networking.k8s.io/v1), HTTPRoute qwen3-4b (gateway.networking.k8s.io/v1), EPP Deployment and Service, ServiceMonitor [B7, B8]
Dependencies Both CRD sets; the Gateway from 3.5; Prometheus Operator CRDs
Resources EPP 500m / 1Gi (limit 2Gi): a lab-sized assumption
Verified after install HTTPRoute Accepted with ResolvedRefs; a chat completion through the Gateway returns 200; llm_d_epp_scheduler_attempts_total increases

3.8 OpenSandbox

Install Helm umbrella chart opensandbox 1.2.1 from the repository at tag release-1.2.1 (manifests/charts/opensandbox); upstream does not publish it to a chart repository [F3]
Images docker.io/opensandbox/{server,controller,execd,egress,image-committer}:release-1.2.1, overriding the chart's Aliyun mirror defaults with the names in the upstream release BOM [F1]
Namespaces opensandbox-system (server, controller); opensandbox (sandbox pods)
Values components/opensandbox/values.yaml: API key from a Secret created at deploy time; [secure_runtime] type = "kata", k8s_runtime_class = "kata-qemu-runtime-rs", so every sandbox pod is a Kata pod [E8, E9]; one of runtime-kata.yaml, runtime-gvisor.yaml, runtime-runc.yaml carries the server config for the selected sandbox runtime (section 3.2); ingress gateway, node agent and fast-sandbox off; the chart does not create opensandbox-system (the namespaces step does) [K11]
CRDs it brings sandbox.opensandbox.io/v1alpha1 (and the sandbox.fast.io CRDs, unused)
Dependencies The RuntimeClass of the selected sandbox runtime (none for runc); the namespaces opensandbox-system and opensandbox from the namespaces step
Network sandbox-network-policy.yaml: sandbox pods accept connections only from opensandbox-system and may connect only to the Gateway's egress listener (3.5b), whatever the runtime. No DNS. Enforced by K3s's built-in NetworkPolicy controller; seen working with gVisor in the probes [M7, P14, P15]. Was: no egress at all
MCP server opensandbox-mcp==1.2.1, as a Deployment in opensandbox-system speaking Streamable HTTP, behind Agentgateway (3.5a). Not in any profile yet: upstream publishes no image for it [N7]. Was: a stdio process beside the harness on the MacBook
SDK opensandbox==1.2.1, used by the demo application to create, fill and delete sandboxes [F1]
Resources Server 250m / 512Mi (limit 1 CPU / 2Gi), reduced from the chart's 1 CPU / 4Gi; controller 10m / 64Mi (chart default)
Verified after install GET /health on the server; create a sandbox, run uname -r in it, delete it; the pod had runtimeClassName: kata-qemu-runtime-rs and ran on cp-0

Kubernetes 1.37 is outside the range OpenSandbox 1.2.1 declares (maximum v1.34) [A11]. The charts render and validate for 1.37, but that says nothing about the controller at runtime. This is gap G1. The owner has decided to stay on 1.37 and test it on a real cluster (section 10); it remains unknown until then and is a fallback trigger (section 8).

3.9 PowerContext and seekdb

Install Plain manifest in this repository. The upstream Helm chart (0.1.0) supports external OceanBase only and says embedded seekdb is unsupported by it [G3]
Image powercontext-server:1.6.0-seekdb, not published anywhere: built on cp-0 at bootstrap from docker/Dockerfile at tag powercontext-v1.6.0 with the seekdb extra added, then imported into K3s containerd (imagePullPolicy: Never) [G5]
Database seekdb embedded in the PowerContext process (pylibseekdb 1.4.1.post2 [G1, G2]); data on a 10 Gi local-path volume. No separate database pod
Namespace powercontext
Manifest components/powercontext/manifests/powercontext.yaml: StatefulSet with one replica (embedded seekdb is single-process [G4]), node selector agentic-infra-lab/node=cp-0 (where the image is), DATABASE_KIND=seekdb, access mode enforced with a bearer token from a Secret created at deploy time, Service on 8000, ServiceMonitor with bearer auth [G12]; environment from an optional ConfigMap tracing-env, which exists only when tracing is on [N42, N43]
Dependencies Prometheus Operator CRDs; local-path storage (K3s default)
MacBook side The PowerContext DeepSeek Harness plugin, installed from a checkout of the same tag (powercontext setup dsh --source ...) because it is not on npm [G9]
Resources 500m / 2Gi (limit 6Gi): an assumption; seekdb's memory use in this mode is not known
Verified after install GET /health/ready returns ready; write a memory and read it back; /pc doctor in a harness session

Open: which generation and embedding models PowerContext uses [G13], and whether the custom image build is acceptable (section 9).

3.10 kagent (full profile only)

Install Helm charts kagent-crds 1.0.1 then kagent 1.0.1, oci://ghcr.io/kagent-dev/kagent/helm/..., with Agent Substrate between them (3.10a)
Images ghcr.io/kagent-dev/kagent/controller:1.0.1, ghcr.io/kagent-dev/kagent/ui:1.0.1, ghcr.io/kagent-dev/kagent/tools:0.3.0; for its worker pool ghcr.io/kagent-dev/substrate/ateworker-gvisor:v1.0.0
Namespace kagent, labelled ate.dev/api-access=true so that Substrate admits its API calls [P22]
Values components/kagent/values.yaml: default provider OpenAI pointed at the in-cluster gateway (openAI.baseUrl), model Qwen/Qwen3-4B [H1, H2]; and the Substrate settings kagent install writes (API endpoint, router URL, client certificates, one worker pool, the default Harnesses) [P22]
Model-provider requirement An OpenAI-compatible endpoint and an API-key Secret (a placeholder; vLLM does not check it)
Dependencies Agent Substrate v1.0.0 [O12] (3.10a); PostgreSQL [H3], one instance shared with Substrate (3.10a); the inference path
Resources Chart defaults. With its database and one worker pod: 768 Mi of memory requests, 191 Mi in use idle in the probe [P25]
Probed kagent install (CLI 1.0.1) with its own defaults, next to this lab's gateway, Jaeger and OpenSandbox: controller, UI, tools, database and one worker pod Running; three default Harnesses created [P23]. Not run: any agent, this lab's provider values, the model path [P29]
Verified after install Controller and UI Ready; the default ModelConfig is accepted; the worker pool reports ready

3.10a Agent Substrate (full profile only, as kagent's dependency)

By owner decision of 2026-11-27 (section 10): kagent 1.0.1 requires Agent Substrate, so the full profile installs it. It is there only for kagent. OpenSandbox stays the sandbox manager on the demo path in every profile, and nothing of the demo touches Substrate. What Substrate is: observability-options.md, section 2.

Which Substrate kagent-dev/substrate v1.0.0, kagent's fork of agent-substrate/substrate (decided by the owner on 2026-11-28). This is what kagent 1.0.1 installs: it states "Kagent requires Substrate v1.0.0" and its installer pulls four charts at 1.0.0 from the fork [O12, P21]. How it differs from upstream, as far as was looked: upstream is at v1.0.1, publishes no Helm chart and is installed by ate-setup, a tool built with Go from a checkout [O7]; the fork publishes charts and images under ghcr.io/kagent-dev/substrate. The source of the two was not compared. Whether kagent 1.0.1 works on upstream v1.0.1 is unknown [P31]
Install Four Helm charts from oci://ghcr.io/kagent-dev/substrate/helm/, in the order kagent install uses: substrate-crds, substrate-podcert (namespace podcertificate-controller-system), substrate-atelet (the node agent, a DaemonSet), substrate; all 1.0.0; namespace ate-system [P21]. Profile steps of the same names
What no chart does, and who does it Create the certificate authorities, the PostgreSQL instance with its logins and schemas, and the Secrets (connection strings, object-store credentials). kagent install does them, and then installs the six Helm releases. The full profile therefore installs Substrate and kagent with the released kagent CLI: hack/deploy-kagent.sh (make deploy-kagent PROFILE=full), with the configuration components/kagent/install-config.yaml, which hands the CLI this repository's values files. The CLI is fetched into .out/bin at a pinned version and checksum; nothing is installed system-wide. The script first checks the feature gates and the GPU node's taint. Run once against a throwaway local K3s [Q5]; never on the cloud target
Values components/agent-substrate/: what kagent install --dry-run writes for its releases, plus traces to the lab's Jaeger and Substrate's own metrics and logs export switched off. The virtual test holds them equal to what the CLI would apply [Q8]; applied once in a probe, where the traces arrived [Q5, Q7]
Kubernetes prerequisites Feature gates ClusterTrustBundle, ClusterTrustBundleProjection, PodCertificateRequest and the API certificates.k8s.io/v1beta1, on the API server, controller manager and kubelet (section 2) [O5, P20]
PostgreSQL One instance for both, in namespace kagent: the development database kagent install deploys (postgres:18-alpine, 256 Mi requested, a 500 Mi volume). kagent and Substrate use separate logins, roles and schemas (kagent, substrate) in it and authenticate with pod certificates. It is kagent's development database: upstream says it "is not intended for production" [P24], and the lab uses it as that, for an optional module. It is the lab's only PostgreSQL; nothing else uses it
Object store RustFS, bundled by the substrate chart (256 Mi requested, a 1 Gi volume), for actor snapshots [P21]
Sandbox runtime Substrate's worker pod runs gVisor from its own image. It does not use the node's runsc or the gvisor RuntimeClass, which stay OpenSandbox's [P26]
Its own gateways Two more Agentgateway v1.7.0 proxies (router and egress), run standalone from a config file inside ate-system, not by this lab's controller and not on the demo's path [O11, P23]
Resources Memory requests: 1536 Mi for Substrate, 2304 Mi with kagent, its database and one worker pod. In use, idle: about 360 Mi and 550 Mi. No GPU. On cp-0 (32 GB) [P25]
Probed On K3s v1.37.2 with the feature gates, arm64, next to this lab's gateway, Jaeger, gVisor and OpenSandbox: all pods Running; an OpenSandbox gVisor sandbox kept working, with its egress still going through the lab's gateway [P23, P26]
Verified after install atelet ready on every node; the API server and router ready; kagent's worker pool ready

What installing it touches, said plainly (the decision asked for conflicts to be reported, not worked around):

Finding Status
Feature gates Cluster-wide, set at K3s start, three gates and a beta API that are off by default. No conflict seen with the gateway, Jaeger, gVisor and OpenSandbox. Not run with HAMi, vLLM, llm-d or Kata Verified by local probe for the first four [P20]; Unknown for the rest [P30]
Two sandbox systems on one node No collision seen: different namespaces, different CRD groups for what is in use, and Substrate does not use the gvisor RuntimeClass. Both ran gVisor workloads at once Verified by local probe, one sandbox and one idle worker [P26]
The node agent on the GPU node Decided by the owner on 2026-11-28: control node only, never on the GPU node. The chart substrate-atelet 1.0.0 offers no control for it: its DaemonSet has no nodeSelector or affinity and no value for either, and its tolerations are fixed in the template [Q1]. So the control is on the node: in full, gpu-0 carries the taint nvidia.com/gpu=present:NoSchedule, set at bootstrap; the node agent does not tolerate it and is not scheduled there; the workloads that belong on gpu-0 (the two LLM replicas, the image model, speech, HAMi's device plugin) tolerate it [Q2 to Q4]. The virtual test checks both halves from the rendered manifests, and the deploy script refuses to install if a GPU node lacks the taint. What neither can check is that the taint is on the real node Verified by local probe on one node [Q3]; Verified by dry-run [Q4]; on the two-node cloud cluster, with HAMi, Unknown [Q11]
A CRD group in common OpenSandbox's chart installs sandbox.fast.io CRDs it does not use (3.8). Substrate's CRDs are in ate.dev. No overlap was found in the rendered charts Verified by dry-run [P28]
A second tracing and metrics stack Avoided: the values send traces to the lab's Jaeger and switch the other signals off. Upstream's own installer in its local mode installs a Collector, Jaeger and Prometheus of its own; the fork's charts do not Verified by dry-run for the values [P28]; an upstream install sent traces to the lab's Jaeger in the probe [P27]
"One layer, one project" Not broken for the demo path. But the full profile now holds two projects that manage sandboxes, one of them only because kagent brings it. The README says so -
What the taint also does In full, every pod without the toleration stays off gpu-0: Agentgateway, the EPP, monitoring (except its node exporter, which tolerates everything), kagent, Substrate. In minimal they may land on either node (section 1). cp-0 has the room; the EPP being a network hop away from the replicas is the same as when the scheduler happens to place it there -
Leftovers between installs In the probe a first, upstream install left a cluster-scoped ValidatingAdmissionPolicy behind after its own delete command, and the fork's chart then refused to install until it was removed. Only an issue when switching between the two Verified by local probe [P27]

3.11 DeepSeek Harness (in the cluster, through its SDK)

Decided by the owner on 2026-11-27 (section 10): the harness is the agent loop of the demo, embedded through its SDK and running in the cluster. Details and caveats: demo.md, section 2.

Install Python package deepseek-harness-sdk==0.2.2rc2, a dependency of the demo application. It pulls deepseek-harness-runtime-bin==0.2.2rc2, which carries the dsh runtime for Linux x64 and arm64 [L30]. No chart, no image of its own
Where it runs As a child process of the demo application, in that application's pod (not yet in any profile). The SDK starts dsh in its SDK profile and talks to it over stdio JSON-RPC [L16]. One runtime process per job, started with a generated profile patch and closed when the job ends, because that is how each job gets its own trace context [P3]. About 1 s to start and 0.55 GiB while it runs, in the probe [P5]
Model Agentgateway, http://inference-gateway.inference.svc.cluster.local/v1, OpenAI-compatible [G10]
Tools One MCP server: Agentgateway's /mcp endpoint, with a static key in a header [N15]. Behind it, three tools: the stage camera, the sandbox, image editing (3.5a). Was: two MCP servers reached directly. Intended: no shell or file tools of its own; the SDK's minimal profile includes local execution, and whether it can be removed is unknown [L33]
Tracing The harness emits no spans [N44]. The demo application gives each job's runtime a static traceparent header for the model provider and for the MCP server; the gateway then puts the job's model and tool calls into the job's trace [P1, P2]
Memory The PowerContext plugin, installed into the harness home on the pod's volume [G9]
Settings that matter Session-log upload to DeepSeek off [L25]; a harness home that is not shared with anything else
Verified after install The runtime starts; one instruction produces the expected two tool calls; a follow-up in the same session gets its context from PowerContext

Version. By owner decision of 2026-11-27 (section 10) the layer is pinned to what is in the request path: the SDK 0.2.2rc2 and its runtime. The earlier pin was the CLI 0.2.2-rc.1, chosen because the PowerContext plugin was accepted against it [G8]; no SDK exists for that release. The pinned runtime is therefore not the release the plugin was accepted against. That stays Unknown until run [L17] and is risk R19; the other caveats are R18, R20 and R21.

The earlier design, kept as the record of what was planned before the demo changed: the harness ran on the developer's MacBook, not in the cluster. @deepseek-ai/dsh@0.2.2-rc.1 (needs Node 24.9 or newer), configured with a custom model API of protocol openai-completions whose base URL is the port-forwarded gateway [G10], the OpenSandbox MCP server over stdio [F4], and the PowerContext plugin [G8].

4. Install order

An arrow means "must exist before". The order is enforced by the virtual test: a step that renders a custom resource before the step that installs its CRD fails, and so does a step that uses a namespace no earlier step created.

Namespaces come first, and no step relies on helm --create-namespace. One manifest (components/namespaces/manifests/namespaces.yaml) creates monitoring, agentgateway-system, inference, opensandbox-system, opensandbox and powercontext; full adds kagent. Two reasons, both found in the local probe [K11]:

  • Secrets that are not in this repository (Grafana admin, OpenSandbox API key, PowerContext token, provider keys) are created at deploy time before the charts that read them, so their namespaces must already exist.
  • OpenSandbox creates sandbox pods in opensandbox, which no chart creates. And its chart would create opensandbox-system itself and cannot adopt an existing one, so base.fastSandbox.namespaces.createSystem is set to false.

The earlier version of this plan had neither; hand-written manifests in inference and powercontext would also have been applied into namespaces that did not exist yet.

flowchart TD
  subgraph provision
    TF[Vultr VPC, firewall, cp-0, gpu-0]
  end
  subgraph bootstrap
    NODE[Node prep: KVM check on cp-0; NVIDIA driver + toolkit on gpu-0]
    K3S[K3s server on cp-0, agent on gpu-0, node labels]
    NS[Namespaces]
    GWAPI[Gateway API CRDs v1.6.3]
    GAIE[Inference Extension CRDs v1.6.2]
    KATA[Sandbox runtime: the gVisor RuntimeClass by default; kata-deploy 4.4.0 for the opt-in; nothing for runc]
    HAMI[HAMi 2.11.0]
  end
  subgraph deploy
    MON[kube-prometheus-stack 93.11.1]
    SCRAPE[Monitors for HAMi and kata-monitor]
    AGWCRD[agentgateway-crds v1.7.0]
    AGW[agentgateway v1.7.0]
    GW[Gateway inference-gateway, two listeners]
    JG[Jaeger 2.23.0]
    TRW[Tracing wiring: gateway policy, PowerContext ConfigMap]
    MCP[MCP endpoint: backend, route, key and tool policies]
    DEMO[Demo routes and rate limits]
    VLLM[vLLM x2]
    IMG[Image model: vLLM-Omni, FLUX.2 klein]
    STT[Speech: Whisper on vLLM]
    LLMD[llm-d router: EPP, InferencePool, HTTPRoute]
    NETPOL[Sandbox NetworkPolicy]
    OSB[OpenSandbox 1.2.1]
    PC[PowerContext + embedded seekdb]
    SUB[Agent Substrate 1.0.0: crds, podcert, atelet, substrate]
    KAGENT[kagent-crds, kagent 1.0.1]
  end
  TF --> NODE --> K3S
  K3S --> NS
  K3S --> GWAPI & GAIE & KATA & HAMI
  NS --> MON --> SCRAPE
  NS --> AGWCRD & GW & VLLM & OSB & PC & KAGENT
  KATA --> SCRAPE
  HAMI --> SCRAPE
  GWAPI --> AGWCRD --> AGW
  GAIE --> AGW
  MON --> AGW --> GW
  NS --> JG
  GW --> TRW
  JG --> TRW
  GW --> MCP & DEMO
  TRW -.ConfigMap.-> PC
  JG -.OTLP endpoint.-> VLLM & STT & LLMD
  HAMI --> VLLM & IMG & STT
  GW --> IMG & STT
  VLLM -.ServiceAccount.-> IMG & STT
  MON --> VLLM
  GW --> LLMD
  GAIE --> LLMD
  MON --> LLMD
  VLLM -.pods selected by InferencePool.-> LLMD
  KATA --> OSB
  NS --> NETPOL --> OSB
  MON --> PC
  LLMD --> KAGENT
  NS --> SUB --> KAGENT
  JG -.OTLP endpoint.-> SUB
  GW --> EGR[sandbox-egress]
  EGR -.proxy port.-> NETPOL

Steps, Makefile targets and profiles

The step IDs are the ones in profiles/<profile>/profile.yaml.

# Step make target external-api minimal full
1 Terraform: VPC, firewall group, cp-0 provision yes yes yes
2 Terraform: gpu-0 provision no yes yes
3 Node prep on cp-0 (gVisor binaries and containerd drop-in; KVM check only for the kata opt-in) bootstrap yes yes yes
4 Node prep on gpu-0 (driver, toolkit) bootstrap no yes yes, and the taint nvidia.com/gpu=present:NoSchedule on gpu-0 (3.10a)
5 K3s server, agent, node labels, kubeconfig to the MacBook bootstrap server only yes yes, with the three feature gates of section 2
6 namespaces: every namespace the profile uses (full adds kagent, ate-system and podcertificate-controller-system) bootstrap yes yes yes
7 gateway-api-crds bootstrap yes yes yes
8 inference-extension-crds bootstrap no yes yes
9 gvisor (the default: its RuntimeClass); or kata with SANDBOX_RUNTIME=kata; nothing for runc bootstrap yes yes yes
10 hami bootstrap no yes yes
11 monitoring deploy yes yes yes
12 scrape-bootstrap deploy nothing by default; kata-monitor with the kata opt-in HAMi; kata-monitor only with the kata opt-in as minimal
13 agentgateway-crds, agentgateway deploy yes, Inference Extension support off yes yes
14 gateway deploy Gateway plus an AgentgatewayModel for the external provider yes yes
14a tracing (Jaeger), tracing-wiring deploy yes yes yes
14b mcp (the Gateway's MCP endpoint), sandbox-egress (the routes of the egress listener), demo-entry (public routes, rate limits), demo-limits (the demo application's queue limits) deploy yes yes yes
15 vllm deploy no yes yes
16 image-model (FLUX.2 [klein] 4B on vLLM-Omni) deploy no yes yes
17 speech (Whisper on vLLM) deploy no yes yes
18 llm-d deploy no yes yes
19 sandbox-network-policy deploy yes yes yes
20 opensandbox deploy yes yes yes
21 powercontext (image build and import, then the manifest) deploy yes yes yes
22 kagent-crds, substrate-crds, substrate-podcert, substrate-atelet, substrate, kagent (3.10a): one run of kagent install, which also creates the certificate authorities, the shared PostgreSQL and the Secrets deploy (deploy-kagent) no no yes
23 Per-layer health checks ("verified after install" in section 3) verify yes yes yes
24 The demo. Was: the five-step coding-agent task, replaced by the live photo-editing demo (demo.md) demo yes yes yes
25 Experiments benchmark 2 and 3 only (no GPU) all three, at the profile's scope all three
26 terraform destroy destroy yes yes yes

make virtual-test is separate from this chain: it needs no servers and checks the steps from namespaces to kagent on paper for these three profiles, and the corresponding steps of the local profile (deployment-options.md, section 8).

Step 22 is the one step of deploy that is written: make deploy-kagent PROFILE=full runs hack/deploy-kagent.sh, which installs those six releases with kagent install. The virtual test renders the same six charts with the same values and compares them with the CLI's own dry-run (section 7, item 13).

Not yet in any profile: the two pieces of first-party code, the demo application (which also provides the image the OpenSandbox MCP server runs from) and the camera tool, which runs outside the cluster. The steps mcp and demo-entry already carry the Gateway's side of them. The image-editing model and speech to text were added to minimal and full with the GPU budget decision of 2026-11-27 (section 6); Jaeger, the MCP endpoint and the public routes with the second iteration of the demo the same day.

5. Request paths

The inference, execution and context paths below start at the harness on the MacBook. That starting point belongs to the earlier, terminal-driven demo and is superseded: in the photo-editing demo the requests start at a phone and reach the cluster through a public entry, and the hops inside the cluster are in demo.md, section 3. Everything after the first hop (gateway, EPP, vLLM, OpenSandbox, Kata, PowerContext, scraping) is unchanged. Port-forward remains the path for the operator's own access.

"pf" is a kubectl port-forward from the MacBook. Port-forward remains an assumption, as recorded in the architecture document: it is not confirmed by the owner and not tested, in particular for long streaming responses and for several concurrent agents. The local ports are examples.

Inference

DeepSeek Harness (MacBook)
  -> http://localhost:8080/v1            HTTP, OpenAI-compatible; pf to svc/inference-gateway.inference:80
  -> Agentgateway proxy pod              HTTP :80 (Gateway listener)
       -> llm-d EPP                      gRPC ext-proc, svc/qwen3-4b-epp.inference:9002: "which replica?"
  -> vLLM replica chosen by the EPP      HTTP, pod IP :8000
  -> GPU slice                           HAMi quota, 11 GiB per replica

The Gateway routes by an HTTPRoute whose backend is the InferencePool; the pool names the EPP as its endpoint picker on port 9002 and selects the vLLM pods on port 8000. The EPP reads each replica's /metrics on port 8000 to score them [C3].

Image edits and transcriptions enter at the same Gateway and go straight to their one pod: POST /v1/images/edits to svc/flux2-klein-edit:8000 (18 GiB slice) and POST /v1/audio/transcriptions to svc/whisper-turbo:8000 (3 GiB slice), each by an exact-path HTTPRoute, without the EPP.

In external-api the path ends at Agentgateway, which calls the external provider over HTTPS using a key held in a Secret.

Execution

Since the owner's decision of 2026-11-27 the execution path is this one; the path below it is the earlier design and is kept as its record.

DeepSeek Harness (demo application's pod)
  -> http://inference-gateway.inference.svc.cluster.local/mcp
                                         MCP over Streamable HTTP + API key (role "agent")
  -> Agentgateway proxy pod              authenticates the key, authorises the tool, emits a span
  -> opensandbox-mcp.opensandbox-system:8000
                                         MCP over Streamable HTTP; admits the proxy pods only
  -> OpenSandbox lifecycle server        HTTP + API key; proxies the command to the sandbox
  -> sandbox pod on cp-0                 runtimeClassName gvisor

and out of the sandbox, the only way there is:

sandbox pod (http_proxy, https_proxy = the gateway Service's address, port 3128)
  -> Agentgateway proxy pod, listener `egress`
                                         answers 403 itself for every host that no route names
                                         (the demo: every host); counts, logs and traces it
anything else from the sandbox           rejected by the NetworkPolicy

The other two tools take the same first two hops and then go to the demo application (edit_image) or out to the camera tool on stage (capture_frame). Creating and deleting sandboxes is not a tool call: the demo application does it through the OpenSandbox SDK, straight to the lifecycle server.

The earlier design, superseded:

DeepSeek Harness (MacBook)
  -> opensandbox-mcp (MacBook)           MCP over stdio
  -> http://localhost:8090               HTTP + API key; pf to svc/opensandbox-server.opensandbox-system:80
  -> OpenSandbox lifecycle server        creates a BatchSandbox (sandbox.opensandbox.io/v1alpha1)
  -> OpenSandbox controller              creates the pod in namespace opensandbox
  -> sandbox pod on cp-0                 runtimeClassName gvisor: a container behind a user-space kernel
                                         (with SANDBOX_RUNTIME=kata: kata-qemu-runtime-rs, a QEMU guest under KVM)

Commands and file operations go the same way, through the lifecycle server's proxy (--use-server-proxy), because only that Service is port-forwarded. Upstream has put the server-proxied data path in maintenance mode and recommends its ingress gateway [F6]; the port execd listens on inside the pod was not looked up. In that earlier design MCP traffic did not go through Agentgateway; it does now (above, and 3.5a).

Context

DeepSeek Harness (MacBook), PowerContext plugin
  -> http://localhost:8000               HTTP + bearer token; pf to svc/powercontext.powercontext:8000
  -> PowerContext                        single process
  -> seekdb                              in-process library; files under /data/seekdb on the pod's volume

There is no network hop between PowerContext and seekdb.

Kubernetes API

kubectl (MacBook) -> https://<cp-0 public address>:6443   TLS, client certificate from the K3s kubeconfig

Metrics scraping

All pulls originate from the Prometheus pod in namespace monitoring.

Target Endpoint Discovered by
vLLM replicas pod :8000/metrics PodMonitor in components/vllm/manifests/vllm.yaml
Image model, speech pod :8000/metrics PodMonitor in their manifests. Which metrics vLLM-Omni exports for a diffusion model was not verified
llm-d EPP svc/qwen3-4b-epp:9090/metrics ServiceMonitor from the llm-d chart
Agentgateway controller svc/agentgateway.agentgateway-system:9092/metrics ServiceMonitor from the Agentgateway chart
Agentgateway proxy proxy pod metrics port (15020 according to the chart's comments) PodMonitor from the Agentgateway chart
HAMi scheduler svc/hami-scheduler.kube-system:31993 to container 9395 ServiceMonitor in scrape-bootstrap-components.yaml
HAMi device plugin (vGPU monitor) svc/hami-device-plugin-monitor.kube-system:31992 to container 9394 same
kata-monitor pod :8090/metrics on cp-0 PodMonitor in the same file
PowerContext svc/powercontext:8000/metrics, bearer token ServiceMonitor in the PowerContext manifest
kubelet and cAdvisor, node-exporter, kube-state-metrics chart defaults kube-prometheus-stack
OpenSandbox not scraped: it exports OTLP only, and no collector is planned yet [I4]. Jaeger receives traces only -
Jaeger not scraped in this plan; it exposes its own metrics on port 8888 -

The Agentgateway proxy is scraped every 5 s instead of the chart's 15 s, because the demo's rate-limit counter reads it [N19].

Grafana is reached by port-forward to its ClusterIP Service.

Traces

Spans are pushed, not pulled, over OTLP to jaeger.tracing.svc.cluster.local: gRPC on 4317 from the Agentgateway proxy, the llm-d EPP and the vLLM pods; HTTP on 4318 from PowerContext.

Hop Span from In one trace with the hop before it
Phone to demo application Agentgateway (server span, public listener) Starts the trace
Demo application to speech or image model Agentgateway; vLLM for speech; nothing from vLLM-Omni [N40] Yes, if the application passes the context on (to be written)
Harness to model Agentgateway, the EPP, vLLM Yes. The demo application starts each job's harness runtime with the job's traceparent as a static header; the gateway continues it [P1, P2]. Within the model call the three join (the EPP inferred [N37])
Harness to a tool Agentgateway (tools/call, with the tool's name and duration [N34]) Yes, the same way [P1]. Nothing from OpenSandbox [N41]
Sandbox to the outside Agentgateway (server span, egress listener, status 403) Yes when the command's request carries the context, as the scripted drill does [P16]; otherwise a trace of its own
Harness to PowerContext PowerContext, if it traces [N43] No: the plugin is not known to pass a context on

So one audience request is one trace, with the harness's turns flat under one span of the demo application (demo.md, section 10). It costs one harness runtime per job (risk R26). Before the owner's decision of 2026-11-27 each model turn and tool call was a trace of its own, lined up by time.

6. GPU memory budget

A paper budget, not a measurement. No number below has been observed on a GPU. The split was decided by the owner on 2026-11-27 (section 10) and replaces the earlier plan of two replicas at 20 GiB with the rest of the card unallocated; the reasoning and the alternatives are in deployment-options.md, section 7.

The quotas

One L40S, 48 GB nominal. What NVML reports as usable has not been read; if "48 GB" is decimal it is about 44.7 GiB, if binary 48 GiB.

Tenant Pods HAMi quota (nvidia.com/gpumem) Manifest
Small model, Qwen3-4B on vLLM 2 11 GiB each (11264 MiB) vllm.yaml
Image editing, FLUX.2 [klein] 4B on vLLM-Omni 1 18 GiB (18432 MiB) flux2-klein.yaml
Speech to text, Whisper large-v3-turbo on vLLM 1 3 GiB (3072 MiB) whisper.yaml
Total 4 43 GiB (44032 MiB) [L10]
  • That leaves about 1.7 GiB of the card unallocated if it has 44.7 GiB, 5 GiB if 48. If NVML reports less than 43 GiB usable, the last pod does not schedule.
  • No nvidia.com/gpucores limit is set: the four pods share compute time freely. HAMi limits memory here, not throughput. An image edit in progress will slow the LLM replicas by an amount nobody has measured; experiment 1 now measures it.

What one LLM replica needs inside its 11 GiB

Item Size Basis
Weights, BF16 about 7.5 GiB Sum of the three safetensors files on Hugging Face: 8,044,982,000 bytes
KV cache per token 147,456 bytes 2 (K and V) x 36 layers x 8 KV heads x 128 head dim x 2 bytes, from the model's config.json
KV cache for one full 8192-token context about 1.13 GiB 8192 x 147,456 bytes
CUDA context, graphs, activations unknown; 1 to 2 GiB assumed not measured
What vLLM plans with at --gpu-memory-utilization=0.90 9.9 GiB 0.90 x 11 GiB
KV cache that is left about 0.4 to 1.4 GiB 9.9 - 7.5 - (1 to 2); between a third of one full context and a little more than one [L27]

This is tight, and tighter than the 20 GiB plan by a wide margin. Two consequences:

  • The replica may not start. vLLM checks at start that the KV cache can hold at least one request of --max-model-len tokens and exits if it cannot [L26]. One 8192-token context needs 1.13 GiB; the paper range above straddles that. The owner's decision is to keep 8192 and find out on real hardware (section 10); risk R14 has the order of things to change if it fails.
  • Capacity is counted in tokens, not in contexts. If it starts, a replica holds roughly 2,900 to 10,000 tokens of KV cache in total across its running requests. The demo's planning calls are short (a few hundred to about 1,500 tokens with tool definitions; the local probe's was 275), so several fit; the earlier plan's "2 to 4 agents each with a full 8192-token context on one replica" does not.

An earlier version of deployment-options.md gave "about 2.4 GiB of KV cache, two full contexts" for this quota. That figure left out the 1 to 2 GiB assumed for CUDA context and activations, which vLLM subtracts before sizing the cache. The table above is the corrected arithmetic.

What the image model and speech need

  • Image model, 18 GiB. Weights are 14.9 GiB if everything stays on the GPU [L7]. The working memory of a 1024 x 1024 edit is not known [L8], and vLLM-Omni has no --gpu-memory-utilization equivalent that was checked; whether it runs under a HAMi quota at all is unknown [L9].
  • Speech, 3 GiB. Weights are 1.51 GiB [L13]; how vLLM sizes memory for an encoder-decoder model inside 3 GiB is not known [L23].

How vLLM's preallocation meets the HAMi limit

vLLM does not allocate KV cache on demand. At start it takes a fixed share of the GPU memory it can see and gives whatever is left after loading the weights to the KV cache. The share is set by --gpu-memory-utilization: a per-instance fraction, default 0.92 in v0.31.0 [C12]. The manifest sets 0.90.

The fraction is of the memory the process sees. Under HAMi, the in-container library (HAMi-core) intercepts the CUDA and NVML calls that report and allocate device memory [D6], so the process is expected to see an 11 GiB device:

  • Expected: vLLM sees 11 GiB, plans for 0.90 x 11 = 9.9 GiB, loads 7.5 GiB of weights and preallocates what is left after its own overhead, roughly 0.4 to 1.4 GiB, as KV cache. 1.1 GiB stay free inside the quota for allocations vLLM does not account for.
  • Failure signature: if vLLM saw the whole card, 0.90 would mean about 43 GiB. HAMi refuses allocations beyond 11 GiB, so the replica would fail at start with a CUDA out-of-memory error while building the KV cache. Whether HAMi-core's interception works against the CUDA 13.0 libraries in this image is unknown [D7].
  • Second control: --kv-cache-memory-bytes sets the KV cache size explicitly and makes vLLM ignore --gpu-memory-utilization. If the fraction misbehaves under HAMi, set this (for example 1.5 GiB) so the allocation no longer depends on what the process believes the device size is.

vLLM v0.34.0 changes this default mechanism (it sizes the cache from measured free memory through CUDA virtual-memory reservations). That is one of the two reasons the pin is v0.31.0; see compatibility.md.

7. What the virtual test covers

make virtual-test (script: hack/virtual_test.py) needs no cluster and no credentials. For every profile (the three Cloud-side profiles and local) it:

  1. fetches every pinned chart and official CRD manifest at the pinned version;
  2. checks each chart's and subchart's kubeVersion constraint against Kubernetes v1.37.2;
  3. renders each chart with helm template and the values files in this repository;
  4. validates all rendered and hand-written manifests with kubeconform in strict mode, against the Kubernetes v1.37.2 schemas and, for custom resources, against schemas extracted from the CRDs that an earlier step of the same profile installs (a missing CRD is a failure, never ignored; CustomResourceDefinition objects themselves are checked structurally because no published schema exists for that kind);
  5. checks that every custom resource uses a group, version and kind some installed CRD serves, and that it comes after that CRD in the install order; likewise that every namespace a step uses (its release namespace, the namespace of each resource, and namespaces a step declares as used only at runtime) is created by an earlier step, and that no chart renders a namespace an earlier step created;
  6. checks the documented Kubernetes ranges, and reads upstream go.mod files and guides at the pinned tags to confirm that the components agree on API versions;
  7. checks anonymously that every image tag referenced exists in its registry;
  8. for a profile that declares a platform (local: linux/arm64), checks that every image it uses is published for that platform;
  9. checks that every Gateway API reference resolves within what the profile renders: a route's Gateway, listener and backend, a policy's target, an MCP target inside the cluster. A Service that first-party code will create later passes only if the profile step declares it;
  10. checks tracing both ways: with it, every OTLP endpoint a manifest names is a Service and port of the rendered Jaeger; without it (the local profile's default), nothing is rendered into the tracing namespace and no manifest names an endpoint there [N47];
  11. checks that sandbox egress is closed except through the gateway: the sandbox NetworkPolicy opens exactly the port of the Gateway listener egress to exactly that Gateway's pods, the listener has one catch-all route refused with a 4xx, and any route on it that forwards names a host [P18];
  12. checks that the number of jobs the demo application runs at once, in the rendered ConfigMap demo-limits, is what the profile declares: 1 in local [Q9];
  13. for full: checks that every workload that selects the GPU node tolerates its taint and that Agent Substrate's node agent neither tolerates it nor selects the node [Q4]; and runs the kagent CLI's install --dry-run with the repository's configuration, to check that the releases, charts, versions, namespaces, order and merged values it would apply are the ones the profile's steps render [Q8].

It cannot prove: that the GPU is detected, that the driver and toolkit work with HAMi, that runsc is installed and gVisor pods start, that KVM is available, that a Kata guest boots, that HAMi schedules or limits anything, that any controller behaves correctly at runtime, that requests flow, that a policy is enforced, that a node carries a taint, that kagent install succeeds, that a span is emitted or joins a trace, or any performance figure. A local kind or k3d cluster was not used for a server-side dry-run: Docker was not running on the machine where this was prepared, and such a cluster would not have added evidence about GPU, Kata or KVM anyway.

8. Risks and fallback triggers

# Risk Trigger Fallback
R1 HAMi or Kata does not work on K3s's embedded containerd [D3, E5] With the documented configuration, the HAMi device plugin does not register nvidia.com/gpu, or a kata-qemu-runtime-rs pod does not start, and the cause is K3s's containerd layout kubeadm with Kubernetes v1.37.3 and a standalone containerd 2.3 or newer. Everything from the namespaces step on is unchanged
R2 OpenSandbox 1.2.1 misbehaves on Kubernetes 1.37 (gap G1, accepted by decision, section 10) [A11] Sandboxes are not created or cleaned up, with errors pointing at the Kubernetes API A newer OpenSandbox release that raises its maximum, if one exists by then. First fallback, named by the owner on 2026-11-27: kubernetes-sigs/agent-sandbox, which declares no maximum and ran on 1.37 in a probe [M14, M15], at the cost of redoing the execution path (sandbox-options.md, section 2). Lowering Kubernetes to 1.34 would leave llm-d's documented range [A7] and would need a new owner decision
R3 vLLM cannot start inside its HAMi quota because the limit is not seen or not applied [D7] CUDA out-of-memory at start, or HAMi metrics show the limit not applied --kv-cache-memory-bytes; then one replica; then report that GPU sharing by HAMi does not work with this vLLM image
R4 The L40S plan cannot be deployed [J2] Vultr rejects the order or lists no region A40 48 GB or A100 80 GB plan; changes experiment 1's controlled variables; owner decision
R5 llm-d EPP and Agentgateway v1.7.0 do not interoperate [B11] The Gateway does not consult the EPP, or InferencePool status reports errors Agentgateway v1.5.0, the version llm-d's v1.0.0 release notes name; same documented Kubernetes and Gateway API ranges
R6 Embedded seekdb does not run in the PowerContext container [G6] The server does not become ready with DATABASE_KIND=seekdb PowerContext's default SQLite backend in the same manifest; or external OceanBase with the upstream chart
R7 Port-forward is not good enough for streaming or concurrency Streams cut off; errors under 2 to 4 agents NodePort restricted by the Vultr firewall to the owner's address, an SSH tunnel, or a WireGuard link. Owner decision
R8 (Kata opt-in only) The kata-qemu-runtime-rs class does not suit OpenSandbox [E9, E10] Sandbox pods fail in ways specific to the Rust runtime Enable the Go qemu shim as well and point OpenSandbox at kata-qemu
R9 Routing parameters are uncalibrated - The prefix-cache filter's default throughput constant was calibrated upstream for Qwen3-32B on H100; llm-d ships a calibration tool. Affects experiment 1's routing comparison, not correctness
R18 The SDK runtime 0.2.2rc2 does not behave as its documentation at tag dsh-v0.2.2-rc.2 says, or is not built from that tag [L31, L34] Configuration keys, profiles or the MCP setup documented at the tag do not work in the runtime Find the runtime's real source revision and read the docs there; a newer SDK release needs new evidence before the pin moves
R19 The PowerContext plugin does not work with the pinned harness release. Upstream accepted it against the CLI 0.2.2-rc.1 only and says not to infer support for other releases; the pin is the SDK 0.2.2rc2, whose minimal profile also omits parts of the base profile [G8, L17]. Accepted knowingly with the pin decision The plugin does not install or load; no memory is written or prepared The demo application reads and writes turn records through PowerContext's HTTP API [L19]; the harness then runs without the plugin
R20 The harness runtime is too slow to start or too large for the demo application's pod, or does not hold several sessions at once [L32] First response takes many seconds; memory grows per session; the Local budget is exceeded Start it with the application; cap concurrent sessions; one runtime per session only if needed. If it cannot be made to fit: fallbacks B (kagent) or C (a loop in the application), demo.md section 2, by a new owner decision
R21 The harness's own shell tool cannot be switched off in the SDK profile, so model-directed commands could run in the demo application's pod [L33] The profile patch that removes local execution is rejected or ignored Run the runtime in a separate container without credentials or egress; or fallback C, where the loop has only the demo's tools by construction
R10 Upper layers move fast New DeepSeek Harness or PowerContext releases Pins change only with new evidence in compatibility.md
R11 (Kata opt-in only) Experiment 2's Kata overhead metric may not exist under the Rust runtime [E11] kata-monitor does not export it Measure the overhead another way, or use the Go shim for that experiment
R12 A floating image tag in the Kata chart (quay.io/kata-containers/kubectl:latest) - Resolve to a digest at bootstrap and record it
R13 First start downloads about 8 GB of weights from Hugging Face Slow or failed start Pre-pull into the node cache during bootstrap
R14 11 GiB is too little for a replica with an 8192-token context [L26, L27]. The owner decided on 2026-11-27 to keep 8192 and test: nothing below is applied unless a replica fails to start vLLM exits at start saying the KV cache cannot hold max_model_len; or requests queue because the cache is full In this order, each a change to a planned parameter that is recorded when made: (1) --gpu-memory-utilization=0.95, which adds about 0.55 GiB of cache and leaves 0.55 GiB of slack in the quota; (2) --max-model-len=4096, enough for the demo's prompts, a changed controlled variable for experiment 1; (3) move speech off the GPU (option E) and give each replica 12.5 GiB; (4) the other budget options in deployment-options.md section 7: one replica (B), a larger GPU (C), image editing through an external API (D). 2 to 4 need the owner
R15 The image model does not fit or does not run in its 18 GiB slice [L8, L9] CUDA out-of-memory at load or during an edit; or vLLM-Omni fails under HAMi-core A smaller output size; vLLM-Omni's CPU offload of the text encoder, at a latency cost; then options C or D
R16 Image edits starve the LLM replicas of GPU time Planning calls slow down sharply while an edit runs (experiment 1 measures this) A nvidia.com/gpucores limit on the image pod; or serialise edits in the demo app's queue
R17 The four quotas exceed what the card reports The fourth pod stays Pending for nvidia.com/gpumem Read NVML first; shrink the unmeasured quotas (speech, image) before the LLM's
R22 With gVisor, the default sandbox runtime, the demo's image code hits a system call gVisor does not implement, or runs much slower [M12] A sandbox script fails or times out under gvisor and passes under runc Another image library or build; then SANDBOX_RUNTIME=kata on a node with KVM
R23 A command sent right after a sandbox reports running fails [M8] BACKEND_CONNECTION_FAILED from the OpenSandbox server The demo application retries for a few seconds before giving up
R24 gVisor does not behave on the x86_64 cloud nodes as it did on arm64 in the probe [M11, M19] Pods with RuntimeClass gvisor do not start on cp-0, or the containerd drop-in is not picked up Check gVisor's platform choice for that kernel and its documented requirements; then SANDBOX_RUNTIME=kata, which cp-0 can run because it stays bare metal
R25 Sandbox egress rests on one NetworkPolicy, which now has one opening, to the gateway's egress listener [M7, P14, P15] A sandbox reaches an address outside the cluster, or a gateway port other than 3128; the policy is missing after a redeploy; or someone adds a forwarding route without a host name make verify runs three requests from inside a sandbox on every deployment (through the proxy to the check host, to another host, and past the proxy); the virtual test checks the policy against the listener [P18]
R26 One trace per request costs one harness runtime per job [P3, P5]: about 1 s of start-up and 0.55 GiB each, measured once with a stand-in model. And the mechanism rests on a pre-release harness sending static headers unchanged Jobs start slowly or the demo application's pod runs out of memory under concurrency; or a harness release stops sending the header Limit concurrent jobs (Local: one); if the header stops working, fall back to traces lined up by time, as first designed
R32 The first turn of a harness runtime waited about 21 s when the harness ran on the node and addressed the gateway by cluster IP; not from a pod. Not explained [P8] The first model call of a job comes 20 s after the job starts Run the harness in a pod, as designed; time it in rehearsal; if it appears, look at the MCP client's stream to the gateway first
R33 (full only) The cluster-wide feature gates are untested with HAMi, vLLM, llm-d and Kata [P30]. They ran with the gateway, Jaeger, gVisor, OpenSandbox, Substrate and kagent in local probes only Pods that worked in minimal fail on a cluster started with the gates; the GPU is no longer advertised An early real check in the roadmap's P0 infrastructure phase, before anything depends on full. If a gate is the cause, leave kagent out of full (it is optional)
R34 (full only) The pin is kagent's fork of Agent Substrate at v1.0.0, by owner decision, not upstream v1.0.1 [P21, P31] The fork and upstream diverge Follow kagent's releases: the pin moves when kagent's requirement does
R35 (full only) Two sandbox systems on one cluster: OpenSandbox for the demo, Agent Substrate for kagent. No collision was seen with one sandbox and one idle worker on one arm64 node [P26]; nothing is known under load, on x86_64, or with a kagent agent running Sandbox pods of one system fail or slow down when the other is active; gVisor resources on cp-0 run short The same early real check as R33; if they do not coexist, kagent leaves full
R36 (full only) Keeping the node agent off gpu-0 rests on a taint set at bootstrap, because its chart has no node selector [Q1, Q11] An atelet pod on gpu-0; or a GPU workload Pending because it lacks the toleration hack/deploy-kagent.sh checks the taint before and the pods after; the virtual test checks the tolerations
R37 (full only) kagent install waits five minutes per Helm release, and the first run in the probe failed on a slow image pull; the second run succeeded [Q5] The install stops with a Helm error while images are still arriving Run it again: it is idempotent. Pre-pull the images during bootstrap
R27 The stage camera cannot be reached from the Cloud cluster, or its tunnel does not carry MCP [N11] capture_frame fails or the tool is missing from the list The first act continues from a photo the presenter uploads (demo.md, section 12). If the tunnel cannot be made to work at all: the Local option at the venue
R28 A tool server that does not answer slows every agent session: 10 s on each initialize and tools/list in the probe, despite FailOpen [N10] Agent runs start slowly when the camera machine is off or the tunnel is down A connect timeout on the target (set, untested); check before the show and remove the target if it cannot be fixed
R29 The public entry, not the gateway, rejects the room's taps in the third act: a Quick Tunnel is capped at 200 requests in flight [L22] Rejections that the gateway's counter does not show A named tunnel or a public listener for the show; the per-phone tap rate is capped in the page
R30 A static key identifies the agent, not the job: an agent could address another job's sandbox if it learned its id [N4, N5] - Sandbox ids are random and short-lived, and the agent cannot list sandboxes. A per-job credential needs an identity provider, which the owner's constraints leave out; accepted for the demo
R31 Jaeger keeps traces in memory, bounded by count: a restart or a flood loses the trace the show needs The trace view is empty in the third act The tap route is sampled at 2%; the store's bound is far above the show's volume; the view falls back to the application's own timings

9. Open decisions for the owner

  1. GPU plan and region. The L40S plan was listed in no region on 2026-11-26. Wait, ask Vultr, or substitute (A40 48 GB in lax/lhr, A100 80 GB in ewr)? The region must offer the bare-metal plan as well.
  2. Bare-metal plan: vbm-6c-32gb (proposed) or the cheaper 4-core vbm-4c-32gb. That cp-0 is bare metal at all is decided until experiment 2 has run (section 10).
  3. Access from the MacBook: confirm port-forward as the path (still an assumption), and how TCP 6443 on cp-0 is restricted.
  4. Decided 2026-11-27: MCP goes through Agentgateway (section 10, 3.5a). No longer open. It was: directly to OpenSandbox, or through Agentgateway.
  5. vLLM v0.31.0 instead of v0.34.0: it follows the evidence rule; confirm, or accept an untested newer version. (The harness half of this item is decided: SDK 0.2.2rc2, section 10.)
  6. PowerContext image: building our own image with the seekdb extra is a deviation from "official artifacts only". Alternatives: SQLite (upstream default) or OceanBase with the upstream chart.
  7. PowerContext models: which generation model (the in-cluster Qwen3-4B through the gateway?) and which embedding model. The stack has no embedding model; without one there is no vector search.
  8. external-api: which provider and model, and whether it is one server or two.
  9. Decided 2026-11-28, with the Substrate decision: kagent's PostgreSQL for the full profile is the development database kagent install deploys in namespace kagent, shared with Agent Substrate and not for production (3.10a). No longer open.
  10. Qwen3 thinking mode: keep --reasoning-parser=qwen3 with thinking on, or disable thinking for the demo.
  11. GPU compute sharing: no gpucores limit is planned, now with four pods on the card, one of them a diffusion model (risk R16). Acceptable for experiment 1?
  12. kubeadm fallback pin: keep v1.37.3 (latest patch) or align with K3s's v1.37.2.
  13. Decided 2026-11-28: full installs kagent's fork of Agent Substrate at v1.0.0 (section 10, 3.10a). No longer open.
  14. Decided with it: full installs both with kagent install (hack/deploy-kagent.sh, 3.10a). No longer open.
  15. Decided 2026-11-28: the Substrate node agent runs on the control node only (3.10a). No longer open.
  16. vLLM-Omni v0.34.0 for its tracer (variant V3): not decided. observability-options.md, section 10. Recommendation: no, not for tracing alone.

Decisions opened by the two deployment options and the new demo are listed where they arise: deployment-options.md, section 10 (image provider, the external-api profile) and demo.md, section 8 (public entry, approval and privacy terms, the demo application; and, for the second iteration, items 11 to 24 there: the tracing backend, how the third act is staged, the camera in Cloud). Decision 3 above (access from the MacBook) now concerns the operator only. Decisions 7 and 10 also affect the demo.

10. Recorded decisions

Date Decided by Decision
2026-11-27 Owner Two deployment options. (a) Local: runs on the owner's Mac Mini with no real GPU, as the low-cost entry. (b) Cloud: Vultr with a real GPU, the design in this document. Design: deployment-options.md.
2026-11-27 Owner The main demo is live and interactive, not a chat and not a terminal session. An audience member scans a QR code, photographs the venue, says or types an instruction, and the edited image appears on the big screen. This replaces the five-step coding-agent task as the representative workload. Design: demo.md.
2026-11-27 Owner In Local, image editing goes through an external API and only a small model runs locally. Which provider is still open.
2026-11-27 Owner Cloud GPU budget: option A. One L40S 48 GB carries two LLM replicas at 11 GiB each, image editing at 18 GiB and speech at 3 GiB: 43 GiB in HAMi quotas (section 6). This replaces two replicas at 20 GiB. It is a paper budget and unmeasured; in particular 11 GiB may be too little for an 8192-token context (risk R14). The other options (one replica, a larger GPU, image editing through an external API, speech off the GPU) stay listed as fallbacks if measurement disagrees: deployment-options.md, section 7.
2026-11-27 Owner Agent loop: the DeepSeek Harness, embedded through its SDK, running in the cluster. It replaces the harness as a terminal program on the developer's MacBook; the layer table keeps its Agent Harness row (section 3.11, demo.md section 2). Known caveats, kept visible as risks R18 to R21 and to be checked on real hardware: the SDK release (0.2.2rc2) is not the pinned CLI pre-release (0.2.2-rc.1); the PowerContext plugin was accepted against the CLI only; startup time and memory are unknown. A fourth caveat was added when recording this: the SDK profile's own shell tool (R21). kagent on the required path and a loop written in the demo application stay listed as fallbacks.
2026-11-27 Owner LLM context length under the 11 GiB quota: keep --max-model-len=8192. Test it on real hardware and lower it only if a replica fails to start. The order of things to change stays as in risk R14, and the start-up check is an early step of real validation (roadmap.md, P0 inference path). On paper the fit is uncertain (section 6); this decision is to find out rather than to plan around it.
2026-11-27 Owner Harness release: standardise on the SDK deepseek-harness-sdk==0.2.2rc2, the release actually in the request path, in place of the CLI pin dsh-v0.2.2-rc.1. Accepted with it, and kept as an explicit Unknown and risk: PowerContext's plugin was accepted against the CLI 0.2.2-rc.1 only (compatibility.md G8, L17; risk R19).
2026-11-27 Owner Kata Containers is not mandatory. It is one option for the runtime under the sandbox; a lighter one may be used if it is easier to deploy both locally and in the cloud. A Kubernetes-native sandbox and OpenSandbox were both named as acceptable. Recorded as a direction, not as a choice: the runtime was made selectable (kata, gvisor, runc) with kata left as the default at that point. Superseded the same day by the three decisions below.
2026-11-27 Owner Default sandbox runtime: gVisor, for both Local and Cloud. Kata Containers stays as an opt-in (SANDBOX_RUNTIME=kata) and is not removed. Local therefore defaults to the already-installed OrbStack; Lima is needed only for the Kata opt-in. Kept visible as unknowns and risks: whether the demo's image-processing code runs under gVisor [M12, R22]; gVisor on the x86_64 cloud nodes, inferred only [M11, R24]; the retry needed right after a sandbox is created [M8, R23]; OpenSandbox's egress sidecar replaced by a NetworkPolicy [M6, M7, R25].
2026-11-27 Owner Sandbox manager: keep OpenSandbox. kubernetes-sigs/agent-sandbox is the named first fallback if OpenSandbox fails on Kubernetes 1.37 (risk R2), ahead of lowering the Kubernetes version.
2026-11-27 Owner cp-0 stays bare metal until experiment 2 (isolation) has run. The default runtime no longer needs KVM, but the Kata arm of that experiment does. To be revisited afterwards: a regular instance would be enough for gVisor and cheaper.
2026-11-27 Owner Gap G1: stay on Kubernetes 1.37. OpenSandbox 1.2.1 declares Kubernetes v1.34 as its maximum and llm-d v1.0.0 needs 1.35 or newer, so no version is inside both ranges. The gap is accepted; OpenSandbox on 1.37 is validated on real hardware later, as an early check in the roadmap's P0 phase. Until that test has run it stays Unknown [A11], and the virtual test keeps reporting the range check as SKIP. If the test fails, the fallbacks are R2 in section 8.
2026-11-27 Owner The demo becomes a three-act live show of about 8 minutes. Act 1, group photo: the presenter asks the agent to look at the room; the agent calls a stage-camera tool and takes one frame; the audience votes on a theme on their phones; the agent edits the image; the big screen shows it. Act 2, the audience takes over: the existing flow (scan, upload, instruct, gallery wall), where concurrency makes GPU sharing, replica routing and sandbox creation visible. Act 3, guardrails: the room taps and the gateway rate-limits, visibly; an instruction to send a photo to an external site is blocked at the sandbox's egress; the trace of one request is opened and shows time per hop. The close uses memory: "make the group photo more dramatic" continues from the Act 1 image. The single flow is not deleted; it is Act 2. Design: demo.md.
2026-11-27 Owner All tool calls (MCP) go through Agentgateway: the stage-camera tool and the sandbox tool. This closes open decision 4 (section 9). The design sends the third tool, the demo application's edit_image, the same way, and asks the owner to confirm that (demo.md, section 8, item 11). Sections 3.5a and 5.
2026-11-27 Owner Distributed tracing is added as a new component, and the Local option can switch it off, because memory is tight there. Chosen backend: Jaeger, without an OpenTelemetry Collector (3.4a; the choice itself is for the owner to confirm, demo.md section 8, item 13). The stack therefore has one more project, and the principle "the only code this lab writes is the demo application" becomes "two small pieces": the demo application and the camera tool.
2026-11-27 Constraints stated with the proposal to the owner; kept by this design What the three acts do not add. No vision-language model: the L40S budget is already 43 of 48 GiB, so the vote is by phone buttons and the camera only supplies the image to edit. No identity provider: a static key, with what Agentgateway offers by itself. No pan-tilt camera, lights or other controllable hardware. A camera failure falls back to the presenter uploading a phone photo, so Act 1 still runs. The design keeps all four; nothing found argues against them. One consequence is recorded as a limit, not as a reason to change them: without an identity provider a tool call is authorised per agent, not per job (risk R30).
2026-11-27 Owner, on pull request 4 Tracing in the Local option is off by default and switched on when wanted (TRACING=on). The design had recommended on by default; with it on only 0.25 GiB of the Mac Mini's 16 GB would be spare (deployment-options.md, section 3). In the Cloud profiles tracing stays always on.
2026-11-27 Owner, on pull request 4 Tracing backend: Jaeger, confirmed.
2026-11-27 Owner, on pull request 4 A direction, not yet a choice: for better tracing and observability, components of the original plan may be replaced, and agent-substrate may be installed. "One layer, one project" stays; which project fills a layer is open again where it improves end-to-end tracing and observability. The variants are compared in observability-options.md; no manifest and no row of the layer table changes until the owner chooses.
2026-11-27 Owner Observability variant V1: components are not replaced; the tracing gaps are fixed in place. The demo application creates a trace context per job and passes it on through the harness's static headers, so one request is one trace; sandbox HTTP egress goes through an Agentgateway listener, so a blocked egress is a gateway decision visible in metrics, not only a failed tool result. V2a (Agent Substrate for sandboxes and egress, harness kept) stays documented as the runner-up, V2b and V3 as evaluated options (observability-options.md). Both mechanisms were probed locally before being written into the plan (compatibility.md, section P). What follows from it and was not part of the decision: one harness runtime per job, at about 0.55 GiB each (3.11, risk R26). Sections 3.5b, 3.11 and 5; demo.md, section 10.
2026-11-27 Owner Agent Substrate is installed in the full profile, because kagent 1.0.1 requires it. It is there only as kagent's dependency; OpenSandbox remains the sandbox manager on the demo path in every profile. Local is not affected. The design pins what kagent itself installs, its fork kagent-dev/substrate at v1.0.0 with four charts, not upstream v1.0.1 with a Go-built installer as the decision assumed; that difference is put back to the owner (section 9, item 13). Section 3.10a.
2026-11-27 Owner Not decided: moving vLLM-Omni to v0.34.0 for its tracer (variant V3). Left open with a recommendation (section 9, item 16).
2026-11-28 Owner The Local option runs one job at a time. Concurrency is demonstrated in the Cloud option. Enforced by the local profile's demo-limits ConfigMap, which the demo application's queue reads, and held to 1 by the virtual test. What the Local option therefore cannot show in Act 2 and Act 3: demo.md, section 4. deployment-options.md, section 3.
2026-11-28 Owner Agent Substrate in the full profile is kagent's fork, kagent-dev/substrate v1.0.0, which is what kagent 1.0.1 installs, not upstream agent-substrate/substrate v1.0.1. Kept with it: the fork has Helm charts where upstream has a Go-built installer, and the PostgreSQL it shares with kagent is kagent's development database, not for production. Installed with kagent install (hack/deploy-kagent.sh). Section 3.10a.
2026-11-28 Owner Agent Substrate's node agent runs on the control node only, never on the GPU node. Its chart offers no node selector, so in full the GPU node is tainted (nvidia.com/gpu=present:NoSchedule) and the GPU workloads tolerate the taint. Section 3.10a; risk R36.
2026-11-29 Owner For now the image provider's key may sit in the demo application. A deliberate, temporary deviation from "the gateway holds the provider's key; neither the demo app nor the sandbox sees it" (demo.md, section 3), taken to get a real image edit working before the show. It applies to the backends that call the provider's own API (zhipu, dashscope, ark, bfl); the sandbox still never sees the key, and the image call is then not a gateway span, a gateway metric or subject to a gateway policy. What moving it back takes is in ../apps/demo/README.md, "The key's place". The provider is Alibaba Model Studio (two rows down).
2026-11-29 Owner Image provider for the Local show: Zhipu (bigmodel.cn). Superseded the same day by the next row. Its image models take text only, so it cannot edit the photo. The image step becomes a re-imagining: a Zhipu vision model describes the room photo in words, without identifying anyone, and glm-image draws a new picture from that description and the theme. The people in the result are not the people in the photo, and every screen and document says so; the photo and the result are shown side by side. Alibaba Model Studio and Volcengine Ark, which edit the photo itself, stay as selectable alternatives, and the stub runs when there is no key. Nothing was called: no key exists yet. A one-request probe is prepared to learn whether the image endpoint takes an input image after all; if it does, real editing is preferred. ../apps/demo/README.md, "The image step".
2026-11-29 Owner Image provider for the Local show: Alibaba Model Studio (Bailian), Qwen-Image-Edit, replacing Zhipu. It edits the photo itself, so the result is a real edit and the people stay themselves. It is what runs when a key is present; the stub runs when there is none. Zhipu was tried on paper and set aside: its image API takes no input image, so it could only re-imagine the scene from a description. Its backend and the Volcengine Ark adapter stay selectable and are not the default. The key sits in the application for now (the row above the previous one). Verified against the provider on 2026-11-29 with the owner's existing Model Studio key, by his permission, and pictures without people (13 pictures): the address, the request and the answer are as read, the provider answers in 4 to 5 s, and a job takes 24 to 39 s. A photo of people has not been tried; that rehearsal is the owner's. ../apps/demo/README.md, "The image step".
2026-11-29 Owner A stage job is to take under 10 seconds, with the agent still planning and calling its tools through the gateway, in a sandbox, traced. Measured after the changes: 8.2 to 12.3 s in 22 jobs, 16 of them under 10 s, from 24 to 39 s; the target is met more often than not, not always. What changed: the job's sandbox and its harness runtime are started ahead of the job, one of each per job slot, each still serving exactly one job (the runtime's trace id is chosen at its start and the job takes it, so "one runtime per job with a per-job traceparent" holds); the edit runs beside the agent and the last sandbox step waits for it; the picture is shown before the agent's closing word; the model server guesses tokens from the context and has Qwen3's thinking block off; the image is asked for at 0.4 megapixels. Local still runs one job at a time, and a job that finds nothing standing ready takes about 8 s longer. ../apps/demo/README.md, "How fast a job is".
2026-11-29 Owner In every theme the people stay themselves and the world changes; no closed spacesuits. The Moon theme puts the room on the Moon with everyone in their own clothes and a helmet under the arm: asking for spacesuits made the image model redraw the people and lose some. The rule is one sentence the application adds to every prompt, shown on the screen as added. The owner accepted this wording of the Moon theme on 2026-11-29 (own clothes, helmet held under the arm, only the surroundings change), knowing that it is not the spacesuits he first described. Tested with drawn and synthetic figures only; real faces are the owner's rehearsal. ../apps/demo/README.md, "The people stay themselves".
2026-11-29 Owner The real agent stays: speed is sought only within a genuine agent loop. The model plans and chooses the tool calls, through the gateway, in a sandbox, traced; under 10 s is the aim, not a reason to script the job. A hybrid (the agent only writes the prompt; measured about 2 s faster) and a scripted variant (no agent; about 4.5 s faster) were measured and are not in the code. ../apps/demo/README.md, "What the real agent costs".
2026-11-29 Owner The image step moves to Azure, model gpt-image-2.5, on an Azure account. One deployment (gpt-image-2.5-flare) on an existing AI resource; its key sits in the application for now, like Bailian's. Azure runs when its settings are present; Bailian is the second provider, used without Azure and when Azure refuses a picture or fails. What this costs: a stage job takes 25 to 28 s instead of 8 to 12 s, because the model answers in 16 to 27 s from this Mac, and its safety system refused 4 of 19 test pictures; it keeps people better than Bailian. The under-10-second aim of the earlier row is not met with Azure. ../apps/demo/README.md, "Azure".
2026-11-29 Owner The show itself uses Azure, at about 26 s a job; the aim of a job under 10 seconds is knowingly given up for it. Decided with the comparison in front of him (Azure 25 to 28 s, Bailian 8 to 12 s). The automatic fallback to Bailian when Azure refuses a picture or fails stays on. Bailian for the whole show remains one line (AIL_IMAGE_BACKEND=dashscope) if he changes his mind. The wait is shown as it is: a clock, the steps, a count of the image model's time, and a trace that fills in while the job runs; partial pictures from Azure were tried and arrive too late to help. runbook.md, "The eight minutes".
2026-11-29 Measured gpt-image-2.5-flare stays the image model; a job is 20 to 26 s. Six other image models on the same Azure resource were compared: the FLUX models are 5 to 7 s quicker but drop people, blank faces or do not carry out the theme; gpt-image-2 is as good and no quicker. Azure's own work is 12 to 15 s and does not respond to size or quality; about 2 s of network time is saved by opening the connection when the job starts; 5 to 9 s is the agent planning, which stays (decided). The prompt now names banners and asks for every person in every row. Table: apps/demo/README.md, "Azure".
2026-11-29 Owner Each edit sends three identical requests at once and uses the first picture. For the live show: a refusal or a dropped connection from one request no longer fails the edit or sends it to Bailian, which steps in only when all three fail. The screen and the trace say that three were sent and what became of each. In time it is worth about a second; a job is 17.5 to 21 s on an idle Mac. AIL_AZURE_RACE (default 3; 1 sends one); the deployment's capacity was raised from 3 to 9 requests a minute. apps/demo/README.md, "Three requests at once".