From b797b1ce046394216964343fcb70b4d3f685eb0e Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Fri, 16 Oct 2026 14:49:45 +0200 Subject: [PATCH] Require and verify remote workspace instructions in Hermes --- .../hermes-unraid/webtop-workspace/README.md | 19 +++++++++++++++++++ .../remote-agents-read-verification.json | 9 +++++++++ .../remote-workspace-instruction.md | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 integrations/hermes-unraid/webtop-workspace/remote-agents-read-verification.json create mode 100644 integrations/hermes-unraid/webtop-workspace/remote-workspace-instruction.md diff --git a/integrations/hermes-unraid/webtop-workspace/README.md b/integrations/hermes-unraid/webtop-workspace/README.md index 1b7d29c..5a27499 100644 --- a/integrations/hermes-unraid/webtop-workspace/README.md +++ b/integrations/hermes-unraid/webtop-workspace/README.md @@ -192,3 +192,22 @@ Hermes terminal.cwd is `/config`. Workspace instructions were moved to Existing files under `/config/workspace` remain untouched. No service was restarted; already running sessions may retain their previous working directory. SSH access and readability of the home instructions were verified as Hermes UID 99. + +## Remote AGENTS.md discovery and actual model test + +Hermes project-context discovery reads local paths; terminal SSH does not itself +make the remote AGENTS.md visible. The explicit read instruction from +`remote-workspace-instruction.md` is appended to Hermes `/opt/data/SOUL.md`, +which is automatically included in the model system instructions. Preserve the +rest of SOUL.md during restore. Existing conversations may need a new session +to receive updated instructions; no gateway restart was performed. + +An isolated actual-model CLI session as UID 99, using the terminal toolset, +read `/config/AGENTS.md` and returned a random temporary marker present only +in that remote file, not in the user test prompt. Its recorded tool call +explicitly referenced the path, the tool result contained the marker, and the +assistant response matched it. It also reported `/config` as cwd. Exit code 0. +Only booleans/tool metadata were exported; the temporary marker was removed. +The session database did not retain a system-prompt body, so no stored-prompt +inspection claim is made. This is an instruction-based workflow, not a new +remote automatic-discovery implementation or a guarantee of model compliance. diff --git a/integrations/hermes-unraid/webtop-workspace/remote-agents-read-verification.json b/integrations/hermes-unraid/webtop-workspace/remote-agents-read-verification.json new file mode 100644 index 0000000..c662716 --- /dev/null +++ b/integrations/hermes-unraid/webtop-workspace/remote-agents-read-verification.json @@ -0,0 +1,9 @@ +{ + "exit_code": 0, + "explicit_terminal_read": true, + "blind_marker_in_tool_result": true, + "blind_marker_in_assistant_response": true, + "home_reported": true, + "temporary_marker_removed": true, + "service_restart": false +} diff --git a/integrations/hermes-unraid/webtop-workspace/remote-workspace-instruction.md b/integrations/hermes-unraid/webtop-workspace/remote-workspace-instruction.md new file mode 100644 index 0000000..16eddf5 --- /dev/null +++ b/integrations/hermes-unraid/webtop-workspace/remote-workspace-instruction.md @@ -0,0 +1,2 @@ +## Remote workspace instructions +Your terminal backend connects by SSH to the Webtop workspace. Local project-file discovery does not read remote files. At the beginning of every new session, before working in that workspace, use the terminal tool to read /config/AGENTS.md on the remote host. Follow those workspace instructions. Read it again if the workspace changes or the user requests a refresh. Do not claim to have read it without a successful terminal result.