feat(mars): pin luna's minimal SOUL.md; full persona seeds Honcho
- prepare-dirs writes hosts/mars/luna-soul.md over her SOUL.md on every start: a short anchor (identity, register, non-negotiables). Her own approved edits no longer stick; a broken one corrupted the file on 2026-09-24 with GLM tool-call markup. - luna-soul-full.md keeps the full persona. It seeded her Honcho identity (hermes honcho identity), minus the voice rules, which moved to luna-voiced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -314,6 +314,18 @@ in
|
||||
' _ ${hermesHome}/honcho.json
|
||||
write_env_key API_SERVER_KEY < ${config.sops.secrets.hermes_api_server_key.path}
|
||||
|
||||
# Pinned: overwritten every start, so dashboard edits and her own approved
|
||||
# edits don't survive (a broken one corrupted it on 2026-09-24). Persona
|
||||
# changes belong on her Honcho identity card; the full persona that seeds
|
||||
# it is luna-soul-full.md.
|
||||
setpriv --reuid=${hermesUid} --regid=${hermesGid} --clear-groups \
|
||||
${pkgs.runtimeShell} -c '
|
||||
set -eu
|
||||
umask 022
|
||||
cat > "$1.new"
|
||||
mv -f "$1.new" "$1"
|
||||
' _ ${hermesHome}/SOUL.md < ${./luna-soul.md}
|
||||
|
||||
if [ -d ${hermesHome}/.config ]; then
|
||||
chown ${hermesUid}:${hermesGid} ${hermesHome}/.config
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user