Files
hermes-agent/tests/tools
Teknium f5c0b99ebf test: match plugin opens by path component, not a POSIX substring
The safe-worker audit hooks recorded a plugin read only when the opened path
contained "/plugins/". On Windows the audited path uses backslashes, so the
config and ordinary positive controls saw zero plugin reads and failed (2/3
parametrizations), while the safe-mode negative control passed vacuously.
Match on Path(...).parts instead, the same predicate on every platform; the
exec hook in the sibling tool-closure test gets the same fix.

Red/green: the old predicate is False for
C:\...\config\plugins\sentinel\__init__.py, the new one True; Linux suite
20/20 unchanged.

Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5458083694
2026-10-08 19:09:49 -07:00
..