fix(plugins): catalog plugins stop tripping scanner false positives (public PostHog key, own /proc reads, documented imports); validator now flags committed .pyc, private core calls and raw Desktop bridge #146352
<!-- hermes-ci-review-bot -->
૮ >ﻌ< ა ci review
<sub>ran on 0316d51 — fix(plugins): quoted /proc redirects stay writes; own-module</sub>
ℹ️ Info
CI caches · View report · View job
27 / 27 cache hits (0 misses)
4682.14 MiB restored
0 B not restored.
<details>
<summary>per-job cache results</summary>
<h3>hits</h3>
<table><thead><tr><th>Job</th><th>Step</th><th>Logs</th><th>Restored</th><th>Δ vs main</th></tr></thead><tbody>
<tr><td>OS-specific tests / Windows-only tests (arm64, 2/2)</td><td>Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development files</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827875#step:3:1">view step</a></td><td>26.23 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 2/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827875#step:4:1">view step</a></td><td>165.04 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 2/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827875#step:4:1">view step</a></td><td>841.49 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 1/2)</td><td>Set up native ARM64 build dependencies / Cache ARM64 OpenSSL development files</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827939#step:3:1">view step</a></td><td>26.23 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 1/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827939#step:4:1">view step</a></td><td>165.04 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests (arm64, 1/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827939#step:4:1">view step</a></td><td>841.49 MiB</td><td>+0 B</td></tr>
<tr><td>Icon assets freshness / Regenerate icons + diff against committed</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827459#step:4:1">view step</a></td><td>131.51 MiB</td><td>+0 B</td></tr>
<tr><td>Icon assets freshness / Regenerate icons + diff against committed</td><td>Run ./.github/actions/setup-pm / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827459#step:4:1">view step</a></td><td>67.42 MiB</td><td>+0 B</td></tr>
<tr><td>Icon assets freshness / Regenerate icons + diff against committed</td><td>Run ./.github/actions/setup-pm / Restore npm dependency downloads</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827459#step:4:1">view step</a></td><td>351.86 MiB</td><td>+0 B</td></tr>
<tr><td>Docs Site / docs-site-checks</td><td>Set up the locked site toolchain / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827395#step:4:1">view step</a></td><td>131.51 MiB</td><td>+0 B</td></tr>
<tr><td>Docs Site / docs-site-checks</td><td>Set up the locked site toolchain / Restore npm dependency downloads</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827395#step:4:1">view step</a></td><td>370.98 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (2/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827639#step:5:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (2/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827639#step:5:1">view step</a></td><td>67.42 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (2/2)</td><td>Run tests</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827639#step:8:1">view step</a></td><td>0.08 MiB</td><td>unknown</td></tr>
<tr><td>Python lints / ruff + ty diff</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827699#step:4:1">view step</a></td><td>80.78 MiB</td><td>unknown</td></tr>
<tr><td>Python lints / code health ratchet (blocking)</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827717#step:4:1">view step</a></td><td>80.78 MiB</td><td>unknown</td></tr>
<tr><td>Python lints / Windows footguns (blocking)</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827725#step:4:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Python lints / ruff enforcement (blocking)</td><td>Run ./.github/actions/setup-pm / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827785#step:4:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (1/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827723#step:5:1">view step</a></td><td>80.78 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (1/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827723#step:5:1">view step</a></td><td>67.42 MiB</td><td>+0 B</td></tr>
<tr><td>Python tests / Run tests (1/2)</td><td>Restore per-file duration cache</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827723#step:7:1">view step</a></td><td>0.08 MiB</td><td>unknown</td></tr>
<tr><td>OS-specific tests / macOS-only tests (1/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827756#step:5:1">view step</a></td><td>42.23 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / macOS-only tests (1/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827756#step:5:1">view step</a></td><td>153.05 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / macOS-only tests (2/2)</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827790#step:5:1">view step</a></td><td>42.23 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / macOS-only tests (2/2)</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827790#step:5:1">view step</a></td><td>153.05 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests</td><td>Set up locked Python and test dependencies / Restore verified PM tools without saving</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827867#step:5:1">view step</a></td><td>171.66 MiB</td><td>+0 B</td></tr>
<tr><td>OS-specific tests / Windows-only tests</td><td>Set up locked Python and test dependencies / Restore uv dependency downloads and builds</td><td><a href="https://github.com/NousResearch/hermes-agent/actions/runs/40825895366/job/123288827867#step:5:1">view step</a></td><td>381.39 MiB</td><td>+0 B</td></tr>
</tbody></table>
<h3>misses</h3>
none
<p>Compressed archive bytes. Not-restored bytes use the main-size reference; missing sizes remain unknown.</p>
</details>
---
debug info
<details>
<summary>CI timings</summary>
CI timings · View report · View job
Wall time 7m56s vs 7m50s (+1.3%). 11 job(s) slower, 7 faster, 1 unchanged.
</details>
<!-- greptile_summary -->
<h2><a href="https://app.greptile.com/api/retrigger?id=90349773"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/nous-research/github/NousResearch/hermes-agent/-/pull/146352?utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 3/5</h2>
[Medium impact] The changes affect plugin install decisions and catalog review warnings\.
Fix the process-write demotion and satisfy the test-file size requirement before merging.
<h2>Findings</h2>
1. <img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"> <img alt="Security" src="https://greptile-static-assets.s3.amazonaws.com/badges/Security.svg?v=2" align="top"> Process writes skip confirmation <a href="https://github.com/NousResearch/hermes-agent/pull/146352#discussion_r4408998304">▶</a>
2. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> Test file exceeds size limit <a href="https://github.com/NousResearch/hermes-agent/pull/146352#discussion_r4408998300">▶</a>
3. <img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"> Own imports still warn <a href="https://github.com/NousResearch/hermes-agent/pull/146352#discussion_r4408998312">▶</a>
<details><summary>Fix with agent prompt</summary>
`### Issue 1
tools/plugin_guard_context.py:791-792
The new read-only exemption accepts writes that `_PROC_WRITE` misses. For example, `printf worker > "/proc/self/comm"` passes because `comm` is allowed but the redirect check requires an unquoted path. Likewise, `open("/proc/self/comm", "r+")` passes because the mode check misses modes starting with `r`.
These findings now fall from `high` to `low`, so an otherwise clean plugin installs without confirmation. Require a recognized read shape before lowering the finding, and add both cases as attack twins.
**How this was verified:** The allowed-leaf check accepts `comm`, the write matcher misses quoted redirects and `r+`, and low-only findings produce a `safe` verdict that installs without confirmation.
### Issue 2
tests/tools/test_plugin_guard.py:973-975
These additions grow `tests/tools/test_plugin_guard.py` from 967 to 1,030 lines. The repository requires decomposition before crossing 1,000 lines unless there is a strong structural reason. Move `TestProcKeyAndBytecodeShapes` into a focused sibling test file and share only the fixture helpers it needs. This repository requirement must be satisfied before merging.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
### Issue 3
hermes_cli/plugin_validate_private_imports.py:132-133
The own-module exemption misses the normal `from` spelling. With the `__init__.py` and `_db.py` layout in the new test, `from plugins.memory.openltm import _db` still warns. `_imported` passes `plugins.memory.openltm` as `module`, and `_is_own_module_path` never checks the imported `_db` name. The equivalent `import plugins.memory.openltm._db as _db` is exempt.
This leaves authors with a false private-core warning. Resolve the full imported target against the plugin's files while preserving warnings for real core paths, and test both spellings.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
<details><summary><h3>Summary</h3></summary>
The PR adjusts plugin scan results and adds admission warnings.
</details>
<!-- greptile_confidence_score:3 -->
<sub>Reviews (1) · Last reviewed commit: "fix(plugins): clear catalog sweep 1028 s..." · Reviewed by Greptile</sub>
<a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Test file exceeds size limit
These additions grow tests/tools/test_plugin_guard.py from 967 to 1,030 lines. The repository requires decomposition before crossing 1,000 lines unless there is a strong structural reason. Move TestProcKeyAndBytecodeShapes into a focused sibling test file and share only the fixture helpers it needs. This repository requirement must be satisfied before merging.
Context Used: Perform a deep code quality audit of the current branch's changes. Rethink how to structure / implement the changes to meaningfully improve code quality without impacting behavior. Work to improve abstractions, modularity, reduce Spaghetti code, impr... (source)
<details><summary>Prompt To Fix With AI</summary>
``This is a comment left during a code review.
Path: tests/tools/test_plugin_guard.py
Line: 973-975
Comment:
**Test file exceeds size limit**
These additions grow `tests/tools/test_plugin_guard.py` from 967 to 1,030 lines. The repository requires decomposition before crossing 1,000 lines unless there is a strong structural reason. Move `TestProcKeyAndBytecodeShapes` into a focused sibling test file and share only the fixture helpers it needs. This repository requirement must be satisfied before merging.
**Context Used:** Perform a deep code quality audit of the current branch's changes. Rethink how to structure / implement the changes to meaningfully improve code quality without impacting behavior. Work to improve abstractions, modularity, reduce Spaghetti code, impr... ([source](https://app.greptile.com/review/custom-context?memory=instruction-0))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
<a href="#"><img alt="P1" src="https://greptile-static-assets.s3.amazonaws.com/badges/p1.svg?v=9" align="top"></a> <a href="#"><img alt="security" src="https://greptile-static-assets.s3.amazonaws.com/badges/Security.svg?v=2" align="top"></a> Process writes skip confirmation
The new read-only exemption accepts writes that _PROC_WRITE misses. For example, printf worker > "/proc/self/comm" passes because comm is allowed but the redirect check requires an unquoted path. Likewise, open("/proc/self/comm", "r+") passes because the mode check misses modes starting with r.
These findings now fall from high to low, so an otherwise clean plugin installs without confirmation. Require a recognized read shape before lowering the finding, and add both cases as attack twins.
How this was verified: The allowed-leaf check accepts comm, the write matcher misses quoted redirects and r+, and low-only findings produce a safe verdict that installs without confirmation.
<details><summary>Prompt To Fix With AI</summary>
``This is a comment left during a code review.
Path: tools/plugin_guard_context.py
Line: 791-792
Comment:
**Process writes skip confirmation**
The new read-only exemption accepts writes that `_PROC_WRITE` misses. For example, `printf worker > "/proc/self/comm"` passes because `comm` is allowed but the redirect check requires an unquoted path. Likewise, `open("/proc/self/comm", "r+")` passes because the mode check misses modes starting with `r`.
These findings now fall from `high` to `low`, so an otherwise clean plugin installs without confirmation. Require a recognized read shape before lowering the finding, and add both cases as attack twins.
**How this was verified:** The allowed-leaf check accepts `comm`, the write matcher misses quoted redirects and `r+`, and low-only findings produce a `safe` verdict that installs without confirmation.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
<a href="#"><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> Own imports still warn
The own-module exemption misses the normal from spelling. With the __init__.py and _db.py layout in the new test, from plugins.memory.openltm import _db still warns. _imported passes plugins.memory.openltm as module, and _is_own_module_path never checks the imported _db name. The equivalent import plugins.memory.openltm._db as _db is exempt.
This leaves authors with a false private-core warning. Resolve the full imported target against the plugin's files while preserving warnings for real core paths, and test both spellings.
<details><summary>Prompt To Fix With AI</summary>
``This is a comment left during a code review.
Path: hermes_cli/plugin_validate_private_imports.py
Line: 132-133
Comment:
**Own imports still warn**
The own-module exemption misses the normal `from` spelling. With the `__init__.py` and `_db.py` layout in the new test, `from plugins.memory.openltm import _db` still warns. `_imported` passes `plugins.memory.openltm` as `module`, and `_is_own_module_path` never checks the imported `_db` name. The equivalent `import plugins.memory.openltm._db as _db` is exempt.
This leaves authors with a false private-core warning. Resolve the full imported target against the plugin's files while preserving warnings for real core paths, and test both spellings.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
</details>
<!-- Blacksmith CI Status -->
Found 1 test failure on Blacksmith runners:
Failure
| Test | View Logs |
| --- | --- |
| <code>test_authority_route_runs_a_wake_receipted_before_drain_once_after_restart[idle]</code> | View Logs |
<a href="https://app.blacksmith.sh/NousResearch/codesmith/hermes-agent/pr/146352?prompt=Repository%3A+NousResearch%2Fhermes-agent%0ABranch%3A+fix%2Fcatalog-scanner-fps-1028%0APR%3A+%23146352%0A%0AFix+these+failing+tests%3A%0A%0A1.+test_authority_route_runs_a_wake_receipted_before_drain_once_after_restart%5Bidle%5D%0A&entry=pr_comment&ref=gh_comment&autoLogin=true&autoSend=true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light.svg"><img alt="Fix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png" width="149" height="28"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>
Not changing this one: the repo ratchet caps files at 2,000 lines (scripts/code_health/config.py), and this test file sits at ~1,030, well under it. Splitting the class out would only move code around.
Fixed in 0316d515: a quoted redirect (printf x > "/proc/self/comm") now counts as a write, and r+ / rb+ / os.open(..., O_WRONLY|O_RDWR) were already covered in 2e093bfd. Added both as attack twins; each one fails on the earlier head and passes now.
Fixed in 0316d515: the own-module check now also matches the full module.name target, so from plugins.memory.openltm import _db is exempt the same way the import ... as _db spelling is. The test covers both spellings, and a real core import beside them still warns. The test fails on the earlier head.
You’re right. scripts/code_health/config.py sets the file limit at 2,000 lines, and the root guidance does not impose a 1,000-line threshold. At ~1,030 lines, this file is below the configured cap; my comment overstated the repository requirement. No split is warranted on that basis, so I’d withdraw the comment.
Should I remember this review rule: verify the repo’s configured file-size ratchet before requesting a test-file split?
teknium1
A catalog plugin shipping a public PostHog key no longer gets hard-blocked. Reading its own cgroup/mountinfo no longer needs confirmation. The validator stops warning on the documented
get_session_envroute and on a plugin's fallback import of its own path. Three gaps that let a real violation through admission green are closed: committed.pyc, private-method calls on core objects, and raw Desktop bridge / app markup reach.Every row was found in plugin catalog sweep 1028 and reproduced on
origin/mainagainst a frozen copy of the real pinned tree, then re-run on this branch.Before / after (real pinned trees)
| Class | Plugin (pin) |
main| this branch ||---|---|---|---|
| 1.
hardcoded_secreton a public PostHog project key (phc_) | telesec74d2d97a(telemetry.py:27) | dangerous (critical, install blocked even with--force) | caution (high, reviewable) || 2.
proc_accesson its own/proc/self/cgroup,mountinfo| hermes-lcm-x1a137444(cpu_capacity.py:25,29) | caution (2× high) | safe (2× low, still listed) || 3. private-import warning on the documented
gateway.session_context.get_session_env| onebot-platform086dd7e5(tools.py:28), hermes-lcm-x (__init__.py:156) | warned | not warned || 3. private-import warning on the plugin's fallback import of its own path | openltm
8ee2a8e4/91f77925(plugins.memory.openltm._db) | warned | not warned || 4a. private-method calls on core handles (gap) | opencode-sync
6fcc8284(db._execute_write,db._read_ctx,runner._evict_cached_agent, …) | silent | warns, 10 sites || 4b. raw
window.hermesDesktop./ app markup selectors (gap) | squad-hub2695b147, novel-readerd6236943, search-sources27e9502a| silent |desktop surface reviewwarning || 4c. committed
.pyc(rule 17, gap) | hermes-emotion3cb05766(tests/__pycache__/.pyc) | safe | caution (bytecode_filehigh) |4a note: function-scope
from hermes_cli… import _privatewas already caught onmain. The sweep saw onlyclient.py:28,69because the warning shows the first 10 sites. What no import check could see was the private-method calls on theSessionDB/GatewayRunnerobjects the plugin is handed.What changed
Install scanner (
tools/plugin_guard.py;PLUGIN_SCANNER_VERSIONbumped once):is_public_client_keyreplaces the Google-onlyGOCSPX-predicate and also covers PostHogphc_. It applies only when everyhardcoded_secretliteral on the line has a public prefix. Aphx_personal key, or a real token next to the public key, stays critical.is_own_proc_readlowersproc_accessto low (still reported) when every/proc/self|<pid>/<leaf>on the logical line is in a scheduling/placement set:cgroup,mountinfo,mounts,stat,statm,status,limits,io,comm,cpuset,sched,schedstat,oom_score, and nothing writes it.environ,cmdline,mem,maps,fd,root/cwd,ns, a bare/proc/self, any unlisted leaf and any write all keep high. This salvages #144304 by @Sahilvishnaliya (cherry-picked, authorship kept). The trim changed one thing: the finding is lowered instead of dropped. #144304 can close when this lands.bytecode_file(high, the same level as a bundled binary) fires on.pyc/.pyothatgit ls-filestracks, and on bytecode outside__pycache__(CPython 3 never writes it there). The untracked__pycache__thathermes plugins validatewrites when it imports the plugin is not flagged. CI'sscan_plugin_payloads.pystep already refused these. Now the install scanner and the validator see them too.Validator (
hermes plugins validate; warnings only, never failures):_PUBLIC+=gateway.session_context:get_session_env, whichwebsite/docs/developer-guide/plugins/index.mdtells authors to use.private core attribute access: warns on private methods of the core handle classes (hermes_state,run_agent/agent/turn_,gateway/run,hermes_cli/plugins.py) that the plugin does not define itself.self/clsreceivers and test files are excluded.desktop surface review: warns onwindow.hermesDesktopand on[data-slot|tour|sidebar|testid|tree-*|pane-host|titlebar-cluster]selectors in CSS text,closest()or templates. Lines the existing refusal already covers are skipped, and so are comments. These are warnings, not refusals, because listed pins (hermes-talk, search-sources, novel-reader, hermes-plexus) still use the bridge where the SDK has no verb (microphone access, favicon lookup). A refusal would brick them on their next bump.plugin-catalog/README.mdand its mirror incatalog-submission.mdnow names the two new warnings.Validation
mainvs branch (219 pinned trees from sweep 1028; scanner verdict, validator warnings, desktop check):- 2 better: telesec dangerous→caution; hermes-lcm-x caution→safe.
- 1 moved to caution: hermes-emotion. That is the intended rule-17 detection (class 4c). The tracked
.pycis the same file the review already asked the author to remove.- 0 other verdict changes. The desktop refusal check moved on no pin.
- New warnings land only on the plugins named above, plus same-shape hits: hermes-whatsapp-voice (
GatewayRunner._load_fallback_model), and asgard/kemet/pantheon, prompt-enhancer, provider-status, minimalist-themes, canadian-primary-care, hermes-plexus, hermes-talk ([data-slot]/[data-tree-group]CSS,window.hermesDesktop).skills/,optional-skills/,plugins/, 308 entries): 0 findings changed.phc_alone dangerous→caution,/proc/self/cgroupandgrep /proc/1/cgroupcaution→safe/low, tracked or loose.pycsafe→caution. Unchanged on purpose:-
/proc/self/environ,/proc/1/environ,/proc/1/cmdline,mem,maps,fd,cwd,/proc/1/ns/mnt, a bare/proc/self, cgroup+environ on one line, and writes or redirects into/procall stay high.-
/proc/1/root/...stays critical.- A
phx_key,phc_next to a real token, andxphc_…all stay critical.- An untracked
__pycache__stays safe.scripts/run_tests.shovertest_plugin_guard.py,test_plugin_guard_block_reason.py,test_skills_guard.py,test_skills_guard_agent_config.py,test_threat_patterns.py,test_plugin_validate.py,test_plugin_validate_private_imports.py,test_plugin_validate_locales.py: 381 passed.tests/website/test_catalog_rules_mirror.pypassed.origin/mainand pass here; the 9 attack-twin cases pass on both. Per behaviour: one benign shape, one attack twin.python scripts/check(13 checks, incl. health): ok.Infographic
!scanner-fps-1028