Cotton code
41 lines · 2.6 KBRaw
(version 1);; GENERATED from crates/cotton-core/src/lane_sandbox.rs — do not edit; `COTTON_WRITE_LANE_PROFILE=1 cargo test -p cotton-core lane_sandbox` rewrites it.;; The lane launcher fills in the home (resolved, and regex-escaped) and denies the target of each denied path that is a symlink.(allow default);; denied-in-home: CottonDB(deny file-read* file-write* (subpath "@HOME@/CottonDB"));; denied-in-home: Library/Application Support/CottonDB(deny file-read* file-write* (subpath "@HOME@/Library/Application Support/CottonDB"));; denied-in-home: .ssh(deny file-read* file-write* (subpath "@HOME@/.ssh"));; denied-in-home: .config(deny file-read* file-write* (subpath "@HOME@/.config"));; denied-in-home: .cotton-agent(deny file-read* file-write* (subpath "@HOME@/.cotton-agent"));; denied-in-home: .cotton-credentials(deny file-read* file-write* (subpath "@HOME@/.cotton-credentials"));; denied-in-home: .aws(deny file-read* file-write* (subpath "@HOME@/.aws"));; denied-in-home: .gnupg(deny file-read* file-write* (subpath "@HOME@/.gnupg"));; denied-in-home: .docker(deny file-read* file-write* (subpath "@HOME@/.docker"));; denied-in-home: Library/Keychains(deny file-read* file-write* (subpath "@HOME@/Library/Keychains"))(deny file-read* file-write* (regex #"^@HOME_RE@/[Cc][Oo][Tt][Tt][Oo][Nn][Dd][Bb](/|$)"));; closed: Codex's shared daemon, which runs a client's commands outside the profile(deny file-read* file-write* (regex #"^/private/tmp/codex-daemon-"))(deny network-outbound (remote unix-socket (path-regex #"^/private/tmp/codex-daemon-")));; @RESOLVED@;; open: git reads its ignore and config on every command; read-only, nothing else under .config (coordinator, 16 Oct 2026)(allow file-read* (subpath "@HOME@/.config/git"));; open: the cargo, rustc, swift and xcodebuild wrappers every Mac build runs through(allow file-read* (subpath "@HOME@/.cotton-agent/mac-build-policy"));; open: the owner-data scan a landing runs; a host without the list does not land(allow file-read* (subpath "@HOME@/.cotton-agent/owner-denylist"));; open: owner, 21 Oct 2026: Remote Control on lanes — a lane runs on the Mac's own Claude login; item ACLs still gate everything but Claude's own item (reverses lanekeychain, 15 Oct)(allow file-read* file-write* (subpath "@HOME@/Library/Keychains"));; open: git reads the app's route to the code host from every command, through ~/.gitconfig(allow file-read* (literal "@HOME@/CottonDB/run/git-route.gitconfig"));; open: the public half of the route's certificate authority, which the route names(allow file-read* (regex #"^@HOME_RE@/CottonDB/run/\.git-route-[^/]+/git-route-ca\.pem$"))