Expand description
A srv given a data folder of its own must not write into the real shared folder by accident.
The shared folder (shared/: agent definitions, accounts, the shared store) follows
the AgentMux home, not the data folder. A srv started with only a data folder
outside the home (AGENTMUX_DATA_DIR or --wavedata) therefore kept its own
databases in that folder and still wrote the agents it created into the real
~/.agentmux/shared. Where shared data goes has to be said: by a home override
(an isolated home) or by AGENTMUX_SHARED_DIR (the launcher always exports it).
Functionsยง
- guard_
shared_ ๐folder - Before any shared file is opened:
refuse_unlisted_shared_root, then claim the shared folder for this srvโs version (shared_guard). - refusal ๐
- Why srv must not start, or
None.homeis the AgentMux home as it was when srv started;home_overrideandshared_dir_setsay whetherAGENTMUX_HOME_OVERRIDEandAGENTMUX_SHARED_DIRwere given. - refuse_
unlisted_ ๐shared_ root refusalfor this process; exits with the reason on stderr when it applies.