0.1.1 fixed two patterns in claims.py that backtracked quadratically on long runs of whitespace. A later pass over every pattern in the plugin found a third one, _ZH_BRACKETED, which is unchanged since 0.1.0: input made only of opening brackets made every start position scan to the end of the string. 0.1.2 bounded those runs; 0.1.3 adds the timing test for it. The only call site passes a slice of at most 120 characters, so the input that reaches the gate is unaffected: 200,000 random strings of up to 120 characters give identical results before and after the change. Two lines: sha and version.
31 lines
1.5 KiB
YAML
31 lines
1.5 KiB
YAML
name: provenance-gate
|
|
title: Provenance Gate
|
|
repo: https://github.com/simin-yuan/hermes-provenance-gate
|
|
sha: d8ded75deef198694639d8653c1834a26f3b0372
|
|
version: "0.1.3"
|
|
description: >-
|
|
Flags memory and skill_manage writes that state a user decision ("the user decided ...", "用户决定 ...")
|
|
without the user's own words: each such sentence needs 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. A patch is
|
|
checked by the text it produces. Observe mode (the default) records flagged writes and `hermes
|
|
provenance-gate report` lists them; block mode refuses them and tells the model how to fix the write.
|
|
Measured on an independent blind set of 133 lines: precision 1.000, recall 0.694.
|
|
Disclosure — two hooks (pre_llm_call, pre_tool_call); keeps a local copy of the text the user types,
|
|
with its sender_id and session link, and an evidence log of checked claims under
|
|
plugin-data/provenance-gate (30-day default retention, `hermes provenance-gate purge`); reads
|
|
MEMORY.md, USER.md and skill files to reproduce what a patch produces; no network, no credentials,
|
|
never asks for approval.
|
|
maintainer: simin-yuan
|
|
tier: community
|
|
category: general
|
|
requires_hermes: ">=0.22.2"
|
|
docs_url: https://github.com/simin-yuan/hermes-provenance-gate#readme
|
|
platforms: []
|
|
capabilities:
|
|
provides_tools: []
|
|
provides_hooks:
|
|
- pre_llm_call
|
|
- pre_tool_call
|
|
provides_middleware: []
|
|
requires_env: []
|