Repository navigation
docs(skills): route plugin authors to the harness - #31
Merged
offendingcommit merged 3 commits intoSep 21, 2026
Merged
offendingcommit merged 3 commits into
offendingcommit merged 3 commits into
Conversation
Proposal, design, and tasks for pointing plugin authors at the harness. No spec delta: repo-owned documentation and a link test, no capability-level requirement, so .openspec.yaml carries skip_specs. The design records the two couplings that make this non-obvious. The skill is read from a symlinked moving checkout while consumers pin the kit immutably, so an import path named without a minimum revision is an ImportError for whoever is furthest behind. And consumer repositories predominantly use make, so a lane documented as a just recipe reads as instructions in the repositories that most need it and executes in none.
The Validation section told authors to "run contract tests against the real pinned Hermes Agent checkout" while naming no mechanism, no pin, and no import path. It now gives a worked call against hermes_plugin_kit.testing, and that snippet was executed against the real pinned host rather than written and hoped for. Three things the routing has to be honest about. The skill is read from a symlinked moving checkout while consumers pin the kit to a commit, so every import path now carries the minimum revision that provides it -- otherwise following the instructions is an ImportError for whoever is furthest behind. Consumers do not have this repository's task runner. The lane is plain Python they wire into make, pytest, or whatever they already use, and the just recipes are now marked as work in this repository rather than presented as the lane. A sandboxed runner with no network and no git cannot check anything. The skill says so, and says that an unchecked report means "not verified" rather than "verified clean" -- the one misreading that would make the harness worse than nothing. Canonical sources are split into what an install can reach and what only exists in a checkout. Routing a consumer to tests/ was routing them to a directory neither the wheel nor a git+sha install contains. The Surface Map gains a harness row, which the reachability guard covers once widened: the harness is exported as a submodule, so names resolving on hermes_plugin_kit.testing are public too. Verified the widening did not blunt it -- an unexported name still fails. tests/test_skills.py now resolves relative links in references/*.md, which went unchecked while only SKILL.md bodies were validated, and rejects links escaping the repository since those resolve only on the machine that wrote them. Both mutation-tested.
…ors-to-the-harness
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.
Top of a 3-PR stack, based on #30 → #29. Review those first; the diff here is only the routing work.
Implements Change C of
docs/plans/2026-09-21-1406-feat-plugin-contract-testing-harness-plan.md.Why
The repo's own skill tells authors to do something they cannot do.
SKILL.mdsays "run contract tests against the real pinned Hermes Agent checkout" — naming no mechanism, no pin, and no import path.references/plugin-kit.mdstates the principle in the same breath ("a fake context alone can hide signature drift") while its Surface Map offers no way to act on it.The harness exists now, but nothing points at it — and the skill is the only channel through which an author, human or coding agent, learns it's there.
Two couplings that make this non-obvious
ImportErrorfor whoever is furthest behind.just. They predominantly drive tests withmake, so a lane documented asjust test-contractreads as instructions in exactly the repositories that need it and executes in none of them.What changes
justrecipes are marked as work in this repository.tests/test_skills.pyvalidates relative links inreferences/*.md— today onlySKILL.mdbodies are checked, so reference links rot silently.Out of scope
Version-coupling the skill to the pinned kit revision. That's the real fix for the symlink/pin mismatch; naming a minimum revision is the cheap mitigation, and the design says so.
Status
Draft — artifacts authored and validating; U8 in progress.