Expand description
Shared local daemon for project-aware and session-aware backend state.
Structs§
- Close
Session Response - Daemon
Handle - Daemon
Health - Daemon
Session Client - Daemon
State - Heartbeat
Response - Open
Project Request - Open
Project Response - Project
Health - Project
Summary - Session
Summary
Enums§
- Guarded
Start - Outcome of
guarded_daemon_start.
Constants§
- DAEMON_
AUTOSPAWN_ ENV - Operator kill-switch for daemon auto-spawn: set
SYMFORGE_DAEMON_AUTOSPAWN=off(or0/false/no) to makeensure_daemon_runningconnect-only — it will attach to an already running compatible daemon but never start one.
Functions§
- build_
router - connect_
or_ spawn_ session - guarded_
daemon_ start - Task 9: the single safe way to BIND a daemon for the current
SYMFORGE_HOME. Acquires the start lock (bounded wait), re-checks for a live compatible daemon UNDER the lock, stops an incompatible recorded daemon, and only then binds in the current process — so a foregroundsymforge daemonracing an auto-spawn (or another foreground start) can never overwrite a live daemon’s runtime record. - run_
daemon_ until_ shutdown - spawn_
daemon