hyperhive/hive-c0re/src/workers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 73f1020a7e refactor(#2290): replace mcp_sockets poll with event-driven register_agent
mara: the background worker is redundant if c0re knows when its own
sockets go missing. damocles: 10s poll latency and redundancy are two
faces of the same issue — poll adds a reconnect window and does
redundant work when c0re could react directly.

design: c0re owns the MCP listener lifecycle, so the only time a
listener disappears without c0re knowing is when c0re itself restarts.

- replace spawn_poll (recurring 10s loop) with sync_on_start (one-shot
  sweep at daemon boot): re-registers all running agents on startup
  after /run/hyperhive/agents/ is cleared by the tmpfs reset.
- run_reconcile (reconcile-start path): add coord.register_agent(name)
  immediately after start_with_fallback — event-driven, no poll delay.
- run_create already calls register_agent eagerly; kill/destroy paths
  already call unregister_agent — no changes needed there.

tracker: #2290
2026-07-09 01:08:38 +02:00
..
agent_sockets.rs refactor(hive-c0re): group src-root files into submodules 2026-07-06 22:38:47 +02:00
auto_update.rs feat(#2290): converge unification cleanup — pull preamble into lifecycle 2026-07-09 01:08:38 +02:00
crash_watch.rs refactor(hive-c0re): group src-root files into submodules 2026-07-06 22:38:47 +02:00
knowledge.rs fix(#1868): use HIVE_FORGE_URL for internal forge calls 2026-07-09 00:45:13 +02:00
mcp_sockets.rs refactor(#2290): replace mcp_sockets poll with event-driven register_agent 2026-07-09 01:08:38 +02:00
mod.rs feat(#2290): split ensure_runtime — dirs to lifecycle, listeners to mcp_sockets supervisor 2026-07-09 00:58:51 +02:00
reminder_scheduler.rs refactor(hive-c0re): group src-root files into submodules 2026-07-06 22:38:47 +02:00
scheduled_prompts_worker.rs refactor(hive-c0re): group src-root files into submodules 2026-07-06 22:38:47 +02:00