Files
hermes-agent/tests/plugins/platforms
Teknium 1cf261a8cd refactor(wecom): WeCom leaves core for the wecom Hermes Labs plugin
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.
2026-11-28 07:35:40 -08:00
..
…