The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(state): drop the SESSION_ID_PATTERN re-export from lost-and-found
kshitijk4poorc87cb09c016d
diff --git a/hermes_cli/session_lost_and_found.py b/hermes_cli/session_lost_and_found.pyindex f07bba738b3..dd333a66b41 100644--- a/hermes_cli/session_lost_and_found.py+++ b/hermes_cli/session_lost_and_found.py@@ -16,10 +16,7 @@ from typing import Any, Callable, Optional, Sequencefrom hermes_cli.session_schema_history import SCHEMA_HISTORY, reachable_physical_layouts-from hermes_state_ids import ( # timestamp prefix + derived shapes: sentinel for schema-less rows- SESSION_ID_PATTERN, # noqa: F401 -- re-export; test_hermes_state_ids pins the identity- is_known_session_id,-)+from hermes_state_ids import is_known_session_id # every minted id shape: sentinel for schema-less rowsfrom hermes_cli.session_recovery import (_AUXILIARY_TABLE_SCHEMAS, _AUXILIARY_TABLES, _CANONICAL_TABLES, _DANGLING_TOOL_PIN, _count_rows,_immediate_transaction, _placeholder_titles, _quoted_columns, _table_columns,diff --git a/tests/hermes_state/test_hermes_state_ids.py b/tests/hermes_state/test_hermes_state_ids.pyindex 181970011a2..797878764bf 100644--- a/tests/hermes_state/test_hermes_state_ids.py+++ b/tests/hermes_state/test_hermes_state_ids.py@@ -5,13 +5,12 @@ as a session id (the shape is the recovery sentinel for schema-less rows).from __future__ import annotations-import importlibimport refrom datetime import datetimeimport pytest-from hermes_state_ids import SESSION_ID_PATTERN, new_session_id+from hermes_state_ids import new_session_id@pytest.mark.parametrize("hex_len,expected_re", [(6, r"^\d{8}_\d{6}_[0-9a-f]{6}$"), (8, r"^\d{8}_\d{6}_[0-9a-f]{8}$"),(12, r"^\d{8}_\d{6}_[0-9a-f]{12}$")])@@ -20,4 +19,3 @@ def test_minted_ids_are_what_salvage_classifies_as_session_ids(hex_len, expectedsid = new_session_id(datetime(2026, 1, 2, 3, 4, 5), hex_len=hex_len)assert re.fullmatch(expected_re, sid) and sid.startswith("20260102_030405_")assert _is_session_id(sid)- assert SESSION_ID_PATTERN is importlib.import_module("hermes_cli.session_lost_and_found").SESSION_ID_PATTERN