The cotal machine-home dir, overridable via COTAL_HOME.
WHAT THE OVERRIDE ENFORCES (and only this): the mesh registry (meshes/), the current-mesh
pointer, the onboard marker, prepared spaces (prepared/) and service records (services/)
resolve under this directory. POSIX default ~/.cotal; Windows %LOCALAPPDATA%\Cotal.
WHAT IT DOES NOT ENFORCE: project-root state. cotal up, broker launch policy
(.cotal/broker-policy.json), the NATS store, manager/delivery pidfiles, and auth material all
resolve via findCotalRoot (walk up from cwd for a .cotal/). Setting only COTAL_HOME
does not redirect those paths. A test or probe that sets COTAL_HOME and runs a real
cotal up from a tree whose walked root is the operator home can still write live operator
config. Sandbox the project root too (temp dir with its own .cotal/, and run the CLI with
cwd there) — or you have sandboxed the registry label, not the launch surface.
The cotal machine-home dir, overridable via
COTAL_HOME.WHAT THE OVERRIDE ENFORCES (and only this): the mesh registry (
meshes/), the current-mesh pointer, the onboard marker, prepared spaces (prepared/) and service records (services/) resolve under this directory. POSIX default~/.cotal; Windows%LOCALAPPDATA%\Cotal.WHAT IT DOES NOT ENFORCE: project-root state.
cotal up, broker launch policy (.cotal/broker-policy.json), the NATS store, manager/delivery pidfiles, and auth material all resolve via findCotalRoot (walk up from cwd for a.cotal/). Setting onlyCOTAL_HOMEdoes not redirect those paths. A test or probe that setsCOTAL_HOMEand runs a realcotal upfrom a tree whose walked root is the operator home can still write live operator config. Sandbox the project root too (temp dir with its own.cotal/, and run the CLI withcwdthere) — or you have sandboxed the registry label, not the launch surface.