Files
Athena-Deck/integrations/hermes-unraid/webapp-test

Isolated Hermes Webapp test — 26 October 2026

Requested deployment: alternate the production and test containers at the same network address and ports, without changing Nginx or any VPN container. This is a development-build test, not a claim of a released, manufacturer-built image.

Scope and packaging

  • Production: Hermes-Agent-Desktop; its image and data remain intact.
  • Alternate: Hermes-Webapp-Test, image local/hermes-webapp-test:e5f2b153.
  • All host-side test data, source, recipes, private clone requests and reports: /mnt/nvme-storage/appdata/Hermes-Webapp-Test/ (root mode 0700).
  • Test data is a separate copy under data/, mounted at the same /opt/data. Copies exclude every file named vpn.auth; symlinks are not followed. Private clone requests contain credentials and must never enter Git.
  • Source pin: e5f2b15300a3d04978e4c07cc64adc7bcf8e7b1c from the official NousResearch/hermes-agent repository. The published main-desktop image inspected beforehand was older and lacked Webapp support.
  • The stock Dockerfile omits Desktop source and does not build its Webapp. Our packaging-only change admits apps/desktop to the build context, runs upstream node apps/desktop/scripts/build-webapp.mjs in the frontend build stage and copies its output into the runtime image. No Hermes application code is patched. This packaging extension is ours, not an upstream image.
  • Build instructions and output are retained in build/; Docker manages the actual image layers in its own storage, not as loose image archives.

Network and operation

The alternate preserves the production container's existing shared network namespace, resource limits, credentials, role-specific settings and restart policy. The referenced VPN container is neither inspected nor changed. The old dashboard service is disabled in the alternate container only; Webapp binds its former internal port 9119. The existing external address and proxy route therefore need no port change.

The clone merges the current copied container.env over Docker's older environment snapshot. This is essential: the production container predates the recent HERMES_MANAGED_DIR addition and uses overlay symlinks, whereas a new container must use that persistent environment variable directly.

Only one Hermes container may run at a time. After both are provisioned:

/mnt/nvme-storage/appdata/Hermes-Webapp-Test/build/switch.sh test
/mnt/nvme-storage/appdata/Hermes-Webapp-Test/build/switch.sh production

The helper checks persisted active-agent counts and a fresh live gateway heartbeat before stopping the current container. It never starts/stops the VPN container. Docker's unless-stopped policy preserves a manual stop, but external Unraid autostart/backup/update automation is a separate concern; never start both instances through such automation.

The first copy is synchronized again while production is stopped, before the test's first start. Subsequent switches do not merge data. Chats, skills or configuration changed in the test stay in its data folder; rolling back starts the untouched production data. Shared remote services and SSH targets remain real systems, even though Hermes data is separate.

Removal

Stop and remove only Hermes-Webapp-Test, remove only its recorded local image tag/ID, and then delete the explicit test root above. Remove its specifically named Unraid template if registered. Do not run global image/volume/system pruning or touch production appdata. Build cache is managed by Docker; the current build uses the existing default builder, so global cache pruning is not an acceptable test-cleanup action.

Acceptance

Before change: the existing thirteen-profile configuration/runtime audit passed 280 checks with no failures. Build, alternate-container startup, post-change audit and browser checks must be recorded separately after execution. Native Mac, Conduit, inference, TTS and notification delivery are not proven merely by a working browser page.

Execution record

  • Build completed successfully. Image ID: sha256:95a5bb76a1683292a3fe87464d62f17711b43afb796864aa759a8205f421a9aa. Pinned install stamp and compiled dist-webapp/index.html checked in a network-disabled, read-only temporary container.
  • Offline compatibility audit: 278/280 passed. The two remaining assertions hard-code the old running container's /etc/hermes overlay symlinks. The new container intentionally uses the documented HERMES_MANAGED_DIR environment bootstrap instead; this difference must not be called a successful symlink check.
  • Production was confirmed idle from fresh gateway metadata, stopped normally, and copied again before the test's first start. Its image and data were not migrated or edited.
  • Test is running with the same 2-CPU/4-GiB limit and unless-stopped; original container is stopped. No VPN-container operation was performed.
  • Direct LAN port http://192.168.1.2:9120/ and existing proxy https://hermes.casaderoll.de/ redirect to sign-in. LAN sign-in page returned HTTP 200 and was visibly checked in the browser. Login uses the copied existing authentication, not a new password.
  • Manufacturer stage2 changes root config.yaml to mode 0640 at boot. Restored 0600 in the test copy only after startup, matching the existing stricter audit. A subsequent manufacturer boot applies 0640 again; no upstream startup-code patch was added to conceal this behavior. The test data root remains private. Managed .env remains 0600.
  • Startup briefly returned gateway_not_ready/503, then reached sign-in normally. No restart loop was observed.
  • An attempt to emit filtered Hermes startup logs was refused by automatic approval review because filtering cannot guarantee removal of credentials. It was not retried indirectly; diagnosis proceeded through safe status fields and public source instead.
  • User signed in normally. Authenticated browser UI showed all 13 bots Ready, the Privat/KIT groups and existing chat previews. No chat message was sent. The visible syncthing-blade MCP notification requests re-authentication; no credential reset or MCP repair was performed.
  • Post-start audit after restoring root config mode: 278/280 passed; only the two old overlay-symlink assertions remain. Independently verified the actual running container's HERMES_MANAGED_DIR, get_managed_dir(), managed config keys and nonempty managed credential resolver. No credential values emitted.
  • Compared all fourteen root/profile/managed YAML files internally. Thirteen match exactly. Root differs in the enabled Webapp plus manufacturer migration: _config_version and removal of browser.extension_control. Official step 51→52 removes the old built-in browser tools/extension control in favor of browser_exec; this is a substantive development-branch compatibility limit, not a claim that browser behavior is identical. Production files are intact.
  • Native Mac/Conduit behavior and actual model/audio/browser/plugin actions remain untested. This operation initiated no inference or delivery tests.