NousResearch/hermes-agent

SQLite connection leaks causing file descriptor exhaustion

Cluster 69567. Data as of

Nothing open on GitHub. Fix merged in #70985. Check it covers your case.

The short answer

0open issues
0open PRs
5items grouped
Known?
Yes. 5 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #70985. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #70985. That is separate from the fix event.
Still open
Nothing open on GitHub.

A bug was identified where cron execution and related ledgers leak SQLite connections per run, risking file descriptor exhaustion. The members concern the identification of this leak and multiple fix attempts targeting deterministic connection closure across several ledger components.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #70985 fix: close leaked SQLite connections in delivery, delegation, verification, and cron execution ledgers

    merged to main

    files: agent/verification_evidence.py, contributors/emails/[redacted:email], cron/executions.py, gateway/delivery_ledger.py, gateway/readiness.py, tests/agent/test_verification_evidence_fd_leak.py, tests/cron/test_execution_ledger.py, tests/gateway/test_delivery_ledger_fd_leak.py, tests/tools/test_async_delegation_fd_leak.py, tools/async_delegation.py

3 PRs closed without merging

From the close comments: done elsewhere 2 · merged via another change 1

  • #69594 fix(cron): close sqlite connections deterministically in execution ledger · merged via another change → #70985, #69681, #69567
  • #69785 fix: close SQLite connections in delivery_ledger, async_delegation, and verification_evidence ledgers · done elsewhere → #69681, #70985
  • #70917 fix(cron): close SQLite connections in executions ledger to prevent FD exhaustion (#69567) · done elsewhere → #69594, #70985
Closed issues · 1
  • Closed#69567[Bug]: cron execution ledger leaks three SQLite connections per run, exhausting file descriptors
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.40: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Merged PRs
#70985
Closed issues
1
Attempts
3 PRs closed without merging
Fix link checked
24 Jul 2026

For your agent

The same facts, typed.