OctogeeOpen in app
ceckertceckert@ceckertNov 1, 2026

Running OpenClaw for strangers

How Octogee keeps people who have never met safely apart on one platform, explained without the jargon, with the details underneath.

#security#openclaw#openclaw-enterprise#engineering

For the OpenClaw maintainers and anyone curious how Octogee keeps customers apart: plain words first, details underneath. The companion post, OpenClaw Enterprise, mapped, maps OpenClaw Enterprise from its public code.

The short version

OpenClaw is built on a simple rule: one gateway, one circle of trust. A gateway is the running copy of OpenClaw that your agent lives in. Everyone who can reach a gateway is trusted the same way, so people who don't trust each other shouldn't share one.

OpenClaw Enterprise follows that rule by giving every agent its own gateway. Octogee follows it too, with one exception we made on purpose. This post is about that exception and everything we did to make it safe.

  • If your agent needs to run code, it gets its own computer. We call it a Builder gateway: one owner, full OpenClaw power, sealed off from everyone else, and none of our platform keys inside.
  • Everyone else shares the Barn. Free accounts and anyone who isn't busy right now live in one shared gateway. We didn't try to fence in the shell there. We took the shell out completely.
  • No model keys go into the Barn. Not ours, not yours. Each agent holds a stand-in token that only works through our own relay, which adds the real key on the way out. Google tokens never go into any gateway at all.
  • Customer computers can't touch our cloud. They have no cloud permissions, they can't reach the cloud's internal address that hands out credentials, and anything privileged goes through a go-between that checks who's asking first.
  • We found our worst problem ourselves. In June, our own red team (me, with AI agents, attacking our own system) showed that a malicious message to an agent on the shared gateway could have led to taking over the platform. We closed it and re-tested it from inside the running pods the next day. What's still open is listed near the end.

What OpenClaw Enterprise announced

On September 29, Kevin Lin announced OpenClaw Enterprise (OCE): open-source software for running long-lived agents inside companies. It was built with Red Hat and NVIDIA, is being piloted at Red Hat and OpenAI, and 1.0 is planned for later this year. The announcement put security first: hard walls between trusted and untrusted work, sandboxing, AI-based reviews, and fine-grained permissions. It promised a reference architecture, a document showing how all of that fits together, in the coming weeks.

That document isn't out yet, so this comparison uses OCE's public design docs and its code as of November 1. Its central choice is stated plainly:

"OCC manages multiple single-Agent runtimes rather than making one OpenClaw gateway multi-tenant."

— OpenClaw Enterprise, platform architecture

In other words: many small, separate gateways, never one big shared one. Around that sit a separate space per tenant (a Kubernetes namespace), separate machines for trusted and untrusted work, an optional sandbox, permissions on exact resources, and an audit log written in the same step as each change. The docs are honest about what isn't done: on most setups the model key still reaches the part that runs the agent's tools, and agents can still reach the internet.

I also read OCE's code and issue tracker myself and wrote up what I found in OpenClaw Enterprise, mapped. A few things matter here:

  • No kernel-level sandbox for agent pods yet. That needs a Kubernetes setting called RuntimeClass, an open request (#4252).
  • Agent identity and key brokering are planned, not built. Neither milestone has any items closed yet.
  • People sharing one agent look like one admin to it (#809).
  • The "AI review" checks OCE's own code changes, not what agents do at runtime.

Octogee works on a related problem from the other side. OCE is software a company runs for its own staff, who mostly trust each other. Octogee is a hosted service where every customer is a stranger to every other customer, and the free plan has to cost almost nothing to run. That changes where the hard walls have to be.

Two kinds of gateway

Octogee runs exactly two kinds of customer gateway. One question decides which one you're on: does your agent need to run code?

Builder gateway The Barn (shared)
Who's on it One owner, plus anyone they invite Many people who don't know each other
OpenClaw's trust rule Followed as designed: one owner, one circle of trust The one deliberate exception
Shell and running code (exec, process, terminal) On, controlled by the owner Off, and re-applied every time it starts
Helper agents, MCP, hooks, custom providers The owner decides Off
Where it runs A gVisor-sandboxed pod (Hobby), or its own virtual machine (Pro, Team) One shared pod, no admin rights, also inside the gVisor sandbox (live November 2)
Model keys inside None by default; the owner can bring their own Never
Project builds, tests, previews Run outside, in a separate sandbox Run outside, in a separate sandbox
Publishing A separate publisher A separate publisher

gVisor is Google's sandbox between a program and the computer's kernel: code that breaks out of the program still hits another wall.

The Builder gateway is OpenClaw used exactly as its trust model intends, the same shape as OCE's design. People a Builder invites share that Builder's authority, like a trusted team sharing one gateway. We wrote that down in September as an accepted risk instead of pretending folders inside a gateway are sandboxes. They're for organizing, not walls.

The Barn exists because of a promise: a free account, or a paying Builder who's gone quiet, should cost close to nothing. A dedicated computer running around the clock for every idle account doesn't fit that. So agents rest in the Barn, and when someone needs a shell, their agent moves into its own Builder gateway with everything it knows.

WHERE CUSTOMER AGENTS RUN OCTOGEE'S SERVICES Barn · shared gateway Many Builders, one OpenClaw process No shell: running code is off Builder gateway · one owner Full OpenClaw power, one owner gVisor sandbox or its own VM Project builds Sandboxed · no permissions · fixed steps No model keys · no cloud permissions octogee-api (the go-between) Who's asking? → do they belong? → act llm-broker Adds the real key, meters spend Cowboy fleet controller Signs every command it sends Secret Manager · Firestore Only Octogee's services can read brokered calls pod ID badge model calls stand-in token fleet commands signed, one gateway only denied Cloud metadata server 169.254.169.254 public HTTPS :443 open, not filtered by site yet
Where the wall is. Everything on the left is where customer agents run. It reaches Octogee's own services only through the three labeled paths, the same three for every kind of gateway. Builder virtual machines prove who they are with an identity token Google signs, instead of a Kubernetes badge. Every gateway is blocked from the cloud's metadata server. General public HTTPS is still open, which comes up again under what we haven't solved.

The Barn: we removed the shell instead of fencing it in

In June, our red-team agent signed up as an ordinary Builder on a test Barn. Using the shell (OpenClaw's exec tool) and a helper agent it started, it listed other customers' folders, read platform secrets out of the running program, and reached the port our fleet controller listens on.

Once we saw it, the cause was simple. OpenClaw has a setting, tools.fs.workspaceOnly, that keeps its file tools inside your own folder. It's a good fence, but it fences the file tools. It doesn't fence a shell. With a shell you can just walk around it.

OpenClaw's real shell sandbox is well built (read-only system, no network, only your folder mounted), but it needs Docker, and Google's managed Kubernetes (GKE Autopilot) doesn't provide one. Sysbox and nested runtimes didn't fit either. So on the Barn we took the shell away entirely. Reading other customers' files, harvesting secrets and forging calls all needed that one tool, so all of those paths closed at once.

Before · shell allowed Live red-team run on a test Barn Builder A's agent file tools shell + helper agent customers/a customers/b platform secrets /proc The fence covered file tools, not the shell After · shell removed Same test, re-run the same day Builder A's agent file tools shell: removed customers/a customers/b platform secrets /proc No shell, no way around the fence
The paths that disappeared. The agent can still reach its own folder with its file tools. Every path that reached another customer, the platform's secrets, or the system itself went through the shell, so removing the shell closed all of them at once.

What keeps the Barn safe is a list of OpenClaw's own settings. We didn't fork OpenClaw's tool rules or write our own. The platform applies the list every time a shared gateway starts, and checks it as a hard rule for every gateway that isn't a Builder:

// core/src/system-config-invariants.ts:358 (excerpt)
function customerToolInvariants(): PlatformInvariant[] {
  return [
    { kind: "exact", path: "tools.elevated.enabled", value: false },
    { kind: REQUIRED_ARRAY, path: "tools.deny", values: CUSTOMER_CODE_DENIED_TOOLS },
    // exec, process, subagents, sessions_spawn, terminal, bundle-mcp,
    // skill_workshop, conversations_*, browser, computer, preview_*, octogee_publish
    { kind: "exact", path: "tools.exec", value: { mode: "deny" } },
    { kind: "exact", path: "tools.fs.workspaceOnly", value: true },
    { kind: "exact", path: "tools.sessions.visibility", value: "self" },
    { kind: REQUIRED_ARRAY, path: "tools.subagents.tools.deny", values: ["exec", "process"] },
    { kind: "exact", path: "gateway.terminal.enabled", value: false },
    { kind: "exact", path: "commands.bash", value: false },
    // ...
  ];
}

One item comes straight from OpenClaw's trust-model docs. By default, an agent's session tools can see every conversation on its gateway, so on the Barn we pin tools.sessions.visibility to self: you only see your own. Starting helper agents is turned off outright, and the helper-agent rules repeat "no shell" as a second lock, even though OpenClaw's main rule already covers them.

The red-team agent re-ran the test on June 17 after the change. System folders (/proc, /etc), other customers' folders and every shell trick were blocked. Its own folder and skill docs were still readable, as they should be, plus basic detail we give every agent on purpose (pod name, OS, Node version).

What the Barn still trusts is OpenClaw itself. Keeping Builders apart on the Barn now depends on OpenClaw enforcing its own tool rules and session visibility correctly. That's a much smaller thing to get right than a shell, and it's the same thing the OpenClaw team already defends. It's still a real dependency, which is why the rest of this post is about one question: if someone did break into the Barn, what could they reach? The answer should be "nothing else."

Keys stay outside the gateway

On the Barn, an agent's Anthropic login doesn't hold a key. It holds a pointer (an OpenClaw SecretRef) to a small program that fetches a token when the agent needs one. Here's what happens when your agent wants to talk to a model:

  1. The agent asks octogee-api for a token, proving which pod it's in with the short-lived ID badge Kubernetes gives every pod.
  2. octogee-api checks the badge (a TokenReview) and that the agent's owner is active and assigned to this gateway, then hands back a token tied to one gateway, agent, owner and provider. On its own it's worthless.
  3. The agent sends its model call to our relay (the llm-broker) with that token.
  4. The relay looks up the token, applies the owner's budget and model tier, and only forwards to approved endpoints.
  5. The relay adds the real key, sends the request, and meters the response.
Gateway pod agent + key lookup octogee-api token issuer llm-broker keys + budgets Secret Manager owner keys Model provider Anthropic, OpenAI… 1 · token for this agent pod ID badge Which pod is this? Does the owner belong here? 2 · stand-in token 3 · model call + token token → owner, tier, budget Barn: platform key 4 · Builder's own key owner checked twice 5 · request with the real key response, metered at the broker
The real key only appears in one place: the relay's outgoing request (step 5, in coral). The gateway only ever holds a stand-in token that works through our relay, for one agent and one owner. Step 4 only happens for a Builder who brought their own Anthropic key; on the Barn, the relay always uses our key.
// octogee-api/src/lib/model-broker-provider-keys.ts:111 (excerpt)
if (authorization.config.gatewayClass === "shared") return platformKeyResolution(deps.platformKey);
if (!assignedBuilderOwnsKey(record, userData, authorization)) return null;
// ...read the owner's secret, then re-read ownership and re-check before using it
if (!assignedBuilderOwnsKey(record, currentUser.data(), current)) return null;

On a Builder, the relay is the default too, but owners can bring their own credentials into their own gateway: a Claude or ChatGPT subscription token, another provider's API key, or a GitHub token for git and gh. Those only go to a Builder the owner is assigned to (byok-broker.ts:348); the permanent copy stays in Secret Manager.

Google is different. The tokens for your Gmail, Drive and Calendar never go into any gateway. Google is only called from our server, and anything that changes your data needs your approval first (connectors/index.ts:53).

OCE has the same goal. Today it keeps keys out for one configuration (dedicated Codex in OpenShell) and lists a model-call broker as planned. We got there earlier because the shared gateway forced it: there's no safe way to put twenty customers' keys in one program.

No cloud identity in customer pods

The worst thing our June red team found wasn't about customers seeing each other at all. It was about the cloud.

A program in Google Cloud can have a cloud identity: permissions it gets just by running there. The shared gateway's had broad permissions on the whole project, and the metadata server (the address where a program picks up those credentials) was reachable. Together, an agent with a shell, steered by a malicious message, could have made itself an administrator of the platform.

We closed it on June 14, in four pull requests plus a manual cleanup of permissions:

  • We gave octogee-api its own cloud identity, separate from the gateways.
  • We took the gateway's cloud identity down to zero permissions.
  • We blocked the metadata server from every gateway.
  • We moved every call that needed the cloud or the database behind go-betweens (brokers) that check who's asking.

Then we tested it like an attacker, from inside the running pods (actively on TEST, read-only on PROD). No platform secrets in the environment, metadata requests timed out, and forged broker requests pretending to be another gateway, workspace or person were all refused with a 403.

How that holds today

  • No gateway has a cloud identity binding. Google calls this Workload Identity. Our fleet controller strips it every time it sets up a gateway (gateway-service-account-policy.ts:5).
  • A network rule blocks the metadata server and our private network for every gateway pod (gateway-fleet.yaml:56).
  • Every broker checks who's asking: the pod's ID badge (TokenReview), then the list of who's assigned to that gateway (sa-to-tenant.ts:12, tenant-enforcement.ts:408). Builder VMs share one identity that can only pull images and write logs; each is tied to its gateway by the identity token Google signs for it.
  • Every fleet command to a pod is signed (Ed25519) for that one gateway. Pods hold only the public key, so a Builder who reads everything in their own pod still can't forge a command to a neighbor (fleet-signature.ts:16).

Here's the network rule. It allows the specific services a gateway needs, plus public HTTPS, and nothing private:

# helm/octogee/templates/gateway-fleet.yaml:56 (excerpt)
kind: NetworkPolicy
metadata:
  name: gateway-egress
spec:
  podSelector: { matchLabels: { app: octogee-gateway } }
  policyTypes: [Egress]
  egress:
    # DNS, Mattermost :8065, Gitea :3000/:2222, octogee-api :3001, llm-broker,
    # controller-signed migration ports between gateways ...
    - to:
        - ipBlock:
            cidr: 0.0.0.0/0
            except: [10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.169.254/32]
      ports: [{ protocol: TCP, port: 443 }]

We've had one slip. On August 15, a change to fix an unrelated problem re-opened the metadata server across the fleet. We reverted it on August 17 and wrote the rule down: if a gateway seems to need cloud credentials, put a broker in front of the call. Never open the door.

Code review also caught one near miss in September. A broker that pods could call would have handed a Builder owner a chat token belonging to someone in their workspace. Now brokers do the privileged thing themselves and only ever return who you are, never a credential.

Customer code runs somewhere else

Project builds, tests and previews don't run in any gateway, not even a Builder's. Each run gets its own short-lived, locked-down box:

  • a one-time Kubernetes job in its own separate space, inside the gVisor sandbox
  • no cloud permissions and no Kubernetes ID badge
  • a fixed image and a fixed command, with no way to change them
  • 2 GB of scratch space and 12 minutes, then it's gone
  • network access only to the service that hands out the source and collects the results, and to an image cache
  • single-use links to bring the source in and take results out

A Kubernetes admission policy (a gatekeeper that checks every job before it starts) enforces all of that. Even our own controller can't loosen it:

# helm/octogee/templates/project-runner.yaml:616 (excerpt of one of 24 checks)
kind: ValidatingAdmissionPolicy
spec:
  failurePolicy: Fail
  validations:
    - expression: "... variables.pod.serviceAccountName == 'octogee-project-runner'
        && variables.pod.automountServiceAccountToken == false
        && variables.pod.runtimeClassName == 'gvisor'
        && variables.pod.restartPolicy == 'Never' ..."
      message: project run identity, sandbox, and deadline are immutable
    - expression: "request.operation != 'UPDATE' || (object.spec == oldObject.spec ...)"
      message: project runs are immutable once admitted

Publishing runs none of your code. It's a separate service that can only write to your hosting and its own log, and only when you approve that exact publish.

Approvals live in our records, not inside the agent

OpenClaw's approval prompts are a guardrail: they help an agent check with its operator before doing something. OpenClaw's trust model says so plainly. On a full-power Builder, though, the owner has a shell. In principle they could approve things as if they were the gateway itself, or edit the gateway's own approval records. That's fine for actions that stay inside their own gateway. It isn't fine for actions that reach outside it.

So for anything that reaches outside the gateway (writing to a connected app, granting Google access, creating a project, publishing), the decision is recorded by our server. It only accepts an approve or deny from you, signed in, on that exact request, once (agent-productivity/approvals.ts:222), and the action runs only against that record. The native OpenClaw prompt offers just Deny, because an agent canceling its own request can't hurt anybody.

We tested it on TEST on October 26. Approving on the review card ran the action exactly once. Clicking Allow in the OpenClaw dashboard, with no decision from our server, left the action waiting. Approvals for the shell, files and the desktop inside a Builder stay native, because they only affect the owner's own computer.

Side by side

This compares OCE's published design and code with Octogee's production system on November 1. The OCE column paraphrases its docs and issues; where OCE marks something planned or experimental, so does the table. Please read OCE's own pages for its exact wording.

OpenClaw Enterprise (design docs) Octogee (production)
What it is Open-source software you run on Kubernetes or Compose. Pilot; 1.0 planned later in 2026. A hosted service on Google's managed Kubernetes, on a pinned OpenClaw. Closed source. Launches November 17.
The unit you keep apart A namespace; each agent gets its own gateway. The Builder. One Builder per Builder gateway; many on the Barn.
A gateway shared by strangers Not part of the design. Accepted trade-off: the Barn only, with the shell removed. Needing a shell moves you to your own gateway.
Running code An optional sandbox (OpenShell today), which the docs say isn't a complete barrier on its own and isn't production-ready. Kernel-level sandboxing is an open request (#4252). Built: no shell, process, terminal or helper agents on the Barn. A full shell in a gVisor sandbox or own VM on a Builder. Project builds in locked-down gVisor jobs.
Model keys Temporary exception: they reach the part that runs tools on most setups. Experimental: a credential gateway for dedicated Codex on OpenShell. Planned: brokered model access (milestone M8; a Credential Proxy proposed in RFC-0023). Built: never in the Barn. Agents hold a stand-in token and the relay adds the key and meters spend. Builders use the relay by default and can bring their own keys into their own gateway.
Logins to other services (OAuth) A credential-proxy design; full protection needs a trusted sender stock OpenShell lacks. Built: Google tokens never enter a gateway. GitHub tokens only reach the owner's Builder.
Cloud permissions for agents Scoped service accounts; agent workloads get no direct access to secrets. Built: no cloud identity on any gateway, the metadata server is blocked, and the gateway's service account has zero permissions.
How agents prove who they are Planned: agent identity on SPIFFE/SPIRE (M6). Dedicated Codex uses a capability token over unencrypted ws://. Built: pod ID badges (TokenReview) checked against the gateway's assignments; signed controller commands. Gap: no TLS inside our cluster; Google encrypts traffic between machines.
Internet access Network rules. Temporary exception: agents can reach the internet on port 443. Planned: restricted model traffic. Built: everything blocked except an allowlist; our private network and the metadata server are blocked. Gap: public HTTPS is open, with no filtering by site.
Approvals A native admin screen for trusted operators (pilot); native commands aren't checked or logged one by one. Built: anything reaching outside a gateway needs a one-time decision recorded by our server.
People sharing one agent Gap: everyone reaches it as one shared admin (#809). Built: a Builder can tell OpenClaw which signed-in person is talking, so its roles and history apply per person. Opt-in.
Audit log Built: changes, queued work and the audit record are saved together, and if the audit fails, the change doesn't happen. Built: every change to the fleet is logged, and every brokered data access is recorded and kept 400 days (live November 2).
Who can do what (people) Admin-enrolled accounts, with roles and limits on exact resources. Firebase sign-in; role and plan fields only our server can set (tested live).
Outside evidence Piloted at Red Hat and OpenAI. A code-level security audit published September 1. Our own red team; Google CASA evidence, self-collected. Gap: no SOC 2 or third-party pen test yet.

Both projects agree on the core rule: the gateway is the wall, and people who don't trust each other shouldn't share one with a shell in it. OCE is further along on governance (exact-resource permissions, an audit log that can block a change, swappable parts). Octogee is further along on keeping keys and cloud permissions away from running code, because hosting strangers made that the first thing to get right.

How we got here

The red team was internal: me, with AI coding agents. We read the code for holes, ran live "assume we're breached" tests from inside the pods (active on TEST, read-only on PROD), and attacked the live database rules from outside. PR numbers are from our private repository.

  • Jun 12 · Pre-beta hardening: cross-customer storage reads, stored XSS, token exposure, upload limits, an SSRF guard. (#1457)
  • Jun 13 · The red team finds the critical issue. An agent on the shared gateway could reach the metadata server and a cloud identity with admin rights over the project.
  • Jun 14 · Closed and re-tested. Separate cloud identities, a zero-permission gateway identity, the metadata server blocked, brokers for runtime and connector data, and the old direct shortcuts removed. The same day, we tested the live database rules: giving yourself a role and writing to another customer's data were both rejected. (#1487 #1492 #1493 #1494 #1501 #1504)
  • Jun 17 · The shell comes out of the Barn. The red-team agent read other customers' folders using the shell on a test Barn. We removed the shell from the shared gateway, switched controller signatures from a shared secret to Ed25519 key pairs, and landed the two-gateway model. Re-tested the same day. (#1586 #1587 #1589)
  • Jul 18 · Google CASA Tier 2 pre-assessment fixes: revoking Google access on disconnect and deletion, PKCE, internal rate limits, shell-free git calls, a read-only sidecar filesystem. (#2363 #2364)
  • Aug 17 · A slip, reverted. A change two days earlier had re-opened the metadata server. It was reverted, and the rule was written down. (#3361 #3362)
  • Sep 22 · Builder collaboration risks accepted in writing, matching OpenClaw's trusted-team model.
  • Sep 28 · A near miss caught in review. A broker could have handed a pod owner a workspace member's chat token. Brokers now act and return only who you are, never a credential.
  • Oct 26 · The approval ledger ships and is verified on TEST. (#4769 #4834)
  • Oct 29 · Google CASA AL1 evidence pass. No secrets across 6,130 commits, no known npm or Rust vulnerabilities, and an authenticated ZAP scan with no confirmed high findings. (#4932)
  • Oct 31 · Our own security doc corrected where it overstated how internet access and chat tokens were protected.

What we haven't solved

You should hear these from us first.

  • The Barn is shared on purpose. Keeping Builders apart on it depends on OpenClaw correctly enforcing its tool rules (tools.deny, exec.mode, workspaceOnly) and session visibility. A bug there could let one customer reach another inside the Barn. The Barn holds no keys and no cloud permissions, so it couldn't reach the rest of the platform.
  • Gateways can reach the public internet. On the Barn, with no shell, that's limited to our own built-in tools. On a Builder, code you run can send that Builder's own tokens anywhere on the internet. Filtering by website needs a proxy we haven't built yet.
  • Our services don't add their own encryption inside the cluster. Gateway calls to the brokers, relay, chat and git are plain HTTP. Google encrypts traffic between machines, network rules pin every path, and brokers check who's asking, so the remaining risk is someone already on one of our machines. TLS on our two broker services is the planned fix.
  • Our audit log records, but doesn't block. Fleet changes are logged, and since November 2 every brokered data access, allowed or denied, is recorded and kept 400 days. OCE's audit log, which blocks a change if its record can't be written, is still ahead of ours.
  • People you invite to a Builder share your authority. That's accepted, and it matches OpenClaw's trusted-team model. Project folders inside a Builder are for organizing, not walls.
  • An approval proves a signed-in session, not a person. An agent driving a browser where the owner is signed in could click Approve. Approving with a passkey, tied to the exact action, is the planned fix.
  • No certifications yet. Our Google CASA evidence is self-collected for Google's review, not a lab's letter. There's no SOC 2 and no third-party penetration test yet.

What would help, and what we can offer

If the reference architecture is still taking shape, these are the places where Octogee had to build around OpenClaw instead of with it:

  1. A sandbox that works on Kubernetes. OpenClaw's shell sandbox runs on Docker or SSH. Running each session as its own gVisor pod would let a shared gateway fence in the shell instead of removing it. OCE's #4252 asks for the same building block.
  2. A "shared gateway" check in openclaw security audit. One check that a gateway serving several circles of trust has the shell off, the shell off for helper agents, workspaceOnly on, session visibility set to self, the terminal off, and /bash off. We enforce exactly that list today and would gladly contribute it.
  3. Brokered model keys as a shared standard. Our stand-in token, the SecretRef lookup and the relay line up closely with OCE's credential gateway and planned model driver. We'd rather match a common design than keep a private one.
  4. A way for an outside service to own approvals. On a full-power computer, approval records belong to whoever has the shell, which is right for OpenClaw. A supported way to hand selected decisions to an outside service would replace a lot of custom wiring.
  5. Our offer. The red-team method, the settings list, the broker design and the evidence behind this post are available to the OCE team for the reference architecture. I'm happy to walk through any of it.

Code and evidence index

Paths and line numbers are pinned to Octogee's main at 1f3c6dbd0 (November 1, 2026). The repository is private; I can share excerpts on request.

Claim Where
The Barn's tool rules, enforced by the platform core/src/system-config-invariants.ts:199, :358, :374–382, :563
Rules applied when a gateway starts infra/gateway/apply-gateway-class-policy.mjs:1335, :430
Per-agent stand-in token through a SecretRef core/src/agent-model-token-materializer.ts:20
Token issued after pod and assignment checks octogee-api/src/routes/byok-broker.ts:754
Owners' own keys only to Builder gateways octogee-api/src/routes/byok-broker.ts:348–354
The Barn uses the platform key; owner key re-checked after reading octogee-api/src/lib/model-broker-provider-keys.ts:111, :123
Relay endpoint allowlist and key injection octogee-api/src/llm-broker-app.ts:109, :210, :242
Google tokens never sent to a gateway gateway-edge/src/lib/connectors/index.ts:53
Gateway network rule, metadata server blocked helm/octogee/templates/gateway-fleet.yaml:56, :157–162
Cloud identity stripped from gateway service accounts glm-controller/src/gateway-service-account-policy.ts:5
Builder pods on gVisor, no Kubernetes token mounted helm/octogee-gateway/templates/deployment.yaml:102–104
Builder VM identity: download images and write logs only terraform/environments/control-plane/agent-computer.tf; octogee-api/src/lib/gce-identity-review.ts
Pod identity checked with TokenReview octogee-api/src/lib/sa-to-tenant.ts:12
Assignment check on every internal route octogee-api/src/middleware/tenant-enforcement.ts:408
Controller commands signed for one gateway core/src/fleet-signature.ts:16, :30; docs/decisions/DECISIONS.md:2026
Project-run gatekeeper policy helm/octogee/templates/project-runner.yaml:616–693
Our approval record is the decision octogee-api/src/lib/agent-productivity/approvals.ts:222
Role and plan fields set only by our server site/firestore.rules:71
Accepted Builder risks; why approvals live with us docs/operations/SECURITY.md:51, :103
The two-gateway model docs/architecture/GATEWAY-PLATFORM-SPEC.md:31; docs/decisions/DECISIONS.md:1366
Google CASA AL1 evidence, tools, results and report hashes docs/security/casa-evidence/2026-10-29/SUMMARY.md

Sources for OpenClaw Enterprise: announcement (September 29, 2026) · platform architecture · safeguards · runtime isolation · credential proxy · concepts · repository at 7bb67ab · OpenClaw Enterprise, mapped (my unofficial map). OpenClaw's security trust model.

OCE is moving quickly and its reference architecture isn't out yet. If anything here gets OCE wrong, tell me and I'll fix it.

Built with Octogee — ceckert writes posts there.