Skip to content

docs(skills): Hermes does serve companion files, by convention not by argument - #37

Merged
offendingcommit merged 1 commit into
mainfrom
docs/references-dir-is-served
Sep 21, 2026
Merged

offendingcommit merged 1 commit into
mainfrom
docs/references-dir-is-served

Conversation

@offendingcommit

Copy link
Copy Markdown
Owner

The wrong claim

The kit told plugin authors that plugin-skill companion files were "forward-compatible groundwork, not yet an effective capability" and that "no released Hermes Agent host reads or serves" them. Both are wrong, and have been for as long as the pinned revision.

What's actually true

Hermes serves them today. tools/skills_tool.py::_plugin_skill_linked_files scans the SKILL.md directory for four fixed categories — references, templates, assets, scripts — and returns everything under them as linked_files beside the skill body, at any depth and any file type. It derives the location from SKILL.md itself, which is why register_skill has no references_dir parameter: it doesn't need one.

So the accurate statement is narrower than either the old claim or its opposite:

status
host serves companion files yes, today
references_dir as a host argument inert — no host accepts it, none needs to
what makes a directory visible placement beside SKILL.md + one of the four names
kit accepting any directory name a trap — anything outside those four is never surfaced

references_dir is still worth declaring: it drives kit-side validation and plugin_reference_tool. It just isn't what makes the files visible.

Why it went stale

7c65594 corrected the runtime log this same misreading produced, but changed no prose. The README, both docstrings (plugin_skill, plugin_reference_tool), and the authoring skill reference all kept teaching the retracted claim. Fixing that is the whole of this change — no behavior change.

plugin_reference_tool is also reframed: it complements linked_files by giving the model an explicit read tool, rather than substituting for absent host support.

Pinned to the host, not to my reading

A claim about the host belongs in the contract lane — silent staleness is precisely what happened here. The new contract test builds a real skill tree, calls the host's own routine, and asserts the category set, the exclusion of a non-category directory, and that nested non-markdown files come back.

  • Pinned lane: 17 tests OK against f80f453
  • Full suite: 266 OK
  • Mutation-tested: widening the expected category set fails the guard

… argument

The kit told plugin authors that plugin-skill companion files were
"forward-compatible groundwork, not yet an effective capability" and
that "no released Hermes Agent host reads or serves" them. Both are
wrong, and have been for as long as the pinned revision.

Hermes serves them today. _plugin_skill_linked_files scans the
SKILL.md directory for four fixed categories -- references, templates,
assets, scripts -- and returns everything under them as linked_files
beside the skill body, at any depth and any file type. It derives the
location from SKILL.md itself, which is why register_skill has no
references_dir parameter: it does not need one.

So the accurate statement is narrower than either the old claim or its
opposite. The capability works; the argument is inert. Placement and
naming are what make a directory visible, not the declaration -- and
the kit accepting any directory name is a trap, because a name outside
those four is never surfaced no matter what is declared.

7c65594 already corrected the runtime log this same misreading
produced, but changed no prose, so the README, the plugin_skill and
plugin_reference_tool docstrings, and the authoring skill reference all
kept teaching the retracted claim. That is the whole of this change.
plugin_reference_tool is reframed as complementing linked_files --
giving the model an explicit read tool rather than substituting for
absent host support.

Pinned to the host by a contract test rather than to my reading of it:
it builds a real skill tree, calls the host's own routine, and asserts
the category set, the exclusion of a non-category directory, and that
nested non-markdown files come back. A claim about the host belongs in
the contract lane, since silent staleness is exactly what happened
here. Mutation-tested: widening the expected category set fails it.

Pinned lane 17 tests OK against f80f453; full suite 266 OK.
@offendingcommit
offendingcommit marked this pull request as ready for review September 21, 2026 21:57
@offendingcommit
offendingcommit merged commit 322ae79 into main Sep 21, 2026
6 checks passed
offendingcommit added a commit that referenced this pull request Sep 21, 2026
The contract test added in #37 imported _plugin_skill_linked_files
from tools.skills_tool, which is where the pinned revision keeps it.
Upstream has since moved it to tools.skills_tool_plugin, so the test
raised ImportError on the upstream lane and the drift classifier
correctly reported one new drift -- on a green merge.

The hardcoded path was the defect. The kit already encodes that this
routine has two homes: _HOST_COMPANION_FILE_PROBES lists both,
skills_tool_plugin first. The test now resolves through that same
constant rather than repeating one spelling of it, so a future move
that the kit's probe already tolerates cannot fail the suite.

Worth being precise about what did and did not drift. The category
set is what the docs promise, and it is identical on both revisions:
("references", "templates", "assets", "scripts"), inline on the pin
and behind a _SUPPORT_DIRS constant upstream. Only the module moved.
So #37's documentation is accurate on upstream main too, and adding a
drift-baseline entry would have recorded a host break that did not
happen.

Verified on both lanes: pinned 17 tests OK against f80f453; upstream
17 ran with one failure, the #99220 media contract already in the
known-drift baseline. Full suite 266 OK.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant