archied update install and watchdog in Go #491

Open
opened 2026-10-27 13:36:32 +00:00 by sam · 0 comments
Owner

Goal: 'archied update install' unpacks all host binaries from the verified zip, checks each reports the target version, pulls the agent image by the release.json digest, backs up the database in-process, stages binaries and hands off to 'archied update watchdog' in a separate process. The watchdog restarts units in release.json order via systemctl --user when systemd is present (otherwise stages and reports a manual restart is needed), requires archied healthy for 120s, and rolls back binaries, image policy and reports on failure; interrupted transactions recover on boot as today. Stop when: Install on Settings > Status updates a zip install end to end and a forced unhealthy candidate rolls back; archie-update-install, archie-update-watchdog, --from-source, CommandCatalog/CommandInstaller/SettingsCommands/ScriptCommands are deleted.

Acceptance criteria

A verified zip update completes end to end, confirms target versions, and rolls back after a forced unhealthy candidate; the legacy update scripts and installer commands are removed.

Notes

Implemented on feat/transactional-update, proven with fakes only. Open until an install from Settings > Status and a forced-unhealthy rollback run on a real host. Hosts on an older release cannot self-update to this one; the first upgrade goes through install.sh.


Imported from beads archie-core-wmvy.2 · GitHub #1526 · type task · priority P1 · created 2026-10-06

Goal: 'archied update install' unpacks all host binaries from the verified zip, checks each reports the target version, pulls the agent image by the release.json digest, backs up the database in-process, stages binaries and hands off to 'archied update watchdog' in a separate process. The watchdog restarts units in release.json order via systemctl --user when systemd is present (otherwise stages and reports a manual restart is needed), requires archied healthy for 120s, and rolls back binaries, image policy and reports on failure; interrupted transactions recover on boot as today. Stop when: Install on Settings > Status updates a zip install end to end and a forced unhealthy candidate rolls back; archie-update-install, archie-update-watchdog, --from-source, CommandCatalog/CommandInstaller/SettingsCommands/ScriptCommands are deleted. ### Acceptance criteria A verified zip update completes end to end, confirms target versions, and rolls back after a forced unhealthy candidate; the legacy update scripts and installer commands are removed. ### Notes Implemented on feat/transactional-update, proven with fakes only. Open until an install from Settings > Status and a forced-unhealthy rollback run on a real host. Hosts on an older release cannot self-update to this one; the first upgrade goes through install.sh. --- _Imported from beads `archie-core-wmvy.2` · GitHub #1526 · type task · priority P1 · created 2026-10-06_
sam added the hightask labels 2026-10-27 13:36:32 +00:00
sam self-assigned this 2026-10-27 13:36:32 +00:00
sam added a new dependency 2026-10-27 13:42:07 +00:00
sam added a new dependency 2026-10-27 13:42:07 +00:00
sam added a new dependency 2026-11-14 14:45:15 +00:00
sam added the deferred label 2026-11-15 17:26:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#491