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.tslistssession_reset.*inMANAGED_POLICY_PATHSand seedsboth / 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.pyinertSessionResetPolicy;gateway/session_lifecycle.py"time never does"; Hermes docssessions.md). - Measured on our boxes (state.db, read-only): 9 and 15
end_reason=session_resetsessions 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.pyraisesInvalidDashboardSeedDocumentError("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-policyplugin uses forat_hour.
Description
What happens
managed-policy.ts(≈L110–125) listssession_reset.mode / at_hour / idle_minutes / notify / notify_exclude_platforms / bg_process_max_age_hoursinMANAGED_POLICY_PATHS, and (≈L205–214) seedsboth / 4 / 1440with the comment "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(≈L297–309) documentsSessionResetPolicyas an inert legacy value type ("do not consume").gateway/session_lifecycle.py(≈L83–85) only routessuspended(/stop); time-based reset is never triggered ("time never does").- Hermes docs (
sessions.md): idle/daily boundaries no longer reset sessions; oldsession_resetsettings are ignored; users should/newat natural boundaries.
- Measured on our boxes (state.db, read-only): before the upgrade (Hermes 0.19) there were 9 and 15
end_reason=session_resetsessions; 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). - 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 raisesInvalidDashboardSeedDocumentError("gateway policy does not match managed policy")andstart_hermes_root_gateway()returns 1 before the gateway starts. So removing it viaconfig setis 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.*fromMANAGED_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-policyplugin) and note that under Hermes 0.19 the oldat_hour: 4was 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
/newwhere needed.
Happy to provide more detail.
Reproduction Steps
- Onboard a Hermes sandbox with NemoClaw v0.0.129 (Hermes Agent 0.21.3 / v2026.9.x); we use the Teams channel.
- Check the sandbox gateway config:
session_resetis present with the managed valuesmode: both,at_hour: 4,idle_minutes: 1440. - 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.dbread-only for sessions withend_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 withwas_auto_reset=false. - Per code (not executed on our production sandboxes): remove or change any
session_reset.*key viaconfig set, then restart the sandbox container.start_hermes_root_gateway()(nemoclaw-start) first runsprepare_hermes_dashboard_home, which callsseed-hermes-dashboard-config.py;_managed_policy_sections()raisesInvalidDashboardSeedDocumentError("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
nodeis 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
Checklist
- I confirmed this bug is reproducible
- I searched existing issues and this is not a duplicate
Source: NVIDIA/NemoClaw