All plugins

skill-governance

Consolidated skill-governance plugin behind one composed hook surface: on_skill_lifecycle, on_session_start, pre_tool_call, pre_llm_call. The manifest engine enforces UPSTREAM_MANIFEST.md — arrivals need a manifest row, content changes in manifested skills re-flag until re-acknowledged against a content fingerprint via the preserved /skill-manifest-ack command. The advisor engine observes behavioral skill edits (never blocking) and injects one bounded reminder to run the contrastive-refinement probe cycle (bundled as skill-governance:contrastive-refinement), recording every delivered advisory to ~/.hermes/skill-probes/fire-ledger.jsonl. Both legacy state namespaces import by copy (destination-wins, sources never modified) and a conservative governance.records summary joins them (acknowledged never implies validated). A clearance Automation Blueprint (daily schedule, origin delivery) replaces both legacy schedulers and preserves both clearance procedures verbatim; the user adopts it from the blueprint gallery or /blueprint, and the plugin imports no private cron modules and writes no cron state. Stdlib only, no network calls, fail-soft everywhere (malformed state keeps hooks inert, never aborts the host turn). Disclosure — reads the profile's skills tree (SKILL.md files, fingerprinted read-only) and UPSTREAM_MANIFEST.md, and copies the legacy skill-manifest / contrastive-advisor plugin state read-only on first run; writes its own plugin state, <HERMES_HOME>/skill-probes/fire-ledger.jsonl when the opt-in advisor fires, and plugin-data/skill-manifest/acks.json on a manual /skill-manifest-ack; injects advisory reminders into turns; the optional daily clearance blueprint, once the user adopts it with /blueprint, runs an unattended agent that edits UPSTREAM_MANIFEST.md and the plugin's dismissed list, reads past session tool calls from state.db, and writes probe notes; never deletes, never blocks tool calls, no network.

moonlight-lupin132Toolsv0.3.0Updated 13 days ago

About

Consolidated skill-governance plugin behind one composed hook surface: on_skill_lifecycle, on_session_start, pre_tool_call, pre_llm_call. The manifest engine enforces UPSTREAM_MANIFEST.md — arrivals need a manifest row, content changes in manifested skills re-flag until re-acknowledged against a content fingerprint via the preserved /skill-manifest-ack command. The advisor engine observes behavioral skill edits (never blocking) and injects one bounded reminder to run the contrastive-refinement probe cycle (bundled as skill-governance:contrastive-refinement), recording every delivered advisory to ~/.hermes/skill-probes/fire-ledger.jsonl. Both legacy state namespaces import by copy (destination-wins, sources never modified) and a conservative governance.records summary joins them (acknowledged never implies validated). A clearance Automation Blueprint (daily schedule, origin delivery) replaces both legacy schedulers and preserves both clearance procedures verbatim; the user adopts it from the blueprint gallery or /blueprint, and the plugin imports no private cron modules and writes no cron state. Stdlib only, no network calls, fail-soft everywhere (malformed state keeps hooks inert, never aborts the host turn). Disclosure — reads the profile's skills tree (SKILL.md files, fingerprinted read-only) and UPSTREAM_MANIFEST.md, and copies the legacy skill-manifest / contrastive-advisor plugin state read-only on first run; writes its own plugin state, <HERMES_HOME>/skill-probes/fire-ledger.jsonl when the opt-in advisor fires, and plugin-data/skill-manifest/acks.json on a manual /skill-manifest-ack; injects advisory reminders into turns; the optional daily clearance blueprint, once the user adopts it with /blueprint, runs an unattended agent that edits UPSTREAM_MANIFEST.md and the plugin's dismissed list, reads past session tool calls from state.db, and writes probe notes; never deletes, never blocks tool calls, no network.

Skill Governance v0.3.0

What changed in v0.3.0 (reviewer-gated, catalog PR #150636): the clearance
schedule is no longer a self-installed cron job. The plugin registers one
Automation Blueprint (skill-governance:clearance, daily 0 9 * * *,
delivery origin) through the public host surface; you adopt it from the
blueprint gallery or /blueprint. The plugin imports no private cron modules
and writes no cron state.

Consolidated engine, released. This plugin is the successor to
skill-manifest and contrastive-advisor (both retired from this repo as of
v0.2.0). It combines the two engines without altering their implementation
logic. v0.1.1 passed the pre-merge gate on an isolated real Hermes profile:
real-loader registration, migration parity (deep-equal v1 import, idempotent,
sources byte-identical), hook exercise with real advisories, cron
opt-in/refusal, and config round-trip (evidence in PR #24).

  • manifest/: skill provenance, drift/fingerprint tracking, acknowledgements.
  • contrastive/: non-blocking edit observation, probe reminders, fire ledger.
  • core.py: namespace isolation, non-destructive state import, conservative
    unified records and one clearance Automation Blueprint (adopted, not
    self-installed).

Installation

From the Hermes plugin catalog (pinned, version-tracked):

hermes plugins install skill-governance

Or copy/symlink plugins/skill-governance/ into ~/.hermes/plugins/ (or
your profile's plugins/), then restart the gateway.

Migration from skill-manifest / contrastive-advisor (v0.1.x installs)

Never enable all three plugins simultaneously. Both old plugins can
register the same CLI aliases or fire duplicate notifications. The transition
is deliberately manual and reversible:

  1. Back up <HERMES_HOME>/plugin-data/, config.yaml,
    skills/UPSTREAM_MANIFEST.md and skill-probes/. Record the existing
    cron jobs and IDs. Install this directory as plugins/skill-governance/.
  2. Disable skill-manifest and contrastive-advisor in Hermes; restart
    only after the new plugin is configured. Do NOT delete old plugin dirs or
    their data.
  3. Transfer old plugin settings into new nested keys. E.g.:
    plugins.entries.skill-governance.settings.manifest.track_changes and
    plugins.entries.skill-governance.settings.advisor.enabled. The new
    plugin cannot read another plugin's settings via the scoped API. Advisor
    remains explicitly opt-in (default false).
  4. Start an isolated profile. Registration copies each old plugin's
    state.json["v1"] to new keys manifest.v1 and advisor.v1.
    It never modifies or deletes either legacy state file. If the legacy
    state is malformed, registration fails before hooks install.
    Existing destination state is never overwritten on a second start.
  5. Review the new governance.records summary. Keep the old
    plugin-data/skill-manifest/acks.json and skill-probes/ unchanged;
    they are still referenced by their original engines. This preserves
    fingerprint acknowledgements and fire-evidence paths.
  6. If desired, manually remove or disable both old clearance jobs, then
    adopt the single clearance blueprint with /blueprint
    (skill-governance:clearance, daily 09:00, delivery origin). The
    plugin never checks for, creates or removes a scheduled job itself.
  7. Verify ordinary arrivals, changed fingerprints, /skill-manifest-ack,
    behavioral edit advisories, and the probe ledger on disposable skills.
    Check the combined pre-LLM context contains both advisories, not just one.

Rollback: disable the new plugin, enable the two originals with their
original configuration, and restart. Delete the adopted clearance job first
if one was adopted (it keeps firing with the old prompt). Rollback is NOT
lossless.
Know these three facts
before you roll back:

  • The migration imports legacy state once, by copy. Afterwards the new
    plugin's manifest.v1 / advisor.v1 evolve independently and the legacy
    state.json files stay frozen at the migration snapshot.
  • Ongoing operation writes SHARED stores the legacy engines also read:
    the fire ledger (<HERMES_HOME>/skill-probes/fire-ledger.jsonl — written
    whenever the advisor fires and closes rows in place) and the external
    acknowledgements file (plugin-data/skill-manifest/acks.json — written by
    the preserved /skill-manifest-ack CLI). "Never modified" applies to the
    legacy state.json envelopes only.
  • On rollback the legacy engines restart from their frozen v1 state against
    these shared, newer stores: any dismissals, baseline adoptions,
    advisory-session state or pending probes recorded ONLY by the new plugin
    are lost. If you later re-enable the new plugin, the destination-wins rule
    (manifest.v1/advisor.v1 already exist) silently ignores anything the
    legacy plugins recorded in the meantime — delete the new plugin's
    state.json namespace (or ask for a re-import) to force a fresh copy.

There is no reverse export in v0.1.1; treat rollback as a one-way step and
back up <HERMES_HOME>/plugin-data/ first.

New configuration

All options are plugin-local under
plugins.entries.skill-governance.settings:

  • manifest.*: the original manifest fields (filename, roots, budgets,
    dismissed list, track_changes). The removed scheduler fields
    auto_resolve* are no longer configurable.
  • advisor.enabled (false by default) plus advisor.probe_root,
    advisor.excluded_skills, advisor.ttl_minutes, advisor.markers,
    advisor.ledger_enabled.
  • Legacy sweeper* and cron.* options are replaced by the adopted
    skill-governance:clearance Automation Blueprint (see the v0.3.0 note at
    the top).

The bundled skill is now
skill-governance:contrastive-refinement, not the original
contrastive-advisor:contrastive-refinement. Update hard-coded references
before disabling the old plugin.

Semantics of the unified records

Records live at ctx.state["governance.records"]:

  • fingerprint, manifest_status, manifest_reason and provenance_status
    summarize the manifest engine. acknowledged requires a matching external
    acks.json entry; fingerprint_current only records a matching in-state
    digest (possibly an automatically adopted baseline), not proof of human
    review
    .
  • validation_status starts at not_evaluated, becomes probe_advised
    for an unresolved reminder, or answered_unbound for older answered
    probe-ledger rows. Never treat answered_unbound as proof that the
    current fingerprint has been validated.
    Legacy ledger rows have no
    fingerprint binding.
  • Manifest keys are hashed paths; the advisor uses skill names. They are
    joined only when a manifest finding includes an explicit matching name.
    Other entries stay separate instead of guessing identity. This is a
    conservative summary, not a replacement for the original stores.
  • Only the latest 200 ledger rows enter the summary; the original ledger is
    preserved and authoritative.

Preserved surfaces and remaining limits

  • One hook each for on_skill_lifecycle, on_session_start,
    pre_tool_call and pre_llm_call.
  • Both engines' advice is returned in one {"context": "..."}.
  • The existing skill-manifest CLI and /skill-manifest-ack command
    remain registered for backward-compatible manual acknowledgements.
  • Bundled helper scripts and the contrastive-refinement skill are copied
    from the v0.3.0 sources unchanged.
  • Existing source plugin directories remain in the repository for safe
    rollback. This PR does not automatically disable an already installed
    plugin, nor migrate another plugin's configuration.

Acceptance gate: unit/migration tests, all existing plugin suites, and an
isolated real Hermes profile migration with both plugins' real state and
clearance jobs. CI passing alone does not establish production parity.

README from the reviewed commit 8743eae; it updates when the author re-pins.

More by moonlight-lupin

2 plugins by moonlight-lupin in the catalog.

moonlight-lupinskill-retrievalBM25-based skill retrieval for large skill libraries. An llm_request middleware rewrites the outgoing request's <available_skills> block to names only (the same bytes every turn, so prompt caching is unaffected), and a pre_llm_call hook appends the top-K matching skill descriptions to the current user message. Uses public plugin surfaces only (register_middleware, register_hook); reads SKILL.md frontmatter from the profile's skill roots and imports a few agent.prompt_builder / agent.skill_utils helpers read-only. pyyaml is declared via pip_dependencies in plugin.yaml, so the installer installs it. On CPython 3.14 the host's hermes_yaml facade is used when PyYAML is unavailable. Disclosure — optional Jev rerank, off by default: with SKILL_RETRIEVAL_RERANK=jev and TYPESAFE_API_KEY set (read from the environment only), each turn POSTs the user message (leading injection patterns stripped, capped at 2000 chars) and the ids and descriptions of up to 12 shortlisted skills (400 chars each) to api.typesafe.ai (3 s timeout, no retries, BM25 order kept on error); with SKILL_RETRIEVAL_RERANK_PROVIDER=openrouter the same payload goes to openrouter.ai/api/v1/systemone instead, keyed by OPENROUTER_API_KEY (each provider reads only its own key, from the environment only). A local JSONL log (timestamp, session id, 200-char query excerpt, both orders, rerank scores) is appended under $HERMES_HOME/data/jev-trial/, rotated past 5 MB. With the rerank off it makes no network calls and writes no files.Communitytools132

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section