Hermes Toolgate
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Hermes Toolgate
- perks
- [ "read", "write", "exec", "net", "delegate", "selfmod", "run" ]
- skill
- toolgate
02 资源文件 42
- 参考文档blueprint.json4.2 KB
- 参考文档index.json4.3 KB
- 参考文档ledger.json857 B
- 参考文档perks.json1.3 KB
- 参考文档perks/delegate/manifesto.json419 B
- 参考文档perks/delegate/metadata.json1011 B
- 参考文档perks/delegate/src/contracts.json458 B
- 脚本perks/delegate/src/hermes_claim.sh979 B
- 参考文档perks/delegate/test/case.json435 B
- 参考文档perks/exec/manifesto.json415 B
- 参考文档perks/exec/metadata.json1003 B
- 参考文档perks/exec/src/contracts.json458 B
- 脚本perks/exec/src/hermes_claim.sh979 B
- 参考文档perks/exec/test/case.json409 B
- 参考文档perks/net/manifesto.json414 B
- 参考文档perks/net/metadata.json1001 B
- 参考文档perks/net/src/contracts.json458 B
- 脚本perks/net/src/hermes_claim.sh979 B
- 参考文档perks/net/test/case.json409 B
- 参考文档perks/read/manifesto.json415 B
- 参考文档perks/read/metadata.json1015 B
- 参考文档perks/read/src/contracts.json458 B
- 脚本perks/read/src/hermes_claim.sh979 B
- 参考文档perks/read/test/case.json419 B
- 参考文档perks/run/manifesto.json426 B
- 参考文档perks/run/metadata.json1.7 KB
- 参考文档perks/run/src/contracts.json551 B
- 参考文档perks/run/src/floor_cases.txt1.1 KB
- 脚本perks/run/src/hermes_exec.sh2.7 KB
- 脚本perks/run/src/hermes_floor_check.sh2.0 KB
- 脚本perks/run/src/hermes_floor.sh3.0 KB
- 参考文档perks/run/test/case.json855 B
- 参考文档perks/selfmod/manifesto.json418 B
- 参考文档perks/selfmod/metadata.json1.0 KB
- 参考文档perks/selfmod/src/contracts.json458 B
- 脚本perks/selfmod/src/hermes_claim.sh979 B
- 参考文档perks/selfmod/test/case.json424 B
- 参考文档perks/write/manifesto.json416 B
- 参考文档perks/write/metadata.json1.0 KB
- 参考文档perks/write/src/contracts.json458 B
- 脚本perks/write/src/hermes_claim.sh979 B
- 参考文档perks/write/test/case.json423 B
03 SKILL.md 正文
toolgate — Hermes Toolgate
The governed surface between the Hermes headless agent (Maria) and the world. It has two faces:
1. The gate's policy surface — effect-class claim perks. Maria's govern_gate maps every tool
call to a value-free claim against this skill and POSTs it to govd: {skill: hermes:toolgate, perk: <effect class>, var_keys: [TOOL, ARGS_DIGEST, TARGET]}. The perk ids ARE the effect classes:
| perk | claims | destructive |
|---|---|---|
read |
read_file / search / snapshots / catalog reads | no — allows without approval |
write |
write_file / patch / memory / cron / process | yes — push_back |
exec |
terminal / execute_code | yes — push_back |
net |
web / browser_* / mcp_* / send_message | yes — push_back |
delegate |
delegate_task (subagent spawn) | yes — push_back |
selfmod |
any call that would modify the gate's own code/config | yes — push_back, never ACL-loosened |
These perks are verdict-only: govd decides, Hermes executes its own handler on allow — exod
never runs the claimed tool. The perk's snippet (hermes_claim) is just the governed recorder, and
everything that crosses the wire is value-free: a tool NAME, a sha256 ARGS_DIGEST, a coarse TARGET
class. Destructive claims resolve through govd push_back → the human approval gate.
2. The confined terminal — the run perk. When a command actually executes through the governed
channel it goes through run, inside the exod sandbox — no network, dropped privileges, only the
cargo workspace bound read-write; confinement is the guarantee. What run adds is the second,
un-liftable layer:
- The destructive floor — a conservative denylist that runs before the command, in blessed
(hash-verified) chip code. The agent supplies var values (
CMD/WORKDIR/…) and never edits the snippet, so no agent-side yolo/permission mode can lift the floor. It refuses the classic irrecoverables: recursivermof absolute/home/workspace paths, barermof/~.*,mkfs/fsck,ddto a device, redirects to raw devices or system dirs, fork bombs. - A pure predicate, proven before every run — the floor lives in
hermes_floor.shasfloor_verdict(), a function that executes nothing. Step 1 of the perk (hermes_floor_check) classifies the pinned case table (floor_cases.txt, part of the hashed src closure) and refuses the whole run if the floor misclassifies any case — fail closed, beforeCMDis even looked at. The table's first block cases are the two commands the pre-fix floor missed on 2026-07-22 (rm -rf $HOME,rm -fr /etc); they are pinned so that gap can never silently reopen. - Workspace binding —
WORKDIRmust resolve inside the cargo workspace; cwd escapes are refused.
The floor fails toward blocking: matching runs on a normalized copy of CMD (quotes stripped,
whitespace collapsed), so a benign command that merely contains a destructive string — like
echo "rm -rf /" — is refused. That false positive is accepted; the floor is a small, auditable
table, not a shell parser. A determined bypass is stopped by confinement, not by the regexes.
What to look out for
Each tool prints one JSON status line. hermes_claim: {effect, claimed_tool, args_digest, target}
mirrored to claim.json. hermes_floor_check: {status: ok|refused, fails, total, report} — a
refused here means the floor itself failed its proof (do NOT lift it; fix the floor).
hermes_exec: {status: ok, exit, workdir, out, bytes} with the command's own exit code inside, or
{status: blocked, floor: <reason>} (exit 3) when the floor or the workspace boundary refused.
LOGS TO CHECK: claim.json / floor_report.json / exec.out + the executor run-ledger.
Perks
| perk | tools | nature |
|---|---|---|
read write exec net delegate selfmod |
hermes_claim |
verdict-only effect-class claims — value-free recorder |
run |
hermes_floor_check → hermes_exec |
prove the floor, then run one command line confined — destructive (runs agent-supplied commands; safe only inside the exod sandbox) |
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.