Retiring a name in the registry turned it into chat at the adapter boundaries: Slack `/hermes topup`
became the plain text `topup`, and Slack `!topup` / Matrix `!commands 2` were never rewritten, so the
model read them. Every adapter normalizer now asks one rule, hermes_cli.commands.is_command_on_input
(registry names and aliases, plugin commands, RETIRED_COMMANDS keys), and slack_subcommand_map (the
native and relayed `/hermes` input map) carries the retired names, so the gateway answers the rename
notice. Menus still list only the registry. The Matrix guide recommends `!help`.
Desktop's /hatch fallback for older backends runs only when the session's loaded catalog lists
/hatch; an unloaded catalog sends the command to the backend. On the shared gateway Ink offers only
the /pet arguments it runs itself (no `hatch`). Restricted /help drops the usage-hint parts a folded
form owns from its parent's line unless the caller holds that folded grant.
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 key_cmd token source and the Teams Bot Framework token cache started
their TTL after the helper / STS returned. A suspend while the request was
in flight therefore restarted the lifetime instead of spending it, so a
token that had already expired was cached as fresh for up to an hour.
Anchor both deadlines on the suspend-inclusive clock before acquiring,
and refuse a result whose lifetime elapsed during acquisition (raised,
never cached, so the next call re-mints).
The suspend regression now advances only the suspend-inclusive clock
(CLOCK_BOOTTIME on Linux, CLOCK_MONOTONIC on macOS), so selecting the
wrong clock in hermes_time fails the tests instead of passing.
/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.
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.
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.
The bundled QQ Bot platform (plugins/platforms/qqbot) leaves core for the
`qqbot` plugin in NousResearch/hermes-labs-plugins. Its platform name, every
QQ_*/QQBOT_* env var, the platforms.qqbot keys and QQBOT_HOME_CHANNEL stay
the same; the plugin's PlatformEntry carries the env bridge, authz env names,
cron home env and the default allow_update_command.
Removed from core: the plugin dir and its tests (they moved to the plugin),
Platform.QQBOT (Platform("qqbot") resolves once the plugin registers), the
hermes-qqbot bundle and its hermes-gateway include, the platforms.py,
tools_config, dump, setup home-channel and web messaging rows, the QQ_*
OPTIONAL_ENV_VARS / _EXTRA_ENV_KEYS entries, the webhook deliver and startup
allowlist entries, /update's built-in list entry, the shipped
platform_toolsets row, the compat required-name rows for the deleted folder
and the qqbot boundary-baseline lines. Tests that exercised the deleted
adapter drop only those cases.
Kept: the shared own-policy helpers (comments only), cron's home-target order
and the QQ_HOME_CHANNEL legacy alias, doctor's rename warning, the QQ_ env
prefix alias for profile channel ownership, the session_rules route enum,
desktop/TUI source lists. hermes-qqbot stays a valid retired telemetry
toolset value for rows older releases saved.
The Matrix adapter decided its silent approvers_only refusal by importing
tools.approval.list_gateway_approval_authority, a core symbol outside the
published plugin API, so tests/scripts/test_boundary_lint.py went red with a
new module_to_core crossing. That decision is approval policy, not Matrix
transport: it now lives in gateway.approval_actor.approval_is_list_only
beside approval_refusal, is published in hermes_cli/data/plugin_api.json and
documented in adding-platform-adapters.md, and the adapter calls it. The
boundary baseline is untouched.
_validate_matrix_prompt_reactor reads prompt attributes with getattr
because its callers (and the scoped-settings tests) hand it prompt
objects without every field. The new _approval_uses_list_only read
prompt.request_id directly, so the reactor gate raised AttributeError on
such a prompt and test_matrix_yaml_lists_gate_intake_and_approval went
red. Read it with getattr like its caller.
#160210 fixed the Slack/Mattermost batch path only. The same verdict leaked
through every other adapter whose native image upload is refused and falls
back to sending the URL as text: the base per-image loop (Slack per-image,
Telegram, Discord, Feishu, Weixin, BlueBubbles, Photon via super().send_image),
Matrix's own batch loop, Mattermost's _send_url_as_file and QQ Bot's
hand-built fallback all reported the batch delivered, so a media-only turn
whose only image was refused still ended SUCCESS.
- SendResult.link_fallback marks a text send standing in for a refused
upload. The base send_image sets it only when reached from a native
override (super()); a platform with no native images keeps the link as
its image delivery (#106153 stays fixed for it).
- The base loop, Matrix's loop and Telegram's album helpers count only
non-link results. The album lists linked photos in raw_response["linked"]
so caption_landed() does not resend a runtime footer the link text already
carried.
- Slack's send_image download-failure branch goes through super() instead of
re-implementing the same text send.
The per-call send_image result stays success=True: the link did go out.
hermes_cli/left_core_migration.py (1951 lines) was at the 2,000-line file cap with two approved
platform moves (QQ Bot, Feishu) still to add rows to it. Per the root AGENTS.md rule, the topic
becomes a folder: the facade (__init__.py) names each module's job and re-exports the public
surface in __all__; the code moves unchanged into homes, platform_use, feature_use, provider_use,
rows, hints, locks, notices and migrate. Topic modules import one another, never the facade.
Pure move: every top-level def/assign is AST-identical to the original except that hints and
migrate read the table as table.LEFT_CORE (rows imported as table), so one patch of
rows.LEFT_CORE reaches every reader. Private-name importers (default_plugins, catalog_platforms,
catalog_platform_listing) import from the owning module; tests patch where a name is looked up
(migrate._install_into, migrate._attempted, rows.LEFT_CORE, ...). The module path
hermes_cli.left_core_migration keeps working (it is the facade), so running updaters that import
migrate_all_homes from it are unaffected.
The A2A user guide's configuration reference and security model did not
mention A2A_TRUSTED_SIGNERS / A2A_REQUIRE_CARD_SIGNATURE (only the plugin
README did). Add both, and state plainly that with trust anchors alone an
attacker can strip the signature: the require flag is what refuses
unsigned or unfetchable cards.
When A2A_REQUIRE_CARD_SIGNATURE is set and the peer's Agent Card cannot
be fetched, _send_task substituted an empty card, so the refusal read
"card has no signatures and A2A_TRUSTED_SIGNERS is configured" (or blamed
missing trust anchors) — a misleading diagnosis for an unreachable or
erroring card endpoint. Pass the missing card through so the refusal
says the card could not be fetched. Accept/refuse outcomes are unchanged.
`python scripts/check` (the gate CI runs) failed on this branch: 4 blocking
health findings and 3 ruff errors, all in the files this PR adds.
- BLE001 in card_signature.py: the three blind `except Exception` handlers now
catch what they can actually raise (b64/JSON decoding and json.loads raise
ValueError subclasses; canonicalize raises ValueError/TypeError), and the
one that must stay a catch-all — a trusted key that cannot be loaded must
not abort the whole card check, another candidate key may still verify —
now logs the traceback, so a key the operator configured that cannot be used
is visible instead of silent.
- PLR0402: `import jwt.algorithms as algorithms` -> `from jwt import algorithms`
(still a local import, so the module stays inert without PyJWT).
- RUF059: the unused `priv` unpacks in the card-signature tests are prefixed.
Found while picking up @kvnloo's review fix on #154463; the CI run on this
head never started, so the gate had not caught them.
When the peer Agent Card fetch fails, _send_task previously bypassed
A2A_REQUIRE_CARD_SIGNATURE and posted SendMessage to the unverified base URL.
Run the existing verification gate on an absent card before sending and
regress the configured-signature fetch-failure path.
Original Agent Card signature verification: salch-cred (#154463)
Original report: David Kennedy (#150793)
A peer's Agent Card — its endpoints and skills — was accepted on trust: the A2A
plugin neither produced nor verified card signatures, so a card served with a
signatures entry forged under a legitimate signer's kid was used silently
(hermes-agent#150793).
Add JWS (RFC 7515) verification over the JCS-canonicalised card (RFC 8785),
wired into the single card-fetch path so a2a_discover and a2a_call refuse a card
whose signature does not verify against a configured trust anchor. Inert until
A2A_TRUSTED_SIGNERS (a JWKS) is set; A2A_REQUIRE_CARD_SIGNATURE additionally
refuses unsigned peer cards. A present-but-invalid signature is always refused,
never silently accepted. 'none' and symmetric algs are rejected for a card.
No new dependency: PyJWT[crypto] and cryptography are already pinned.
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.
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).
`hermes photon setup` and `hermes photon install-sidecar` ran `npm ci`
(then `npm install`) in whatever dir the resolver returned, with no
check. In a desktop bundle the resolver returns the in-bundle sidecar
when its deps are baked and current, or when mirroring to HERMES_HOME
failed, so either command rewrote node_modules inside the signed .app,
and a failed run wrote .photon-npm-error.log there too.
_install_sidecar() now stops first on a sealed-bundle dir: baked deps
report as installed (exit 0), missing ones print why (the mirror
failed; make HERMES_HOME writable) and exit 1. The gateway's sealed
refusal used the read-only message, which told the user to run
`npm ci` in the bundle; both now share sealed_bundle_deps_missing().
index.mjs imports both modules at load, but _MIRROR_FILES never listed
them, so a mirrored sidecar dies with ERR_MODULE_NOT_FOUND. That was
already true for read-only installs (#85046, #100031); this PR sends
sealed desktop bundles without baked deps down the same mirror path,
so without this desktop Photon would stop starting instead of writing
into the .app.
The list fix is zombopanda's from #77400 (also #86420 and #101798).
That PR's test reads index.mjs's import lines; the one here mirrors a
copy of the real sidecar tree and checks every shipped .mjs reaches
the mirror, which needs no source parsing.
Co-authored-by: zombopanda <zombopanda@gmail.com>
A macOS desktop bundle (Hermes Agent.app) is user-writable, so helpers that
probe install-tree writability by touching and unlinking a sentinel file
mutate directory metadata inside the signed bundle and return the in-bundle
path. During rc.1-v0.23.6 QA on Apple Silicon macOS, running `hermes doctor`
mutated ctime/mtime on `agent-payload/hermes-agent/scripts/whatsapp-bridge`
via `resolve_whatsapp_bridge_dir()`, and any subsequent WhatsApp/Photon npm
install would write `node_modules/` directly inside `Hermes Agent.app`,
permanently breaking its Developer ID code seal and ShipIt updates.
- `gateway/platforms/whatsapp_common.py`: skip the `.write_test` probe in
`resolve_whatsapp_bridge_dir()` whenever `hermes_cli.steward.is_bundled_payload()`
is true, mirroring directly into `HERMES_HOME/scripts/whatsapp-bridge`
(via `mkdir_under_hermes_home`), and add read-only `locate_whatsapp_bridge_dir()`
for diagnostics.
- `hermes_cli/doctor_tools.py`: switch `_check_npm_audit()` to
`locate_whatsapp_bridge_dir(project_root=PROJECT_ROOT)` so read-only
`hermes doctor` neither write-probes a sealed bundle nor creates an empty
mirror in `HERMES_HOME` when WhatsApp has never been set up.
- `plugins/platforms/photon/sidecar_paths.py` & `adapter.py`: detect sealed
desktop bundles (`install-stamp.json` with `payload == "bundled"`, self-contained
with no new core/plugin boundary crossing) so `dir_writable()` returns False
without touching `.hermes-write-probe`, `resolve_sidecar_dir()` mirrors to
`HERMES_HOME/photon/sidecar`, and `_ensure_sidecar_deps_blocking()` never
creates `.photon-install.lock` inside a sealed bundle with baked deps.
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).
Address all five Should-fix findings and the docs update from
@BearHuddleston's review of
https://github.com/NousResearch/hermes-agent/pull/160236:
1. Photon sidecar install lock (`plugins/platforms/photon/adapter.py`,
`plugins/platforms/photon/sidecar/.gitignore`): hold an exclusive
flock/msvcrt lock in the shared sidecar directory across the deps
checks and `npm ci`, preventing concurrent Photon profiles (each
loaded under its own per-home module name) from clobbering
`node_modules` or spawning against a half-installed tree.
2. Systemd boot-deadline renewal (`gateway/run_adapters.py`,
`gateway/run_adapters_recovery.py`,
`website/docs/user-guide/messaging/index.md`): renew systemd's
`Type=notify` start timeout before every preparation step (each
profile load and each enabled platform build), drop the 30 s
throttle and `prep_renewed_at`, and update the messaging docs for
wave-based secondary startup.
3. Remove test-only serial fallback (`gateway/run_adapters.py`): delete
`_uses_default_profile_starter`, `_DEFAULT_START_ONE_PROFILE_ADAPTERS`,
and the serial fallback branch, and update boot-sweep test stubs to
`_prepare_one_profile_adapters` so boot tests cover the real
parallel production path.
4. Serialize WhatsApp secondary connects one per wave
(`gateway/run_adapters_recovery.py`): add `_ONE_PER_WAVE_PLATFORMS`
for `Platform.WHATSAPP` and `wave_keys` on `_StagedProfileAdapter`
so WhatsApp secondaries connect one per wave in profile order while
other platforms still connect in the first wave.
5. Off-loop WhatsApp bridge deps install
(`plugins/platforms/whatsapp/adapter.py`): run
`_ensure_bridge_deps` via `asyncio.to_thread` so a cold/stale npm
install does not block the event loop and time out sibling connects
in the same wave.
Moves Gemini's auth registry row, static curated model list, picker placement/group, and
catalog aliases off hardcoded core tables onto `GeminiProfile` while preserving exact order
(`registry_after="lmstudio"`, `picker_after="huggingface"`, `base_url_env_var="GEMINI_BASE_URL"`).
- Pins `GEMINI_API_KEY` and `GEMINI_BASE_URL` on `_STATIC_PROVIDER_ENV_BLOCKLIST` in
`local_env_policy.py` so child processes never inherit them when the plugin is absent.
- Switches `models_detect.py`, `models_validate.py`, and `model_normalize.py` to
`static_catalog()` so vendor ownership, conflict detection, and prefix repair see plugin
`static_models`.
- Lets `sync_plugin_provider_registry()` wait for `registry_after` anchors discovered later
in the same pass (mirroring `picker_after` waiting in `sync_plugin_provider_catalog()`).
Adds `strict_client`, `implicit_max_output_tokens`, and `validate_setup_api_key` on
`ProviderProfile`, plus the `HERMES_ASYNC_CLIENT` capability attribute next to
`HERMES_SKIP_ASYNC_WRAP` so `_to_async_client` no longer uses `isinstance(..., GeminiNativeClient)`.
Removes the remaining core imports of `agent.gemini_native_adapter` from `agent_init.py`,
`agent_runtime_helpers.py`, `auxiliary_client.py`, and `model_setup_flows.py` while keeping
the auxiliary auto-discovery chain on `generateContent` (`auxiliary_chain=True`) and preserving
URL-qualified native compaction reservation and forwarding for custom routes.
Builds on the approach of #134578 (`strict_client`, the profile supplying Gemini's client).
Co-authored-by: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com>
Discovery accepted any gemini plugin package with an interactions module,
so an older profile-local copy whose http_error has no key_guidance
parameter passed the lookup and then failed with a TypeError on the first
error response. Check the names this transport calls, and that http_error
takes key_guidance, when the wire is resolved; an incompatible copy now
raises gemini_wire_unavailable with the missing names before any request.
The model list dropped gemini-4-argon, gemini-3.1-pro and gemini-3.8-flash, which
the endpoint no longer serves. A user who had picked one keeps it in config, so
every turn on that route went out with an id the endpoint rejects.
Exactly those three ids, in any spelling the client accepts (gemini/ and google/
prefixes, any case), now map to the default model, FALLBACK_MODELS[0]. The mapping
lives in one helper used by the profile's normalize_model_id hook (where Hermes
resolves the configured model), by build_extra_body before the thinking mapping,
by the setup effort picker, and by the client before the request is built. It logs
once per process per retired id. Every other id is left as typed.
Two existing tests used gemini-4-argon as their example of an unlisted id; they now
use gemini-4-xenon so they keep testing the unlisted path.
The client strips gemini/ and google/ before it names the model, so
gemini/gemini-4-carbon reaches Carbon. The per-model table lookup stripped only
google/, so gemini/ and upper-case spellings of a listed model counted as
unlisted: with no effort set the request skipped the model's default level, and
the setup effort picker offered the generic ladder instead of the model's levels.
The lookup now normalizes with the published bare_gemini_model_id, the same rule
the client uses (models/ is still not stripped, as the client sends it as
typed). The import is lazy and import-light, so discovery still loads the profile
without the HTTP stack.
The Solstice transport imported three core internals: the SSE event iterator and the
bounded streaming error-body reader from the native Gemini adapter, and the model-id
prefix rule. The plugin guide allows only published names, ctx methods or discovery,
and the lint baseline carried the three as exceptions.
The model-id rule now comes from its published home, agent.reasoning_effort. The two
stream helpers come from the gemini plugin's own client module, found the same way as
its interactions wire (the package the registered gemini profile was loaded from), so
the transport uses exactly the helpers the gemini client streams with. Their baseline
lines are gone. The base client and its error type stay as imported on main: Solstice
subclasses the client at import and raises the error when no gemini plugin is loaded.
The Solstice client picked its per-call timeout with `timeout or default`, so
an explicit timeout=0.0 was replaced by the one-hour read default. The
default now applies only when the caller passes no timeout (None).
Adds a test that timeout=0.0 reaches the request unchanged, unary and
streamed.
The transport reached the gemini plugin's Interactions wire with a relative
`from ..gemini import interactions`. That only resolves when Solstice is the
bundled `plugins.model_providers.solstice` package. A copy of the plugin in a
profile's own `plugins/model-providers/` loads under a top-level module name,
so creating its client failed with "attempted relative import beyond
top-level package", and the agent fell back to the generic client.
The transport now finds the wire through provider discovery: it looks up the
registered `gemini` profile and imports the `interactions` submodule of the
package that profile was loaded from. This happens once, when the client is
created. If no gemini plugin is loaded, or the loaded one has no
`interactions` module, creating the client still succeeds (an error there
would route the provider to the generic client), and each call raises a
GeminiAPIError (code `gemini_wire_unavailable`) that names the cause.
The wire itself stays in the gemini plugin, unchanged.
Tests: test_solstice_profile_local.py installs the plugin in a temp
HERMES_HOME and completes a unary and a streamed turn through real
discovery; test_solstice_transport.py covers the absent and replaced
gemini plugin cases.
The Solstice client turned long decode off through three class flags on the
gemini provider's GeminiClient (LONG_DECODE, SAMPLING_PARAMS,
REQUIRE_COMPLETED_STREAM). It capped max_tokens before the shared request
builder ran, so the builder still decided whether the request was stored, and
the gemini continuation loop carried Solstice-only branches.
GeminiClient is back to its pre-Solstice code path. SolsticeClient now
subclasses GeminiNativeClient and has its own single-request path: it builds
the request with the shared Interactions builder, caps the final
max_output_tokens at one request's (65536), forces store: false on the built
request, sends one request and reads one stream with no checkpoint, resume or
hop logic. A stream that ends before interaction.completed still raises
GeminiAPIError; temperature/top_p are still dropped; URL, headers, timeout
and the key-guidance-free Interactions error mapper are unchanged.
Adds a test that a request the shared builder would store (a 262144 cap and a
long-decode budget) still goes out with store: false and a 65536 cap.
The per-user-quota endpoint serves a fixed set of model IDs, each with its
own thinking_level set; any other ID or level is an HTTP 400 (or a
zero-limit 429). Solstice offered IDs the endpoint no longer serves, and
mapped efforts through the shared Gemini 4 helper, which knows no
per-model level sets and sends nothing when no effort is set, so no
thought summaries were requested.
- The provider list keeps only the IDs the endpoint serves; the first
entry stays the default.
- Each listed model gets its own allowed levels and default. An unset
effort sends the model's default with thoughts on; a set one is
clamped to the model's levels; thinking off hides thoughts at the
model's lowest level.
- The setup effort picker offers exactly each model's levels.
- The base moves to v1beta, where the Interactions method lives.
IDs outside the list keep the shared Gemini mapping. The boundary-lint
baseline records the profile's import of the shared clamp_effort helper.
The solstice cell of the provider wire snapshot is regenerated.
Solstice called the v1alpha generateContentPerUserQuota methods. It now
posts every request to the per-user-quota Interactions method on v1beta
(interactions:createPerUserQuota) with store: false. This brings thought
summaries, per-request thinking levels and signed thought-step replay.
SolsticeClient now subclasses the gemini plugin's GeminiClient and always
uses its Interactions wire, through new hooks whose defaults keep the
gemini provider unchanged:
- every request posts to <host>/v1beta/interactions:createPerUserQuota,
replacing any stored version segment (credential rows minted earlier
hold the v1alpha base);
- long decode is off: one request capped at 65536 output tokens, never
stored and never continued, because this method rejects stored
interactions;
- temperature and top_p are never sent;
- headers are the bearer token, content type and a hermes-agent
User-Agent only, never an API key, user-project or DPoP header;
- requests default to a 3600 s read timeout; an explicit per-call timeout
still wins;
- a stream that ends before interaction.completed raises instead of
returning the partial turn, because nothing stored can resume it;
- HTTP errors go through the Interactions error mapper without API-key
remedies.
The Solstice profile imported agent.reasoning_effort.gemini_top_thinking_level and the private
agent.transports.chat_completions._build_gemini_thinking_config, neither on the published plugin API;
the boundary-lint baseline carried both as exceptions.
Switch Solstice to agent.reasoning_effort.gemini_thinking_config, published for provider plugins in
the preceding seam commit, and drop its two baseline entries. The helper keys the mapping on the id
the native client sends, so a gemini/ or google/ prefixed model id keeps its effort too.
test_solstice_published_api.py checks that the profile imports only published names and sends what
the helper returns.
The Solstice profile had no build_extra_body, so reasoning fell through to
the generic extra_body.reasoning, which the native Gemini client drops. No
thinkingConfig ever went on the wire: the title pass's thinking-off never
applied, Gemini 4 Neon thought at its default level, and that thinking used
up the 512-token title cap in about two of three calls, leaving an empty
reply and the truncated first-message title. Main-turn reasoning efforts
were ignored the same way.
Translate reasoning to native thinking_config with the shared Gemini helpers,
as the gemini and vertex profiles do. Log a warning when a title reply comes
back empty at the output cap, which was previously silent.
The boundary-lint baseline records the profile's imports of the shared Gemini thinking helpers
(gemini_top_thinking_level, _build_gemini_thinking_config), which the gemini and vertex profiles
also import, so Solstice maps efforts the same way.
MATRIX_RECOVERY_KEY_OUTPUT_FILE is an operator path (the docs example is
/secure/path/...). Through mkdir_under_hermes_home an elevated Windows run
ACL-repaired that directory and everything under it. Take the boundary only
when the key directory sits inside a named profile home.
Patch and test by BearHuddleston (review 6019624984).
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
Eight writers in gateway platform plugins still created their directory with a
raw mkdir(parents=True) under the active profile home. An adapter bound to a
named profile that was deleted or renamed meanwhile brought profiles/<name>/
back on its next write (tracker #155595 U3, part 2 of #9).
They now go through mkdir_under_hermes_home; each keeps its existing handling:
- Google Chat thread-count store: skipped, counts stay in memory;
- Feishu comment pairing: raises, so an approval is never reported saved;
- Matrix crypto store (connect and E2EE setup) and recovery-key target and
write: refused through the existing reason / warning / abort paths;
line-neutral (the adapter is over the 2000-line cap);
- the auth.json lock helper (_file_lock): raises before a lock file is created;
Photon's stores take it before writing, so the lock recreated a renamed home
first. Line-neutral (auth.py is over the cap);
- Photon auth.json: raises to the auth caller;
- Photon sidecar mirror: falls back to the source dir like a read-only one;
- WhatsApp secondary bridge-port record: raises into connect's existing
OSError handling;
- WhatsApp Cloud inbound media cache: the media is dropped like a failed
write.
Each gets a delete+rename regression that fails on main and on a raw-mkdir
mutant.
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
The per-user-quota endpoint exposes no model listing to user tokens, so the
picker shows the hardcoded fallback list. Add the Gemini 4 Hydrogen, Neon and
Carbon IDs. Hydrogen goes first, so it becomes the default model for new
Solstice users (wire snapshot regenerated for solstice only); lite stays last
as the quota reserve.
discover_context_engines and discover_cron_schedulers built their rows with the same conditional
comprehension. It now lives once in plugin_loader.list_category; both listings return the same rows
as before.
read_plugin_choice only reads the selection and the plugins.enabled / plugins.disabled lists, so it
now uses load_config_readonly(), which returns the same values without copying the cached config.
Its docstring now says what a config.yaml that does not parse means: its last good copy when one
was kept, else the defaults.
context.engine: compressor (also the default) and the cron.provider values that pick the built-in
ticker (empty, builtin, in-process, inprocess) never load a plugin, but the listings counted them
as choosing a user plugin folder with the same name, so listing context engines or cron
schedulers ran its code. Those values now select nothing for a listing; a folder with such a name
still runs for a listing when plugins.enabled names it. Memory listings do not read the selection,
so they are unchanged.