NousResearch/hermes-agent

Test session leaking into production state.db fix

Cluster 50681 · agent. Data as of

Nothing open on GitHub. Fix merged in #74517 on 30 Jul 2026. Check it covers your case.

The short answer

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

These items all address the same bug: DEFAULT_DB_PATH is evaluated at import time as a module-level constant, causing pytest test sessions to write to the production state.db instead of an isolated test database. Fixes involve lazy evaluation and hermetic test fixtures.

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.

  • #74517 test: land the test-stability backlog — 12 PRs salvaged, Windows hermeticity, fail-closed guards, event-based waits

    merged to main

    files: .github/workflows/tests.yml, contributors/emails/[redacted:email], contributors/emails/[redacted:email], contributors/emails/[redacted:email], contributors/emails/[redacted:email], gateway/restart.py, gateway/slash_commands.py, hermes_cli/web_server.py, hermes_state.py, plugins/memory/honcho/session.py, scripts/run_tests.sh, tests/agent/test_anthropic_keychain.py, tests/agent/test_copilot_acp_client.py, tests/agent/test_vision_routing_31179.py, tests/conftest.py, tests/cron/test_sessiondb_init_hang.py, tests/gateway/test_approve_deny_commands.py, tests/gateway/test_complete_path_at_filter.py, tests/gateway/test_restart_drain.py, tests/gateway/test_restart_service_detection.py (+13 more)

2 PRs closed without merging

From the close comments: done elsewhere 1 · duplicate 1

  • #50695 fix(state): use lazy evaluation for default DB path to prevent test-to-production DB leakage · duplicate
  • #50699 fix(tests): pin DEFAULT_DB_PATH in hermetic fixture to prevent production state.db leak (#50681) · done elsewhere → #74517, #11875, #50681
Closed issues · 1
  • Closed#50681Bug: pytest 测试会话泄漏到生产 state.db(DEFAULT_DB_PATH 模块级常量在 import 时冻结)
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.50: 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

Subsystem
agent
Merged PRs
#74517
Closed issues
1
Attempts
2 PRs closed without merging
Fix link checked
30 Jul 2026

For your agent

The same facts, typed.