The shared-worker design is the part that stuck: agents take turns on the same Pod, but each keeps its own gVisor or microVM wall, and a session can resume on a different worker after a snapshot. That's a tenant-style boundary at the Pod, and a per-task one at the sandbox. I wonder what's still shared between turns on that worker — filesystem leftovers, a browser profile, or a token that outlived the snapshot.
Small correctio: the Pod isn't the boundary between tenants. Substrate treats the worker Pod as trusted with whatever actors it hosts, the only wall between actors is the gVisor or microVM sandbox.
What's shared between turns:
Shared:
- The worker process, read-only node caches (image layers, published snapshot files), the egress and ingress proxies, and the host kernel and hardware.
Not shared (each actor's state is stored under its own actor UID):
- Filesystem leftovers: atelet wipes the actor's directories on suspend and before each restore.
- Browser profile: It lives in the actor's own rootfs and comes back only for that same actor, from its snapshot.
- Tokens: The platform puts no credentials in the sandbox. The egress proxy adds them to outbound requests. If the agent fetches a token itself, it resumes with that actor only.
An agent idle 95% of its session and still holding a Pod is a horse renting a whole stall to nap in. Snapshotting it and lending the stall to the next one is exactly the kind of thrift I love to see.
The egress proxy needs a content check, not just a destination list: an approved endpoint can still receive proprietary code in the prompt. Test it with one secret sent to an allowed endpoint.
Up to 95% idle is the stat that should make every infra team spit out their coffee, because it means we're reserving memory for agents that are basically waiting on hold. Separating session lifetime from Pod lifetime feels like the agent era's version of what virtual memory did for processes. Curious how you think about snapshot and resume when the agent is mid-transaction with an outside API, since that's where suspend gets spicy.
Good analogy. Substrate can snapshot full memory and resume mid-instruction, but kagent deliberately doesn't.
kagent suspends only when the agent hands control back (task done, or waiting on input or auth), and it snapshots files, not memory. So nothing is ever frozen mid-call. The agent restarts from disk and session history, and the egress gateway adds fresh credentials to each new connection.
I would fix delegated authority first. One workload identity for a whole service cannot tell two users apart when the same agent pushes a change for both of them. I would give each session its own short-lived credential and log the session behind every push, so a bad change traces back to one user, one session and one approval.
Agreed, and that's close to how kagent works. Each session runs as its own Substrate actor with its own short-lived identity (5 to 60 minutes), and kagent binds that actor to the session and the user who started it. Calls out of the sandbox go through the egress gateway, which can add a per-user token, so a push carries one user and one session.
That identity design is the neat part. One push carries one user and one session, so a bad call traces to one actor. Short lifetimes matter, since tokens become credentials.
The shared-worker design is the part that stuck: agents take turns on the same Pod, but each keeps its own gVisor or microVM wall, and a session can resume on a different worker after a snapshot. That's a tenant-style boundary at the Pod, and a per-task one at the sandbox. I wonder what's still shared between turns on that worker — filesystem leftovers, a browser profile, or a token that outlived the snapshot.
Small correctio: the Pod isn't the boundary between tenants. Substrate treats the worker Pod as trusted with whatever actors it hosts, the only wall between actors is the gVisor or microVM sandbox.
What's shared between turns:
Shared:
- The worker process, read-only node caches (image layers, published snapshot files), the egress and ingress proxies, and the host kernel and hardware.
Not shared (each actor's state is stored under its own actor UID):
- Filesystem leftovers: atelet wipes the actor's directories on suspend and before each restore.
- Browser profile: It lives in the actor's own rootfs and comes back only for that same actor, from its snapshot.
- Tokens: The platform puts no credentials in the sandbox. The egress proxy adds them to outbound requests. If the agent fetches a token itself, it resumes with that actor only.
An agent idle 95% of its session and still holding a Pod is a horse renting a whole stall to nap in. Snapshotting it and lending the stall to the next one is exactly the kind of thrift I love to see.
Agree, that alone is the big reason to try out Agent Substrate!
The egress proxy needs a content check, not just a destination list: an approved endpoint can still receive proprietary code in the prompt. Test it with one secret sent to an allowed endpoint.
Secrets are injected at the egress. The agent never sees them.
That said, you can put an agentgateway or similar at the egress point with additional policies and guardrails.
Up to 95% idle is the stat that should make every infra team spit out their coffee, because it means we're reserving memory for agents that are basically waiting on hold. Separating session lifetime from Pod lifetime feels like the agent era's version of what virtual memory did for processes. Curious how you think about snapshot and resume when the agent is mid-transaction with an outside API, since that's where suspend gets spicy.
Good analogy. Substrate can snapshot full memory and resume mid-instruction, but kagent deliberately doesn't.
kagent suspends only when the agent hands control back (task done, or waiting on input or auth), and it snapshots files, not memory. So nothing is ever frozen mid-call. The agent restarts from disk and session history, and the egress gateway adds fresh credentials to each new connection.
I would fix delegated authority first. One workload identity for a whole service cannot tell two users apart when the same agent pushes a change for both of them. I would give each session its own short-lived credential and log the session behind every push, so a bad change traces back to one user, one session and one approval.
Agreed, and that's close to how kagent works. Each session runs as its own Substrate actor with its own short-lived identity (5 to 60 minutes), and kagent binds that actor to the session and the user who started it. Calls out of the sandbox go through the egress gateway, which can add a per-user token, so a push carries one user and one session.
That identity design is the neat part. One push carries one user and one session, so a bad call traces to one actor. Short lifetimes matter, since tokens become credentials.