.cotal/manager.<spaceKey>.pid — the running manager's record, KEYED BY SPACE.
The NAME lives in this tier because both the CLI (which reads it to decide whether to start one)
and the manager daemon (which writes it on start) already depend on it, and a file written under
one constant and read under another is the same defect as no record at all.
It is a {space} TEMPLATE rather than a bare name because the record is per-tenant in meaning: a
root-scoped manager.pid gave one workspace root exactly one manager BY FILENAME, so a second
space booting in that root overwrote the first space's record and every reader then answered
about the wrong process. auth-service.{space}.pid was already templated; these were not.
.cotal/manager.<spaceKey>.pid— the running manager's record, KEYED BY SPACE.The NAME lives in this tier because both the CLI (which reads it to decide whether to start one) and the manager daemon (which writes it on start) already depend on it, and a file written under one constant and read under another is the same defect as no record at all.
It is a
{space}TEMPLATE rather than a bare name because the record is per-tenant in meaning: a root-scopedmanager.pidgave one workspace root exactly one manager BY FILENAME, so a second space booting in that root overwrote the first space's record and every reader then answered about the wrong process.auth-service.{space}.pidwas already templated; these were not.