R127 Machines and Working Directories

Off by default

Where agents on a machine keep main checkouts, worktrees, files handed between agents, data, third-party sources and temporary files, which Linux release machines and test containers run, and what to do before leaving a machine. The directories are parameters, and the rules that place things in them are off by default: a rule set turns them on and sets the directories. The jurisdiction designates the release, for example by turning on rule 316, which names it as a parameter and is off by default too. Enable it where agents work on machines kept beyond one task; an agent that runs only in a one-off sandbox or in CI need not.

Relations

Below it
R128 Keep each main checkout directly under the root for main checkouts
R129 Keep worktrees under a root of their own, outside every repository's directory
R130 Put files handed between agents in the scratch directory
R131 Keep large local data in the data directory, outside the repository
R132 Clone third-party sources to <owner>/<repo> under a root of their own
R133 Write no temporary file to a fixed name directly under /tmp
R134 Never delete a tool's root directory named after the user
R135 Run one pinned Linux release on machines and in test containers
R136 Push before you leave a machine
R216 Keep nothing but main checkouts in the root for main checkouts
R217 Give each file in the scratch directory a date in its name
R218 Delete a scratch file once its content is in the repository
R219 Commit only pointers and SHA-256 for large data
R220 Say in the repository's instructions what its data directory holds and when it is cleared
R221 Keep nothing but others' sources in the root for third-party sources
R287 Keep each main checkout directly under the directory for main checkouts
R288 Keep nothing but main checkouts in the directory for main checkouts
R309 Keep worktrees under the directory for worktrees, outside every repository's directory
R310 Put files handed between agents in the scratch directory
R311 Keep large local data in the data directory, outside the repository
R312 Clone third-party sources to <owner>/<repo> under the directory for them
R313 Keep nothing but others' sources in the directory for third-party sources
R316 Run the release of one set image on Linux machines and as test containers' base image

Metadata

ID
127
Revision
5
Kind
domain
Status
trial
Slug
machine
Default
off
Original language
English en
Translations
Chinese zh