057. A folder caged sessions share

Status: accepted 2026-10-14 — built the same day

Context

Caged agents kept needing to work on the same thing: one clone of a repository, a dataset, a set of fixtures, several agents building and testing against it. ADR-048 (transfer) is the wrong shape for that — it copies a file to one receiver, and copying a repository to five cages means five copies that immediately diverge, no way for a cage to know the set is complete, and five turns spent announcing arrival. A cage that is told to work in a folder it cannot see is not working in the folder.

The mounts a cage gets are built in cageMounts (cage.go) and sealedMounts (sealed.go). Neither had any notion of a folder that belongs to no single session.

The first version gave every cage one machine-wide folder. Review found that it crossed two boundaries already drawn: sessions limited to different meshes (ADR-049) would have shared it, and sealed cages, which get "the internet and nothing local" (ADR-045), could have read it and copied it out.

Decision

A per-cage option, "shared folder", like nix and the GitHub login: a podman named volume at /shared, read-write, one per set of meshes, never for a sealed cage.

Consequences