# NousResearch/hermes-agent · Concurrent plugin dict iteration race condition fix

## Open now

- 1 issue, 2 PRs open on GitHub.
- #132886: RuntimeError: dictionary changed size during iteration during plugin discovery
- PR #132888: fix(plugins): guard _plugins dict against concurrent readers (#132886)
- PR #133114: fix(plugins): snapshot _plugins under a lock to stop dict-size races during discovery

These items concern a RuntimeError caused by the _plugins dictionary being modified while being iterated during plugin discovery. The work involves guarding or snapshotting the dictionary under a lock to prevent concurrent modification issues.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 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.67`: 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

- #132886: RuntimeError: dictionary changed size during iteration during plugin discovery

## Prior & competing PRs

- **#132888: fix(plugins): guard _plugins dict against concurrent readers (#132886)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `af8839df10`, `27c02f6326`, `6cd2817a6d`, `f304cf4a7d`
  - files: `hermes_cli/plugin_host.py`, `hermes_cli/plugins.py`, `hermes_cli/plugins_ledger.py`, `hermes_cli/plugins_loader.py`, `tests/hermes_cli/test_plugin_load_race.py`
- **#133114: fix(plugins): snapshot _plugins under a lock to stop dict-size races during discovery**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#132886`, `#132888`, `#1`, `#1`, `#132888`
  - files: `hermes_cli/plugin_host.py`, `hermes_cli/plugins.py`, `hermes_cli/plugins_ledger.py`, `hermes_cli/plugins_loader.py`, `tests/hermes_cli/test_plugin_dict_race.py`

## Fix status

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