hermes-agent/tests/honcho_plugin
Erosika 606481586a fix(honcho): honor explicit top-level apiKey on local base_urls; warn on keyless profile host blocks
Two silent-auth-failure paths from #36098 (also #66125):

- the local-URL guard only escaped the 'local' placeholder when the
  HOST BLOCK had apiKey. A top-level apiKey in honcho.json — explicit
  user intent, and what 'hermes honcho setup' writes for single-host
  configs — was dropped on the floor, so AUTH_USE_AUTH self-hosts
  401'd on every request. Now any explicit key in honcho.json (host
  block or top level) is honored; only env-sourced keys are still
  treated as likely-cloud and skipped for local URLs.

- named-profile host blocks do not inherit the default host's apiKey
  (credential isolation is by design), but the failure was silent:
  the profile ran unauthenticated and every tool said 'no context'.
  Affirm isolation and warn loudly at config-resolution time instead,
  the outcome #66125 proposed if inheritance is rejected.
2026-08-13 23:43:15 +05:30
..
__init__.py
…
conftest.py fix(honcho): network-hermetic unit tests + lazy async writer start 2026-07-29 18:55:10 -07:00
test_async_memory.py fix(honcho): network-hermetic unit tests + lazy async writer start 2026-07-29 18:55:10 -07:00
test_auth_recovery.py fix(honcho): keep _pop_auth_notice tolerant of minimal fake managers; make fast-path test binding 2026-08-08 14:40:46 +05:30
test_cli.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_client.py fix(honcho): honor explicit top-level apiKey on local base_urls; warn on keyless profile host blocks 2026-08-13 23:43:15 +05:30
test_client_identity_isolation.py test(honcho): pin multi-profile client isolation end to end 2026-08-13 23:43:15 +05:30
test_empty_profile_hint.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_network_isolation.py fix(honcho): network-hermetic unit tests + lazy async writer start 2026-07-29 18:55:10 -07:00
test_oauth.py fix(honcho): recover memory from mid-session oauth 401s and tell the user once 2026-08-08 14:40:46 +05:30
test_oauth_flow.py fix(honcho): network-hermetic unit tests + lazy async writer start 2026-07-29 18:55:10 -07:00
test_pin_peer_name.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_query_rewrite.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_session.py refactor(memory): single shared trivial-prompt classifier + gate tests 2026-08-03 17:53:55 +05:30