{"repo":"NousResearch/hermes-agent","public_id":"98573","display_label":"state.db read connection pool leak and limits","summary":"These items address per-thread read connections to state.db that are never closed in long-lived gateway processes, and introduce bounding and reduction of the read connection pool to control file-descriptor usage.","subsystem":"agent","counts":{"members":3,"open_issues":0,"open_issues_distinct":0,"open_prs":0,"closed_issues":1,"merged_prs":1,"attempt_prs":1},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":98691,"merged_at":"2026-08-31T18:23:49+00:00"},"resolution":{"state":"resolved","by":"pr-98691"},"freshness":{"state":"verified","last_verified_at":"2026-08-31T18:23:49+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.6666666666666666},"fix_edges":[{"issue_number":98573,"pr_number":98691,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-08-31T18:23:49+00:00"}],"members":[{"kind":"issue","number":98573,"title":"long-lived gateway holds ~20 state.db handles per process; per-thread read connections are never released","url":null,"state":"closed"},{"kind":"pr","number":98585,"title":"fix(state): reduce _READ_POOL_MAX 8→4 to halve peak state.db file-descriptor budget","url":null,"state":"closed","close_reason":{"refs":[{"kind":"pr","value":"#98573","number":98573}],"category":"uncategorized","implication":"needs_llm"},"merged":false},{"kind":"pr","number":98691,"title":"fix(state): bound state.db read connections per file, not per SessionDB","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["gateway/run.py","hermes_state.py","tests/gateway/test_session_db_handle_sharing.py","tests/test_session_db_read_conn_pool.py"]}],"trust":{"default_tier":"verified","includes_suggested":false}}