- _search_helpers: wrap the json.loads(search.content[0].text) parse in
try/except (IndexError, ValueError) so empty content / malformed JSON returns
False (keep polling) instead of escaping as a confusing traceback. Also debug-
log an id match with a non-note doc_type to surface schema drift instead of
silently timing out.
- test_astrolabe_session_jwt_search: drop _get_with_retry default to
max_attempts=2 (matches the "one retry" intent) and mark both search tests
@pytest.mark.timeout(300) so a cold model load + retry can't breach the 180s
default pytest timeout.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>