#12547·NemoClaw

Hermes: `session_reset` is pinned as a managed-policy path, but Hermes ≥ v2026.9.11 no longer reads it — users can neither remove the dead key nor get the intended daily/idle reset

Author: zxman0126Created Oct 1, 2026Updated Oct 1, 2026
Labelsneeds: triage

Investigation Summary

  • managed-policy.ts lists session_reset.* in MANAGED_POLICY_PATHS and seeds both / 4 / 1440 ("Preserve the prior daily and idle expiry instead of inheriting an upstream no-reset default").
  • Hermes 0.21.3 does not consume these values any more (gateway/config.py inert SessionResetPolicy; gateway/session_lifecycle.py "time never does"; Hermes docs sessions.md).
  • Measured on our boxes (state.db, read-only): 9 and 15 end_reason=session_reset sessions before the upgrade (Hermes 0.19), 0 after upgrading to 0.21.3; one Teams DM has stayed in a single session for 4+ days.
  • The dead key cannot be removed or changed: seed-hermes-dashboard-config.py raises InvalidDashboardSeedDocumentError("gateway policy does not match managed policy") and the gateway does not start at the next container restart (from code reading; not triggered on our production sandboxes).
  • Unknown: which clock the hermes-session-reset-policy plugin uses for at_hour.

Description

What happens

  1. managed-policy.ts (≈L110–125) lists session_reset.mode / at_hour / idle_minutes / notify / notify_exclude_platforms / bg_process_max_age_hours in MANAGED_POLICY_PATHS, and (≈L205–214) seeds both / 4 / 1440 with the comment "Preserve the prior daily and idle expiry instead of inheriting an upstream no-reset default".
  2. Hermes 0.21.3 does not consume these values any more:
    • gateway/config.py (≈L297–309) documents SessionResetPolicy as an inert legacy value type ("do not consume").
    • gateway/session_lifecycle.py (≈L83–85) only routes suspended (/stop); time-based reset is never triggered ("time never does").
    • Hermes docs (sessions.md): idle/daily boundaries no longer reset sessions; old session_reset settings are ignored; users should /new at natural boundaries.
  3. Measured on our boxes (state.db, read-only): before the upgrade (Hermes 0.19) there were 9 and 15 end_reason=session_reset sessions; after upgrading to 0.21.3 there are 0. One Teams DM has now stayed in a single session for 4+ days (its latest turn carried ~150k prompt tokens).
  4. The dead key cannot be removed or changed: seed-hermes-dashboard-config.py (_managed_policy_sections) requires every managed path to be present and equal to the policy, otherwise it raises InvalidDashboardSeedDocumentError("gateway policy does not match managed policy") and start_hermes_root_gateway() returns 1 before the gateway starts. So removing it via config set is a delayed failure at the next container restart.

Why it matters

  • The comment's intent (keep daily + idle expiry) silently no longer holds on current Hermes, so operators believe sessions still reset when they don't (cost/latency growth, memory providers rarely see session boundaries).
  • Operators cannot clean up the dead key without breaking the next start.

Suggested fix (any of)

  • Drop session_reset.* from MANAGED_POLICY_PATHS (and the seeded defaults) when the installed Hermes is ≥ the version that stopped consuming it; or
  • Keep it but stop failing the seed check on absence/mismatch for these specific paths; and
  • If daily/idle expiry is still a NemoClaw goal, document the supported replacement (e.g. Hermes' hermes-session-reset-policy plugin) and note that under Hermes 0.19 the old at_hour: 4 was evaluated in container local time (UTC by default), which meant 12:00 in UTC+8 for us; we have not verified which clock the replacement plugin uses.

Workaround we use

  • Leave the key untouched (documented as a known deviation); reset manually with /new where needed.

Happy to provide more detail.

Reproduction Steps

  1. Onboard a Hermes sandbox with NemoClaw v0.0.129 (Hermes Agent 0.21.3 / v2026.9.x); we use the Teams channel.
  2. Check the sandbox gateway config: session_reset is present with the managed values mode: both, at_hour: 4, idle_minutes: 1440.
  3. Keep one conversation going across several daily boundaries (our Teams DM crossed four 04:00 container-local (UTC) boundaries), then query the sandbox's Hermes state.db read-only for sessions with end_reason = 'session_reset': there are none after the upgrade to 0.21.3 (9 and 15 on the same two sandboxes under Hermes 0.19), and the DM session is still open with was_auto_reset=false.
  4. Per code (not executed on our production sandboxes): remove or change any session_reset.* key via config set, then restart the sandbox container. start_hermes_root_gateway() (nemoclaw-start) first runs prepare_hermes_dashboard_home, which calls seed-hermes-dashboard-config.py; _managed_policy_sections() raises InvalidDashboardSeedDocumentError("gateway policy does not match managed policy"), the seed exits non-zero ("refusing dashboard startup"), and the gateway is never started. The dashboard supervisor loop goes through the same check.

Environment

  • OS: Ubuntu 24.04.4 LTS (Linux 6.17.0-1026-nvidia, aarch64)
  • Hardware: Acer Veriton GN100 (NVIDIA GB10, DGX Spark-class)
  • Node.js: v22.22.3 (runtime pinned by the NemoClaw launcher; system default node is v24.18.0)
  • Docker: Docker Engine 29.2.1
  • NemoClaw: v0.0.129 (output of nemoclaw --version)
  • NemoClaw v0.0.129, OpenShell 0.0.116, Hermes Agent 0.21.3 (v2026.9.x), sandbox agent = hermes, Teams channel enabled. Two sandboxes, same behaviour.

Debug Output

Excerpt of nemoclaw debug --quick (default sandbox hermes-main); host name redacted. This issue is about managed-policy/seed code paths, so only the version and sandbox-state sections are included.

[debug] Collecting diagnostics for sandbox 'hermes-main'...
[debug] Quick mode: true


═══ System ═══

西元2026年10月01日 (週四) 12時07分58秒 CST
Linux <redacted> 6.17.0-1026-nvidia #26-Ubuntu SMP PREEMPT_DYNAMIC Thu Jun 25 00:57:17 UTC 2026 aarch64 aarch64 aarch64 GNU/Linux
 12:07:58 up 2 days, 14:21,  2 users,  load average: 1.16, 1.16, 1.34
               total        used        free      shared  buff/cache   available
Mem:          122500       94733        2680         810       26998       27767
置換:         16383        3891       12492

═══ OpenShell ═══

Server Status

  Gateway: nemoclaw
  Server: https://127.0.0.1:8080/
  Status: Connected
  Authentication: Authenticated (mTLS transport)
  Version: 0.0.116
NAME            CREATED              PHASE
hermes-zuellni  2026-09-27 07:11:45  Ready
hermes-main     2026-09-27 07:34:08  Ready

[trimmed] Processes, Docker, GPU, sandbox policy, onboard session, sandbox internals and gateway logs omitted:
[trimmed] they are host-specific and unrelated to this config-level issue. Full `nemoclaw debug --output`
[trimmed] tarball available on request.

[debug] Done.

Logs

bash

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate