Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-c0re/src/workers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas f62ec349d5 workers: skip a cycle instead of spawning/alerting on an unreadable container list
crash_watch's 10s poll and auto_update's ensure_root_agent both read
lifecycle::list().await.unwrap_or_default(), which turned a failed read
into 'zero containers'. In crash_watch that made every previously-running
agent look like it crashed simultaneously (prev.difference(current) over
an empty current), and left prev empty for the next cycle too, so a
second wave of false 'agent logged in' / 'agent needs login' events fired
against the next successful read. In ensure_root_agent it read as
'manager container missing' and called lifecycle::spawn on a manager
that might already exist.

Both sites now treat a list error as its own outcome: log it at warn and
skip the cycle's decision entirely. crash_watch leaves prev exactly as
the last good read produced it. ensure_root_agent attempts no spawn.

Factors each site's decision into a pure helper (plan_cycle /
plan_root_agent) matching the check_not_live / confirm_gone_after_failed_destroy
pattern, with unit tests for the error case, a control for the readable
case, and (for crash_watch) an invert-proof run locally against the old
unwrap_or_default logic before reverting.
2026-09-24 18:15:09 +02:00
..
agent_sockets.rs docs: restructure into topic subdirectories, collapse duplicated index 2026-09-02 01:55:37 +02:00
auto_update.rs workers: skip a cycle instead of spawning/alerting on an unreadable container list 2026-09-24 18:15:09 +02:00
crash_watch.rs workers: skip a cycle instead of spawning/alerting on an unreadable container list 2026-09-24 18:15:09 +02:00
credential.rs swarm-secret-client: one module per kind of secret, not one struct 2026-09-08 15:53:50 +02:00
knowledge.rs knowledge: remove the redundant concurrent boot-time pull that races with reset --hard, and clean -fd untracked drift too 2026-08-24 14:38:15 +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 hive-c0re: deliver an agent's credential from the store to its state dir 2026-09-03 00:29:52 +02:00
scheduled_prompts_worker.rs remove operator as target for scheduled prompts 2026-09-11 23:32:45 +02:00
wanted.rs swarm: add a declared "paused" agent wanted state 2026-09-11 01:35:40 +02:00