Skip to content

fix(plugins): stop claiming Hermes cannot serve companion files - #33

Merged
offendingcommit merged 1 commit into
feat/route-authors-to-the-harnessfrom
fix/references-dir-false-negative
Sep 21, 2026
Merged

offendingcommit merged 1 commit into
feat/route-authors-to-the-harnessfrom
fix/references-dir-false-negative

Conversation

@offendingcommit

Copy link
Copy Markdown
Owner

Fourth in the stack, based on #31 → #30 → #29.

Fixes three defects reported from a live-fleet survey by the hermes-plugin-memory-sync maintainer — 11 state.db stores 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 on register_skill's signature.

Hermes serves those files through its skills tool, not register_skill — _plugin_skill_linked_files returns references/, templates/, assets/, scripts/ as linked_files in the same response as the skill body. I verified it present at both the pinned f80f453 (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_tool to 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 True or None — never False. 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_dir is known at build time, so the names are now in the description, capped with an overflow count.
  • An example on an optional argument was silently discarded. _augment_description returned early on if 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

Read the 'prioritization' skill's companion reference files: decay-model.md,
scoring.md, worked-examples.md. Consult these before acting on that skill when
the details matter. Omit file_path to list every file; pass a listed path, or
its skill-relative references/<path> form, to read one.

Append a journal entry. Optional: `message` (e.g. 'docs(memory): record journal reflection').

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-sync fleet survey

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
@offendingcommit
offendingcommit merged commit 7c65594 into main Sep 21, 2026
6 checks passed
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