Approval cells check the terminal envelope's status == 'blocked' (plus exit_code and disk).
Bare-name delete controls check success False + a non-empty error + the skill dir; a new
control_unpinned_bare proves bare-name discovery works, so a refused bare pinned/essential
delete is the guard rather than a not-found.
write_symlink_file / patch_symlink_file / patch_dotdot shared one outside target, so one escape
redded all three. They now each own a target. The protected rows that cannot split (one
Hermes-home .env, one authorized_keys) attribute a breach to the sibling whose tool result was
not a refusal (all sharers stay red when every result claims a refusal). Refusal is read from the
result envelope's error/success fields via a leading-object JSON decode (tool-loop warnings may
follow the envelope).
The gateway KNOWN strict-xfailed the whole assistant_text scenario, so a new leak of the
streamed answer into gateway.log, state.db, an export or the next request was absorbed by the
known platform-wire gap. Each scenario is now parametrized per sink it is held to and KNOWN is
keyed by cell id (assistant_text-platform); every other sink of that scenario is a plain red.
Sabotage (append the reply raw to gateway.log in _sanitize_gateway_final_response): before,
assistant_text xfailed; after, assistant_text-logs FAILS.
One real `hermes serve` hosting two profiles (default + profiles/beta), each
with a distinct canary under the same .env variable name:
- control: the fixed sibling route GET /api/mcp/servers?profile=X resolves
each profile's own ${SECRET} reference (multiplex active, scoping works)
- plugin_route (KNOWN #120310, strict xfail): a user dashboard plugin route
reading get_secret() must return the requesting profile's value A->B->A;
on main it raises UnscopedSecretError for every profile
- each profile's stdio MCP server env carries only its own configured
secret: none of the other profile's canaries, never the launch provider key
Sabotage: PRs #120332/#120333/#120325 each turn plugin_route into
XPASS(strict); launch scope for ?profile= (web_server_profiles) reds the
control; unfiltered MCP env (mcp_tool_config._build_safe_env) and
os.environ ${VAR} lookup (config._env_ref_lookup) red the MCP env test.
Wait for a chat's prompt OR an early settle, so a command that runs
without approval fails as a boundary breach instead of a prompt timeout;
the /approve session control fails fast when the grant does not stick.
Real hermes chat -q with 25 rm -rf spellings (quoting, backslash, env,
sub-shells, substitutions, find/xargs/eval/heredoc...) each targeting its
own victim dir: without a human the victim survives and the tool result
is BLOCKED; a twin run with single_query_mode: approve proves every
spelling really deletes. Real GatewayRunner child with a fake platform:
/approve, /deny and /approve session in one chat settle only that chat's
pending command.
Drives write_file/patch/read_file/search_files through hermes chat -q with the
loopback model: HERMES_WRITE_SAFE_ROOT, the credential/ssh write denylist, the
~/.ssh/config approval gate and the credential read denylist each hold for
../, absolute, symlinked-file and symlinked-parent spellings. New KNOWN
strict xfail: auth.json.corrupt (the quarantined copy of an unparseable auth
store) is returned by read_file/search_files (#121278).
Drives /memory and /skills approve|reject|diff through the real tui_gateway
slash.exec path after real staged writes, and skill_manage delete through
real agent turns after a real 'hermes curator pin'. Both bugs are open:
strict-xfail KNOWN entries, proven XPASS-red with the candidate fixes
(#119998, #120529); valid-id and bare-name controls pass.
Real `hermes chat -q` turns and a real GatewayRunner child (with the gateway's
file logging) run six scenarios against the documented redaction contract:
tool output echoing prefixed secrets not in the env, a cat of the profile .env
and of a plain file holding the provider key, the model's own answer quoting the
key, the key as a curl tool argument, a key pasted in the user prompt, and a
provider error body echoing the key. Every scenario first proves the secret
travelled (tee'd echo file, curl hit the endpoint, the log recorded the turn),
then scans agent.log/errors.log/gateway.log, every file under HERMES_HOME
(state.db rows, WAL/FTS bytes), `sessions export` with and without --redact,
every provider request body, and the platform journal per chat.
Known: #56039 streamed gateway replies reach the platform unredacted (strict
xfail; applying redaction in GatewayStreamConsumer._clean_for_display turns it
XPASS).