diff --git a/docs/1-getting-started/setup.md b/docs/1-getting-started/setup.md index 11236e908..59f8848f8 100644 --- a/docs/1-getting-started/setup.md +++ b/docs/1-getting-started/setup.md @@ -239,21 +239,23 @@ message box under her terminal. She is the manager agent: her MCP surface is the privileged one that configures agents, and she can recover the others. Changes to an agent's config arrive as PRs you merge. → [`2-handbook/agents/agent-permissions.md`](../2-handbook/agents/agent-permissions.md) -To create an agent yourself instead, use the swarm UI, or: +To create an agent yourself instead, use the swarm UI, the optional last step of `swarmctl setup` (it asks whether the agent should be custom), or: ```bash swarmctl agent create --hive firsthive ``` -The name is yours to choose; it has no meaning to the swarm. The controller provisions the agent's identity, forge user and config repo -(`agent-configs/`, from the default template), then has the hive build -and start the container. The hive builds from a copy of hyperhive on the swarm's own forge: the +The name is yours to choose; it has no meaning to the swarm. The controller provisions the agent's identity and forge user, then has the hive build +and start the container. The swarm builds the agent from the `default` archetype, which has +no config repo; pass `--custom` for a custom agent, whose repo +(`agent-configs/`) the controller seeds from the default template, or +`--archetype ` for another archetype. The hive builds from a copy of hyperhive on the swarm's own forge: the controller mirrors it there as `hyperhive/hyperhive` on a fresh swarm, so the first agent needs no extra step (see [`nixos.md`](nixos.md#the-hyperhive-mirror)). It returns once the scheduler queues the job — watch the swarm UI's job view for progress. -Later config changes are PRs on `agent-configs/`; you merge them on the +Later config changes to a custom agent are PRs on `agent-configs/`; you merge them on the forge, and the merge deploys them. → [`2-handbook/agents/persistence.md`](../2-handbook/agents/persistence.md#config-changes) diff --git a/docs/2-handbook/swarm/archetypes.md b/docs/2-handbook/swarm/archetypes.md index 8c3a08f3e..c9e68c6d5 100644 --- a/docs/2-handbook/swarm/archetypes.md +++ b/docs/2-handbook/swarm/archetypes.md @@ -9,9 +9,14 @@ change each field before you create the agent. An agent created from an archetype has no `agent-configs/` repo of its own. The swarm's `internal/meta` flake builds it from the archetype's module, so every agent of that archetype runs the same configuration. To change what it runs, change the -archetype. Picking "none" creates a custom agent, with its own config repo. The -swarm can also turn an archetype agent into a custom one later -([below](#turn-into-custom)). +archetype. The create form opens on `default`, an archetype with the default +config, so an agent that needs no config repo has none. Picking "none" +creates a custom agent, with its own config repo. The swarm can also turn an +archetype agent, `default` included, into a custom one later +([below](#turn-into-custom)). The API stays as it was: a request with no +`archetype` still creates a custom agent, and `swarmctl agent create` sends +`default` unless you pass `--custom`. A swarm whose controller or builder +lists no `default` opens the form on "none." ## The built-in archetypes @@ -19,6 +24,7 @@ The hyperhive flake ships these: | archetype | what it sets | | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `default` | the default config: its module is empty, so it builds what an unedited custom agent builds, and it holds the default permissions. It has no prompt, caps or inference settings. The create form preselects it. | | `reviewer` | permissions `messaging`, `inbox`, `execution`: the default set without `meta`. With `execution` it can run `hive-forge`, `git` and other commands. | | `android-dev` | installs `android-tools` (`adb`, `fastboot`), Gradle, a JDK, the Android SDK (build-tools 36.1.0, platform 35) and nix-ld, and sets `ANDROID_HOME`, `ANDROID_SDK_ROOT` and `JAVA_HOME`, so the `aapt2` Gradle downloads runs; default permissions. | | `reverse-engineer` | sets `services.hyperhive.agent.rea.enable`: installs REA, Ghidra 12.1 and procps, and allows all REA MCP tools; default permissions and the agent's normal memory cap. | @@ -44,7 +50,7 @@ agent gets every new item, and two of them would both label and assign it. An existing ruth, created before this archetype, keeps her own config repo and model. Set `sonnet` in the swarm UI's inference settings for her if wanted. -Each built-in archetype also sets `services.hyperhive.agent.icon`, so its agents +Each built-in archetype except `default` also sets `services.hyperhive.agent.icon`, so its agents show an icon in the swarm UI until their config sets another. ## Where an archetype comes from diff --git a/docs/2-handbook/swarm/swarmctl-cli.md b/docs/2-handbook/swarm/swarmctl-cli.md index efda870bb..822ef46c8 100644 --- a/docs/2-handbook/swarm/swarmctl-cli.md +++ b/docs/2-handbook/swarm/swarmctl-cli.md @@ -112,6 +112,12 @@ No approval gate guards this: the caller is root on the controller's host, or lo * `--hive ` — Hive in this swarm to deploy the agent to. Required, and deliberately not defaulted: it's an *address* — the hive that gets the deploy message — and only the operator knows which one they mean. The controller checks it against the swarm's hive roster and names the known hives if it misses. +* `--archetype ` — Archetype of the `hyperhive` source to build the agent from. + + `default` is the default config with no config repo; turn the agent into a custom one later when it needs a repo. The hive's `hyperhive` input must know the archetype, or the agent's build fails. + + Default value: `default` +* `--custom` — Create a custom agent: it gets an `agent-configs/` repo and no archetype * `--agents-md ` — A text file the agent's `AGENTS.md` starts with. The agent writes it on its first start, and only when it has no `AGENTS.md` yet: re-creating an agent never replaces an existing file. The controller refuses a file over 64 KiB. diff --git a/docs/4-implementation/swarm/archetypes.md b/docs/4-implementation/swarm/archetypes.md index 87a3256dd..3ff9617fa 100644 --- a/docs/4-implementation/swarm/archetypes.md +++ b/docs/4-implementation/swarm/archetypes.md @@ -36,6 +36,12 @@ stored list and logs a warning on each pass. A swarm whose builder connects after the controller has no list until a retry succeeds. A swarm with no builder enabled shows no archetype select. +The create form preselects the `default` archetype once the list has loaded and +lists it, then "none" (a custom agent), then the rest. A list without `default`, +from a controller or builder that predates it, leaves "none" preselected. The +server still reads no `archetype` in `POST /api/agents` as a custom +agent, the only way the request says custom. + The stored value: ```json diff --git a/frontend/packages/swarm-ui/src/pages/ArchetypePicker.tsx b/frontend/packages/swarm-ui/src/pages/ArchetypePicker.tsx index 517b8791d..ea19a6f01 100644 --- a/frontend/packages/swarm-ui/src/pages/ArchetypePicker.tsx +++ b/frontend/packages/swarm-ui/src/pages/ArchetypePicker.tsx @@ -1,10 +1,11 @@ // — the create form's archetype choice, drawn like the // broadcast screen's agent picker: one tile per choice with its icon and name, // where the broadcast screen has one per agent. One choice at a time, so each -// tile is a radio button. The first tile is "none", an agent with no archetype. +// tile is a radio button. The first tiles are `default` (when the swarm lists +// it) and "none", an agent with no archetype. import { - archetypeKey, iconSrc, + pickerTiles, type Archetype, } from "./CreateAgentArchetype.js"; import { FormField } from "../ui/form-field/FormField.js"; @@ -35,14 +36,7 @@ export function ArchetypePicker({ onChange: (key: string) => void; disabled?: boolean; }) { - const tiles: { key: string; name: string; svg?: string }[] = [ - { key: "", name: "none" }, - ...archetypes.map((a) => ({ - key: archetypeKey(a), - name: a.name, - svg: a.icon, - })), - ]; + const tiles = pickerTiles(archetypes); return (
({ + key: archetypeKey(a), + name: a.name, + svg: a.icon, + }); + return [ + ...(def ? [tile(def)] : []), + { key: "", name: "none" }, + ...list.filter((a) => a !== def).map(tile), + ]; +} diff --git a/frontend/packages/swarm-ui/src/pages/CreateAgentForm.tsx b/frontend/packages/swarm-ui/src/pages/CreateAgentForm.tsx index 0b86fa445..21a3535b0 100644 --- a/frontend/packages/swarm-ui/src/pages/CreateAgentForm.tsx +++ b/frontend/packages/swarm-ui/src/pages/CreateAgentForm.tsx @@ -24,8 +24,9 @@ // page-scoped input/button chrome — see that kit's own comments for why. // // Permissions: checkboxes from `GET /api/permissions`, on the default set or the -// picked archetype's; sent only when that differs from the default. A caller can -// open the form on an archetype with `initialArchetype`. +// picked archetype's; sent only when that differs from the default. The form opens +// on the `default` archetype when the swarm lists it, else on none (a custom +// agent); a caller can open it on another archetype with `initialArchetype`. import { useEffect, useRef, useState } from "preact/hooks"; import { Link } from "wouter-preact"; import { ApiErrorPanel } from "@hive/shared/api-error-panel.js"; @@ -60,6 +61,7 @@ import { import { archetypeKey, findArchetype, + openingKey, prefill, requestArchetype, type ArchetypeList, @@ -143,7 +145,7 @@ export function CreateAgentForm({ // Unticked: the server writes `false`, so the agent starts restricted. const [internet, setInternet] = useState(false); // `null` until `/api/archetypes` answers; `archetype` is the picked one's - // `archetypeKey`, `""` for none. + // `archetypeKey`, `""` for none (a custom agent). const [archetypes, setArchetypes] = useState(null); const [archetypesError, setArchetypesError] = useState( null, @@ -214,15 +216,20 @@ export function CreateAgentForm({ setInference(p.inference); } - // Opens on `initialArchetype` once the list and the permission catalogue are - // both in, and only once, so a later pick of "none" stays. + // Opens on `initialArchetype`, else on `default` when the list has it, once + // the list and the permission catalogue are both in, and only once, so a + // later pick of "none" stays. const seeded = useRef(false); useEffect(() => { - if (seeded.current || !initialArchetype || !archetypes || !catalogue) - return; + if (seeded.current || !archetypes || !catalogue) return; seeded.current = true; - const found = findArchetype(archetypes.archetypes, initialArchetype); - if (found) pickArchetype(archetypeKey(found)); + if (initialArchetype) { + const found = findArchetype(archetypes.archetypes, initialArchetype); + if (found) pickArchetype(archetypeKey(found)); + return; + } + const key = openingKey(archetypes.archetypes); + if (key) pickArchetype(key); }, [archetypes, catalogue]); const unlisted = initialArchetype !== undefined && diff --git a/frontend/packages/swarm-ui/test/create-agent-archetype.test.mjs b/frontend/packages/swarm-ui/test/create-agent-archetype.test.mjs index 2cc5408b6..491a9118c 100644 --- a/frontend/packages/swarm-ui/test/create-agent-archetype.test.mjs +++ b/frontend/packages/swarm-ui/test/create-agent-archetype.test.mjs @@ -5,6 +5,8 @@ import { test } from "node:test"; import { archetypeKey, iconSrc, + openingKey, + pickerTiles, prefill, requestArchetype, } from "../src/pages/CreateAgentArchetype.ts"; @@ -81,7 +83,7 @@ test("the key tells sources apart", () => { ); }); -test("a picked archetype is sent by source and name, none is left out", () => { +test("a picked archetype is sent by source and name, none (a custom agent) is left out", () => { const reviewer = { source: "hyperhive", name: "reviewer", @@ -102,3 +104,38 @@ test("an icon is a data URL of the SVG text, and none without text", () => { assert.ok(src.startsWith("data:image/svg+xml;charset=utf-8,%3Csvg"), src); assert.ok(!src.includes("<"), "the markup is percent-encoded"); }); + +const listed = (...names) => + names.map((name) => ({ source: "hyperhive", name, description: "d" })); + +test("the form opens on default once the list has it, and on none otherwise", () => { + assert.equal(openingKey(null), null); + assert.equal( + openingKey(listed("reviewer", "default")), + archetypeKey({ source: "hyperhive", name: "default", description: "d" }), + ); + // An older controller or builder lists no default: a custom agent, as before. + assert.equal(openingKey(listed("reviewer", "ruth")), ""); + assert.equal(openingKey([]), ""); + // A `default` from another source is not the built-in one. + assert.equal( + openingKey([{ source: "other", name: "default", description: "d" }]), + "", + ); +}); + +test("the tiles are default, then none, then the rest in list order", () => { + const names = (list) => pickerTiles(list).map((t) => t.name); + assert.deepEqual(names(listed("reviewer", "default", "ruth")), [ + "default", + "none", + "reviewer", + "ruth", + ]); + assert.deepEqual(names(listed("reviewer", "ruth")), [ + "none", + "reviewer", + "ruth", + ]); + assert.equal(pickerTiles(listed("default"))[1].key, ""); +}); diff --git a/nix/archetypes/default.nix b/nix/archetypes/default.nix index bef59c74c..e2d1376a9 100644 --- a/nix/archetypes/default.nix +++ b/nix/archetypes/default.nix @@ -7,9 +7,17 @@ # the create form shows beside the archetype, and `prompt`, the text the create # form prefills the new agent's AGENTS.md with (the built-ins read theirs from # ./prompts/.md); see docs/2-handbook/swarm/archetypes.md. Every archetype -# sets `services.hyperhive.agent.icon` (with `mkDefault`) to an SVG in `icons/`, -# so its agents show one until their config sets another. +# but `default`, whose module is empty, sets `services.hyperhive.agent.icon` +# (with `mkDefault`) to an SVG in `icons/`, so its agents show one until their +# config sets another. { + default = { + module = { }; + meta = { + icon = builtins.readFile ./icons/default.svg; + description = "The default config, no config repo; turn it into a custom agent when you need one. It holds the default permissions."; + }; + }; reviewer = { module = { lib, ... }: diff --git a/nix/archetypes/icons/default.svg b/nix/archetypes/icons/default.svg new file mode 100644 index 000000000..d25ac19f9 --- /dev/null +++ b/nix/archetypes/icons/default.svg @@ -0,0 +1,12 @@ + + default + Default archetype icon: an empty hive cell, a hexagon outline with nothing in it, amber on dark + + + + + + + + + diff --git a/nix/module-eval/builder.nix b/nix/module-eval/builder.nix index cfc39c481..448cdea9b 100644 --- a/nix/module-eval/builder.nix +++ b/nix/module-eval/builder.nix @@ -299,7 +299,7 @@ let # output and prints it as JSON. A derivation or a path in `meta` would # make that evaluation build or copy something; a function would not # print at all. - name = "the built-in archetypes carry a module and a meta of plain data, and reviewer can run commands and android-dev installs its toolchain and reverse-engineer turns rea on, and each sets an svg icon as a default, and each has a non-empty prompt under the 64 KiB cap, and ruth runs sonnet with manage_root_agent, logs and metrics, and triage runs haiku with three flows that send to members"; + name = "the built-in archetypes carry a module and a meta of plain data, and reviewer can run commands and android-dev installs its toolchain and reverse-engineer turns rea on, and each but default sets an svg icon as a default, and each but default has a non-empty prompt under the 64 KiB cap, and default is an empty module with no prompt, permissions or inference and an svg icon in its meta, and ruth runs sonnet with manage_root_agent, logs and metrics, and triage runs haiku with three flows that send to members"; ok = let plain = @@ -319,8 +319,11 @@ let lib.all (a: a ? module && a.meta.description != "") (lib.attrValues archetypes) && plain metas && lib.all (m: (m.prompt or "") != "" && builtins.stringLength m.prompt <= 65536) ( - lib.attrValues metas + lib.attrValues (builtins.removeAttrs metas [ "default" ]) ) + && archetypes.default.module == { } + && !(metas.default ? prompt || metas.default ? permissions || metas.default ? inference) + && lib.hasPrefix ", agents_md: Option<&Path>, ) -> Result<()> { // Client-side before the round trip, so a typo is an immediate local @@ -57,7 +58,7 @@ pub(crate) fn create( }) .transpose()?; - let resp = request_create(target, &name, &hive, agents_md.as_deref())?; + let resp = request_create(target, &name, &hive, archetype, agents_md.as_deref())?; println!("queued: job node {}", resp.node_id); println!( @@ -73,18 +74,20 @@ pub(crate) fn create( } /// The round trip of [`create`] for an already validated `name` and `hive`, -/// printing nothing. +/// printing nothing. `archetype` names an archetype of the `hyperhive` source; +/// `None` creates a custom agent with a config repo. pub(crate) fn request_create( target: &Target, name: &str, hive: &str, + archetype: Option<&str>, agents_md: Option<&str>, ) -> Result { let rt = tokio::runtime::Builder::new_current_thread() .enable_all() .build() .context("starting a tokio runtime for the controller request")?; - rt.block_on(post_create(target, name, hive, agents_md)) + rt.block_on(post_create(target, name, hive, archetype, agents_md)) } /// Parse a CLI-supplied name into a validated identifier, naming which @@ -184,6 +187,7 @@ async fn post_create( target: &Target, name: &str, hive: &str, + archetype: Option<&str>, agents_md: Option<&str>, ) -> Result { post( @@ -196,7 +200,10 @@ async fn post_create( inference: None, permissions: None, unrestricted_internet: None, - archetype: None, + archetype: archetype.map(|name| swarm_wire::agent_archetype::ArchetypeRef { + source: "hyperhive".to_owned(), + name: name.to_owned(), + }), agents_md: agents_md.map(str::to_owned), }, "create-agent", diff --git a/swarmctl/src/interactive.rs b/swarmctl/src/interactive.rs index 384bcc525..78908c1b4 100644 --- a/swarmctl/src/interactive.rs +++ b/swarmctl/src/interactive.rs @@ -281,7 +281,9 @@ pub(crate) trait Actions { fn make_admin(&mut self, name: &str) -> Result; /// `ruth`, with the permissions of a manager, declared `up`. fn declare_ruth(&mut self, hive: &str, exists: bool) -> Result; - fn create_agent(&mut self, name: &str, hive: &str) -> Result; + /// An agent of the `default` archetype, or a custom one with its own config + /// repo when `custom`. + fn create_agent(&mut self, name: &str, hive: &str, custom: bool) -> Result; } #[derive(Debug, PartialEq, Eq)] @@ -748,7 +750,12 @@ fn other_agent(ui: &mut impl Ui, actions: &mut impl Actions, session: &mut Sessi let hive = ask_valid(ui, "Hive", session.hive.as_deref(), |h| { crate::agent::parse_ident(h, "hive").map(drop) })?; - let said = ui.working("creating the agent", || actions.create_agent(&name, &hive))?; + let custom = + ui.ask("Custom agent with its own config repo, instead of the default archetype? [y/N]: ")?; + let custom = matches!(custom.trim().to_lowercase().as_str(), "y" | "yes"); + let said = ui.working("creating the agent", || { + actions.create_agent(&name, &hive, custom) + })?; session.hive = Some(hive); ui.say(Tone::Good, &format!("✔ {said}")); Ok(()) @@ -944,8 +951,8 @@ mod tests { Ok("ruth is declared up".to_owned()) } - fn create_agent(&mut self, name: &str, hive: &str) -> Result { - self.note(&format!("create_agent:{name}:{hive}")); + fn create_agent(&mut self, name: &str, hive: &str, custom: bool) -> Result { + self.note(&format!("create_agent:{name}:{hive}:custom={custom}")); self.world.others += 1; Ok("queued".to_owned()) } @@ -982,8 +989,8 @@ mod tests { fn declare_ruth(&mut self, _: &str, _: bool) -> Result { Ok("declared".to_owned()) } - fn create_agent(&mut self, name: &str, hive: &str) -> Result { - self.0.create_agent(name, hive) + fn create_agent(&mut self, name: &str, hive: &str, custom: bool) -> Result { + self.0.create_agent(name, hive, custom) } } @@ -1445,6 +1452,22 @@ mod tests { })); } + #[test] + fn another_agent_is_a_default_archetype_agent_unless_asked_custom() { + let created = |custom_answer: &'static str| { + let log = log(); + let mut actions = Fake::new(World::fresh(), &log); + let mut script: Vec<&str> = FULL_RUN[..FULL_RUN.len() - 1].to_vec(); + script.extend(["y", "scribe", "", custom_answer]); + let mut ui = Script::new(&script, &log); + run(&mut ui, &mut actions).expect("the run finishes"); + calls(&log, "create_agent") + }; + assert_eq!(created(""), ["create_agent:scribe:firsthive:custom=false"]); + assert_eq!(created("n"), ["create_agent:scribe:firsthive:custom=false"]); + assert_eq!(created("y"), ["create_agent:scribe:firsthive:custom=true"]); + } + #[test] fn a_step_that_the_check_still_finds_open_is_not_taken_as_done() { let log = log(); diff --git a/swarmctl/src/main.rs b/swarmctl/src/main.rs index 66105afea..fc44b5671 100644 --- a/swarmctl/src/main.rs +++ b/swarmctl/src/main.rs @@ -590,6 +590,22 @@ struct AgentCreateArgs { /// hive roster and names the known hives if it misses. #[arg(long, value_name = "HIVE")] hive: String, + /// Archetype of the `hyperhive` source to build the agent from. + /// + /// `default` is the default config with no config repo; turn the agent + /// into a custom one later when it needs a repo. The hive's `hyperhive` + /// input must know the archetype, or the agent's build fails. + #[arg( + long, + value_name = "NAME", + default_value = "default", + conflicts_with = "custom" + )] + archetype: String, + /// Create a custom agent: it gets an `agent-configs/` repo and no + /// archetype. + #[arg(long)] + custom: bool, /// A text file the agent's `AGENTS.md` starts with. /// /// The agent writes it on its first start, and only when it has no @@ -606,6 +622,13 @@ struct AgentCreateArgs { controller_socket: Option, } +impl AgentCreateArgs { + /// The archetype to send: `--archetype`, or none for `--custom`. + fn requested_archetype(&self) -> Option<&str> { + (!self.custom).then_some(self.archetype.as_str()) + } +} + #[derive(Args)] struct AgentMintForgeTokenArgs { /// Name of an agent that already exists. @@ -838,8 +861,15 @@ fn main() -> Result<()> { Verb::Agent { command: AgentVerb::Create(args), } => { + let archetype = args.requested_archetype().map(str::to_owned); let target = remote.target(args.controller_socket)?; - agent::create(&target, &args.name, &args.hive, args.agents_md.as_deref()) + agent::create( + &target, + &args.name, + &args.hive, + archetype.as_deref(), + args.agents_md.as_deref(), + ) } // Same socket-resolution reasoning as `Create` above. Verb::Agent { @@ -1729,6 +1759,30 @@ mod tests { ); } + #[test] + fn agent_create_defaults_to_the_default_archetype_and_custom_sends_none() { + let args = |extra: &[&str]| { + let base = ["swarmctl", "agent", "create", "scribe", "--hive", "alpha"]; + Cli::try_parse_from(base.iter().chain(extra)) + }; + let archetype_of = |cli: Cli| { + let Verb::Agent { + command: AgentVerb::Create(args), + } = cli.command + else { + panic!("expected `agent create`"); + }; + args.requested_archetype().map(str::to_owned) + }; + assert_eq!(archetype_of(args(&[]).unwrap()).as_deref(), Some("default")); + assert_eq!( + archetype_of(args(&["--archetype", "reviewer"]).unwrap()).as_deref(), + Some("reviewer") + ); + assert_eq!(archetype_of(args(&["--custom"]).unwrap()), None); + assert!(args(&["--custom", "--archetype", "reviewer"]).is_err()); + } + /// The socket is optional on the command line because the nix wrapper /// sets `SWARM_CONTROLLER_SOCKET`; `path_from` is what turns an absent /// pair into an error rather than a guess. diff --git a/swarmctl/src/terminal.rs b/swarmctl/src/terminal.rs index 8ca1f771b..ad3547cc8 100644 --- a/swarmctl/src/terminal.rs +++ b/swarmctl/src/terminal.rs @@ -322,7 +322,7 @@ impl Actions for Live { let target = self.target()?; let hive = agent::parse_ident(hive, "hive")?; if !exists { - agent::request_create(target, RUTH, &hive, None)?; + agent::request_create(target, RUTH, &hive, None, None)?; } let every = Duration::from_secs(2); ensure_manager_permission( @@ -339,10 +339,11 @@ impl Actions for Live { )) } - fn create_agent(&mut self, name: &str, hive: &str) -> Result { + fn create_agent(&mut self, name: &str, hive: &str, custom: bool) -> Result { let name = agent::parse_ident(name, "agent name")?; let hive = agent::parse_ident(hive, "hive")?; - let resp = agent::request_create(self.target()?, &name, &hive, None)?; + let archetype = (!custom).then_some("default"); + let resp = agent::request_create(self.target()?, &name, &hive, archetype, None)?; let mut said = format!( "queued job node {} to deploy {name:?} to hive {hive:?}", resp.node_id