Skip to content

docs(skills): route plugin authors to the harness - #31

Merged
offendingcommit merged 3 commits into
feat/harden-hermes-contract-gatesfrom
feat/route-authors-to-the-harness
Sep 21, 2026
Merged

offendingcommit merged 3 commits into
feat/harden-hermes-contract-gatesfrom
feat/route-authors-to-the-harness

Conversation

@offendingcommit

Copy link
Copy Markdown
Owner

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.md says "run contract tests against the real pinned Hermes Agent checkout" — naming no mechanism, no pin, and no import path. references/plugin-kit.md states 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

  • The skill is newer than the reader's kit. It's 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.
  • Consumers don't have just. They predominantly drive tests with make, so a lane documented as just test-contract reads as instructions in exactly the repositories that need it and executes in none of them.

What changes

  • Validation names the harness by import path, the pin by constant, and the minimum revision that provides both.
  • The lane is documented Python-invocable; just recipes are marked as work in this repository.
  • Provisioning documented, including the sandboxed case where a fetch can't happen and a refusal is the legible outcome.
  • Surface Map gains a harness row, so the reachability guard from feat(testing): plugin contract testing harness (Change A) #29 covers it.
  • tests/test_skills.py validates relative links in references/*.md — today only SKILL.md bodies 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.

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.
@offendingcommit
offendingcommit marked this pull request as ready for review September 21, 2026 21:07
@offendingcommit
offendingcommit merged commit e5a37da 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