| 242 | } |
| 243 | |
| 244 | cbm_daemon_ipc_endpoint_t *cbm_daemon_bootstrap_endpoint_new(const char *runtime_parent) { |
| 245 | char key[CBM_DAEMON_KEY_SIZE]; |
| 246 | if (!cbm_daemon_rendezvous_key(key)) { |
| 247 | return NULL; |
| 248 | } |
| 249 | /* An explicit parent keeps precedence: it carries the compile-time test |
| 250 | * seam and the lifecycle guards' isolated namespace. The override is |
| 251 | * resolved HERE, the one function every product endpoint goes through |
| 252 | * (daemon, MCP client, local CLI, index worker, activation), so no call |
| 253 | * site can silently keep the default. */ |
| 254 | char override_parent[BOOTSTRAP_PATH_CAP]; |
| 255 | const char *parent = |
| 256 | runtime_parent |
| 257 | ? runtime_parent |
| 258 | : bootstrap_runtime_parent_override(override_parent, sizeof(override_parent)); |
| 259 | return cbm_daemon_ipc_endpoint_new(key, parent); |
| 260 | } |
| 261 | |
| 262 | bool cbm_daemon_bootstrap_launch_spec_init(const char *executable_path, |
| 263 | cbm_daemon_bootstrap_launch_spec_t *spec_out) { |