The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(update): the host obligation is host-scoped state, so each test must discharge it
teknium13be255eca655
diff --git a/tests/hermes_cli/conftest.py b/tests/hermes_cli/conftest.pyindex 7f88065f335..01a4ac845e9 100644--- a/tests/hermes_cli/conftest.py+++ b/tests/hermes_cli/conftest.py@@ -82,6 +82,32 @@ def _inline_post_swap_handoff(request, monkeypatch):monkeypatch.setattr(update_cmd, "_hand_off_post_swap", _inline, raising=False)[email protected](autouse=True)+def _discharge_host_update_obligation():+ """Start and end every ``hermes_cli`` test with NO host update-restart obligation.++ The record is host-scoped on purpose (one multiplexer per host), so it lives in the+ per-OS-USER host state dir — not in the per-test ``HERMES_HOME``. The root conftest pins+ that dir per test only when the caller supplied no ``HERMES_GATEWAY_LOCK_DIR`` (#118097+ keeps the documented override working), so with one set every test in a file shares it and+ a test that arms the obligation makes the next one read a restart it never owed. Clearing+ the record — rather than re-pinning the dir — leaves that override rule untouched.+ """++ def _clear() -> None:+ try:+ from hermes_cli.update_host_obligation import clear_host_obligation++ clear_host_obligation()+ except Exception:+ # Import/env failure here must never error an unrelated test.+ pass++ _clear()+ yield+ _clear()++@pytest.fixturedef isolated_update_runtime(monkeypatch, tmp_path, request):"""Keep mocked updater flows off the host checkout and runtime fleet."""