The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs: in-container s6 convergence, 'unset means on', and the loud standalone warning; migrate labels an s6 slot as parked, not uninstalled
Hermes Agent4ff5bf902718
diff --git a/hermes_cli/gateway_migrate.py b/hermes_cli/gateway_migrate.pyindex 28473b75068..afc5dc6b43a 100644--- a/hermes_cli/gateway_migrate.py+++ b/hermes_cli/gateway_migrate.py@@ -89,9 +89,17 @@ def _service_label(service: tuple[str, bool]) -> str:kind, system = serviceif kind == "systemd":return f"systemd ({'system' if system else 'user'})"+ if kind == "s6":+ return "s6 slot"return "Windows scheduled task" if kind == "windows" else kind+def _remove_verb(service: tuple[str, bool]) -> str:+ """An s6 slot is parked down (it stays registered as the `hermes -p X gateway start` target), every+ other unit is uninstalled."""+ return "park" if service[0] == "s6" else "uninstall"++def _service_dict(service: tuple[str, bool]) -> dict:return {"kind": service[0], "system": service[1]}@@ -672,7 +680,7 @@ def format_plan(plan: MigrationPlan, *, dry_run: bool) -> list[str]:steps = []signalled = _signalled_gateways(plan)for p in plan.standalone_secondaries:- what = " + ".join(x for x in (f"stop pid {p.pid}" if p.pid else "", f"uninstall {p.service_label()}" if p.services else "") if x)+ what = " + ".join(x for x in (f"stop pid {p.pid}" if p.pid else "", " + ".join(f"{_remove_verb(s)} {_service_label(s)}" for s in p.services)) if x)steps.append(f" - {p.name}: {what}")if len(plan.profiles) < 2: # the notice already says "only one profile exists"return lines + _plan_tail(plan)@@ -873,7 +881,8 @@ def _remove_secondary_gateways(plan: MigrationPlan) -> None:for kind, system in p.services:_service_op(kind, system, "stop", p.home)_service_op(kind, system, "uninstall", p.home)- print(f" ✓ {p.name}: stopped and removed its {_service_label((kind, system))} service")+ done = "parked (down file)" if kind == "s6" else "removed"+ print(f" ✓ {p.name}: stopped and {done} its {_service_label((kind, system))}")if p.pid is not None:_stop_gateway_process(p.home)print(f" ✓ {p.name}: stopped standalone gateway (pid {p.pid})")diff --git a/website/docs/user-guide/multi-profile-gateways.md b/website/docs/user-guide/multi-profile-gateways.mdindex 2010522e7a6..6262e97438d 100644--- a/website/docs/user-guide/multi-profile-gateways.md+++ b/website/docs/user-guide/multi-profile-gateways.md@@ -104,11 +104,17 @@ settles at boot, never a verdict. Each start it runs the same preflight as[`hermes gateway migrate --multiplex`](#migrating-from-per-profile-gateways) andmultiplexes only when the fold would have been safe — twoor more profiles, no secondary still running its own gateway (live process or-installed service), no duplicate bot credential, no port-binding platform-without a `/p/<profile>/` ingress, and a host the migration understands (not an-s6 container or Windows Scheduled Tasks). Otherwise it comes up exactly as-before — serving the default profile only — and logs the blocker plus the-`hermes gateway migrate --multiplex` one-liner. Nothing is changed on disk.+installed service, or under s6 a per-profile slot that is actually *up*), no+duplicate bot credential, and no port-binding platform without a `/p/<profile>/`+ingress. **Unset means on**: when nothing blocks, the gateway multiplexes and+writes `gateway.multiplex_profiles: true` into the default profile's+`config.yaml` (comments preserved) so the file says what the runtime does.+Otherwise it comes up serving the default profile only and says so **loudly** on+a host with other profiles: a boxed warning at gateway start naming the profiles+that are not served, the blocker, and the fix; the same box in the `hermes+update` summary and `hermes gateway status`; a banner in the dashboard+(`/api/status` carries `multiplex_standalone_reason`). A single-profile install+is not warned — there is nothing to serve. Nothing is written on a refusal.An **explicit** `true` bypasses migration preflight, except for a launchingprofile that opts out with `gateway.standalone: true`:@@ -1095,6 +1101,20 @@ the host gateway with `gateway.standalone: true` (see[No new per-profile gateways](#no-new-per-profile-gateways)), which`hermes gateway migrate --multiplex` respects.+### Docker / Hermes Cloud (s6-supervised container)++Inside the official image every profile has an s6 slot+(`/run/service/gateway-<profile>`). The container's boot registers every *named*+slot down and folds its autostart intent into the root slot, so a fresh boot+already multiplexes. An **in-place** update no longer needs a container restart+to converge either: `hermes gateway migrate --multiplex` (and the hook `hermes+update` runs) parks any named slot that is still up (`s6-svc -d` plus a `down`+file so a supervisor restart does not revive it), folds its intent into the root+slot through the same rule the boot uses, and restarts the root slot. A+registered-down slot is never a blocker — only a slot that is actually up is.+The one thing the command still cannot do from inside is create a root slot the+boot never registered; that case names itself and asks for a container restart.+### What `hermes update` doesAfter a successful update, when the install has two or more profiles, at least