Files
hermes-agent/cron
Ben Barclay 4fd509e4e0 fix(sandbox): a hosted scope is deny-by-default: one tool allowlist, one host-feature switch
Two review rounds each found ~8 new host routes because the policy listed what to refuse.
tools/hosted_tool_policy.py now lists what is allowed, and the denylist is gone.

- hosted_tool_refusal: a tool runs in a hosted scope only if it is on HOSTED_TOOL_ALLOWLIST
  (terminal, process_manage, execute_code, read_file, write_file, patch, search_files), the
  tools that act only through the agent's sandbox. The agent loop asks once per call in
  _dispatch_authorized_once, which every sequential, concurrent and batched call goes
  through whatever its executor (inline, memory provider, context engine, registry). The
  primitives ask too, for callers outside the loop: ToolRegistry.dispatch, the inline
  executor table, handle_function_call (connectors, bridges) and the browser_exec direct
  entry. Memory, session_search, todo, vision, web, browser, MCP, connectors, catalog,
  delegation, skills and cron are refused before any handler (round-2 findings 9, 10, 11,
  13, 14).
- host_feature_enabled: agent features outside tool calls that read or write this host's
  profile state are off in a hosted scope. Context files and SOUL.md, subdirectory hints,
  @-references, workspace snapshot, backend probe, built-in memory init/load/writes and
  providers, recall DB, background review, trajectory export, failed-write bookkeeping,
  checkpoints, image/video processing, inline skill shell, cron scripts, MCP stdio, media
  delivery, transcription and /review delegation each ask the one function (findings 4,
  12, 13, 15).
- Per-site refusals that the allowlist covers are removed (connector file inputs).
- Local mode is unchanged. A test shows the allowlist is never consulted unscoped or
  locally and every registered tool reaches its handler. The local byte-parity test is
  kept.
2026-11-11 10:22:54 -05:00
..
…
…