# NousResearch/hermes-agent · Plugin middleware lazy discovery and guard failure policy

## Open now

- Nothing open on GitHub.

These items address execution middleware silently bypassing plugin discovery on certain surfaces, and define how hung or raising plugin guards should behave (fail-closed, block outranks approve) without wedging the system.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #118844. Verify it addresses your case.
- **Recommended:** read PR #118844 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-118844`. 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.

## Closed / duplicate issues

- #105827: fix(plugins): tool_execution/llm_execution middleware silently fail-open on query/cron surfaces — \`_run_execution_chain\` missing lazy discovery

## Prior & competing PRs

- **#118844: Plugin hook policy: hung or raising guards fail closed without wedging, block outranks approve, shell approve reaches the gate, async pre_gateway_dispatch awaited (#105223 #109624 #87420 #92553 #105827 #110241)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/shell_hooks.py`, `gateway/run_inbound.py`, `hermes_cli/lifecycle.py`, `hermes_cli/middleware.py`, `hermes_cli/plugins.py`, `hermes_cli/plugins_dispatch.py`, `tests/agent/test_shell_hooks.py`, `tests/gateway/test_bot_loop_guard.py`, `tests/gateway/test_pre_gateway_dispatch.py`, `tests/hermes_cli/test_plugins.py`, `website/docs/user-guide/features/hooks.md`
- **#105832: fix(plugins): route execution middleware through lazy discovery (#105827)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `75e9567ca7`, `#118844`

## Fix status

- Merged to main in PR #118844 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-22`.
