ruth is created from a ruth archetype that runs sonnet
This commit is contained in:
parent
aff8cf629d
commit
5233259b3b
1 changed files with 236 additions and 115 deletions
|
|
@ -239,7 +239,7 @@ an agent, after its current turn, when its `manage_root_agent` changes.
|
|||
No agent holds the permission by default: an agent whose record leaves
|
||||
`permissions` unset gets the default, which doesn't include
|
||||
`manage_root_agent`, whatever the agent's name. The swarm UI's setup
|
||||
assistant creates ruth with it. For a ruth that predates that, whose
|
||||
assistant creates ruth from the `ruth` archetype, which grants it. For a ruth that predates that, whose
|
||||
permissions were unset, swarm-controller writes the default plus
|
||||
`manage_root_agent` into her key once at start, so she keeps her mounts;
|
||||
it never touches a key that's already set.
|
||||
|
|
@ -268,20 +268,23 @@ agent keeps its session; sub-agents stay logged in.
|
|||
The root agent container runs through the **same lifecycle as
|
||||
sub-agents**. Nothing creates it at hive boot: you create ruth from the
|
||||
swarm dashboard like any agent, and an existing ruth container starts with
|
||||
the hive like every other. The root agent can clone
|
||||
`agent-configs/ruth` to read its own `agent.nix` and open a config PR there
|
||||
for operator review, same as any other agent.
|
||||
the hive like every other. The setup assistant creates her from the
|
||||
[`ruth` archetype](../swarm/archetypes.md#the-built-in-archetypes), so a new
|
||||
ruth runs `sonnet`, has no config repo and builds from the archetype's module.
|
||||
A ruth with a config repo (one created before the archetype, or one you turned into custom)
|
||||
can clone `agent-configs/ruth` to read her own `agent.nix` and open a config PR
|
||||
there for operator review, same as any other agent.
|
||||
|
||||
Differences from sub-agents:
|
||||
|
||||
- Reference docs: her `agent.nix` turns on `services.hyperhive.agent.docs.enable`.
|
||||
Her container builds from `agent-base` like every agent, and the seeded
|
||||
`agent.nix` is the same for every name, so a newly created ruth has no docs
|
||||
until a config PR adds that line.
|
||||
- Reference docs: the `agent.nix` of a ruth with a config repo turns on `services.hyperhive.agent.docs.enable`.
|
||||
Her container builds from `agent-base` like every agent. A ruth created from
|
||||
the archetype has no docs until you turn her into custom and a config PR
|
||||
adds that line.
|
||||
- Web UI port via `lifecycle::agent_web_port("ruth")` — same
|
||||
FNV-1a hash as every other agent (8100..8999 range).
|
||||
- The root agent holds `manage_root_agent` (the swarm UI's setup
|
||||
assistant creates her with it), for which `set_nspawn_flags` adds extra
|
||||
- The root agent holds `manage_root_agent` (the `ruth` archetype, which the swarm UI's
|
||||
setup assistant creates her from, grants it), for which `set_nspawn_flags` adds extra
|
||||
binds: every agent's `state` dir (RW) under `/agents/<n>/state`, and the
|
||||
hive's plain state under `/meta` (RO).
|
||||
- Its socket comes from the generic per-agent registration, in the same
|
||||
|
|
|
|||
Loading…
Reference in a new issue