Skip to content

The agent that grows with you

docs: describe pm-owned dependency paths instead of retired modules

ethernet7fee3350be89
diff --git a/website/docs/getting-started/updating.md b/website/docs/getting-started/updating.md
index 47ea761c33c..2bc0fd9654d 100644
--- a/website/docs/getting-started/updating.md
+++ b/website/docs/getting-started/updating.md
@@ -138,7 +138,7 @@ For an admitted source checkout, `hermes update` runs these phases:
3. **Post-pull syntax validation + auto-rollback** — after the pull, Hermes compiles the nine critical files every `hermes` invocation imports at startup. If any fails to parse (e.g. an orphan merge-conflict marker, an accidentally truncated file), Hermes runs `git reset --hard <pre-pull-sha>` to roll the install back so your shell stays bootable. Re-run `hermes update` once the upstream fix lands.
4. **Dependency preparation** — PM provisions required tools and prepares a complete Python environment from the new lock, existing extras, and enabled plugin requirements. It validates that environment before publishing its selection.
5. **Config migration** — detects new config options added since your version and prompts you to set them
-6. **Desktop rebuild (stage-and-swap)** — if the Hermes Desktop app was built from this checkout, it is rebuilt so the GUI matches the new code. The rebuild packs into a temporary staging directory next to `apps/desktop/release/`, verifies the staged app, and only then renames it over the previous build (on Windows a real-time scanner briefly holding `release/win-unpacked` is ridden out with a few short retries). A rebuild that fails at any point — corrupt Electron download, missing dependency, disk full — leaves the previous app untouched and launchable; the update reports `⚠ Update partially complete` and `hermes desktop` retries the rebuild. On macOS the rebuilt bundle is then copied (with `ditto`, signature intact) over a stale `/Applications/Hermes.app` or `~/Applications/Hermes.app`, so the copy Finder and the Dock launch matches the backend; an installed copy that is currently running is left alone and the update tells you to quit it and run `hermes update` again.
+6. **Desktop rebuild (stage-and-swap)** — if the Hermes Desktop app was built from this checkout, it is rebuilt so the GUI matches the new code. The rebuild packs into a temporary staging directory next to `apps/desktop/release/`, verifies the staged app, and only then renames it over the previous build (on Windows a real-time scanner briefly holding `release/win-unpacked` is ridden out with a few short retries). A rebuild that fails at any point — corrupt Electron download, missing dependency, disk full — leaves the previous app untouched and launchable; the update fails at that step, and `hermes desktop --build-only --force-build` or the next `hermes update` retries the rebuild. On macOS the rebuilt bundle is then copied (with `ditto`, signature intact) over a stale `/Applications/Hermes.app` or `~/Applications/Hermes.app`, so the copy Finder and the Dock launch matches the backend; an installed copy that is currently running is left alone and the update tells you to quit it and run `hermes update` again.
7. **Gateway auto-restart**: running gateways are refreshed after the update completes. Service-managed gateways (systemd on Linux, launchd on macOS) restart through the service manager. Manual gateways are relaunched when Hermes can map their PID to a profile. Manually launched `hermes serve` / `hermes dashboard` backends are different: the updater leaves them running and asks their owner to restart them. See [Manual backend restart reminders](#manual-backend-restart-reminders). Backends owned by a running Desktop app remain the app's responsibility.
8. **Multiplex migration (multi-profile installs)** — once the fleet is verified on the new code, an install with two or more profiles that still run **one gateway per profile** is folded into a single multiplexed default gateway when nothing blocks it (same as `hermes gateway migrate --multiplex --yes`); if a blocker exists (a bot token shared by two profiles, a secondary profile binding a port with no `/p/<profile>/` ingress) the update prints the blockers with their fixes and changes nothing. Single-profile installs are never touched. See [Migrating from per-profile gateways](../user-guide/multi-profile-gateways.md#migrating-from-per-profile-gateways).
diff --git a/website/docs/user-guide/desktop.md b/website/docs/user-guide/desktop.md
index 4be1bb02d85..ebf6bf0d7b1 100644
--- a/website/docs/user-guide/desktop.md
+++ b/website/docs/user-guide/desktop.md
@@ -659,9 +659,9 @@ clearing the entry — the latch resets and the next boot dials fresh.
The build downloads the Electron runtime (~114&nbsp;MB) from `github.com/electron/electron/releases`. If the installer hangs on the **Build desktop app** step with the live output repeating `retrying attempt=…`, GitHub is being blocked or throttled on your network (firewall, proxy, or region).
-The installer self-heals this automatically: on a failed build it (1) clears a corrupt cached Electron zip and retries, then (2) if it still fails, the Electron distributable is still missing, and you haven't set `ELECTRON_MIRROR`, retries once more through `npmmirror.com`, the de-facto Electron community mirror. `@electron/get` SHASUM-checks the download, but the checksums come from the same mirror — that catches a corrupt or partial download, not a compromised mirror. If you'd rather not trust a third-party host, pin your own `ELECTRON_MIRROR` (below); the build never overrides one you've set.
+The build does not fall back to a mirror on its own and does not retry a failed download: a build that fails for any reason leaves the previous app untouched (stage-and-swap, see [Updating](../getting-started/updating.md#what-happens-during-an-update)), the update itself fails, and `hermes desktop --build-only --force-build` (or the next `hermes update`) runs the build again. If the failure was a corrupt cached Electron zip, delete it from `@electron/get`'s cache (`~/.cache/electron/` on Linux, `~/Library/Caches/electron/` on macOS, `%LOCALAPPDATA%\electron\Cache` on Windows) before rebuilding. `@electron/get` SHASUM-checks every download, but the checksums come from the same host, so a mirror you point it at is trusted for both.
-To **choose your own mirror** (e.g. a corporate/trusted one), set `ELECTRON_MIRROR` before installing or rebuild manually — the build honors it and won't override it:
+To **use a mirror** (e.g. a corporate one, or `npmmirror.com`, the de-facto Electron community mirror), set `ELECTRON_MIRROR` before installing or rebuild manually — the build honors it and never overrides one you've set:
```bash
ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ \
diff --git a/website/docs/user-guide/messaging/google_chat.md b/website/docs/user-guide/messaging/google_chat.md
index cc085162c92..ebc8e582f90 100644
--- a/website/docs/user-guide/messaging/google_chat.md
+++ b/website/docs/user-guide/messaging/google_chat.md
@@ -182,12 +182,12 @@ It applies the same pinned security floors used by the runtime checks:
python -m plugins.platforms.google_chat.oauth --install-deps
```
-On Docker / hosted images `/opt/hermes/.venv` is read-only. That installer
-routes through `tools.lazy_deps` into `HERMES_LAZY_INSTALL_TARGET`
-(`/opt/data/lazy-packages` in the official image) instead of writing
-site-packages. Restart the gateway after it finishes. The published image
-also bakes the `[google-chat]` extra so a fresh container does not need a
-first-boot install.
+`--install-deps` asks PM to add the `google-chat` extra to the managed Python
+environment (`pm.sync_venv`); restart the gateway after it finishes so the new
+environment is active. On Docker / hosted images the venv is read-only and
+on-demand installs are disabled (`HERMES_DISABLE_LAZY_INSTALLS=1`), so this
+step cannot add anything there. The published image bakes the `[google-chat]`
+extra instead, so a fresh container does not need a first-boot install.
Start the gateway:
diff --git a/website/docs/user-guide/windows-native.md b/website/docs/user-guide/windows-native.md
index b5764e83acb..2884ca2914a 100644
--- a/website/docs/user-guide/windows-native.md
+++ b/website/docs/user-guide/windows-native.md
@@ -77,9 +77,12 @@ package. See [Updating & Uninstalling](../getting-started/updating.md).
### Dependency bootstrap
-PM owns managed tools. `hermes_cli/dep_ensure.py` maps feature requirements to
-PM packages instead of invoking `install.ps1 -Ensure`. Already installed tools
-come from PM facts; missing optional tools follow the lazy-install policy.
+PM owns managed tools. Feature code asks PM for the package it needs
+(`pm.ensure("<package>")`, e.g. `cua-driver` for Computer Use) instead of
+re-running the installer. Already installed tools are reused from PM's
+recorded state; a missing optional tool is fetched on demand only when
+[`security.allow_lazy_installs`](../reference/package-management.md#lazy-install-policy)
+permits it. `install.ps1` has no `-Ensure` mode.
```powershell
hermes pm doctor