oficina / equipo Public
Offline Go for Engineering
Paul approved this containment change on 2026-11-13. Engineering needs to run targeted tests and repository gates before Equipo publishes its candidate.
Claude and Codex Engineering launches mount the runner's configured Go tree at /opt/go and module cache at /opt/go-mod, both read-only. They use the same sources as Checks. A missing module-cache directory omits that mount, including for non-Go projects; an existing invalid or symlinked source is refused. EQUIPO_GO_MODULE_CACHE remains an optional override. Review keeps its existing policy; Pi Review has no shell, and changing its tools would extend this work beyond adding read-only trees.
The shared Go environment sets GOPROXY=off, GOSUMDB=off, GOTOOLCHAIN=local, GOFLAGS= and CGO_ENABLED=0. GOROOT and GOMODCACHE name those mounts. GOCACHE and GOTMPDIR are directories under the attempt's private /tmp, backed by the runner's scratch directory and removed with the attempt. Claude uses /tmp/claude-${uid}/go-build and go-tmp, under its CLAUDE_CODE_TMPDIR=/tmp temp root. Codex uses /tmp/go-build and /tmp/go-tmp. GOENV and GOWORK are off, as is telemetry. Provider launches receive no XDG_CONFIG_HOME; Git's global config is /dev/null and system config is disabled. PATH is /opt/go/bin:/usr/bin:/bin:/opt, including the pinned bubblewrap helper. Repository Makefiles that override the toolchain version need GOTOOLCHAIN=local on the make command line.
Bounds and pins
This adds the same two readable trees Checks already mount. Engineering's workspace remains writable. The provider shell policies still deny credential homes, provider credentials, the forge credential, runner state and tool sockets, and allow writes only in the workspace and private temporary space. The outer namespace still has no host network. Provider processes retain only their existing provider relay; Claude and Codex shell commands retain their own network isolation. No sandbox setting or permission callback is relaxed. Native file tools still obey their existing path restrictions.
Engineering hashes the Go root once for the launch's account lease. Paths, modes and file bytes enter the policy's file-digest list. Validation, adapter policy rebuilds, source attestation and containment reuse that digest and the same retained directory descriptor. The lease closes it on cleanup; containment owns a duplicate until its mount plan closes. Replacing the source path does not substitute a different tree. Symlinks inside the Go root and special files are refused. The configured root must be canonical: a symlinked distro Go root is refused by the provider policy, so configure its resolved directory.
The module cache is pinned by path, opened without following symlinks, owned by the runner user and bound read-only through a retained descriptor using --ro-bind-fd. Trees cannot overlap scratch, workspace or protected paths, or contain the runner's home. The module cache is never content-hashed. Checks keep their previous path pins and containment traversal, with no content scan of either tree. On this box, hashing the pinned Go 1.26.11 root took 1.137 seconds; hashing the 14 GB module cache previously took 90.096 seconds.
Agents cannot write the mounted trees. Host processes running as the runner user are already trusted; they could replace the runner binary itself. They can also update the live source trees. No snapshot or dedicated quiescent cache is required. Adding modules leaves the policy hash unchanged. The adapter compares its rebuilt policy and manifest hashes with the supplied policy; source validation compares the Go root's recorded digest with the lease's pin. No certificate is compared against a new module-cache content digest.
Engineering can read every cached module, including private modules from the owner's other projects. Paul accepts this for v1 on a single owner's runner. Per-project caches remain later work for multi-person teams.
Shell evidence and limits
The offline build test invokes the real pinned Codex sandbox with filesystem and network permissions generated by codex.PolicyInputs. Claude 2.1.312 has no offline command or exported API for invoking its bundled sandbox builder. Its test therefore reproduces the namespace setup, consumes generated filesystem settings, and grants only the working directory and its own temp directory. It does not grant all of /tmp. In the pinned executable, byte 239371446 selects CLAUDE_CODE_TMPDIR, byte 239373000 derives claude-${uid}, bytes 244230927 and 244231106 resolve temp paths, and byte 246036346 adds the working directory and those paths to the write grants. These probes make no provider calls and do not replace provider release certification.
Both the shell probe and a Go-built probe fail to read the CLI's token through process files. Each has a direct control that can read the synthetic token's variable; neither prints its value. Claude's failIfUnavailable, fresh PID namespace and token scrubbing remain required. Weaker nested sandbox settings are not enabled. The historical Bash failure still lacks a raw tool response.
The real Codex sandbox, using generated Engineering permissions, refuses writes to /workspace/.git/config. Claude's pinned shell builder protects .git/config and hooks (bytes 245813355 and 245845913). Its internal Git calls also neutralize executable config features: status arguments clear core.fsmonitor near byte 239543350, and the Git helper at byte 240094865 disables hooks, fsmonitor, askpass and external protocols. Equipo's native file permission callback can allow a workspace config write; the shell test does not prove native-tool behavior. No route from that write to execution beside a real CLI token was established. A generic unsandboxed Git invocation would be vulnerable, but that is not evidence that either pinned CLI uses such an invocation. No additional Git configuration restriction is added in this branch.
An unversioned cache miss reports module lookup disabled by GOPROXY=off. For an explicitly required missing version, Go first tries to create a cache lock. It prints “downloading” and then fails with read-only file system; that progress line does not mean it fetched anything. Both cases are tested. The implementation does not wrap Go or rewrite its diagnostics.
Pi's current policy is different: the connectors spec, section 2.1, explicitly allows its Bash commands to read its provider key and use the provider-only relay. A read-only toolchain mount cannot provide the requested token and network isolation there. Pi toolchain access awaits Paul's decision on whether to preserve that existing exception or first provide an isolated Pi shell.
No wire protocol or database schema changes are needed. Older binaries reject these directory file-digest entries rather than silently accepting the new policy. Roll back by installing the previous versioned release and using its matching certificates; Engineering then loses these Go mounts. No data needs downgrading. Existing certifications are not regenerated by these offline tests.