The requirement and the answer
Our answer: two lanes, one image, and isolation instead of approval prompts. Every hosted agent run gets its own short-lived Amazon EC2 virtual machine (VM) in a dedicated AWS account in Stockholm (eu-north-1); a laptop lane is optional. Inside the VM the agent may do anything, because the VM holds no production access, no customer data and no open internet.1
This meets requirement R1 (requirements table): sandboxed sessions, hosted or local, repeatable builds and verification, many in parallel, and nothing that depends on a personal machine.1 Leading in-house agent teams converged on the same pattern: Stripe's devboxes have no arbitrary egress, and Ramp's sandboxes start in under 5 seconds with Postgres, Redis, Temporal and Chromium included (both self-reported).78
Headless agents need a box, not a prompt. Since version 2.1.302, headless Claude Code (claude -p) and the Agent SDK deny any tool call that needs approval unless an allow rule, a hook, a callback or auto mode approves it.9 An unattended agent either works inside a boundary where nearly everything is allowed, or it stalls.
When. The hosted lane arrives in weeks 5-8 of the 12-week walking skeleton ("launch"; "go-live" is the bank's own production launch). A pilot of 8-10 engineers starts in week 8 (W-gov part 2); every engineer gets three concurrent runs at W-tech in weeks 12-13 (roadmap; gates in the glossary).1
One image, two lanes
One signed image is the only definition of the agent's environment, so "it works in the sandbox" means "it works in CI". Built from the monorepo, it is signed, pushed by digest to Amazon Elastic Container Registry (ECR) and baked into an Amazon Machine Image (AMI) for the hosted VMs. It holds a pinned Claude Code, the bank's Agent SDK runner, pinned toolchains with an OpenTelemetry (OTel) collector, bank-owned skills and managed settings, and proxy settings for every toolchain.1
Deep dive: what the image holds, item by item 1 min
- Claude Code, pinned, with a managed minimum of 2.1.179, the release that fixed Plugin4Shell, a zero-click remote-code-execution flaw in plugin auto-update.10 Weekly patch bumps (2.1.331, of 23 November 2026, is current11) are a pre-approved standard change (chapter 11).
- The Agent SDK runner, about 1,000 bank-owned lines that unpack the task bundle, drop privileges and stream the session out of the VM.1
- Toolchains pinned with
miseand its lockfile, Playwright with its browsers,dockerdfor containers, and an OTel collector configuration. - Bank-owned skills and managed settings that no repository change can override.
- Proxy settings for every toolchain, because tools that ignore proxy variables fail in confusing ways against an allowlist (section 04.4).
The image is rebuilt nightly with a warm checkout, build caches and the container images that L2 slices pull, so a fresh VM does not start by downloading; Ramp rebuilds every 30 minutes for the same reason (self-reported).8 Spike S14 (weeks 1-3) settles whether the agent's containers can run with rootless Docker and Compose.1
Only the hosted lane is required. It carries all background work, with the whole VM as the boundary. The laptop lane, the "local atelier", is an optional convenience for interactive work, with the same image and stricter settings than Claude Code's defaults.1
The two lanes side by side: isolation, model access, egress, telemetry and timing 8 rows
| Laptop lane | Hosted lane | |
|---|---|---|
| Used for | Interactive work the engineer steers | Background runs started from Slack; all agent work that no human watches |
| Isolation | Claude Code's native sandbox for shell commands, enforced by managed settings | The whole VM; the agent runs as an unprivileged user |
| Model access | A Bedrock-only AWS permission set for the human | No model credential in the VM; a run token for the bank's gateway |
| Egress | Managed domain list only; WebFetch allowlist | Exact-host proxy; no NAT |
| Requester of record | The laptop author | The person who asked in Slack |
| Telemetry | OTel only after the data protection impact assessment (DPIA) and drøfting | SDK stream to S3; the gateway's witness chain |
| Opens | Platform team first; all engineers after W-gov part 1 (week 4) | Pilot of 8-10 engineers at week 8; everyone at W-tech (weeks 12-13) |
| Required? | Optional | Yes the only lane for background work |
Lane 1: the local atelier
Laptops run Claude Code in its native sandbox, with policy delivered by mobile device management (MDM), not by the repository, where anyone with write access could change it.12 The native sandbox covers shell commands only and by default can read most of the machine, including ~/.ssh and ~/.aws/credentials,13 so the bank's baseline closes those gaps.
Deep dive: the laptop baseline, rule by rule 1 min
Hooks, MCP servers and file tools run outside the native sandbox.13 The managed settings therefore add:
- deny rules for
~/.aws,~/.ssh,~/.config/gh,~/.docker,~/.kubeand secret environment variables; - managed domains only, with no generic writable hosts, plus a WebFetch allowlist;
- no sandbox exceptions for
dockeror./x, since an exception would let the agent write a Compose file and run it outside the sandbox;13 - a Bedrock-only permission set for model access; and
- a guard in
./xthat refuses to run on anagent/*checkout outside a sandbox.1
Until the data protection impact assessment (DPIA) and the drøfting are done (both W-gov part 1 criteria, week 4), only the platform team uses this lane, without OTel telemetry.1 From month 4, ./x agent attach opens an interactive session on a hosted VM, so steering a run needs no laptop either.
Drøfting: the consultation with employee representatives that the Working Environment Act (arbeidsmiljøloven § 9-2) requires before an employer introduces control measures, such as telemetry on how staff use agents. See the glossary and chapter 10.
No Docker Desktop, and no Docker AI features without legal sign-off. Docker's subscription agreement of 26 August 2026 counts "a human or AI Agent" as a user of its AI features, makes the customer defend Docker against claims from an AI agent's actions in a Docker Sandbox, and makes Desktop free only below 250 employees and USD 10 million revenue.14 The image uses the open-source engine, dockerd.
Life of a hosted run
A hosted run is a VM that lives for one task. It boots with nothing worth stealing, receives a run-scoped kit exactly once, hands back a git bundle and is destroyed. Figure 1 shows the eight steps.
Three details carry most of the security weight:1
- The kit is handed over once. The identity broker matches the VM's AWS-signed instance-identity document to the run and returns the task bundle (all context labelled untrusted), a gateway run token and a read-only GitHub App token valid for 15-30 minutes. A second request gets nothing.
- The agent is not root. Claude Code runs as the unprivileged user
agent, blocked from the instance metadata service (IMDS, version 2, hop limit 1). The instance role only pulls images and packages, and only through the run's virtual private cloud (VPC) endpoints, so it is useless anywhere else. - Work leaves only as a git bundle. The VM never holds a write token. The git broker checks paths, file modes, sizes, symlinks and the tree hash, recreates the commits as
impl[bot]and opens a draft pull request (chapter 09).
The agent plans first and cannot finish without green fast checks. It writes proof/plan.yaml, codes, runs ./x check --changed, then ./x verify or, from month 4, ./x stack up; a Stop hook enforces the plan and the checks. Its own screenshots and videos are marked trusted: false; the proof of record comes from verify-run, which the agent cannot touch (chapter 06).1
VM profiles: what code, code-ro, ro and research agents may read and reach 4 rows
| Profile | Agent types | Repository access | Network reach | Data |
|---|---|---|---|---|
code | implement, prototype, maintenance | Read-only token (15-30 min); writes only as a git bundle | Gateway, brokers, mirrors, GHE.com tenant | Green: code and synthetic data |
code-ro | investigate; triage (from gate F1, in an amber subnet) | Read-only token; a failing test can come back as a draft PR | As code | Green; masked non-production reads from month 6 |
ro | ask | Read-only token | As code | Green |
research | research | None | Gateway, brokers and a query-stripping fetch proxy to allowlisted sources; AgentCore Web Search (eu-west-1) from month 4 | Public sources only; no secrets, no internal network |
Limits. A run gets at most 4 hours and two rounds of red CI, the same CI cap Stripe uses.17 !stop in the Slack thread cancels compute, revokes the run token, attaches an IAM deny policy and marks the registry. Cancelling always terminates the VM, and a reconciler sweeps every 5 minutes for VMs whose run has ended.1
Two load-bearing pieces are inferences, not tested facts. The instance-identity bootstrap and the warm-pool behaviour follow from standard AWS behaviour that the research did not cover. Spike S2, a two-week red-team exercise on a frozen build in weeks 10-12, tests them before W-tech, along with IMDS and instance-role abuse from the agent user, from containers and from outside the VPC.1
Launch VMs directly; keep GitHub Actions runners off the agent path. An earlier design ran the agent as an Actions job; the red team (issue 19) showed this needed extra runner hardening and broke exact-host egress, because runners need shared exposures and wildcard hosts. CI runner pools now serve only verify (PR code, no secrets) and trusted (main only).1
What a sandbox can reach
Four destinations, and nothing else. We assume the agent can read every byte in its VM, memory included, so nothing in the VM is worth stealing and nothing it could steal works anywhere else.1
| Destination | Used for | Protection |
|---|---|---|
| Model gateway | Every model call | Run token in a header; fail-closed budgets; kill switch; request-field allowlist; a hash-chained witness of every exchange (chapter 11) |
| Identity and git brokers | Collecting the run kit once; returning work as a git bundle | Kit released once, against the AWS-signed identity document; path, mode and size policy; tree-hash check; draft PRs only |
| CodeArtifact and ECR | Packages and container images | Promoted mirrors only; package groups block upstream names by default; a 72-hour age gate; ECR pull-through on approved prefixes |
<tenant>.ghe.com | Clone and read-only API | A read-only GitHub App token valid for 15-30 minutes |
research profile reaches only the gateway, the brokers and a query-stripping fetch proxy. Source: internal recommendation, §2.1 and §7.1.1Six controls enforce the list, from the outside in: no network address translation (NAT) gateway, so no route to the internet; an exact-host proxy; DNS Firewall; a data perimeter on the VPC endpoints; a recorded TLS-inspection decision per destination; and a pull-only instance role.1 The proxy (AWS Network Firewall's proxy mode) has been generally available only since 19 November 2026, so a fallback on the same allowlist is ready.2
Packages are narrowed on the server, not in the repository. CodeArtifact package groups block every upstream name not on an allowlist, which stops "slopsquatting" (installing a hallucinated package name that an attacker has registered),15 and packages reach agents only after a 72-hour age gate.1
Positive probes matter as much as deny probes. Many toolchains ignore proxy variables, so W-tech requires four positive probes (a Gradle build, npm install, docker compose up and an emulator boot) to pass alongside the deny probes.1
Deep dive: each egress control, the package pipeline and the policy file 2 min
The six controls in one line each:1
- No NAT gateway. The agent subnet has no route to the internet.
- An exact-host proxy. AWS Network Firewall's proxy mode became generally available (GA) on 19 November 2026, Stockholm included.2 Because it is days old, a fallback on the same allowlist is kept ready: stateful domain rules behind NAT, or a self-run Envoy or Squid proxy (inference).
- DNS Firewall (Route 53 Resolver) as a coarse deny-by-default layer.
- A data perimeter. VPC endpoint policies admit only resources in the bank's AWS organisation (
aws:ResourceOrgID) plus the named AWS buckets that hold ECR layers and CodeArtifact assets. Resource and service control policies sit on top. This closes the classic leak of uploading to an attacker's own bucket through a legitimate AWS endpoint. - A recorded TLS-inspection decision per destination. Filtering on the Server Name Indication (SNI) alone must be justified, because domain fronting still works without inspection.
- A pull-only instance role, conditioned on the VPC's endpoints (
aws:SourceVpce). The red team (issue 34) asked for a cross-account proxy for package pulls; we partly rebutted it, because a role that only pulls and only works inside the VPC is useless if stolen. S2 verifies the claim.
The package pipeline. CodeArtifact has no cooldown setting but keeps upstream publish times,16 so packages reach agents only by promotion from an upstream-connected staging repository after 72 hours. Install scripts are off and lockfiles frozen in the image and harness configuration, where the agent cannot edit them.1
Proxy settings. The image bakes them into the JVM (JAVA_TOOL_OPTIONS), Gradle, dockerd, container clients, Playwright and the Android emulator, so the positive probes can pass.1
# Egress for the code profile. The real file is generated from policy.
profile: code
nat: none
proxy: # Network Firewall proxy, exact hosts only
allow:
- <model-gateway>:443 # run token; budgets; witness chain
- <identity-broker>:443 # identity document once → run kit
- <git-broker>:443 # git bundle out, nothing else
- <codeartifact-domain>:443 # promoted packages only
- <ecr-registry>:443 # approved pull-through prefixes
- <tenant>.ghe.com:443 # read-only App token, 15-30 min
tls_inspection: per-destination decision, recorded
fallback: same allowlist on stateful domain rules, or Envoy
probes:
deny: [any-other-host, imds-as-agent, s3-outside-org]
positive: [gradle-build, npm-install, docker-compose-up, emulator-boot]
Testing several services together
From month 4 an agent can start a slice of the bank inside its own VM, and the outside world is always a twin, never a real vendor. Before then, contract and component tests carry integration. Five test layers each have a time budget.1
| Layer | Runs where | Real vs simulated | Budget | When the bank uses it |
|---|---|---|---|---|
| L0 unit and property | Run's VM; CI | Code only | <1 min | Launch |
| L1 component | Run's VM; CI; Testcontainers | One service with real infrastructure; other services stubbed from contracts | <5 min | Launch |
| L2 local stack slice | Run's VM, through ./x stack up | Affected services, their direct contract partners, infrastructure and an OTel collector; external world = twins | <15 min | Month 4 |
| L3 per-PR namespace | The bank's Kubernetes, one namespace per PR | All services at the PR's commit; twins | <30 min | At about 15 services |
| L4 vendor-connected staging | Dedicated environment | Vendor test environments; also run on release candidates | Nightly | Later agents never use it |
At launch: L0, L1 and contracts. Component tests use Testcontainers with real infrastructure, such as Kafka in the light apache/kafka-native image.17 From weeks 5-8, oasdiff (OpenAPI), buf breaking (protobuf) and Pact catch breaking changes between services.1819 They run against main and the last released tag, because a monorepo removes compile-time skew between services but not deploy-time skew (inference).
From month 4: L2 slices. Inside the run's VM, ./x stack up starts the services the change touches, their direct contract partners, the infrastructure and an OTel collector from Compose profiles generated from the build graph; up --wait makes "ready" machine-checkable.20 Five to eight services plus infrastructure fit in 16 GB; the whole bank would not (inference).1
Figure 2 shows the slice for the running example, draft PR #214: a card spending-limit screen that Ingrid in the payments squad asked @agent for (ISSUE-12). Only the web app changes; card-controls, which enforces the limit at card authorisation, runs unchanged from main.
./x stack up --slice card-limits starts inside run 7f3c's VMmain, and every external party is a labelled twin, so a reviewer can see how far each scenario can be trusted. Illustrative; service names are examples. Source: internal recommendation, §6.3, and research note t08.Deep dive: the agent's own run of this slice, and the proof of record 1 min
Figure 3 shows what the agent sees when it starts the slice and runs one scenario. The agent's run is only a human aid: for a multi-service change, the proof of record comes from verify-run and holds image digests, scenario assertions with fidelity labels, an OpenTelemetry Protocol (OTLP) trace, the twins' request journals and UI video (chapter 06).1
$ ./x stack up --slice card-limits → resolving 6 image digests ok → starting postgres, kafka, ledger, card-controls, web, otel-collector ok → twins: processor (spec stub) · eid (protocol fake) · core (spec stub) → health checks ok 41s → scenario card-limits/set-and-enforce 7/7 assertions ok → trace proof/run-7f3c/trace.otlp.json → video proof/run-7f3c/web.mp4 trusted: false → slice down ok 6s
verify-run reruns the scenario under main's harness as the proof of record. See the real synthetic bundle in the proof bundle demo.Twins stand in for every external party, and each is owned by the squad that integrates that vendor, which fixes the red team's finding that twins were unowned (issue 29).1 WireMock and Microcks generate stubs (and Microcks conformance tests) from the vendor's own specifications;2122 mock-oauth2-server plays OpenID Connect (OIDC) parties such as ID-porten;23 Toxiproxy injects latency, resets and partitions.24
Every twin carries a fidelity label, shown on the proof page next to each scenario that used it. Where a vendor test environment exists, a scheduled loop runs the same scenarios against twin and vendor and opens an issue on any difference. NICS and straks (Norwegian interbank clearing and instant payments) have no public sandbox, so their scenarios are labelled "twin-only, fidelity unproven".1
Deep dive: vendor test environments, the NICS twin and the prior art 1 min
Where a vendor offers a test environment, the fidelity loop has something real to compare against:
- Vipps MobilePay's merchant test environment has magic amounts and a force-approve endpoint;25
- ID-porten's TestID allows headless login for synthetic users;26
- card processors offer simulation endpoints.27
These environments belong to L4, and agents never use them. NICS and straks have no public sandbox, so their twin is built from the rails-adapter vendor's test environment and recorded traffic.1 The prior art is StrongDM's "Digital Twin Universe": behavioural clones of third-party services, validated against the live dependency "until we stop finding behavioral differences".28
L3 waits. Per-PR namespaces arrive at about 15 services; until then a slice is cheaper and faster. Okteto, which sells per-PR environments, says full replicas start to cost too much "usually around 30 to 50 services".3
Synthetic data only. The Digital Operational Resilience Act (DORA) standard on information and communication technology (ICT) risk lets non-production environments hold only anonymised, pseudonymised or randomised production data (Art. 16(5));29 the bank goes further, and nothing an agent can reach holds production personal data. Personas come from Tenor, the tax administration's synthetic population,30 and a scanner checks fixtures and artifacts for real Norwegian identity numbers (glossary).
Deep dive: synthetic identity numbers and the Faker trap 1 min
The Faker trap. Python Faker's Norwegian ssn() generates real-format fødselsnummer with valid check digits that may belong to real people, so it is wrapped or banned,32 and the scanner looks for fødselsnummer and D-numbers. Tenor's synthetic persons have 80 added to their birth month.3031 Validators also accept the new check-digit rule for numbers issued from 2032.33
The exception the bank does not use. DORA's standard allows raw production data outside production only by an approved, time-limited, reported exception (Art. 16(6)).29
Fødselsnummer and D-nummer: the 11-digit Norwegian national identity numbers, for residents and for people without residence. Synthetic test numbers follow Skatteetaten's +80-month convention, so they cannot collide with a real person. See the glossary.
Mobile
Android proof runs on ordinary Linux VMs from month 4; iOS is a separate, costlier lane that starts only when iOS work starts. On both, signing keys never enter a sandbox: the app stores hold them, and release runners get only short-lived tokens.1
| Android | iOS | |
|---|---|---|
| Needs | Linux with KVM (kernel virtual machine) for headless emulators | Apple hardware |
| Where | Nested-virtualisation C8i instances in Stockholm | EC2 mac-m4 in Frankfurt (eu-central-1), then a second host in Ireland (eu-west-1) |
| Why there | Nested virtualisation on non-metal Intel EC2 since 16 Feb 2026;34 C8i in Stockholm since 15 Jun 20265 | Stockholm has only Intel mac1, which runs macOS 15 at most and so Xcode 26.3 at most6 |
| Tooling | Maestro flows with --local; Paparazzi or Roborazzi screenshots on the JVM, no emulator needed | Simulators; Maestro flows plus a native UI test |
| Cost and limits | Ordinary EC2 pricing | USD 1.476 an hour in Frankfurt and 1.353 in Ireland, as a dedicated host with a 24-hour minimum; new accounts start with zero host quota3536 |
| Starts | Month 4 | When iOS starts |
Maestro must run with --local, because its legacy record command uploads raw screen capture to mobile.dev's servers.38
Deep dive: where emulators cannot run, iOS hosts and signing 1 min
Emulators. Android emulators cannot run inside Nitro Sandboxes, Lambda MicroVMs, Cloudflare, E2B or Vercel (for Nitro and Lambda an inference from their design), which is one more reason the hosted lane uses plain EC2; a Nitro Sandbox cannot even share an instance with nested virtualisation.37
iOS hosts. Apple's licence allows two macOS virtual machines per Mac host.39 GHE.com, the GitHub Enterprise Cloud offering with EU data residency, has no hosted macOS runners and gives no date,40 so the Macs are the bank's own. Xcode 27 will probably be required around spring 2027, which also rules out Stockholm's Intel Macs (inference).1
Signing. Under Play App Signing, Google holds the Android app-signing key;41 with Apple's cloud-managed certificates the private key stays with Apple;42 and App Store Connect API tokens are ES256 JSON Web Tokens (JWTs) that may be valid for at most 20 minutes.43 A small token broker mints them only for isolated release runners.1
Substrates we did not choose, and when we would
Plain EC2 is boring on purpose. Every alternative is newer, narrower, or outside the bank's control. The main one, Amazon Elastic Kubernetes Service (EKS) with Nitro Sandboxes, has a written trigger that would reopen the choice; for the others we note what would make us look again (statuses as of 24 November 2026; AWS-wide view in chapter 12).1
| Verdict | Substrates | What would change it |
|---|---|---|
| Chosen | EC2 VM per run: a full VM with dockerd, and KVM on nested-virtualisation C8i | The EKS trigger in the next row |
| On trigger | EKS Auto Mode with Nitro Sandboxes, announced 9 November 2026 | Over 400 runs a day, start SLO missed or queue p95 above 5 min → spike S7 |
| Conditional | E2B and Northflank in the bank's own cloud account (BYOC) | Bake-off S12, pencilled in for months 7-12 |
| Skip | AgentCore Runtime microVMs and Instances, Lambda MicroVMs, Fargate, the Claude Code cloud VM, Cloudflare Containers, Docker Sandboxes | Each falls short on Docker or KVM, run length, collector isolation, EU data controls or contract terms |
All ten substrates compared: isolation, limits, status and trigger 10 rows
| Substrate and status | Isolation and Docker | Limits that matter | Verdict and trigger to revisit |
|---|---|---|---|
| EC2 VM per run GA | Full VM; dockerd; KVM on nested-virtualisation C8i | Any size; our own 4-hour cap; warm-pool start still to be proven | Chosen Revisit on the EKS trigger below |
| EKS Auto Mode + Nitro Sandboxes New: 9 Nov 202644 | Hardware VM per pod; privileged dockerd confined to the sandbox kernel45 | No snapshot or pause; about half the advertised vCPUs on SMT (simultaneous multithreading) instances; no nested virtualisation on the same instance;3745 runtime binaries closed-source46 | On trigger Over 400 runs a day, start SLO missed or queue p95 above 5 min → spike S7; Kata on a separate nested-virtualisation pool as the open-source exit |
| AgentCore Runtime microVMs GA V2 in Stockholm, Nov 202647 | Firecracker microVM; no Docker; arm64 only48 | At most 8 vCPU / 32 GB and 8 hours | Skip for coding Revisit if microVMs gain Docker |
| AgentCore Runtime Instances GA Aug 2026; privileged and KVM Nov 2026 | EC2 in our account; privileged mode (Docker) and KVM | One agent per privileged session, and that agent can tamper with AgentCore's collectors49 | Not at launch Revisit if collectors move out of a privileged agent's reach (inference) |
| Lambda MicroVMs Launched 22 Jun 202650 | Firecracker; containerd documented, Docker only community-reported | 8-hour wall-clock cap, suspended time included;51 public egress unless a VPC connector is attached52 | Skip for coding Revisit with documented Docker and a longer cap |
| Fargate GA | No privileged mode, only SYS_PTRACE, so no Docker inside53 | Fine for services, not for agent VMs | Control plane only It runs the Slack ingress |
| E2B BYOC (bring your own cloud) BYOC on AWS Enterprise54 | Firecracker; Docker; Apache-2.0 runtime that needs KVM55 | Enterprise contract; a new ICT third party with privileged access to our cloud account | Conditional Bake-off S12 is pencilled in for months 7-12 without a written trigger; the likely one is a need for fork, pause or snapshot (inference). E2B BYOC was the anchor of proposal P4 |
| Northflank BYOC Self-serve BYOC56 | Cloud Hypervisor microVMs; Docker; no time limit | Same third-party question as E2B | Conditional Same bake-off, S12 |
| Claude Code cloud VM Available | VM per session: 4 vCPU, 16 GB, 30 GB disk; Docker57 | Transcripts in US storage; no zero data retention (ZDR) or customer-managed keys (CMEK); the default allowlist includes writable *.amazonaws.com, and GitHub, MCP and the Anthropic API bypass every network level5758 | Not for bank code At most a ≤6-week public-data pilot after risk assessment, DPIA and transfer impact assessment; revisit if EU storage with ZDR or CMEK and a DORA addendum arrive |
| Cloudflare Containers GA | Root docker:dind with host networking only; Testcontainers broken by default59 | 4 vCPU / 12 GiB / 20 GB defaults, raised only by negotiation; no KVM60 | Skip The Cloudflare triggers in chapter 12 |
Docker Sandboxes (sbx), laptopsCLI v0.54.0 16 Nov 202666 | MicroVM per sandbox with its own daemon; deny-by-default egress through a host proxy that injects credentials61 | Mandatory Docker login; central policy needs a paid subscription;62 customer defends Docker for agent actions14 | Not at launch Revisit if legal accepts the AI-agent terms (open question) |
The cheapest risk is the simplest full VM. At under 3% of total cost, compute is not worth optimising at the price of isolation clarity, Docker or KVM support, or a new ICT third party. AWS says a Nitro Sandbox warm pool claims a pre-booted VM "in about two seconds" (vendor claim),63 but our target is two minutes, and the substrate changes only on the written trigger above.41
Switching stays cheap. The launcher sits behind a port with three verbs (claim a VM, run a harness command, collect artifacts), and the image is a standard Open Container Initiative (OCI) image. A move to EKS or E2B changes the launcher, not the image, the proof chain or the coordinator (inference; see ports in chapter 03).
Many sessions at once
Parallelism is governed, not maximised. The scarce resource is reviewers' attention, not compute, so quotas follow a trust ladder and the queue pushes back when reviews lag (chapter 02).1
- Gate W-tech3 concurrent hosted runs per engineer; background low-risk (T0/T1) work; high-risk (T2) work stays interactive.Weeks 12-13
- Gate L8 runs per engineer; steering a running agent from Slack; scheduled maintenance loops.Month 5
- Gate F115 runs per engineer; triggers, LLM routing and an engine for durable waits.Month 6
- Backpressure. An implement task queues while its requester has three or more unreviewed agent PRs, and the bot says why.
- A cap on high-risk work. Open T2 agent PRs per domain are capped at twice that domain's certified approvers.
- Capacity is measured, then bought. The start-time service-level objective (SLO), p95 ≤2 minutes, must hold on pilot runs to pass W-tech, and warm-pool size is tuned against it; the trigger in section 04.7 opens spike S7. More than three sessions per merged PR means staying at scenario A and funding verification instead.1
- Model quotas are requested in week 0. Bedrock's default cross-Region quota for Sonnet 5.5 is 6 million tokens per minute (TPM), against 30 million for Opus 5.5, and can bind once verification runners scale.64
Deep dive: sandbox compute in euros, and a VM-hour against a session 1 min
In money, sandbox compute is about EUR 560, 2,450 and 8,430 a month in scenarios A, B and C: 0.7%, 1.5% and 2.2% of the total.4 For scale, a 4-vCPU, 16 GiB m7i.xlarge instance lists at USD 0.2142 an hour on demand in Stockholm,65 while a single agent session costs about USD 4.35-10.73 in model tokens on Bedrock's EU route, depending on the scenario (planning estimates).4
What the platform team does first: six actions with owners and dates 6 items
- Request Bedrock quota increases and the private offerOwner: build/CI for quotas; legal and procurement for the private offer · Week 0
- Build image v1 and the laptop baseline; run spike S14 on rootless DockerOwner: harness and evals · Weeks 0-4
- Build the launcher, warm AMI and warm pool, egress with its fallback and probes, and CodeArtifact promotionOwner: build/CI and sandboxes · Weeks 5-8
- Run spike S2 on a frozen build and measure start p95 for the W-tech gateOwner: security with build/CI · Weeks 10-12
- Bring up Android emulators on C8i and
./x stack upwith squad-owned twinsOwner: build/CI, squads · Month 4 - Request EC2 Mac host quota in Frankfurt before iOS work is scheduledOwner: build/CI · When iOS starts