Require and verify remote workspace instructions in Hermes

This commit is contained in:
Mikei386 committed 2026-10-16 14:49:45 +02:00
1 parent fb961f6132
commit b797b1ce04
3 files changed
+30

No files matched your search

@@ -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.
@@ -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
}
@@ -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.