feat(seed): install AGENTS.md from seed to zot's ZOT_HOME global slot
The seed importer already dual-writes SSH material to the daemon home. Adds an AGENTS.md install block targeting /var/db/colibri/.local/state/zot/ — the path pinned by colibri_daemon.in's ZOT_HOME export. Zot reads this as its first AGENTS.md source, giving the autospawned agent operational rules (mother, verbs, capabilities) on first boot.
This commit is contained in:
parent
62264e2aa4
commit
06e8f4b77c
1 changed files with 10 additions and 0 deletions
|
|
@ -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})"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue