hermes-agent/tests/honcho_plugin
Erosika 9e77d83354 fix(honcho): gate memory-file migration on the declared owner
The previous gate compared session.user_peer_id against a fresh
_resolve_user_peer_id() call on the same manager. Both values come from
the same resolver with the same inputs, so a non-owner triggering a new
session in a shared channel passed the check and received the owner's
MEMORY.md/USER.md under their peer.

The owner is now a config fact: _declared_owner_peer_id() returns the
sanitized peerName, and migration runs only when the session's user peer
is that peer. Without a declared peerName, migration runs only when no
runtime gateway identity is present (the single-operator CLI path).
Aliases still work: a platform ID mapped onto peerName resolves to the
owner peer before the comparison.

Tests now derive each session's user peer from the real resolver instead
of hand-picking mismatched ids, so the non-owner test fails against the
old gate.
2026-08-13 23:43:15 +05:30
..
__init__.py
conftest.py
test_async_memory.py fix(honcho): gate memory-file migration on the declared owner 2026-08-13 23:43:15 +05:30
test_auth_recovery.py
test_cli.py
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_empty_profile_hint.py
test_network_isolation.py
test_oauth.py
test_oauth_flow.py
test_pin_peer_name.py
test_query_rewrite.py
test_save_messages.py fix(honcho): honor writeFrequency in sync_turn by routing through manager.save() 2026-08-13 23:43:15 +05:30
test_session.py