hyperhive/hive-c0re/src
müde 06fdbac1ac actions::run_apply_commit through meta two-phase
approval-driven deploys now walk the meta flake via
prepare_deploy / finalize_deploy / abort_deploy so a failed
build leaves no commit in meta's deploy log:

1. capture applied/main sha for rollback
2. tag approved/<id> + building/<id>
3. ff applied/main to proposal/<id>, read-tree sync working tree
4. meta::prepare_deploy(name) — nix flake lock --update-input
   agent-<n> without committing
5. lifecycle::rebuild_no_meta — container-level only (new
   extracted helper; public lifecycle::rebuild still wraps it
   with single-phase meta sync + commit for dashboard / auto
   _update callers that don't care about rollback)
6a. on success: tag deployed/<id>, meta::finalize_deploy commits
    the staged lock with 'deploy <n> deployed/<id> <sha12>'
6b. on failure: tag failed/<id> annotated with the build error,
    git_update_ref applied/main back to prev sha, read-tree to
    main, meta::abort_deploy git-restores flake.lock

meta's git log now records only successful deploys; failures
+ denials still live in applied as annotated tags.
2026-05-16 00:32:16 +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 wire types: add sha + tag to Approval and HelperEvent 2026-05-15 22:47:39 +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 actions::run_apply_commit through meta two-phase 2026-05-16 00:32:16 +02:00
main.rs meta: new hive-c0re module owns /var/lib/hyperhive/meta/ 2026-05-16 00:22:37 +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
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