hermes-agent/tests/hermes_state
kshitij a82910c37b test: fold review findings — plain fixture, call-shaped probe guard, public-API row counting
- state_db fixture: drop the HERMES_HOME setenv + sys.modules purge
  (SessionDB takes an explicit path; tests/conftest.py already sandboxes
  HERMES_HOME; the purge risks split-class identity for other modules
  holding the old hermes_state reference) — matches the plain
  tests/hermes_state/ sibling fixture pattern.
- probe guard asserts on the CALL ('has_archived_messages(') instead of a
  local-variable name — a reintroduced probe under any rename now trips
  it (mutation-checked: renamed-probe reintroduction fails the guard;
  restored stack green).
- _archived_count uses the public get_messages(include_inactive=True)
  instead of poking db._lock/_conn.
2026-08-07 15:42:49 +05:30
..
test_append_messages_batch.py refactor(state): fold simplify findings — reuse _insert_message_rows, share guards, chunk seeds 2026-08-03 20:43:38 +05:30
test_aux_usage_accounting.py
test_conversation_root.py
test_get_anchored_view.py
test_get_messages_around.py
test_live_db_isolation_guard.py fix(tests): fail hard when pytest resolves the production state.db (live-DB isolation guard) 2026-08-06 07:49:50 -07:00
test_replace_messages_archive_siblings.py test: fold review findings — plain fixture, call-shaped probe guard, public-API row counting 2026-08-07 15:42:49 +05:30
test_resolve_resume_session_id.py
test_restore_alternation_repair.py
test_session_archiving.py
test_session_md_export.py fix(state): stop delegate/tool children corrupting compression lineage 2026-08-05 13:50:26 +05:30
test_session_read_state.py feat(state): sessions carry read/unread state 2026-08-04 12:32:27 -06:00