Kevin

Daemon Core — Boot & Event Dispatch

main.py → ServiceManager → EventBus → MQTT/SSE fanout.

Daemon Core — Boot & Event Dispatch (v2026-09-30T093327Z-5e473105f4) 2026-09-30 | main.py → ServiceManager → EventBus → MQTT/SSE fanout. 1 - BOOTSTRAP - Daemon Initialization main.py python -m daemon daemon/src/main.py setup_env lan_autosetup ServiceManager ServiceManager init_mesh_api get_deployment_config get_deployment_router holon-peers.json holon-peers.json lan_autosetup peers_file.exists() daemon startup service initia… 2 - EVENT BUS - Central Event Management EventBus event_bus.py bus.publish bus.subscribe MQTT publication MQTT Broker localhost:1883 _mqtt_reachable MQTT publication kv/events/{event_type} SSE Fanout GET /api/events SSE subscription event replay event history event publicat… MQTT connection 1. Daemon starts 2. Environment setup 3. Role configuration 4. Service initialization 5. Event bus setup 6. MQTT connection 7. SSE fanout MQTT Event Payload { "e": "holon:queued", "ts": 1693456800.0, "id": "123e4567-e89b-12d3-a456-426614174000", "holon_id": "holon123", "to": "… SSE Subscription Request GET /api/events?filter=holon:*,job:* The daemon initializes services and sets up event management, including MQTT and SSE connections. Legend actor = initiates work · process = code path · store = state on disk · bus = durable queue · dashed = separate process cyan = request flow · pink = state read/write · dashed green = pull / return path · red = refusal As of 2026-09-30 09:33 UTC, from commit 5e47310

Provenance

This drawing is generated, not drawn. It is rebuilt from the source files below, so when they change the picture changes — a diagram here cannot quietly describe a system that no longer works this way.

Owner
Kevin
Slug
daemon-core
Rendered
2026-09-30T093327Z
From commit
5e473105f4
Updated
30 Sep 2026, 09:33 UTC
Sources at
5e47310
Watches
5 paths
  • daemon/src/main.py
  • daemon/src/_bootstrap.py
  • daemon/src/event_bus.py
  • daemon/src/service_manager.py
  • daemon/src/db_connect.py