Merge pull request 'feat(seed): install AGENTS.md from seed to zot's ZOT_HOME global slot' (#138) from feat/seed-agents-md into main

Reviewed-on: #138
This commit is contained in:
clawdie 2026-06-25 05:09:00 +02:00
commit 2beaf89ff8

View file

@ -358,6 +358,16 @@ _seed_activate_agent() {
# Same seed material, same private key, separate ~/.ssh directory.
_seed_install_ssh_material "${_dir}/ssh" "${SEED_DAEMON_USER}" "${SEED_DAEMON_HOME}"
fi
# Install AGENTS.md to zot's global slot so the autospawned zot reads
# operational rules (mother, verbs, "install Hermes next") on first boot.
# Must match ZOT_HOME exported by colibri_daemon.in prestart.
if [ -f "${_dir}/AGENTS.md" ]; then
_zot_home="${SEED_DAEMON_HOME}/.local/state/zot"
mkdir -p "${_zot_home}"
install -m 0644 -o "${SEED_DAEMON_USER}" -g "${SEED_DAEMON_USER}" \
"${_dir}/AGENTS.md" "${_zot_home}/AGENTS.md"
_seed_log "installed AGENTS.md -> ${_zot_home}/AGENTS.md"
fi
_seed_log "activated agent '${_agent}' for user ${_user} (home ${_home})"
}