Files
hermes-agent/plugins/platforms/buzz
Teknium b035c13e77 fix(platforms): plugin-declared rows reach callers that run before or outside discovery
CI found three paths that read the registry where core used to read its own table:
- the system prompt's platform hint was built before any discovery (direct builders):
  discover on a miss, like the send and config lookups already do;
- the dashboard's auth-posture check resolved the allowlist env inside the profile scope,
  whose registry overlay may not hold the entry: resolve it in the request scope, the way
  _env_value_rules already does;
- a parked profile's config read suppresses plugin discovery by design (#123386), so its
  bundled-platform env rows vanished and the duplicate-credential guard stopped seeing a
  shared bot token. Bundled rows are now read straight from plugins/platforms/<p>/gateway_env.py
  (core-only imports, never the plugin package or register()) whenever the registry has no
  entry: suppressed discovery, safe mode, a disabled plugin. That is main's behaviour.

Buzz's test loader imports adapter.py as a bare module, so its sibling imports go through the
existing loader-agnostic helper (generalized from nostr_auth).
2026-10-16 19:42:34 -07:00
..