# NousResearch/hermes-agent · truststore injection timing and SSL context fixes

## Open now

- 1 issue, 4 PRs open on GitHub.
- #126808: \[Bug\]: RecursionError: maximum recursion depth exceeded\` calling AWS Bedrock, caused by truststore/botocore SSLContext import-order race (Python   3.14)
- PR #126820: fix(agent): install the platform trust store when run_agent is imported
- PR #126849: fix(pm): route truststore injection through the shared install guard
- PR #126881: fix(agent): install platform trust at run_agent import, before any SDK can capture ssl.SSLContext
- PR #127638: fix(ssl): keep the pre-injection stdlib SSLContext usable after truststore injection (#126808)

These issues and fixes address race conditions and ordering problems with platform truststore injection, ensuring the trust store is installed before SDKs capture ssl.SSLContext and that the pre-injection stdlib SSLContext remains usable afterward.

## TL;DR

- 5 member(s): 1 open issue(s), 0 closed issue(s), 4 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member 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.

## Open related issues

- #126808: \[Bug\]: RecursionError: maximum recursion depth exceeded\` calling AWS Bedrock, caused by truststore/botocore SSLContext import-order race (Python   3.14)

## Prior & competing PRs

- **#126820: fix(agent): install the platform trust store when run_agent is imported**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `6d42313deee6`
  - files: `run_agent.py`, `tests/test_run_agent_truststore_install.py`
- **#126849: fix(pm): route truststore injection through the shared install guard**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `dea3d33f9b`, `24f85bce26`, `6d42313dee`
  - files: `pm/launch.py`, `pm/worker.py`, `scripts/bundles/desktop_toolchain.py`, `tests/agent/test_ssl_verify.py`
- **#126881: fix(agent): install platform trust at run_agent import, before any SDK can capture ssl.SSLContext**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `run_agent.py`, `tests/agent/test_ssl_verify.py`
- **#127638: fix(ssl): keep the pre-injection stdlib SSLContext usable after truststore injection (#126808)**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `dc4cc377cf`
  - files: `agent/ssl_verify.py`, `tests/agent/test_ssl_verify.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
