Repository navigation
fix(plugins): stop claiming Hermes cannot serve companion files - #33
Merged
offendingcommit merged 1 commit intoSep 21, 2026
Conversation
The kit warned that a skill's references_dir "will not be surfaced to the agent until the host adds support". Hermes has served those files all along -- through its skills tool rather than register_skill -- returning references/, templates/, assets/ and scripts/ as linked_files alongside the skill body. Verified present at both the pinned f80f453 and upstream main; an upstream refactor moved the module, not the capability. A signature probe cannot establish that a capability is missing, only that one function does not take one argument. The kit asserted the stronger claim and a fleet survey traced the cost: the warning fired on every pod boot, a plugin built plugin_reference_tool to work around it, and those tools were called zero times in eight days across three profiles while the real route sat available and unmentioned. The capability check returns True or unknown -- never False. The kit knows a few private module paths and those move; a name it cannot find says nothing about the host. That is the lesson encoded in the return type rather than left to a comment. It is no longer a warning either way, because nothing is wrong. Two smaller defects with the same shape, both reported with fleet evidence. plugin_reference_tool's default description named no files, so an agent had to spend a speculative call to learn whether anything was worth reading; references_dir is known at build time, so the names are now in the description with a cap and overflow count. And an example on an *optional* argument was collected and then dropped, because _augment_description iterated required keys only -- one fleet plugin shipped a usable example no agent ever saw while its handler refused calls that omitted the field. Neither the signature probe nor a recorded plugin context would have caught the first one: both reason about shape. Only reading the host's other tool did. Worth remembering when the harness tempts the same inference. Reported-by: hermes-plugin-memory-sync fleet survey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fourth in the stack, based on #31 → #30 → #29.
Fixes three defects reported from a live-fleet survey by the
hermes-plugin-memory-syncmaintainer — 11state.dbstores across 5 pods, 8 days, 1,681 plugin tool calls. No upstream Hermes change is needed; the capability already exists.The main one: a false negative that caused a workaround
The kit warns that a skill's
references_dir"will not be surfaced to the agent until the host adds support", based onregister_skill's signature.Hermes serves those files through its skills tool, not
register_skill—_plugin_skill_linked_filesreturnsreferences/,templates/,assets/,scripts/aslinked_filesin the same response as the skill body. I verified it present at both the pinnedf80f453(tools/skills_tool.py:1031) and upstream main (tools/skills_tool_plugin.py). An upstream refactor moved the module; the capability never appeared or disappeared.The cost, measured: the warning fired on every pod boot → memory-sync built
plugin_reference_toolto work around it → those tools were registered on three profiles and called zero times in 8 days, while the real route sat available and unmentioned. One causal chain, not two bugs.The fix. The capability check returns
TrueorNone— neverFalse. The kit knows a handful of private module paths and those move; a name it cannot find says nothing about the host. That's the lesson encoded in the return type rather than left to a comment. It's no longer a warning either way, because nothing is wrong.Two smaller ones, same shape — guidance never reaching the agent
plugin_reference_tool's default description named no files, so an agent had to spend a speculative no-argument call to learn whether anything was worth reading — a cost it won't pay for a tool promising nothing.references_diris known at build time, so the names are now in the description, capped with an overflow count._augment_descriptionreturned early onif not required:then iterated required keys only. One fleet plugin shipped a usable example no agent ever saw, while its handler refused calls omitting the field. Optional examples now render under their own heading.What an agent sees now
Worth noting against the rest of this stack
Neither the signature probe nor the recording plugin context from #29 would have caught this — both reason about shape. Only reading the host's other tool did. That's a real limit on the harness, and it's recorded in the design rather than left implicit.
Scope
Registration behaviour is unchanged: the kwarg is still dropped when the host doesn't take it, and the skill still registers. Two existing assertions were updated — the behaviour they guard is the same, only the claim in the log changed. Suite green with and without a Hermes checkout importable.
skip_specs: true, with the reason in.openspec.yaml: this changes observable behaviour, but there is no capability spec for the registration-claims surface to modify, and inventing one to satisfy the validator is what the shipped template warns against.Reported-by:
hermes-plugin-memory-syncfleet survey