Expand description
The harness, model route and model a new agent is asked to run on, for spawn, spawn_many and create
(docs/specs/SPEC_AGENT_MODEL_ROUTES_ANY_MODEL_SPAWN_AND_SWITCH_2026_11_06.md sections 3 and 5). The rules are
model_gateway::ask’s; this adds what a spawn knows: the leader, its remembered runtime and the Vault.
Functions§
- account 🔒
- The account a new worker runs on. A worker on a route is billed to the route’s key and signs in nowhere, so it has none; its id is empty and nothing is linked.
- apply 🔒
- Gives the new worker its harness and route, as
runtimesays: srv writes both, so an agent cannot give itself a route by writing its own definition (written_only_by_srv). - choose 🔒
- The harness and runtime of a new worker: its model and effort over its leader’s, on the leader’s route unless
asknames another. A worker on a route keeps the leader’s mode and effort and takes the route’s model; a worker on another harness takes none of its leader’s remembered runtime, which is the leader’s harness’s. - harness_
of 🔒 - The harness the new agent runs: the one asked for, else its leader’s.
- key_
present 🔒 - Whether the Vault holds a route’s key.
- without_
model 🔒 - A remembered runtime (
agentlastruntime) without its model; the other fields, and anything unreadable, as they are.