hyperhive/hive-c0re/src
müde 59a89314f0 startup auto-migration from pre-meta layout
new migrate module runs before auto_update on hive-c0re boot.
four idempotent phases:

1. for every applied/<n>/ whose flake.nix isn't already the
   module-only boilerplate, rewrite + commit + relocate
   deployed/0 to HEAD so setup_applied's existence check passes
2. for every proposed/<n>/config without an 'applied' remote,
   wire it (delegates to setup_proposed which is now
   idempotent and adds the remote itself)
3. meta::sync_agents over the current container list — inits
   the meta repo on first call, rerender + relock if drifted
4. nixos-container update <c> --flake meta#<name> for every
   container, guarded by /var/lib/hyperhive/.meta-migration-done
   so phase 4's expensive eval only runs once across restarts

env kill-switch HIVE_SKIP_META_MIGRATION=1 defers the whole
thing. each agent's failure is logged + skipped so one broken
agent doesn't block the rest. runs ahead of ensure_manager so
the manager auto-spawn comes up against meta from the first
attempt.
2026-05-16 00:34:58 +02:00
..
actions.rs actions::run_apply_commit through meta two-phase 2026-05-16 00:32:16 +02:00
agent_server.rs no nap tool — recv with long wait_seconds replaces it; max raised to 180s 2026-05-15 20:53:15 +02:00
approvals.rs dashboard: diff against applied/proposal/<id>, prefer fetched_sha 2026-05-15 23:18:17 +02:00
auto_update.rs auto_update: bump meta hyperhive input before per-agent rebuilds 2026-05-16 00:32:55 +02:00
broker.rs agent page: inbox view of last 30 messages addressed to this agent 2026-05-15 20:32:19 +02:00
client.rs hive-c0re: admin socket server + client (stub dispatch) 2026-05-14 20:49:11 +02:00
coordinator.rs agents get a kickoff inbox message on start/restart/rebuild 2026-05-15 20:19:36 +02:00
crash_watch.rs manager: needs_login / logged_in / needs_update events + update tool 2026-05-15 21:42:13 +02:00
dashboard.rs dashboard: diff against applied/proposal/<id>, prefer fetched_sha 2026-05-15 23:18:17 +02:00
events_vacuum.rs events.sqlite vacuum moves host-side 2026-05-15 20:10:34 +02:00
lifecycle.rs startup auto-migration from pre-meta layout 2026-05-16 00:34:58 +02:00
main.rs startup auto-migration from pre-meta layout 2026-05-16 00:34:58 +02:00
manager_server.rs manager_server: fetch+tag at request_apply_commit submit 2026-05-15 22:57:43 +02:00
meta.rs lifecycle::rebuild through meta 2026-05-16 00:28:26 +02:00
migrate.rs startup auto-migration from pre-meta layout 2026-05-16 00:34:58 +02:00
operator_questions.rs ask_operator: ttl_seconds auto-cancel + remaining-time chip 2026-05-15 20:38:02 +02:00
server.rs actions: deny plants annotated denied/<id> tag 2026-05-15 23:01:22 +02:00