session_search(query=..., session_id=...) silently dropped the query and
read the whole session (head/tail), yet the context compressor's recovery
footer tells the model to call exactly that shape to recover compacted
detail.
query + session_id now searches inside that session's compression
lineage: search_messages() takes a session_ids scope applied in SQL on
every route (FTS5, CJK, trigram, LIKE fallback, rebuild gap), so hits
elsewhere cannot fill the limit. Results come back one per matching
message with match_message_id for the scroll shape. Rows still in the
caller's live context are skipped by the same rule the scroll guard
uses; compaction-archived rows and compression-ended ancestors stay
searchable. The schema text documents the new shape.
(Ported onto the persistence interface: be3d6affc8 removed hermes_state_search.py, so the session_ids scope now goes through SessionSearch.search_messages, the SQLite search store and the in-memory reference.)