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:
- Back up
<HERMES_HOME>/plugin-data/,config.yaml,
skills/UPSTREAM_MANIFEST.mdandskill-probes/. Record the existing
cron jobs and IDs. Install this directory asplugins/skill-governance/. - 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. - Transfer old plugin settings into new nested keys. E.g.:
plugins.entries.skill-governance.settings.manifest.track_changesand
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 (defaultfalse). - Start an isolated profile. Registration copies each old plugin's
state.json["v1"]to new keysmanifest.v1andadvisor.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. - Review the new
governance.recordssummary. Keep the old
plugin-data/skill-manifest/acks.jsonandskill-probes/unchanged;
they are still referenced by their original engines. This preserves
fingerprint acknowledgements and fire-evidence paths. - If desired, manually remove or disable both old clearance jobs, then
adopt the single clearance blueprint with/blueprint
(skill-governance:clearance, daily09:00, deliveryorigin). The
plugin never checks for, creates or removes a scheduled job itself. - 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'smanifest.v1/advisor.v1evolve independently and the legacy
state.jsonfiles 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-ackCLI). "Never modified" applies to the
legacystate.jsonenvelopes 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.v1already exist) silently ignores anything the
legacy plugins recorded in the meantime — delete the new plugin's
state.jsonnamespace (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) plusadvisor.probe_root,
advisor.excluded_skills,advisor.ttl_minutes,advisor.markers,
advisor.ledger_enabled.- Legacy
sweeper*andcron.*options are replaced by the adopted
skill-governance:clearanceAutomation 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_reasonandprovenance_status
summarize the manifest engine.acknowledgedrequires a matching external
acks.jsonentry;fingerprint_currentonly records a matching in-state
digest (possibly an automatically adopted baseline), not proof of human
review.validation_statusstarts atnot_evaluated, becomesprobe_advised
for an unresolved reminder, oranswered_unboundfor older answered
probe-ledger rows. Never treatanswered_unboundas 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_callandpre_llm_call. - Both engines' advice is returned in one
{"context": "..."}. - The existing
skill-manifestCLI and/skill-manifest-ackcommand
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.

moonlight-lupin