Skip to content

v0.28.0

Choose a tag to compare

@carrollco carrollco released this 22 Nov 12:55

When the process running an agent died, its plimsoll sandbox died with it: the files the agent had written were gone, and nobody could say whether the last command had run. In v0.28.0 another process can take the sandbox over from a saved checkpoint, and the call whose answer was lost is accounted for by its record instead of being sent again blind. The release also adds packages for LangChain, Microsoft Agent Framework, smolagents and PydanticAI, lets a kit's code tool call one approved web API from inside the sandbox, and replaces plimsoll's Node project runner with a small native program. It breaks things: protocol 7, record version 5, rebuilt images, and a daemon that listens on this machine only unless told otherwise. Read the first section before upgrading.

Version: v0.28.0.

The pull-request receipt workflow in this tag fails at its image build; copy it from main.

Changes that break an existing setup

Upgrade the daemon and every client together: protocol 7 and run record version 5. A daemon of this release refuses a client of any earlier release, and a daemon of an earlier release refuses a client of this one, each before anything runs, marked not dispatched with the reason protocol (ProtocolMismatchError in Python). The Go, Python and TypeScript clients, the MCP server, plimsoll-attest and the pull-request recipe's prepare.py all state 7. New run records are version 5: version 4 plus the sentence the provider states beside its tier (isolation_qualification), whether a sandbox waiting in a pool ran the call (warm), and the answering daemon's own module version (daemon_version). Every client checks all three. A stored bundle recorded under an earlier protocol still verifies; plimsoll-attest's replay of one is refused as not replayable, as with every earlier bump.

A run record whose provider name holds a control or bidirectional character is refused by every client (DataLoss in Go, RecordMismatchError in Python, a mismatch PlimsollError in TypeScript), plimsoll-attest signs nothing for such an answer, and a daemon whose provider has such a name refuses every call before dispatch. No provider plimsolld builds has such a name, and every published record still verifies.

Version 1 and 2 records that end before they start are retired. Daemons v0.10.0 to v0.12.0 read a record's start and end from the wall clock separately, so a clock step between the two readings could write a genuine record whose end is before its start. A version 2 record does not say which daemon wrote it, so the retirement covers all of versions 1 and 2. Every verifier (record, attest, plimsoll-attest verify-record, the Python and TypeScript clients) now refuses such a record with the text "the record ends before it starts, and that reading is retired by the decision of 2026-11-21" (record.ErrRetired, which attest does not count as an invalid statement), so the refusal reads as a retirement, not a forgery. Every other version 1 and 2 record still verifies (run records).

Rebuild plimsoll's images, and any image of your own built from them. Every project call (a run, a granted run, a session's project call) now goes through /usr/local/libexec/plimsoll-helper run-project, one static x86-64 program in Rust with no outside package, in place of the Node program /runner.mjs, which is gone from every image and from the source tree. Docker, WSL containers, agent-sandbox and OpenShell each refuse at startup an image whose file there is missing, is not a regular file, is not root's, is writable by others, or is not byte for byte the helper the daemon was built with (its SHA-256 is compiled in), naming what is wrong. So run make docker-images (for agent-sandbox, then docker/agentsandbox.Dockerfile) and rebuild anything FROM the new plimsoll/sandbox. make docker-images now passes the named build context nativehelper (--build-context, which needs BuildKit, docker's default builder since 23.0), so a hand-run docker build of docker/Dockerfile or docker/sim.Dockerfile needs --build-context nativehelper=sandbox/internal/nativehelper/program too. Only an x86-64 helper is built, so there is no project image for 64-bit ARM yet.

OpenShell: add the native helper to your image. SANDBOX_OPENSHELL_IMAGE must carry the helper of the same release as plimsolld at /usr/local/libexec/plimsoll-helper, owned by root, mode 0755, with no setuid or setgid bit, and its sandboxes must run on x86-64 (another machine is refused by name at startup; plimsolld itself may run anywhere). In the image's recipe: COPY --chown=root:root --chmod=0755 sandbox/internal/nativehelper/program/plimsoll-helper_amd64 /usr/local/libexec/plimsoll-helper, checked against the plimsoll-helper_amd64 line of sandbox/internal/nativehelper/program/plimsoll-helper.sha256; or build FROM this release's plimsoll/sandbox. Without it the provider refuses to serve ("the image's project runner is not the native helper this plimsolld carries"). /runner.mjs and /usr/local/lib/plimsoll-runner-guard.so are no longer read there and may be removed (OpenShell guide).

What a project step sees of the runner changed in four ways, on purpose, each measured against the Node runner by the runner equivalence suite: a step's standard input is /dev/null and its output two pipes (it was three sockets), so > /dev/stdout now works; an error's text in an outcome's detail starts with the error's code (EISDIR, ELOOP, ENXIO) rather than Node's wording; an artifact is read only up to the size checked against the 8 MiB budget, so one a step keeps growing can no longer pass it; and every signal a step sends the runner (PLIMSOLL_RUNNER_PID) except KILL and STOP is ignored, so the call completes where it used to end as protocol_error. A step that a real-time signal (34 to 64) ends now reports exit 128 plus the signal (163 for signal 35), as every other signal does; the old runner reported -1. Environment names that are whole numbers keep the order the image or a grant's sdk_env gave them, and a NUL in such a value fails the step (exit -1) where Node failed the run.

Docker: plimsoll's guest guard in front of every program, and docker on x86-64 only. Every program the docker provider starts in a container now starts behind the guest guard, a seccomp filter of plimsoll's own (the kernel's filter on which requests a process may make) that refuses the requests that make a namespace or a mount of the code's own, and tracing. What you meet: gdb, strace and other debuggers do not work in a docker sandbox, nor does unshare; the guard is built for x86-64 only, so the docker provider does not start on another machine type and refuses a docker daemon, DOCKER_DEFAULT_PLATFORM or image for another machine than plimsolld's own, emulated ones included. Every docker run plimsoll writes says --init=false, and in a session the guard is the container's first process (limitations).

Docker: a copy of plimsoll's seccomp profile from v0.27.2 or earlier is refused at startup. Copy docker/seccomp.json again from this release (to /etc/plimsoll/seccomp.json, as the docs show). The security section below says why.

Images and templates need node v22.14.0 or later (v23.7.0 in the 23 line, any v24) where plimsoll starts node programs of its own: docker sessions and the granted-run forwarder, OpenShell's relays and sessions, E2B sessions. Each starts with --disable-sigusr1. A WSL containers or agent-sandbox run starts none, so those no longer need node for plimsoll's runner. The squeeze example's flight step needs that node too: on an older one it exits 9.

The daemon listens on this machine only unless told otherwise. With PLIMSOLL_ADDR unset, plimsolld binds 127.0.0.1:8746 (it was :8746, every interface). A deployment in a container or on Kubernetes must set the address, for example PLIMSOLL_ADDR=0.0.0.0:8746, or nothing outside reaches it. Open development mode (a real provider, PLIMSOLL_INSECURE=1, no token or callers file) refuses to start unless the address it actually bound is a loopback address, and answers only requests addressed to localhost or a loopback address. Hardened mode judges the addresses actually bound, and no longer accepts the name localhost for loopback.

The callers file, the grants file and the withheld-set file must be owned by root or the daemon's user and not writable by group or others, and so must every directory on the way to them and every symbolic link's target; otherwise the daemon refuses them (plimsolld -h says so).

E2B sessions need a template built from plimsoll's recipe (e2b/README.md; the build command is now e2b template create). On E2B's own base template single runs work and a session is refused at its open, in words that say why. A session can no longer write, replace or install into /usr/local: its open takes that permission back before any session code runs, and refuses a template where it cannot. Single runs are unchanged.

The Python adapters install exactly one version of their framework. crewai-plimsoll requires crewai==1.15.23 (it was >=1.15.23,<2), and plimsoll-client's extras each install exactly the version its suite runs against: google-adk==2.14.1, agno==3.1.1, crewai==1.15.23, langchain-core==1.8.0, deepagents==0.7.38, anthropic==1.13.0, openai-agents==0.25.0, verifiers==0.4.1.dev97. pip refuses to install an adapter beside another version of its framework. The new packages below pin the same way.

Grant broker (the per-run proxy outside the sandbox that forwards a guest's calls to an approved API):

  • A grant profile that passes or sets a method- or path-override header (X-HTTP-Method-Override, X-HTTP-Method, X-Method-Override, X-Original-URL, X-Rewrite-URL, in any letter case) fails to load, and so does one whose sdk_env, preamble, global or set_headers holds its own static token or signing secret.
  • A JSON body whose top level names _method is refused (403); a body sent as JSON that is not valid UTF-8 JSON is refused (400); the broker writes the Content-Type the API receives, and refuses a parameter other than a multipart boundary or one of three charsets (415).
  • An API answer that holds an exact copy of the run's credential never reaches the code: the call gets the broker's own 502 ("host api answer held this run's credential"), a stream already begun ends before the piece that held it, and the run's grant ends, so every later call of that run gets 503. The audit line counts it (host_calls_credential_matched) and names a possible guessing attempt (host_credential_alert). A credential used with a grant must be random (capability grants).

Which refusals carry the not-dispatched mark changed, each so that a client never retries a call that may have run:

  • Docker: a fresh run the guest guard refuses is an error with no mark (Internal over RPC); the mark at a run's launch stays only where docker was never started. In a session that already holds code, such a refusal ends the session, with no mark.
  • E2B sessions: a call whose stager fails after it started (a deadline or the session's end during staging included) is an error with no mark.
  • Session cells: an interpreter that could not start in an image that has the language is a not-dispatched refusal with the reason environment (Internal with an error ID over RPC; it was Unimplemented), and a language Describe does not state is refused before any command with the reason unsupported.

Library and tool interfaces.

  • Go client: a daemon answer the client cannot read is DataLoss; it used to be ErrInvalidRequest.
  • TypeScript client: base64 in a daemon answer is read strictly; characters outside the alphabet are refused.
  • Go package attest: VerifyExpected takes attest.Expected{Requests, Unanswered} instead of a list of digests, and plimsoll-attest verify gains -expect-unanswered M and the -expect line form unanswered DIGEST. A call the caller sent and got no answer for counts only when the caller states it.
  • Placement: opening a session takes Requirement.SessionGrants (which kinds of call carry a grant: Snippets, Projects) and refuses GrantProfile; a single run refuses SessionGrants; a Backend name the pool does not have is refused by name; and a run that happened on another provider than the one required returns ErrProviderMismatch with its result (it used to be a success).
  • MCP server, remote mode (serve-http): tool lines (tool_admission, checked_record, background warnings) moved to tools.jsonl; audit.jsonl holds security events only and may grow to 4 MiB a file. MCP Go API: Receipts.Full takes a share argument; Server.RecorderFor and server.MaxOutstanding are new.
  • plimsoll-attest, plimsoll-clients, plimsoll-withheld and plimsolld's log lines show control and bidirectional characters in text from outside as escapes (\x1b, \u202e), in text and in JSON output.
  • smolagents adapter: a final answer of a kind the adapter does not write is refused, naming the kind (13 kinds are carried). PydanticAI adapter: a PydanticAI without the durable mark the adapter reads is refused at import.

New

A session can be carried on from another process. An agent's job that moves to another machine (a workflow step retried elsewhere, a conversation picked up by another server) keeps its sandbox: another process of the same caller takes the session over with AttachSession from a checkpoint the first one saved (the session's public chain head and its policy, no secret), and carries the chain of run records on. Every session call and close carries the session's ownership generation, which each takeover raises by one, so the first process's later calls are refused before they run. A takeover may name a call whose answer was lost: the daemon then moves the session across that one call only when its last record is that call, and returns the record, and the first call after it is refused if it repeats the lost call. The Python client keeps a checkpoint store every call passes through; the Go and TypeScript clients take an explicit checkpoint and can name a lost call only when its answer was lost in the same process. Open development mode refuses every takeover. Anyone holding the caller's credential and a session's run records can take it over, so keep it behind your own authorization when one credential serves many users (sessions). clients/python/examples/pydantic_ai_crash.py kills a worker and carries on in another.

pydantic-ai-plimsoll, for PydanticAI. Its PlimsollWorkspace capability makes an agent run's workspace one plimsoll session, so PydanticAI's own FileSystem tools work in the sandbox, with a shell tool over the same session (plimsoll_shell) and plimsoll's stateless code tool. Files only, as PydanticAI counts it: a plimsoll session kills every process a call leaves behind, and PydanticAI asks a backend with commands never to do that, so the backend claims no commands, and PydanticAI's Coder and Shell add no shell tool on it and give no error. A later run reaches the same session in the same process, or in another process through a checkpoint store. Durable execution (Temporal, DBOS, Prefect) is refused with an error that says why, since no engine's own test has run against it yet. PydanticAI's own conformance suite runs on real docker sessions: 20 rules pass and 20 skip, every skipped one needing commands. It pins pydantic-ai-slim==2.70.0.

smolagents-plimsoll, for Hugging Face's smolagents. A CodeAgent acts by writing Python, which smolagents' default executor runs in the agent's own process. PlimsollExecutor runs it in one plimsoll session instead, each step a cell of the session's Python interpreter, so variables carry from step to step; the floor is checked before any of the agent's code is sent, and code_agent builds an agent that stops at the sandbox's first failure and raises plimsoll's error. Every cell's checked run record, tier and outcome reach the application in executor.records. No pickle travels either way, a final answer is plain data, and text from the sandbox reaches smolagents' console with its terminal control characters escaped. It pins smolagents==1.26.0.

agent-framework-plimsoll, for Microsoft Agent Framework. Agent Framework's own shell tools run an agent's commands on the agent's machine or in a container beside it. PlimsollShellTool gives the agent a shell over one plimsoll session instead: the floor is set in code and checked before any command, a refusal raises instead of becoming command output, and each command's checked run record, tier and outcome reach the application (on the result, in each function result's additional_properties, and on the framework's OpenTelemetry tool span when one is recording). A command that may have run stops the agent's run. It also carries the stateless code tool, and pins agent-framework-core==1.26.0 and agent-framework-tools==1.0.0b261112 (a beta released about weekly).

langchain-plimsoll, and LangChain in plimsoll-client. The LangChain code tool (plimsoll-client[langchain]), which LangGraph's ToolNode, create_agent and graphs of your own call like any other tool, and a Deep Agents sandbox backend over one session (plimsoll-client[deepagents]), which can carry a LangGraph thread on to another worker. retry_on is the retry rule to give LangGraph's RetryPolicy or LangChain's ToolRetryMiddleware: it retries only a refusal marked not dispatched for capacity or environment, since both frameworks' default rules would retry a call that may have run. When a call is traced in LangSmith, the tool adds the run record's digest, the tier, whether the code was dispatched and the outcome to the tool call's run. The same tool and backend are also the package langchain-plimsoll.

Google ADK: an environment. PlimsollEnvironment is ADK's kept sandbox with a shell and files, over one plimsoll session, used through ADK's own EnvironmentToolset (plimsoll-client[adk], ADK 2.14.1).

The kits' code tools can call one web API from inside the sandbox. The code tools of the CrewAI, Agno, LangChain, Agent Framework and PydanticAI packages (CodeExecutor(grant_profile=..., api_description=...)), the TypeScript client's executeCode (the AI SDK's plimsollGrantedCodeTool, Mastra's plimsollGrantedExecuteCode) and plimsoll's MCP server (PLIMSOLL_GRANT_PROFILE) take a grant profile your application chooses, never the model, with the API description plimsoll-specgen writes for it. The code can then call that profile's routes through plimsoll's broker, which holds the API's key outside the sandbox and adds it to each request. The tool reads the daemon's Describe when it is built and offers only the languages that can call the API there: JavaScript on every provider that gives a project run a grant, Python too on docker and OpenShell, through a standard-library module, plimsoll_host, the tool writes into the run. On docker both run end to end in the docker suite, one example per tool against a stand-in API; OpenShell's Python path was not run on a live gateway. A call in a language that cannot reach the API, a daemon that cannot carry the grant and an unknown profile are refused before anything runs, marked not dispatched. What it is not: a list of routes, not of operations or arguments, so the code can do whatever an allowed route permits and read whatever it returns; the run record does not list the calls (the audit line counts them); and a call that keeps state never carries a grant, so smolagents, ADK's code executor, the workspace adapters and the MCP server's run_code with a sandbox handle take none. plimsoll-specgen -only narrows the preamble and the description to a profile's trimmed allow list.

The agent-sandbox provider checks at startup that one sandbox cannot reach another. The startup smoke test used to try only addresses outside the cluster, so a network plugin that let traffic between pods through unfiltered would have passed. It now claims a third sandbox from the warm pool, which runs no code; the guest of the first dials that sandbox's TLS terminator port (9090) and must get no answer, and then plimsolld reaches the same port over TLS, so the port was listening. Startup therefore takes three sandboxes instead of two, and from a warm pool of two it waits for the pool to start one.

plimsolld -h prints every setting from one table, each with its kind, default and help.

Fixes

  • OpenAI Agents SDK provider: releases up to 0.27.2 failed as the SDK started the sandbox (a TypeError in running()); it now starts, each command's run record and tier reach the application, cancellation reaches the daemon, and a file read or write past its budget is the SDK's own error, never retried.
  • Closing a session twice is safe in all three clients: once the daemon has answered a close with its count, a later close returns that first answer and sends nothing; a close that got no count back is sent again. In the Go client before this, a second Close after a call the client had caught could turn a bundle that must fail plimsoll-attest verify into one reported as not proven complete.
  • A session whose close could not be collected no longer ruins a bundle: the harness signs a statement saying so, and plimsoll-attest verify reports the session as NOT PROVEN COMPLETE with the digest of a last call that may have run. A bundle holding that statement needs a verifier of this release.
  • Python, the verifiers runtime: a close that races an open closes the session the open made; before, the close could return while the open went on and left a live session behind.
  • Docker under gVisor: ending a suspended session takes about a quarter of a second, not about 11 seconds, and its place in the concurrency limit comes back that much sooner. The cost, stated on the sessions page: under gVisor the session's code runs again for about 22 ms just before it is killed, with its relays and broker already shut, no network, and its limits in force.
  • Docker: the cleanup that runs every minute keeps working while the startup check fails, one removal that hangs no longer stalls the others, and a session's open no longer fails now and then on a slow start. Under gVisor, a session's exit 137 with no recorded out-of-memory kill names the memory limit as the likely cause.
  • E2B: a session open that the machine itself refuses is a refusal with nothing run (not dispatched, reason environment), never an internal error.
  • MCP server (local or remote): a call whose output cannot be written is answered ran: "maybe", never "no"; get_record reports a receipt as unknown, not failed, when it knows no line for it; a refusal before the handler no longer spends the caller's call meter.
  • MCP server, remote mode (serve-http): one approved app can no longer fill the receipts room for the others (each may write at most half); each connection keeps its own last 256 records; a refresh that meets a restarting server gets 503 with Retry-After and keeps its grant; the earlier refresh credential still works after a restart within the store's 30-second grace; a sign-in request's unknown parameters are ignored, as OAuth 2.0 requires.
  • Placement: one caller's timeout or dropped connection is no longer stored as a daemon's failure, and the Provider requirement is checked against the run record, as Environment is.
  • The daemon's readiness check: at most one check in flight, its answer reused for 5 seconds, under a 40-second budget.
  • The agent kits' READMEs and the guides were corrected where a first-time installer tripped (sessions are off unless SANDBOX_MAX_SESSIONS is set; Python on docker needs the plimsoll/sandbox-python image).

Security fixes

Released versions are affected unless a line says otherwise.

  • Docker seccomp: a guest could make a socket of any family through the 32-bit entry. Every release from v0.2.0 through v0.27.2 shipped docker/seccomp.json listing the 32-bit x86 and x32 architectures beside x86-64. On an x86-64 machine whose kernel has the 32-bit entry, guest code calling socketcall through int 0x80 got a socket of any family (vsock, AF_ALG, netlink and IPv4 measured), although the profile allows socket for AF_UNIX only. Affected: the docker provider under runc with SANDBOX_DOCKER_SECCOMP set to plimsoll's profile or a copy. Not affected: gVisor (so every hardened deployment) and aarch64 machines. The profile now names each machine's native architecture alone, and Preflight refuses a profile that names an architecture with socketcall beside a rule comparing a socket call's arguments. Docker's own built-in profile has the same gap and is docker's to fix.
  • E2B sessions: a call that ran could come back marked "nothing ran". Code an earlier call left alive could end the stager that writes the next call's files and run the code itself; a caller that retries on the mark then runs the call twice, its granted outside calls included, and the session's records hold no line for it. Shown on live E2B against v0.27.2. Nothing is marked once the stager has started.
  • Node's debugger could be opened by code under test with a signal, letting it write its own result and read the report key, in every release that ran plimsoll's Node runner. Closed for the docker runner, a session's between-call programs, the simulation image's judge and the squeeze example's flight step; the project runner is no longer Node at all. Measured live on docker and E2B.
  • E2B sessions: /usr/local was writable by every user on templates built with E2B's current build, node lived there, and two of E2B's root services start programs stored there, so a session's code could replace the node plimsoll's own programs ran, or a program root starts (measured 2026-11-20). Closed by moving plimsoll's programs off that folder and closing it at the session's open.
  • Grants: method override. On an API that honors override headers or a _method field, a granted method could run as another method on the same path. Closed for headers and JSON bodies (the breaking section says how); form and upload bodies are forwarded unread, a stated limit below.
  • Open development mode served every network the machine was on by default, and a Host: localhost header passed its check. It now serves loopback only, judged from the address bound.
  • A callers, grants or withheld-set file another local user could change was read. It is now refused.
  • /readyz could be made to run many startup checks at once by unauthenticated requests; one check now serves them all.
  • The command-line tools printed text from a daemon, a bundle or a file raw, so its bytes could move the cursor, repaint lines or reverse what a terminal shows (rated low). One rule now writes every such print.

Found and fixed before release, so no released version is affected: a docker session could get a call that ran marked not dispatched from its own error output (runc only); the broker gave a route's call charge back when a streamed body was refused, letting an API that acts on headers be called past its route's cap, after part of a body had gone and also at its first piece; an earlier design's hiding of credential copies in place let sandboxed code test guesses of a weak credential; a cut bundle could pass the completeness check behind an unanswered call; a slow pattern in the TypeScript client's base64 reading; the native runner ran later steps after a step whose output it reported as flooded, breaking stop-at-first-failure on docker, OpenShell, agent-sandbox and WSL containers.

Pages that now say what they did not

  • The grant broker forwards form and upload bodies unread. On an API that honors method override, a body of those kinds can make a granted method run as another method on the same path; the grants page gives three things an operator can do.
  • A docker sandbox refuses programs built in it (the no-execute mark): cargo test on a crate with a build script or a derive macro, a C build that runs what it compiled, ./script.sh; Go tests work when built to WebAssembly. In an E2B session a program written in the work folder starts (measured 2026-11-20).
  • Code of a docker session can end or stall its own session through the guard's first process; under gVisor it can stop or end that process, and an outside docker stop can then take its full timeout.
  • For a session opened through placement, the Environment and Provider requirements only choose the daemon; Software is the rule checked afterward.

Not in this release

  • Sessions for the WSL containers provider. They are being built for the release after, so every call there still gets a fresh container, and in the per-run mode a fresh VM. Plimsoll's sandbox image already carries a small session start-up program; no provider starts it yet.
  • Docker Cloud: the provider's code changed (the node flag, its startup claims as data, the settings table), and its live suite was not run for this release, so v0.28.0 makes no new live claim for it. Docker Cloud sessions are not offered.
  • PydanticAI's durable execution, and tests of re-attach against Temporal, DBOS and Prefect.
  • A relay from code in the sandbox to the agent's own tools (only one web API through a grant, above).

Known limits

  • Isolation tiers are configuration and provider evidence plus the behavioral startup smoke test, not runtime or hardware proof. The live suites run for this release: E2B, agent-sandbox (a local kind cluster), OpenShell (a local gateway) and WSL containers in the per-run mode. CI runs the docker suite under runc and gVisor and no hosted provider.
  • The native helper, and with it every project image and the docker provider, is x86-64 only.
  • The guest guard covers the docker provider only; the Kubernetes, WSL containers and OpenShell providers do not start their commands behind it yet, and E2B and Docker Cloud, whose wall is a virtual machine, do not apply it.
  • Re-attach: a Go or TypeScript worker can name a lost call only when its answer was lost in the same process, not after a crash; anyone holding the caller's credential and a session's records can take a session over.
  • The broker matches the credential byte for byte: a copy the API re-encoded, split or cut short passes, and so does a credential shorter than 8 bytes.
  • pydantic-ai-plimsoll reaches PyPI after the other packages: PyPI holds at most three pending publishers at once, and its slot frees when they are first uploaded.

A signed record protects recorded statements from unnoticed changes. It does not prove that code is correct or safe. Isolation tiers describe configuration and provider evidence plus startup checks, not hardware proof.