Round-3 review follow-ups (wording, docs, tests; no behaviour change beyond
the warning text):
- Docker guide (EN + zh-Hans), env-var reference, cont-init and stage2 hook
comments now say boot autostarts from the recorded run intent
(desired_state, else the legacy gateway_state that boot then records), not
"the last recorded state".
- The boot warnings say what a failed record risks and how to repair it.
- Comments made precise: a readable file's desired_state wins in the status
merge; a non-null desired_state wins at boot; the foreground skip covers
any foreground CMD gateway serving the root slot's profiles;
web_server_cron lists draining/degraded.
- Tests: a root started only by a fold records nothing (no file created, a
stopped root stays unconverted); a status write does not add back a
desired_state the file no longer has.
- `--forever` drops the 100-run cap (loops.max_ticks); `/loop status` says
"no limit". `--later` holds the first run one interval. Without them
`/loop 10m X` is unchanged: first run now, 100-run cap.
- An interval loop that comes due while a reply is running is admitted into
the session authority's durable FIFO behind it, as heartbeat ticks were,
instead of waiting for the chat to go idle. With no committed input to
queue behind (a command-only chat) it waits for idle and then takes main's
command-only fallback, sender re-check and Relay egress warm-up. Self-paced
loops keep waiting for idle. The gateway loop watcher scans every 5 s (the
heartbeat poller's cadence) so a due tick is not up to 15 s late.
- `/loop` takes /heartbeat's interval spellings (1.5h, 10min, 2hours, 1d,
90sec) and `off`.
- /heartbeat and /hb retire to "`/loop … --later --forever`", /proactive to
"`/loop`" (RETIRED_COMMANDS); their handlers and locale strings go.
- A heartbeat saved before the upgrade keeps its row and engine and fires
uncapped as before; `/loop status` shows it as a no-limit loop and
`/loop pause|resume|stop|off` act on it once the session has no loop.
- The classic CLI's gateway loop proxy forwards --forever/--later.
- Docs (features/loops.md, heartbeat.md -> /loop, slash-commands.md renamed
table), locales, Desktop strings and generated registries updated.
The folds Teknium approved are on main (/verbose focus, /statusbar battery|indicator,
/status's egress block, /model --runtime, /pet hatch, /goal add, /help <page>,
/billing topup|upgrade, TUI /verbose details|density), but the old names still ran.
They are now retired with RETIRED_COMMANDS: typing /focus, /battery, /indicator,
/egress, /codex-runtime, /hatch, /generate-pet, /subgoal, /commands, /topup,
/subscription or /upgrade (either _ or - spelling) runs nothing on the CLI, gateway,
TUI and Desktop and answers "`/old` is now `/new`.". The TUI answers its own /details,
/detail and /density the same way (slash.retired), since they never existed elsewhere.
The old names leave help, menus, completion, the Telegram menu priority, the Slack
/hermes-only set, the Desktop registry and description keys, and the docs tables (the
Renamed commands table lists each). Handlers only the old names reached are removed;
the umbrella commands still call the shared handlers.
Slash access: the folded forms check their own user_allowed_commands keys (goal-add,
model-runtime, status-egress, help-pages) instead of the retired names, and an
operator list that still names subgoal, codex-runtime, egress, commands or topup
grants what replaced it, so no existing config loses or gains access.
The slash-confirm prompt stored the retired name reload-mcp, so a member allowed
/reload (user_allowed_commands) could start /reload mcp but not answer it. Korean
locale hints still named /reload-mcp and /reload-skills (the sweep missed a name
followed by Hangul). The CLI table no longer promises now/always suffixes the CLI
ignores.
/reload gains two subcommands on every surface (CLI, messaging gateway, TUI,
Desktop catalog, Discord native tree and relay manifest): `/reload mcp [now|always]`
runs the old /reload-mcp handler (same Approve Once / Always Approve / Cancel
confirmation, same approvals.mcp_reload_confirm gate) and `/reload skills` runs
the old /reload-skills handler. Bare /reload still reloads .env in the terminal
and TUI; in a chat (where it never existed) it lists the two subcommands.
/reload-mcp and /reload-skills (and their _ spellings) are retired with
RETIRED_COMMANDS: typing one runs nothing and answers "`/reload-mcp` is now
`/reload mcp`.". Every user-facing hint, locale string, doc and skill that said
/reload-mcp or /reload-skills now says the new form.
Bare /resume lists sessions on every surface (CLI table, TUI switcher overlay,
Desktop picker, messaging listing); /resume <number|name|id> switches. The
messaging /sessions forms move under /resume: all, full, search|find <q>; a
listing number resumes that row (with the same all/full words), the current
session is listed unnumbered, rows rank by lineage activity. /resume --all and
--cross-room keep working.
/sessions, /session and /switch answer "`/x` is now `/resume`." via
RETIRED_COMMANDS. The TUI submits a typed retired name as-is instead of
accepting the first fuzzy completion, so its notice shows.
Depends on #161271 (RETIRED_COMMANDS).
Why: (1) Desktop offered /backup snapshot, which its backend refuses: desktop_subcommands is
export/import, and bare /backup or snapshot answers the forms that run here. (2) Desktop resolved a
typed name against one global catalog, so one profile could submit another's spelling: it now uses
the submitting session's catalog. (3) The TUI matched _/- before the exact key, so /foo_bar ran
/foo-bar: both surfaces share apps/shared lookupSlashName (exact first).
The sticky credits line ("✕ Credit access paused · run /topup to top up",
"✕ You've hit your weekly limit ...") was cleared only by the notice policy,
which runs only when a reply carries x-nous-credits-* headers. After
`/model x --provider <not nous>` no reply ever carries them, and
switch_model never reset _credits_state / _credits_latch, so the TUI and
Desktop kept the Nous error after the user had moved to a working provider.
switch_model now reconciles the credits notices: off Nous every shown line
is cleared and the account state dropped (a return to Nous re-seeds); a
switch between Nous models re-runs the policy for the new model.
/billing (approved consolidation item 8): bare and `topup` run what /topup
runs, `upgrade` runs /subscription (CLI, TUI) or links the plan page in a
chat. /topup, /subscription and /upgrade keep working unchanged.
The approved small folds (slash consolidation item 10), added beside the old names, which keep
working unchanged until the retirement PR:
- /statusbar battery [on|off|status] and /statusbar indicator [style] run the /battery and
/indicator handlers (CLI, Ink TUI).
- /status ends with the /egress block when the egress proxy is enabled or set up (CLI, messaging,
TUI sidecar, shared-gateway TUI/Desktop sessions); each read binds the owning profile.
- /model --runtime [auto|codex_app_server|on|off] is /codex-runtime on every surface: CLI, the
messaging handler (with /codex-runtime's own mid-run reject text), shared-gateway local sessions
(a control, like the setting it was), the TUI sidecar (no live /model mirror, no transcript claim)
and Ink/Desktop, which forward it instead of opening the model switch.
- /pet hatch <description> is /hatch (CLI generator, Desktop generator overlay).
- /goal add <criterion>, /goal subgoals, /goal remove <N>, /goal remove all are /subgoal <text>,
/subgoal, /subgoal remove <N>, /subgoal clear, in the one /goal parser every surface shares; they
dispatch mid-run like /subgoal did.
- /help <page> is /commands <page> in chats; page links name the command that was typed.
Handlers call the folded handler directly rather than re-dispatching the old name, so retiring
the old names later cannot break the new forms.
/verbose focus [on|off|status] runs /focus (classic CLI and TUI), and in the
TUI /verbose details [...] and /verbose density [...] run /details and
/density through the same handlers, so arguments and persisted state are
identical. Bare /verbose still cycles; a mode word (off|new|all|verbose, plus
log on messaging) now sets the level on the CLI and the gateway as it already
did in the TUI, and an unknown word shows usage instead of cycling. /focus,
/details and /density keep working unchanged.
Messaging /stop already killed the processes of the turn it interrupted; a background process
an EARLIER turn of the same chat started survived it. /stop now also kills every running
process spawned under this chat's gateway session key (profile- and chat-namespaced, the key the
reset guard reads), on every /stop path (idle, mid-turn fast path, pending setup), and says how
many it stopped. Other chats' and profiles' processes never match. CLI /stop is unchanged.
/pause [reason] and /pause off are no longer messaging-only: the classic CLI (and the TUI's slash
worker) run the same agent.estop.pause_command, so the reply text and the global sentinel are
identical on every surface. /pause is dispatched inline while a CLI turn runs (busy_policy dispatch).
RETIRED_COMMANDS (hermes_cli/commands.py) maps an old slash name to the
invocation that replaced it. On every surface a retired name runs nothing
and answers one localized line (commands.retired): CLI process_command,
gateway idle and busy paths (busy bypass, never queued as a turn), TUI and
Desktop (commands.catalog carries the rendered notices; they are answered
before alias/fuzzy matching, so /platform no longer prefix-expands), and
slash.exec / command.dispatch as the backstop. Skills and plugins cannot
claim a retired name.
resolve_command normalizes `_` to `-`, so the underscore twins
(reload_mcp, reload_skills, codex_runtime) are deleted; /set-home is
retired for /sethome.
/platforms is now the one platforms command on every surface: bare or
`list` shows status, `pause|resume <name>` act on a failing adapter in a
chat (the CLI points to a chat). /platform and /gateway are retired.
/backup snapshot|export|import replaces /snapshot (/snap), /export and
/import; bare /backup lists the three.
- /discard: drop gateway_only; the CLI's /discard <admission_id> runs, so CLI /help lists it.
- CLI: a messaging-only command typed in full says it runs in messaging chats instead of a
near-miss for a different command (/pause -> "Did you mean /paste?").
- Shared gateway: an unsupported_command refusal for a messaging-only command carries a
detail naming where it runs (Ink prints it under the refusal).
- TUI: commands.catalog marks each registry command with slash_exec (the owner's verdict); Ink
completion and /help offer a registry command only when Ink runs it itself or the owner
does, and an exact registry name is never prefix-expanded into another command.
- Desktop: /prompt /battery /focus /tools get desktop="terminal", /subscription "settings",
the messaging-only /start /topic /pause /mute /sethome /restart "messaging".
- /stop description and docs say what it does per surface (messaging keeps processes from
earlier turns running); /platform docs say pause/resume act only on a failing adapter.
The pass that installs each default plugin into every profile home sent two
PM requests per home (publish the tree, admit the enable), and each request
started its own worker: two interpreters, a PM runtime check in a third, and
the worker's per-process reads (Hermes's version through seven git probes,
the core lock closure). An 80-profile update started 162 workers.
pm.client.one_worker() keeps one worker for a block's requests; the
default-plugins pass runs inside it. Each request still runs whole and alone
under the worker's install lock, with the context and the environment it
would have started its own worker with (the shared worker swaps in the
request's environment, so each home's HERMES_HOME, receipts and lazy-install
policy stay that home's). A request made while another one is in flight
starts its own worker; a worker whose request failed mid-exchange is
discarded. A request outside a block still gets a worker of its own that
exits once it answered.
Credit: unsupportedpastels' #161187 measured the per-home PM cost this builds on.
The feishu catalog entry ships default: false. Profiles that ran core's Feishu are still migrated by the LEFT_CORE row; a new home installs it with `hermes plugins install feishu` or by picking it in `hermes gateway setup`.
Teknium's ruling: Feishu becomes a `default: true` official plugin (the Weixin / QQ Bot shape) now
that the plugin offers its feishu_doc / feishu_drive tools only once the profile has an App ID and
App Secret (hermes-official-plugins#517).
- One automatic install per plugin and home across both installers is main's seam (#160177):
a removed feishu stays removed whichever installer ran first, and a home the default installer
reached first still gets its core-era scope kept (feishu_doc / feishu_drive off where core had
them off). This commit pins that for the Feishu row.
- Docs (en + zh-Hans): installed by default, idle until FEISHU_APP_ID + FEISHU_APP_SECRET.
Placement change only (Teknium's ruling: Feishu is an official opt-in plugin in
NousResearch/hermes-official-plugins, not a Labs plugin). Behaviour of the move is
unchanged.
- left_core_migration: _FEISHU_NOTICE ("Hermes Labs ... not supported") is gone;
like the other official rows the Feishu row adds no placement sentence, only the
plugins.disabled and plugins.isolation: host notes when they apply to the home.
- Docs (en + zh-Hans): the Feishu page, messaging index, tools and env-var
references say "official feishu plugin" and link hermes-official-plugins; the
Labs warning admonition is dropped; the page says the plugin is opt-in.
- test_left_core_feishu: the migrated home's outcome line carries no
"not supported" sentence.
- left_core_migration._core_carried returns the set of the row's toolsets a saved selection carried,
so `[hermes-telegram, feishu_doc]` keeps feishu_drive off after migration (it was read as carrying
both). A replaces_toolsets name or a composite still carries all of them.
- run_adapters: the multiplex port-binding verdict (platform_binds_port -> binds_port_fn) is taken
in _create_adapter_off_loop_deps, inside the owning profile's registry scope, and carried on the
adapter; _configure_profile_adapter reads it. A plugin installed only in a secondary is found.
- cron home-target priority keeps "feishu" at its old rank (the list already skips unregistered names).
- env-var references link FEISHU_ALLOW_BOTS to the plugin guide's bot-to-bot section.
Tests: test_a_platform_keeps_exactly_the_feishu_toolsets_it_selected (resolved selection per
platform) and test_a_plugin_only_in_the_secondary_decides_its_port_in_that_profile; both red with
the two source changes reverted, green here.
The Feishu / Lark gateway platform and its feishu_doc / feishu_drive document-comment tools move to
NousResearch/hermes-labs-plugins (`feishu/`, history kept): built by Nous Research, not supported.
- Removed: plugins/platforms/feishu/**, tools/feishu_{doc_tool,drive_tool,lark}.py, the adapter's tests,
Platform.FEISHU, the hermes_cli/platforms.py row, toolsets feishu_doc / feishu_drive / hermes-feishu
and the hermes-gateway include, platform.feishu.* locale strings in every locale, env/config-key list
entries, the dashboard env fallback rows, the cron home-target / webhook deliver / startup allowlist /
/update allowlist / messaging order rows, the ACP kind-map tool names.
- Name-keyed core tables become PlatformEntry traits the plugin sets: binds_port_fn (port binding only in
webhook mode, was PORT_BINDING_CONDITIONAL_MODES), listen_port (dashboard topology readout),
thread_reply_anchor (reply-in-thread anchors for replies, progress and interim sends), opus_voice
(auto-TTS .ogg). gateway.platform_registry.registered_trait reads them.
- Migration: LEFT_CORE row `feishu` built with platform_in_use: env FEISHU_APP_ID + FEISHU_APP_SECRET
(core's EnvCred row) or a platforms.feishu block carrying app_id (core's is_connected), or the
feishu_doc / feishu_drive / hermes-feishu toolset selected elsewhere; plugins.disabled
platforms/feishu / feishu-platform is not use. secret_env/private_env keep the child-process strip set
identical to main (9 FEISHU_* names); legacy_toolsets keep a disabled hermes-feishu / hermes-gateway
disabling the tools; off_platforms derived.
- Telemetry: feishu_* tools and feishu_doc / feishu_drive / hermes-feishu toolsets are retired names.
- Docs: messaging/feishu.md (+ zh-Hans) is a short "moved to the Labs plugin" page; tool/toolset
references and the messaging index mark it as a plugin.
Teknium's ruling: QQ Bot is an official plugin (hermes-official-plugins, catalog default: true), the
Weixin shape, not a Hermes Labs one.
- left_core_migration: the QQ Bot row's notice carries no placement sentence (official rows carry
none), only what changed for the home: a bare 'qqbot' in plugins.disabled now turns it off, and
plugins.isolation: host keeps a catalog platform adapter off. Yuanbao keeps its own Labs notice.
- One automatic install per plugin and home across both installers comes from main's
left-core `_pending` / default_plugins `_recorded` (#160177); this row only joins it.
- Docs (en + zh-Hans): moved to the official qqbot plugin, installed by default.
messaging/qqbot.md (+ zh-Hans) becomes a short "moved to the Labs plugin"
page with the unsupported notice, `hermes plugins install qqbot`, the
unchanged names and the automatic migration. The toolsets reference, the
messaging index, architecture/gateway-internals trees, cron, sessions,
env-var and dashboard pages mark QQ Bot as a plugin, as the Yuanbao and
Home Assistant moves did.
Review follow-ups:
- PM's member lookup resolves a bundled key that left core (`google_meet`)
to its catalog plugin's tree, so a sync with only the old key in
plugins.enabled keeps Playwright.
- `hermes plugins install google_meet|teams_pipeline` resolves the old name
to the catalog entry.
- Google Meet counts as in use only under `google_meet`, the one spelling
core's loader matched; any spelling still disables it.
- Docs install with `--enable` where the next step runs the plugin's CLI,
and the Nix guide names extraPythonPackages for Playwright.
plugins/google_meet and plugins/teams_pipeline leave core for the opt-in
official plugins google-meet and teams-pipeline (hermes-official-plugins).
- LEFT_CORE rows: a home whose plugins.enabled names the bundled key
(google_meet; teams_pipeline or teams-pipeline) and whose plugins.disabled
does not gets the catalog plugin installed and enabled on `hermes update`
and at agent/gateway start. Keys alone are not use (both were opt-in).
The old keys stay aliases (plugin_key), so pinned lists keep working.
- Core's by-name wiring of the pipeline is gone (gateway/run.py
_teams_pipeline_plugin_enabled / _wire_teams_pipeline_runtime and the
runner fields): the plugin binds itself to the msgraph_webhook adapter
through ctx.register_platform_handler, which msgraph_webhook.connect()
already runs inside the owning profile's scope.
- The Teams platform's summary writer no longer imports another plugin: it
takes a graph_client_factory (the pipeline passes its Graph client) and,
without one, Graph delivery fails with a message naming the plugin while
incoming-webhook delivery keeps working.
- The google-meet extra (playwright, websockets) is removed; uv.lock drops
playwright, pyee and greenlet. nix checks use the mistral group instead.
- Profile export keeps excluding teams_pipeline_store.json and
workspace/meetings/node_token.json: no plugin-declared secret-file seam
exists and migrated homes still hold those stores.
- Docs (en + zh-Hans) point at the catalog plugins.
Fixes from review of the /mute toggle (Greptile + a /review pass):
- Arrival, not flush time. Telegram batches text for a moment but runs a
/command at once, so a message sent while muted was answered once the
second /mute landed first, and one sent just before /mute was dropped.
Every MessageEvent now records when this process received it
(_received_at), the store keeps the mute as an interval closed at the
unmute's arrival, and the gate asks "was this chat muted when the message
arrived?".
- Accepted turns are never re-judged. A /queue (or any slash command's own
turn) became plain text and was dropped on replay after its "Queued"
ack. Turns the gateway already queued, and turns the session FIFO admitted,
skip the gate.
- Per bot. The store key is the voice-mode (bot, chat) key, kept in the
process home like voice modes, so one bot's /mute no longer silences (or
lifts) another bot's chat with the same id.
- Fail open for real: an unreadable store (bad UTF-8 included) reads as
nothing muted via read_json_or_empty instead of raising for every chat.
- Waiting prompts still get their answer: a bare yes/no to a blocking
command approval resolves it on both paths, as clarify replies already
did, so the running turn never hangs on a muted chat.
- Silence means silence: no pause notice, typing indicator or processing
reaction for a message the mute drops (the activity probe asks the
runner's mute verdict, like its authorization verdict).
One command name instead of three: a bare /mute mutes the chat, and a bare
/mute while muted unmutes it. /mute 30m|2h|1d still mutes for that long
(replacing any current mute). The /unmute alias and the off/status
subcommands are gone, so the command menu and help gain one entry, not two.
The replies in all 17 locales now point at /mute instead of /unmute; the
four keys only the removed subcommands used are deleted, as is the
now-callerless get_mute_entry helper. The Desktop registry fallback and the
command-parity doc are regenerated.
Group chats had no way to make Hermes stop answering short of /stop (one
turn) or pausing the whole platform adapter (every chat). /mute makes
"be quiet" a state the harness enforces rather than a request the model
can talk its way around:
- /mute silences the current chat: its conversational messages are
dropped before any turn path (session-authority FIFO, mid-run
steer/interrupt/queue, idle turn), so no agent turn, no tokens, no reply.
- Slash commands always pierce the mute, so /unmute, /status and the rest
keep working; internal events (background completions) bypass it.
- /mute 30m / 2h / 1d sets a timed mute (bare numbers are minutes);
/mute status reports what is left; /mute off == /unmute.
- Chat-scoped, persisted in HERMES_HOME/.chat_mutes.json so it survives
restarts; a corrupt store reads as "nothing muted" (fails open).
- busy_policy=dispatch: /mute works while a turn is running, and text
sent to a muted chat mid-run never steers or queues behind that turn.
- Replies go through the i18n catalog (gateway.mute.* in every locale).
Weixin (personal WeChat via iLink) now ships as the `weixin` plugin in
NousResearch/hermes-official-plugins (official, installed by default). The
platform name, WEIXIN_* env vars and platforms.weixin config keys are
unchanged; Platform("weixin") resolves once the plugin registers it.
Removed: plugins/platforms/weixin/**, the four weixin-only test files,
Platform.WEIXIN and its PLATFORM_TOKEN_ENV_NAMES row, the hermes_cli/platforms
row, the hermes-weixin bundle and its hermes-gateway include, the
platform.weixin.voice_as_attachment locale strings, the WEIXIN_* env/config-key
list entries (config, dump, run, run_startup, webhook_targets, cron delivery,
dashboard order/env fallbacks, TUI source list), the weixin special cases in
gateway/outbound/send.py (.env pconfig synthesis, WEIXIN_HOME_CHANNEL read,
weixin-first standalone route; the plugin's EnvCred env_overrides with
home=WEIXIN_HOME_CHANNEL and its StandaloneSendPolicy cover them), the three
plugins/platforms/weixin rows in hermes_agent/compat/required_names.py, and the
weixin boundary-baseline lines. Docs: weixin.md (+ zh-Hans) is a short
moved-to-plugin page; messaging index and toolset references mark it a plugin.
Kept: session_rules/route_entries.Platform.WEIXIN (no plugin lookup there;
YUANBAO stayed too), hermes_cli/profiles.py weixin/accounts export path (the
plugin writes the same dir), Desktop references, shared helpers (comments
only). Telemetry: hermes-weixin is a retired toolset name.
The WEIXIN_* child-env strip set shrinks with the config.py entries; the
LEFT_CORE row's secret_env/private_env restores it (tests/tools/
test_local_env_blocklist.py and the MCP identity test stay red until then).
Both WeCom platforms (AI Bot `wecom`, self-built-app `wecom_callback`) move to
NousResearch/hermes-labs-plugins `wecom/`. Two LEFT_CORE rows (one per
platform, one shared plugin, installed once) whose platform_in_use predicates
replicate core's enable gates per mode. Stacked on the DingTalk removal
(#159638): the platform lists both PRs edit are resolved once here.
Folded from the earlier branch (one commit per step, in order):
331094ca15a3 Teknium test(gateway): a named profile's port-binder is served only on a default listener, live reconcile too
The live reconcile builds a named profile's platforms through the same prepare step as startup, so the
"not served" refusal holds there as well: a LINE secondary with neither api_server nor webhook on the
default stays unstarted and names the remedy instead of reading as connected. The two LINE named-profile
reconcile tests now give the default a webhook listener, so their LINE is served at /p/b/ as in a real
setup; their assertions are unchanged.
bedc93176b93 Teknium fix(left-core): off-platforms derive from the LEFT_CORE rows; left-core routes name the install
Same hunk as the QQ Bot (#159640) and Feishu (#159651) PRs, so merge order cannot leave a stale entry.
- A row whose tools lived in its own hermes-<platform> bundle only (Yuanbao) sets own_platform_only;
_derive_off_platforms fills off_platforms with every platform core knows plus every platform a
LEFT_CORE row moved out. The hand list _YUANBAO_OFF_PLATFORMS (which this PR had extended with
wecom/wecom_callback) is gone. The WeCom rows carry no toolsets (hermes-wecom and
hermes-wecom-callback bundled core tools only), so they need no off-platforms.
- Webhook routes: is_known_platform accepts any platform a LEFT_CORE row moved out, so a saved wecom or
wecom_callback route stays loaded before a secondary profile's plugin registers; without the plugin
the send fails naming the install.
- Cron: a deliver route naming a left-core platform whose plugin is not loaded reports the install
command (delivery error and preflight). tests/cron/test_cron_left_core_platform_route.py runs for
wecom and wecom_callback.
05d04a49ccc3 Teknium refactor(wecom): drop the one-install-per-home copy; the installer-race PR carries it generically
296e4a152f99 Teknium fix(gateway): a secondary port-binder with no default listener is not served, not "connected"
Under multiplex a secondary profile's port-binding adapter (WeCom callback, LINE, SMS, Teams, ...)
binds nothing: its app is published for /p/<profile>/ on the default profile's api_server or
webhook listener. With neither running on the default, connect() still returned True and the
runner logged "✓ wecom_callback connected (profile: b)" while nothing listened anywhere.
- Runner: such an adapter is not started; it is stamped `<profile>:<platform>` disabled with
error_code multiplex_no_shared_listener and a WARNING naming the remedy.
- Migration preflight: a secondary whose own gateway serves a port-binder today is refused when
the default enables neither listener (it would be served nowhere after the fold); a secondary
with no gateway gets the same text as a notice.
- bind_listener publishes the port it actually bound (`listener_base`); the dashboard topology
reads that instead of resolving a plugin platform's listen_port in the profile's plugin
registry, so a parked or cold profile's callback port is reported and no deferred loader runs.
26cde0b03cdc Teknium refactor(wecom): WeCom moves to the Hermes Labs wecom plugin, opt-in
WeCom is now a Hermes Labs plugin (NousResearch/hermes-labs-plugins), not an
official default one. Only homes that used WeCom get it installed, once; a new
home installs nothing.
- Both LEFT_CORE rows (bot and callback) carry the labs notice, like Yuanbao
and DingTalk, merged with the plugins.disabled 'wecom' sentence.
- Docs pages say "moved to the wecom Hermes Labs plugin" with the labs
warning (en + zh-Hans); no default-install wording is left.
- The one-automatic-install-per-plugin seam between default_plugins and the
left-core migration stays: it is general (any plugin that is both a catalog
default and a LEFT_CORE row) and now has its tests in test_default_plugins
with a stand-in plugin instead of the wecom-named ones.
9c82896ffee9 Teknium fix(wecom): migration preflight and dashboard read plugin capabilities in the owning profile
- platform_serves_profile_prefix(value, home) reads the adapter class in the
owning profile's plugin scope, like platform_binds_port: a port-binding
plugin only a secondary installed is a URL-change notice, not a blocker.
- A parked profile's plugins are never discovered for either check, nor for the
dashboard's port readout (read-only probe).
deb0661c69ea Teknium fix(wecom): review findings on the core removal
- One automatic install per plugin across both installers: left-core
`_pending` skips a plugin `_default_plugins_installed` records, and
default_plugins skips one `_left_core_installed` records, so a removed
WeCom stays removed whichever ran first.
- `listen_port` is read in the owning profile's plugin scope: a multiplexed
secondary (shared-listener routing), migration preflight (per profile home)
and the dashboard topology (discovers that home's plugins; preflight never
does, a parked profile's plugins must not run here).
- `hermes-wecom-callback` keeps resolving: a `hermes-<a-b>` bundle falls back
to platform `a_b`, and toolset validation accepts it.
- StandaloneSendPolicy.media_via_adapter moves after reply_file_over so
positional callers keep their meaning.
- cron home-target priority keeps wecom (the plugin platform keeps it).
- `_BUNDLED_ENV_SIBLINGS` removed with its readers' prefix branch.
c3ec8edb3cc4 Teknium refactor(wecom): WeCom leaves core for the official wecom plugin
Both WeCom platforms (AI Bot `wecom`, self-built-app `wecom_callback`) move to
NousResearch/hermes-official-plugins `wecom/`, installed by default on every
home (catalog `default: true`). Existing users get it automatically: two
LEFT_CORE rows (one per platform, one shared plugin, installed once) whose
platform_in_use predicates replicate core's enable gates per mode.
Generic seams added for the plugin, never a name check left in core:
- PlatformEntry.listen_port: a plugin platform that binds a host port
(platform_binds_port, multiplex shared listener, migration blockers,
dashboard topology). Replaces the wecom_callback rows.
- StandaloneSendPolicy.media_via_adapter: send_message media through the live
adapter route. Replaces the _CHUNKED_ROUTES["wecom"] row.
- cron: a registered plugin platform without a cron env var (home channel from
config.yaml only) is a valid delivery target. Replaces the wecom_callback row.
Child-env strip set unchanged: _ADAPTER_SECRET_ENV also carries the
left-core platform rows' secret_env.
DingTalk (Stream Mode adapter, AI Cards, the QR device-flow login in
hermes_cli/dingtalk_auth.py) now ships as the `dingtalk` plugin in
NousResearch/hermes-labs-plugins: built by Nous Research, not supported.
Same platform name, DINGTALK_* env vars and platforms.dingtalk keys.
Removed: plugins/platforms/dingtalk/**, hermes_cli/dingtalk_auth.py and
its tests, Platform.DINGTALK, the hermes_cli/platforms.py row, the
hermes-dingtalk toolset and its hermes-gateway include, the dingtalk PM
extra (+ uv.lock, nix groups), the platform.dingtalk.emotion locale
strings, builtin-list entries (update allowlist, allowlist env platforms,
webhook/cron deliver sets, dump, dashboard env rows) and the shim rows
for a folder that no longer exists. Comments that named DingTalk as a
core adapter now describe the capability flag instead; no core code
branched on the name. Docs: messaging/dingtalk.md (+ zh-Hans) is a
"moved to the Labs plugin" page.
Kept: DINGTALK_CLIENT_ID/SECRET on the hermes-owned env list (a plugin
manifest cannot claim them), tip t159 (tips are numbered contiguously),
the desktop/TUI session-source names (the plugin keeps the platform name).
hermes-dingtalk stays valid as a retired telemetry toolset name.
Teknium's ruling: push them to hermes-labs-plugins with no support guarantee and switch
existing users over with a notice. The bundled dirs stay deleted; what changes is what a
home still configured for one gets:
- Drop the `_REMOVED` table and `removed_provider_notice` (agent start, `hermes update`,
`memory status`, `memory setup <name>`, doctor). Both names stay in `_LEFT_CORE`, so the
existing machinery installs the catalog plugin unattended, exactly like hindsight/mem0.
- `_LABS_NOTICES` (name -> sentence, table-driven): the one "installed its plugin from the
catalog" line for byterover/retaindb adds "<Label> is now a Hermes Labs plugin: built by
Nous Research, not supported, and likely not maintained going forward. Fixes from the
community are welcome." Maintained providers' line is unchanged.
- Kept: BRV_API_KEY / RETAINDB_API_KEY / RETAINDB_BASE_URL in the static child-env
blocklist (no OPTIONAL_ENV_VARS row declares them any more); comment reworded.
- Docs: memory-providers (EN + zh-Hans) lists ByteRover and RetainDB as Hermes Labs catalog
plugins with a not-supported caution and install commands; env-var reference rows point
at the plugins; integrations/overview/memory pages, CONTRIBUTING (EN/ES), plugins/AGENTS.md
say "moved to Hermes Labs".
- Tests: the removed-provider test becomes "labs provider installed once with the notice,
second start installs nothing, config untouched", plus "maintained provider's line carries
no labs notice".
Nobody took over NousResearch/hermes-plugin-byterover or hermes-plugin-retaindb by the
Oct 15 2026 deadline (D12), so both bundled providers are deleted instead of moved to the
catalog.
- Delete plugins/memory/byterover/, plugins/memory/retaindb/ and the tests that only
exercised them (provider, multiplex contract, thread-profile and identity-scope files whose
every case was one of the two; the retaindb secret-scope pair; the two bundled-precedence
tests that used byterover as the bundled sample).
- memory_provider_migration: a `_REMOVED` name -> label table. A home whose memory.provider
names one gets "<Label> was removed from Hermes because no one took over maintaining it.
External memory is off; run `hermes memory setup` to choose another provider." at agent
start (CLI, Desktop notice, chat platform first reply), on `hermes update`, in
`hermes memory status`, `hermes memory setup <name>` and `hermes doctor`. No catalog lookup
and no install for those names; memory.provider is never rewritten. Both names leave
_LEFT_CORE (no unattended install consent for a plugin that does not exist).
- Drop RETAINDB_API_KEY / RETAINDB_BASE_URL / BRV_API_KEY from OPTIONAL_ENV_VARS, the
"Bundled providers" help line, ~/.brv-cli/bin from the memory-setup PATH, the two
boundary-lint baseline lines, and the docs (EN + zh-Hans).
- Kept: agent/redact.py's retaindb_/brv_ key patterns (a leaked key is still a secret).
The empty `honcho: {}` config root was already removed on main (6933155eaf).
The restore loop re-listed every rule _import_skipped already holds
(runtime names, host-managed root trees, PM-local roots, SQLite
sidecars), so each new rule had to be added twice to keep the integrity
pre-flight and the restore in agreement. Call it once instead; the
keep-host skips stay beside it. Same members are skipped as before.
Also word the host-managed note as "imports skip them": a hand-built
archive can still reach the tree through _external/, as it can for any
root entry.
Follow-up to the portal-recovery/lost+found exclusion (#158231).
- One HOST_MANAGED_ROOT_DIRS constant in home_data_layout, matched at the
Hermes root only. The profile-aware exclusion also dropped
profiles/<name>/portal-recovery/ from backups while keep-host still
overwrote it, so the undo point lost a copy main could restore.
- Plain and keep-host imports skip root portal-recovery/ and lost+found/
(restore loop and _import_skipped). Older Cloud archives carry readable
portal-recovery/ files, and writing them into the root-owned folder
ended the import incomplete. keep-host's _HOST_ROOT_DIRS goes back to
webapp only, since the import skip covers it.
- Tests: shared deny-reading helper, the archived lost+found member is
rejected, skill/profile folders of the same name stay in backups, and
a plain import of an older archive leaves the host's copy alone.
- Document the exclusion in the backup reference (en + zh-Hans).
Review follow-ups on the sessions list:
- min_message_count was applied to the compression ROOT before the walk to
its tip, so a root that rotated before its first flush (0 messages) hid its
populated tip. The floor now admits a compression-ended row when any
continuation in its lineage meets it (same continuation edge as the list
CTE; the recursive EXISTS runs only for compression rows under the floor).
The reference backend's filter follows the same lineage rule.
- The tip-title inheritance lookup bound every ancestor id in one IN (...);
six 180-deep chains exceed a 999-variable SQLite build. It now goes
through _id_chunks.
- `--all` dropped every exclusion except `tool`; it now lists every source.
- Gateway `/sessions` leaves cron runs out of its recents/search page, as
#140273 proposed; pinned listings are unchanged.
Co-authored-by: hbtjm9000 <260822553+hbtjm9000@users.noreply.github.com>
Bare `hermes sessions` printed argparse help. On a terminal it now opens the
existing `browse` picker (arrows + Enter resumes via `hermes --resume <id>`);
off a terminal it prints the list.
`hermes sessions list` ranked root rows by started_at and cut the page before
projecting compression tips. A cron tick writes a `local-<sha>` row every run
(most stay empty, untitled: "—"), so the newest-started rows were all cron and
every compacted human thread, whose root started days ago, fell off the page.
List and browse now use the Desktop recents shape: rank lineages by their
tip's last message (order_by_last_active), drop zero-message rows, and leave
out automated sources (cron, webhook, push, kanban, tool, oneshot). `--all`
or an explicit `--source` brings them back. Subagent children stay out.
A projected tip with no title of its own fell back only to the root's title;
it now takes the nearest titled segment of its lineage (a thread titled after
its first rotation carries the title on a middle segment).
* docs(kanban): correct the delegate_task comparison table
The table described delegate_task as a blocking call with no resume, no
human control and no audit trail. Top-level calls return a handle and
deliver the result as a later message; a finished or stopped child can
be continued; a running child can be steered or stopped; each child's
transcript is a stored session under the parent's.
The Kanban column overstated three things: a creating chat is subscribed
to completion and block events by default, a dispatched worker can
change only its own card, and `hermes kanban gc` prunes old events of
done and archived tasks.
* docs(delegation): describe delegate_task as the code runs it
Corrections found by checking each statement on the delegation pages
against the source:
- Nesting is decided from depth. delegate_task has no role parameter;
a passed role is accepted and ignored. The background parameter is
deprecated and ignored.
- Top-level calls are backgrounded only where the session can receive
a later message. One-shot runs, cron jobs, Kanban workers, stateless
API requests, inline gateway chats and a full pool join in the call.
- The blocked tools are delegate_task, clarify, memory, send_message
and cronjob_manage. execute_code is not blocked.
- A background process survives its session only with
persist_on_release=true, and never a gateway or host shutdown.
- A crashed or restarted child resumes when delegation.auto_resume is
on, and stays continuable for delegation.resumable_ttl_hours.
- The schema retry appends the output contract again. Subagent context
files use the flat 20,000 character cap.
- Routing: native-SDK providers ignore base_url precedence, a provider
default model applies before the parent's, max output tokens are not
carried, and /review follows the delegation section by default.
- Failure line, status values, diagnostic dump name and contents,
/agents rows, the steer delivery point, live transcript fidelity,
Slack's notice default and the worktree archive step now match the
strings and behaviour in the code.
* docs(config): delegation defaults and limits match the code
- max_concurrent_children defaults to 10, not 3.
- delegation.max_iterations defaults to 250, not 50.
- max_spawn_depth has a floor of 1 and no ceiling.
- DELEGATION_MAX_CONCURRENT_CHILDREN is read only when the config key
is null; the shipped default otherwise wins.
- An omitted delegation.api_key inherits the parent's key or uses the
named provider's own key. OPENAI_API_KEY is not read.
- A task's context rides the child's first user message, not its
system prompt.
- role="orchestrator" is gone from the delegation section.
* docs(delegation): state when the concurrency env var is read
DELEGATION_MAX_CONCURRENT_CHILDREN is read whenever no config value is
loaded: under --ignore-user-config or --safe-mode, and with the key set
to null. The previous commit named only the null case. The Delegation
page no longer offers the variable as a way to configure the limit.
* docs(kanban): say which chats are subscribed on create
Only a session with a delivery channel is subscribed to a task it
creates: a gateway chat, or a TUI or Desktop session. A classic CLI
run, a cron job or a scripted create is not, and kanban_create reports
it in the result's subscribed flag.
When uv exhausts its HTTP retries before PM's deadline, classify_uv_failure
now attaches the same UV_CONCURRENT_DOWNLOADS / UV_HTTP_TIMEOUT hint. The
docs separate what regular and pinned-runtime builds keep, and the child
env test moves into test_index_bridging.py on its shared fixture.
The uv timeout hint now points slow links at UV_CONCURRENT_DOWNLOADS
first, and the package-management reference lists which UV_* network
settings survive PM isolation.
Co-authored-by: marlonferreira1800-hue <marlonferreira1800@gmail.com>
`hermes dashboard password` removes the HERMES_DASHBOARD_BASIC_AUTH_{USERNAME,PASSWORD,
PASSWORD_HASH} lines that would override config.yaml. It finds and removes them line by
line (load_env, remove_env_value). The loader is python-dotenv, which reads a double- or
single-quoted value over several lines as one value.
Measured with a real .env holding a PEM-style TLS_KEY="..." over four lines (one of them
`HERMES_DASHBOARD_BASIC_AUTH_PASSWORD=look-alike...`) and a two-line
HERMES_DASHBOARD_BASIC_AUTH_PASSWORD="first\nsecond". The command removed the look-alike line
from inside the key, which silently corrupted TLS_KEY. It also removed only the first line of
the password, leaving a stray `second"` line the loader can't parse. The file went from 300 to
174 bytes.
When the .env holds any quoted value over several lines, the cleanup now removes whole
assignments as python-dotenv parses them, under the existing .env write lock. It writes every
other byte back unchanged: the BOM, comments, the blank lines before a removed assignment,
line endings and the file mode (the same atomic, mode-keeping writer as remove_env_value). A
look-alike line inside another value is part of that value, so it stays. Such a file that
isn't UTF-8 would be re-encoded by the rewrite, so when it has an override assignment to
remove (as python-dotenv parses it) it is refused before config.yaml is written, with nothing
changed. With none to remove (a Latin-1 note and PLAIN=1, or only a look-alike line inside a
value), the file is left alone and the command succeeds, as on main for that note. "Every
other byte" is the cleanup's own write: the startup .env sanitizer that runs on main before
it (env_loader, unchanged here) may already have rewritten the file.
That write turns off newline translation: _write_env_lines takes an optional `newline`
(open()'s; default None, as before for every other caller), and this caller passes "".
Otherwise text mode on Windows would write a kept CRLF as "\r\r\n". Measured on Linux with
Windows translation simulated (os.fdopen newline="\r\n"): `KEEP="a\r\nb"\r\n...` came back as
`KEEP="a\r\r\nb"\r\r\n` without it, and byte-exact with it. main's line-by-line writer
doesn't translate twice: it reads with universal newlines and writes "\n" once, so on Windows
it writes CRLF once. It also turns an LF file into CRLF there, as it always has; that path is
left as it is.
A .env with no multi-line value still goes through remove_env_value line by line, exactly as
before; a real run on such a file prints and writes the same as main.
Follow-up to #157393.
* feat(pm): a launcher can name the install-state folder of its process
A sandbox that runs Hermes on the host's own files grants the selected
dependency environment read-only and nothing else of installs/<key>. On
Windows the process inside still sees that folder, because it is an
ancestor of a grant, while reading facts.json and taking the install lock
are refused. Start-up took that for an install state it has to use and
ended with "install state is not writable by this user", so a sandbox on
an installer-made Hermes on Windows did not start.
HERMES_INSTALL_STATE_DIR names the folder a process and its children keep
their install state in. A process started with it runs on the interpreter
it was given: it selects no environment, from the install's own state or
from the named folder, it is not restarted on another interpreter, and it
writes nothing into the install's own state. A Linux sandbox gets the
same from a mount of an empty folder over installs/<key>; Windows has no
mount.
* fix(pm): start-up reads nothing from a folder a launcher named
A process whose launcher named its install-state folder still acted at
start on that folder and on the checkout's markers:
- An update that stopped half way leaves .update-incomplete in the
checkout. The process ran the repair, which builds into the named
folder, and cleared the marker the install's own next start needs.
- A publication.json placed in the named folder, which the process can
write, was replayed: it could put a config.yaml back, and a damaged
one ended the start.
Start-up now takes the path of a process with no install state: no lock,
no journal, no recorded selection, and the named folder is left as it
is. A sealed install still selects the environment its manifest names,
which is part of its tree.
* fix(env): the install-state folder a launcher named is launch-only
A .env line that names HERMES_INSTALL_STATE_DIR replaced the launcher's
value when the file was loaded, after start-up, and every later lock and
marker went to the other folder. The same line made the variable residue
of the launch profile, so a worker started for another profile lost it.
The variable joins LAUNCH_ONLY_ENV_KEYS: no .env, secret source or .env
writer sets it.
* fix(pm): refuse to build an environment no process would select
In a process whose launcher named its state folder, `hermes pm install
--extra` built an environment in that folder and reported it installed.
No process selects an environment recorded there. `hermes pm repair` did
the same, and counted a failed attempt against the install's marker.
Both entries of the venv sync (pm.client, pm.install) and the explicit
repair now refuse first and say why.
* docs(reference): what a named install-state folder does
The row for HERMES_INSTALL_STATE_DIR says what start-up leaves alone,
which commands are refused, that a sealed install keeps the environment
it ships, that the variable is launch-only, and that the launcher keeps
the interpreter's environment in place while the process runs.
After the fleet check, when this profile still runs an old `hermes dashboard` / `hermes serve` backend,
`hermes update` prints one paragraph naming it and the command that shows the move to the gateway
without changing anything: `hermes -p <profile> gateway migrate --backends --apply --dry-run`, typed
the way the migration prints its own steps. A profile of a root other than the platform default
(HERMES_HOME=/srv/team-hermes) also pins that root, because `-p` resolves against the shell's own
HERMES_HOME: `HERMES_HOME=<root> hermes -p <profile> ...`, or `$env:HERMES_HOME='<root>'; hermes ...` in
PowerShell, quoted for each shell by the migration's own `hermes_command(home, powershell=)` and
`pin_hermes_home`. If that backend still runs a Hermes older than v2026.7.30, the dry run says to restart it
with the updated hermes first. The notice never stops, restarts, migrates or prompts.
It only looks when the update already met such a backend: its pre-update inventory lists a serve or
dashboard runtime no Desktop owns, or its restart phase touched a hermes-serve*/hermes-dashboard* unit,
leaving out the ones the inventory attributes to a sibling profile. With no such candidate it resolves
nothing else (not even the active profile), starts no process and prints what it printed before. A
stopped unit is not named while the migration's backend_migration.json says the old backend stays down
(running, done, failed, or unreadable); a running backend is named in every state.
The whole notice, gate and report, runs inside the update's `_best_effort`: a failure is logged at debug
and never fails the update.
macOS lets `hermes dashboard --port P` bind 127.0.0.1:P while the gateway listens on *:P, and another
address of the same port binds on any OS, so a retired backend could come back as a second session
owner beside the gateway. When the migration manifest says the old backend is retired and this home's
gateway serves the port, the bind check reports a conflict and the old command gets the existing exit-78
message. Without a manifest, or after a rollback or restore, nothing changes.
`--apply` records a manifest (backups and manifest fsynced, 0600 from creation), copies sign-in settings
that exist only in the old unit's environment into .env, installs and starts the gateway, retires the
old backend (systemd unit disabled with a RestartPreventExitStatus=78 drop-in; launchd job booted out,
disabled and its plist set aside; a hand-started process stopped by its recorded pid) and verifies every
address within 90 seconds. Nothing changes (exit 3) while a turn runs on the old backend (unless
--force-interrupt), while another old backend serves this home, when the unit's enablement could not be
put back exactly, when config.yaml or .env is a symlink, when a hand-started backend's command line and
environment cannot be recorded and read back, when the run (or the rollback of an unfinished run) is
inside the gateway's unit, or when the manifest exists but cannot be read. A finished migration makes a
second --apply report nothing to do; it never re-plans or replaces the backups. Any failure undoes only
the steps the run entered (a journal in the manifest), and starts the old backend again only once the
gateway is proven off its address (and never a second hand-started process: the replacement is recorded
at once and a live one is reused); otherwise exit 5 with numbered, profile-qualified manual steps.
Unknown gateway identity counts as "off" only when nothing listens on the port; a hand-started backend
without its recorded launch snapshot is left down (exit 5; --restore checks it before stopping the
gateway), and the snapshot is removed after a verified rollback or restore. A run killed mid-way is
rolled back by the next run, never continued. `--restore` undoes a finished migration, `--status
[--json]` reports the last run, `--detach` runs outside the caller's systemd unit with the same profile
(exit 7 when it never confirms), and `--expect TOKEN` (from the dry run's expect_token) refuses with
exit 8 when the backend found under the run lock is another one. One run per home at a time: a second
exits 3 and changes nothing. The --backends report no longer says migration is unavailable. Its tests
are in tests/hermes_cli/gateway_migrate_backends_apply/ (the dry-run file keeps the shared fake host).
Docs: the "Moving a dashboard backend to the gateway" section and the migrate row.
`hermes update` restarts an inactive but enabled-like hermes-dashboard.service. Once a backend migration
has stopped the old backend (backend_migration.json in the home says so), that restart leaves it
stopped. A manifest that exists but cannot be read counts as retired too: a migration may have stopped
half-way. Without the file the update behaves as before.
`hermes gateway migrate --backends --apply --dry-run [--json]` prints the plan for moving this home's
old dashboard/serve backend onto the gateway's Webapp on the same address, and every blocker. The
blockers are:
- a running turn (unless --force-interrupt);
- an address that matches no backend;
- a bind the gateway would refuse;
- a Webapp already enabled elsewhere;
- a run from inside the old unit;
- a stopped unit whose environment cannot be read, or whose EnvironmentFile= is a pattern;
- a config.yaml that cannot be read or parsed (the parser's text is not repeated).
It only reads the host: the new SystemHost has no method that starts, stops, installs or writes
anything. It judges the Webapp settings with the gateway's own webapp_settings, on the config the
gateway would see: defaults, ${VAR} expansion and the managed overlay, merged from config.yaml as
written without load_config's writes (it creates the home layout and backs up the config).
Secrets: a public URL is copied only when the gateway accepts it; otherwise it is a blocker that does
not print it. The argv in the plan has inline env assignments, credential flags and URL passwords
redacted.
Backends this command will not drive (Nix, s6/containers, a systemd system unit, a host without a
service manager) exit 6 with printed steps that fit the host:
- every hermes command names the home: -p PROFILE, and -p default for the default home, so a sticky
`hermes profile use` choice cannot redirect it;
- the old backend stops first;
- the gateway is then installed, started or restarted by what `hermes gateway status` says, and
`hermes webapp --status` checks the result;
- Nix and container steps say what to change in their own configuration;
- without a service manager, the last step is `hermes gateway run`.
Which home a stopped systemd unit belongs to comes from the environment systemd gives it:
Environment= first, then each EnvironmentFile= in order, a later value winning (systemd.exec(5)). A
required file that cannot be read, or an EnvironmentFile= pattern (systemd expands it), blocks the
plan. A system unit must also run as the caller.
A stopped Nix unit's address comes from its ExecStart. An address that cannot be read stays absent
(null in JSON), with no address-dependent steps or text. A launchd LaunchAgent is planned with the
credentials in its plist and the gateway as a launchd agent. `--apply` without `--dry-run` exits 2 in
this version.
A new test runs the real CLI against a scratch account with a hand-started `hermes serve` and checks
that every file under it, the backend's process and its install id are unchanged. Docs: a "Planning a
move to the gateway (dry run)" section and the cli-commands migrate row.
Windows environment names ignore case, so a hermes_dashboard_basic_auth_password
line in a .env is loaded as HERMES_DASHBOARD_BASIC_AUTH_PASSWORD and overrides
config.yaml, while the command removes and judges only the exact upper-case
names: it exited 0 and the old password came back on the next start.
On Windows the command now refuses first, before writing anything, when this
home's .env or the checkout's has one of those keys in another case. It names
the file, the line number and the key as spelled, never the value, and asks
for the line to be deleted or renamed. Lines are read one at a time with the
tokenizer load_env uses, so a look-alike line inside a quoted multi-line value
refuses too. Nothing else changes: off Windows the check does not run.
This reverts commit b518656ea2a4d9416c918ae977f0b59b309218e8.
Matching the overrides in any case changed which lines the command reads from the
home's .env with a second tokenizer, and on Linux a quoted key ('HERMES_DASHBOARD_
BASIC_AUTH_PASSWORD'=...) in the home's .env with the same key in the checkout's
.env no longer refused: the command exited 0 and left the old override in effect.
On Windows it could still let the checkout's spelling win, deleted look-alike lines
inside a quoted multi-line value, and could print a value as the kept username.
The matching and removal are back to the exact names, byte for byte as before. The
POSIX test from that commit stays: a lower-case line is another variable there.
Windows environment names ignore case, so a hermes_dashboard_basic_auth_password
line in a .env is loaded as HERMES_DASHBOARD_BASIC_AUTH_PASSWORD and overrides
config.yaml. hermes dashboard password looked the overrides up by their exact
upper-case names: it left such a line in the home's .env (exit 0, the old
password back after a restart) and did not refuse one in the checkout's .env.
The overrides are now matched the way the .env writer compares names
(_env_var_policy_name): any case on Windows, exactly elsewhere. That covers
removing them from the home's .env, the username kept from it, the username
reference check, and the checkout .env judgment, whose simulated removal now
drops every spelling the home's .env has. POSIX behavior is unchanged.
The CLI reference now says the checkout .env refusal uses the loader's own rules: ${...}
expanded, fill-gaps-only when the home has its own .env, so an empty or unresolved value
overrides nothing.