# NousResearch/hermes-agent · Reduce false positives for sample tokens in __main__ blocks

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #112159: fix(plugins): demote hardcoded_secret inside __main__ self-test blocks

These issues and PRs address hardcoded_secret rules triggering on sample/placeholder tokens inside __main__ self-test blocks of plugin runtime files. The fix demotes or relaxes these findings so they no longer hard-block plugin installation.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #113113. Verify it addresses your case.
- **Recommended:** read PR #113113 (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-113113`. 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.50`: 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

- #112139: plugin-guard-v3: hardcoded_secret false positive on sample tokens in __main__ self-test blocks of runtime .py files

## Prior & competing PRs

- **#113113: fix(plugins): sample tokens in __main__ self-test blocks no longer hard-block plugin install (#112139, salvage #112146)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tools/test_plugin_guard.py`, `tools/plugin_guard.py`, `website/docs/user-guide/features/plugins.md`
- **#112146: fix(plugins): demote main-guard sample tokens**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#112159: fix(plugins): demote hardcoded_secret inside __main__ self-test blocks**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#112146`, `#112139`
  - files: `tests/tools/test_plugin_guard.py`, `tools/plugin_guard.py`

## Fix status

- Merged to main in PR #113113 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-17`.
- Subsystem: `agent`
