Files
hermes-agent/website/docs/reference
unsupportedpastels cca2e6b074 feat(update): name an old serve/dashboard backend after an update
After the fleet check, when this profile still runs an old `hermes dashboard` / `hermes serve` backend,
`hermes update` prints one paragraph naming it and the command that shows the move to the gateway
without changing anything: `hermes -p <profile> gateway migrate --backends --apply --dry-run`, typed
the way the migration prints its own steps. A profile of a root other than the platform default
(HERMES_HOME=/srv/team-hermes) also pins that root, because `-p` resolves against the shell's own
HERMES_HOME: `HERMES_HOME=<root> hermes -p <profile> ...`, or `$env:HERMES_HOME='<root>'; hermes ...` in
PowerShell, quoted for each shell by the migration's own `hermes_command(home, powershell=)` and
`pin_hermes_home`. If that backend still runs a Hermes older than v2026.7.30, the dry run says to restart it
with the updated hermes first. The notice never stops, restarts, migrates or prompts.

It only looks when the update already met such a backend: its pre-update inventory lists a serve or
dashboard runtime no Desktop owns, or its restart phase touched a hermes-serve*/hermes-dashboard* unit,
leaving out the ones the inventory attributes to a sibling profile. With no such candidate it resolves
nothing else (not even the active profile), starts no process and prints what it printed before. A
stopped unit is not named while the migration's backend_migration.json says the old backend stays down
(running, done, failed, or unreadable); a running backend is named in every state.

The whole notice, gate and report, runs inside the update's `_best_effort`: a failure is logged at debug
and never fails the update.
2026-11-21 12:03:32 -05:00
..