diff --git a/hosts/mars/hermes-agent.nix b/hosts/mars/hermes-agent.nix index 8a15c29..f7996c4 100644 --- a/hosts/mars/hermes-agent.nix +++ b/hosts/mars/hermes-agent.nix @@ -301,6 +301,8 @@ in # Only these keys are asserted; anything Hermes adds to honcho.json stays. # 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 \ ${pkgs.runtimeShell} -c ' set -eu @@ -309,7 +311,8 @@ in ${pkgs.jq}/bin/jq ".baseUrl = \"http://127.0.0.1:8000\" | .hosts.hermes = ((.hosts.hermes // {}) + { 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" ' _ ${hermesHome}/honcho.json write_env_key API_SERVER_KEY < ${config.sops.secrets.hermes_api_server_key.path}