Repository navigation
Expand file tree
/
Copy pathplugin.yaml
More file actions
24 lines (24 loc) · 1.62 KB
/
Copy pathplugin.yaml
File metadata and controls
24 lines (24 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: provenance-gate
version: 0.3.0
author: "Simin Yuan"
requires_hermes: ">=0.22.2"
description: >-
Flags memory and skill_manage writes that state a user decision ("the user decided ...", "用户决定 ...")
without a quote that appears verbatim in text the user typed in this session, shares key words with
the decision and does not drop a negation. Three modes — observe (the default: records them as
would_block and never refuses), ask (escalates to the human-approval gate with a rule_key
provenance-gate:<reason>, so "always" applies to one class of finding rather than to every write) and
block (refuses them with instructions). All three are also reachable through HERMES_GUARD_MODE, the
single key this plugin shares with its siblings in the family, where enforcement is spelled `act`.
PROVENANCE_GATE_MODE takes precedence whenever it holds one of its own three words, because a
per-plugin setting is the more specific one; a value it does not recognise is treated as no opinion
and the family key decides, which is why upgrading cannot change a mode on its own.
Follows the Hermes plugin verdict convention v0.1.1
(docs/verdict-convention.md, v0.1.1) and emits no directive at all in observe mode.
Disclosure — keeps a local copy of the text of user messages with their sender_id and session link
(30-day default retention, `hermes provenance-gate purge`) and an evidence log under
plugin-data/provenance-gate; reads MEMORY.md / USER.md and skill files to check what a patch produces;
no network; does not act unless PROVENANCE_GATE_MODE is set to ask or block.
provides_hooks:
- pre_llm_call
- pre_tool_call