mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-08-13 17:16:12 +00:00
Gap-fill from the follow-up commit's own review: - __init__.py: restore getattr tolerance in _pop_auth_notice — test fixtures outside tests/honcho_plugin/ install minimal fake managers without pop_auth_notice (tests/test_honcho_startup_fail_open.py's SlowManager failed with AttributeError). Exceptions still propagate; only the blanket except was dropped. - test_auth_recovery.py: the fast-path test used a raising stub, but _reauth_required swallows all exceptions — the test passed even with the fast path removed. Rewritten as a recording spy with a call-count assertion; mutation-verified (removing the fast path now fails it). - test_auth_recovery.py: autouse fixture resetting oauth module dicts (_dead_grants, _refresh_failure_at, _reauth_check_cache, _expiry_cache) so state can't leak between tests. honcho_plugin 293 + test_honcho_startup_fail_open 7 + plugins/memory 285 = 585 passed.