fix(mars): directional Honcho observation so luna's own messages are derived

A honcho.json host block without observationMode counts as a legacy config
and gets "unified" (ai observe_me off), so the seed and everything luna
says were never derived.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 21:03:16 +02:00
co-authored by Claude Opus 5.5
parent 2b376d5035
commit 1db3105d50
+4 -1
View File
@@ -301,6 +301,8 @@ in
# Only these keys are asserted; anything Hermes adds to honcho.json stays. # Only these keys are asserted; anything Hermes adds to honcho.json stays.
# No apiKey: the plugin uses a placeholder for a loopback base URL. # No apiKey: the plugin uses a placeholder for a loopback base URL.
# observationMode must be explicit: a host block without it counts as a
# legacy config and gets "unified", which never derives luna's own messages.
setpriv --reuid=${hermesUid} --regid=${hermesGid} --clear-groups \ setpriv --reuid=${hermesUid} --regid=${hermesGid} --clear-groups \
${pkgs.runtimeShell} -c ' ${pkgs.runtimeShell} -c '
set -eu set -eu
@@ -309,7 +311,8 @@ in
${pkgs.jq}/bin/jq ".baseUrl = \"http://127.0.0.1:8000\" ${pkgs.jq}/bin/jq ".baseUrl = \"http://127.0.0.1:8000\"
| .hosts.hermes = ((.hosts.hermes // {}) + { | .hosts.hermes = ((.hosts.hermes // {}) + {
enabled: true, workspace: \"luna\", aiPeer: \"luna\", enabled: true, workspace: \"luna\", aiPeer: \"luna\",
peerName: \"darman\", pinUserPeer: true })" "$f" > "$f.new" peerName: \"darman\", pinUserPeer: true,
observationMode: \"directional\" })" "$f" > "$f.new"
mv -f "$f.new" "$f" mv -f "$f.new" "$f"
' _ ${hermesHome}/honcho.json ' _ ${hermesHome}/honcho.json
write_env_key API_SERVER_KEY < ${config.sops.secrets.hermes_api_server_key.path} write_env_key API_SERVER_KEY < ${config.sops.secrets.hermes_api_server_key.path}