From a8e5be30435f1f0a7ed3da1771b7f5cde13ceed2 Mon Sep 17 00:00:00 2001 From: QuicksilverSlick Date: Wed, 18 Nov 2026 09:03:11 -0600 Subject: [PATCH 1/3] fix(buzz-acp): post a Bench answer the agent wrote but never sent #168 posts an owner-DM answer left as a turn's final text. A question Russell asks on a Bench card reaches Bench Assistant as a writer-signed notice in #bench, not in the DM, so the same silent drop would leave the card unanswered. bench_ask picks the last kind 9 in the batch that p-tags this agent and carries a ["df-ask", ...] tag. post_reply_if_silent now answers either the owner-DM question (unchanged, all of #168's gates) or that notice, which needs no owner and no DM. The desktop adds df-ask only on notices it routes to a question answerer, never on the Factory Steward's, so the steward stays silent. The reply goes where the notice points: root and parent are the card, a layer-1 reply in its thread. For a Bench ask the "did it post" relay check is narrowed to that thread (#e = root), so a post elsewhere in #bench cannot hide this card's missing answer; the DM check stays channel-wide. #bench is the owner's private channel and the Bench asked for an answer there; trust rests on the agent's inbound author gate, as for any notice. The base prompt line now names the Bench case. Claude-Account: russelledeming@gmail.com Co-Authored-By: Claude Opus 5.5 --- crates/buzz-acp/src/base_prompt.md | 2 +- crates/buzz-acp/src/pool.rs | 124 +++++++++++++++++++++++++---- 2 files changed, 110 insertions(+), 16 deletions(-) diff --git a/crates/buzz-acp/src/base_prompt.md b/crates/buzz-acp/src/base_prompt.md index 201f0aef707..e655136fc54 100644 --- a/crates/buzz-acp/src/base_prompt.md +++ b/crates/buzz-acp/src/base_prompt.md @@ -71,7 +71,7 @@ All replies and delegations — including task assignments to other agents — g - **If your turn produced anything worth knowing, you MUST publish it.** Use `buzz messages send`. Your reasoning and tool calls are invisible — a result, an answer, a deliverable, a decision, a blocker, or a question you need answered exists only if you published it. Work or an answer that someone asked you for always counts. Ending that kind of turn without a message is a silent failure. - **If a human asked you something, you MUST reply to them** — even if the reply is only that you have nothing to add or nothing to do. Never leave a person waiting on you. - **Otherwise, publishing is optional and silence is usually correct.** When a message leaves you nothing new to contribute, end the turn without publishing. That is a success, not a failure. -- **In your owner's one-on-one DM, a turn that ends without a post publishes your final text for you**, so that an answer you wrote but never sent still reaches them. When you mean to stay silent there, end the turn with no final text. +- **In your owner's one-on-one DM, or when a Bench question notice asks you to answer in its card thread, a turn that ends without a post publishes your final text for you** (in that DM or card thread), so that an answer you wrote but never sent still reaches them. When you mean to stay silent there, end the turn with no final text. - **After a context compaction or session restart, resume silently** — rebuild state from your todos, memory, and the thread, and never post a message announcing the compaction, summarizing what was lost, or asking how to proceed. - **Never publish a bare acknowledgement.** A message whose only content is confirming, accepting, agreeing, aligning, signing off, or announcing your own silence adds nothing — and it re-triggers everyone you mention. Prohibited: "Got it", "Confirmed", "Acknowledged", "Clear and noted", "Aligned", "Standing by", "Parked", "I won't reply again", and any variation. If your draft contains nothing beyond acknowledgement, send nothing. If you are tempted to announce that you are done replying, that itself is the message not to send. - After publishing a pickup message, keep working until you publish the result, handoff, blocker, or key decision or information that needs to be surfaced. diff --git a/crates/buzz-acp/src/pool.rs b/crates/buzz-acp/src/pool.rs index cf1f4d7e236..1632e68903f 100644 --- a/crates/buzz-acp/src/pool.rs +++ b/crates/buzz-acp/src/pool.rs @@ -5914,19 +5914,39 @@ fn owner_question<'a>(batch: &'a FlushBatch, agent: &str, owner: &str) -> Option .find(|event| crate::owner_dm::is_owner_message(event, agent, owner)) } +/// The last Bench notice in `batch` that asks this agent for an answer in its +/// card thread: a chat message (kind 9) tagging the agent and carrying a +/// `["df-ask", …]` tag. The desktop adds that tag only on notices it routes to +/// a question answerer (Bench Assistant), never on what the Factory Steward +/// gets, so the steward stays silent. +fn bench_ask<'a>(batch: &'a FlushBatch, agent: &str) -> Option<&'a nostr::Event> { + batch.events.iter().rev().map(|be| &be.event).find(|event| { + u32::from(event.kind.as_u16()) == buzz_core::kind::KIND_STREAM_MESSAGE + && event.tags.iter().any(|t| matches!(t.as_slice(), [k, ..] if k == "df-ask")) + && event.tags.iter().any(|t| { + matches!(t.as_slice(), [k, pk, ..] if k == "p" && pk.eq_ignore_ascii_case(agent)) + }) + }) +} + /// Post the agent's answer when it ended a turn without sending one. /// /// An agent replies by running `buzz messages send`. One that writes its /// answer as the turn's final text instead ends the turn normally, the typing /// indicator stops, and the person who asked gets nothing (Bench Assistant, /// 18 Nov 2026 03:12 UTC). So after an `end_turn` on the owner's question in -/// their one-on-one DM, ask the relay whether the agent posted there since -/// the turn began; if not, post its last words for it. +/// their one-on-one DM, or on a Bench notice that asks for an answer in its +/// card thread ([`bench_ask`]), ask the relay whether the agent posted there +/// since the turn began; if not, post its last words for it. /// /// Only there. Elsewhere silence can be the job (the Factory Steward ends a /// tick wake or a Bench notice with nothing to say), and a guest could read /// final text that was never written for them. In the owner's DM nobody else /// reads it, and a question with no answer is never what the owner wants. +/// #bench is the owner's private channel, and there the Bench asked in so +/// many words for an answer in that card's thread. The ask is trusted as any +/// notice is: only an author the agent's inbound gate (`respond_to`) admits +/// can start the turn at all. /// /// A turn that ends with no text and no post stays silent: that is an agent /// choosing not to answer ("thanks"), which the base prompt allows, and the @@ -5948,21 +5968,33 @@ async fn post_reply_if_silent( if reply_text.is_empty() { return; } - let Some(owner) = ctx.agent_owner_pubkey.map(|pk| pk.to_hex()) else { - return; - }; let rest = &ctx.rest_client; let agent = rest.keys.public_key(); let agent_hex = agent.to_hex(); - let Some(asked) = owner_question(batch, &agent_hex, &owner) else { - return; - }; - if !crate::owner_dm::channel_is_owner_dm(&ctx.channel_info, channel_id, &agent_hex, &owner) - .await + let owner = ctx.agent_owner_pubkey.map(|pk| pk.to_hex()); + let dm_question = match owner + .as_deref() + .and_then(|o| owner_question(batch, &agent_hex, o).map(|q| (q, o))) { + Some((q, o)) + if crate::owner_dm::channel_is_owner_dm( + &ctx.channel_info, + channel_id, + &agent_hex, + o, + ) + .await => + { + Some(q) + } + _ => None, + }; + let Some(asked) = dm_question.or_else(|| bench_ask(batch, &agent_hex)) else { return; - } - let filter = nostr::Filter::new() + }; + let thread_tags = + crate::queue::notice_thread_tags(asked, crate::queue::parse_thread_tags(asked)); + let mut filter = nostr::Filter::new() .kinds(REPLY_KINDS.map(|k| nostr::Kind::Custom(k as u16))) .author(agent) .custom_tags( @@ -5971,6 +6003,12 @@ async fn post_reply_if_silent( ) .since(nostr::Timestamp::from(since)) .limit(1); + // A Bench ask is answered in its card's thread, so a post elsewhere in + // #bench must not hide that answer missing. The DM stays channel-wide: + // replies there are often top-level. + if let (None, Some(root)) = (dm_question, thread_tags.root_event_id.as_deref()) { + filter = filter.custom_tags(SingleLetterTag::lowercase(Alphabet::E), [root]); + } match timeout( CONTEXT_FETCH_TIMEOUT, rest.query(std::slice::from_ref(&filter)), @@ -5991,10 +6029,8 @@ async fn post_reply_if_silent( tracing::warn!( target: "pool::prompt", channel = %channel_id, - "owner's question ended without a reply — posting the agent's last words" + "a question ended without a reply — posting the agent's last words" ); - let thread_tags = - crate::queue::notice_thread_tags(asked, crate::queue::parse_thread_tags(asked)); post_notice(rest, channel_id, &thread_tags, &reply_text, &[]).await; } @@ -6199,6 +6235,64 @@ pub(crate) mod tests { assert!(super::owner_question(&guest, &agent, &owner_hex).is_none()); } + #[test] + fn only_an_opted_in_bench_notice_asks_for_a_reply() { + let writer = Keys::generate(); + let agent = Keys::generate().public_key().to_hex(); + let card = "c".repeat(64); + let notice = |kind: u16, to: &str, ask: Option<&str>| { + let mut tags = vec![ + vec!["e".into(), card.clone(), String::new(), "reply".into()], + vec!["p".into(), to.to_string()], + vec!["client".into(), "bench:route:x@r0123456789abcdef".into()], + ]; + tags.extend(ask.map(|a| vec!["df-ask".to_string(), a.to_string()])); + let tags: Vec = tags.into_iter().map(|t| Tag::parse(t).unwrap()).collect(); + EventBuilder::new(Kind::Custom(kind), "Bench reply · x") + .tags(tags) + .sign_with_keys(&writer) + .unwrap() + }; + let scope = SessionScope::Conversation { + channel_id: Uuid::new_v4(), + }; + let asks = |event: nostr::Event| { + super::bench_ask(&batch_with_scope(scope.clone(), event), &agent).map(|e| e.id) + }; + + let asked = notice(9, &agent, Some("r1")); + assert_eq!(asks(asked.clone()), Some(asked.id)); + assert!(asks(notice(9, &agent.to_uppercase(), Some("r1"))).is_some()); + // What the Factory Steward gets: the same notice, no opt-in. + assert!(asks(notice(9, &agent, None)).is_none()); + let other = Keys::generate().public_key().to_hex(); + assert!(asks(notice(9, &other, Some("r1"))).is_none()); + let edit = buzz_core::kind::KIND_STREAM_MESSAGE_EDIT as u16; + assert!(asks(notice(edit, &agent, Some("r1"))).is_none()); + + let mut batch = batch_with_scope(scope.clone(), asked.clone()); + let newer = notice(9, &agent, Some("r2")); + batch.events.push(batch_event(newer.clone())); + assert_eq!( + super::bench_ask(&batch, &agent).map(|e| e.id), + Some(newer.id) + ); + + // The posted answer is a layer-1 reply in the card's thread. + let tags = + crate::queue::notice_thread_tags(&asked, crate::queue::parse_thread_tags(&asked)); + let posted = super::build_failure_notice_event(&writer, Uuid::new_v4(), &tags, "a", &[]) + .expect("notice builds"); + assert!( + posted + .tags + .iter() + .any(|t| t.as_slice() == ["e", card.as_str(), "", "reply"]), + "{:?}", + posted.tags + ); + } + #[test] fn a_refusal_notice_names_what_stopped_and_what_to_do() { let text = super::permission_refusal_notice_text(&["Bash".to_string()]); From 8183e59a8236f9d12543b0519a6d20c49d23ed03 Mon Sep 17 00:00:00 2001 From: QuicksilverSlick Date: Wed, 18 Nov 2026 09:17:30 -0600 Subject: [PATCH 2/3] fix(buzz-acp): name the df-ask tag the fallback keys on The base prompt promised the silent-turn fallback "when a Bench question notice asks you to answer in its card thread". Today's Bench reply notice (render_route_reply) already says "answer them there" with no df-ask tag, and bench_ask posts nothing for it, so the prompt invited the very drop it describes. The line now names what the code checks and the agent can see in each event's Tags line: a notice tagged `df-ask`. bench_ask's doc now states the rule the desktop must keep: tag only a #bench notice for a question from one of the owner's keys. buzz-acp cannot tell #bench from a project channel and does not check, so post_reply_if_silent's doc no longer reads as if it did. Claude-Account: russelledeming@gmail.com Co-Authored-By: Claude Opus 5.5 --- crates/buzz-acp/src/base_prompt.md | 2 +- crates/buzz-acp/src/pool.rs | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/crates/buzz-acp/src/base_prompt.md b/crates/buzz-acp/src/base_prompt.md index e655136fc54..f955d835002 100644 --- a/crates/buzz-acp/src/base_prompt.md +++ b/crates/buzz-acp/src/base_prompt.md @@ -71,7 +71,7 @@ All replies and delegations — including task assignments to other agents — g - **If your turn produced anything worth knowing, you MUST publish it.** Use `buzz messages send`. Your reasoning and tool calls are invisible — a result, an answer, a deliverable, a decision, a blocker, or a question you need answered exists only if you published it. Work or an answer that someone asked you for always counts. Ending that kind of turn without a message is a silent failure. - **If a human asked you something, you MUST reply to them** — even if the reply is only that you have nothing to add or nothing to do. Never leave a person waiting on you. - **Otherwise, publishing is optional and silence is usually correct.** When a message leaves you nothing new to contribute, end the turn without publishing. That is a success, not a failure. -- **In your owner's one-on-one DM, or when a Bench question notice asks you to answer in its card thread, a turn that ends without a post publishes your final text for you** (in that DM or card thread), so that an answer you wrote but never sent still reaches them. When you mean to stay silent there, end the turn with no final text. +- **In your owner's one-on-one DM, or on a Bench notice tagged `df-ask`, a turn that ends without a post publishes your final text for you** (in that DM or the notice's card thread), so that an answer you wrote but never sent still reaches them. When you mean to stay silent there, end the turn with no final text. - **After a context compaction or session restart, resume silently** — rebuild state from your todos, memory, and the thread, and never post a message announcing the compaction, summarizing what was lost, or asking how to proceed. - **Never publish a bare acknowledgement.** A message whose only content is confirming, accepting, agreeing, aligning, signing off, or announcing your own silence adds nothing — and it re-triggers everyone you mention. Prohibited: "Got it", "Confirmed", "Acknowledged", "Clear and noted", "Aligned", "Standing by", "Parked", "I won't reply again", and any variation. If your draft contains nothing beyond acknowledgement, send nothing. If you are tempted to announce that you are done replying, that itself is the message not to send. - After publishing a pickup message, keep working until you publish the result, handoff, blocker, or key decision or information that needs to be surfaced. diff --git a/crates/buzz-acp/src/pool.rs b/crates/buzz-acp/src/pool.rs index 1632e68903f..823b7839781 100644 --- a/crates/buzz-acp/src/pool.rs +++ b/crates/buzz-acp/src/pool.rs @@ -5916,9 +5916,10 @@ fn owner_question<'a>(batch: &'a FlushBatch, agent: &str, owner: &str) -> Option /// The last Bench notice in `batch` that asks this agent for an answer in its /// card thread: a chat message (kind 9) tagging the agent and carrying a -/// `["df-ask", …]` tag. The desktop adds that tag only on notices it routes to -/// a question answerer (Bench Assistant), never on what the Factory Steward -/// gets, so the steward stays silent. +/// `["df-ask", …]` tag. The desktop must add that tag only to a #bench notice +/// (`ch == s.channel_id`) for a question from one of the owner's keys, routed +/// to a question answerer (Bench Assistant), never to what the Factory Steward +/// gets. This cannot tell #bench from any other channel and does not check. fn bench_ask<'a>(batch: &'a FlushBatch, agent: &str) -> Option<&'a nostr::Event> { batch.events.iter().rev().map(|be| &be.event).find(|event| { u32::from(event.kind.as_u16()) == buzz_core::kind::KIND_STREAM_MESSAGE @@ -5943,10 +5944,10 @@ fn bench_ask<'a>(batch: &'a FlushBatch, agent: &str) -> Option<&'a nostr::Event> /// tick wake or a Bench notice with nothing to say), and a guest could read /// final text that was never written for them. In the owner's DM nobody else /// reads it, and a question with no answer is never what the owner wants. -/// #bench is the owner's private channel, and there the Bench asked in so -/// many words for an answer in that card's thread. The ask is trusted as any -/// notice is: only an author the agent's inbound gate (`respond_to`) admits -/// can start the turn at all. +/// The desktop tags only #bench notices, #bench is the owner's private +/// channel, and there the Bench asked for an answer in that card's thread. +/// The ask is trusted as any notice is: only an author the agent's inbound +/// gate (`respond_to`) admits can start the turn at all. /// /// A turn that ends with no text and no post stays silent: that is an agent /// choosing not to answer ("thanks"), which the base prompt allows, and the From 2f3ec4961d95cdc3b1ed3215359ce0e9a4268316 Mon Sep 17 00:00:00 2001 From: QuicksilverSlick Date: Wed, 18 Nov 2026 09:25:03 -0600 Subject: [PATCH 3/3] fix(buzz-acp): trust a df-ask only from the agent's explicit allowlist bench_ask counted any kind-9 df-ask notice that p-tagged the agent, so the owner, a same-owner sibling agent, or anyone (if respond_to were "anyone") could make the agent publish final text it never sent. Now the notice must be signed by a key on the agent's explicit respond_to allowlist (for Bench Assistant, the Bench writer key), plumbed into PromptContext as bench_ask_signers. An empty list (owner-only or anyone mode) means no Bench fallback. The owner-DM fallback is unchanged. Claude-Account: russelledeming@gmail.com Co-Authored-By: Claude Opus 5.5 --- crates/buzz-acp/src/pool.rs | 57 ++++++++++++++++++++++++++++------ crates/buzz-acp/src/runtime.rs | 1 + 2 files changed, 48 insertions(+), 10 deletions(-) diff --git a/crates/buzz-acp/src/pool.rs b/crates/buzz-acp/src/pool.rs index 823b7839781..71ef930d9ff 100644 --- a/crates/buzz-acp/src/pool.rs +++ b/crates/buzz-acp/src/pool.rs @@ -980,6 +980,11 @@ pub struct PromptContext { /// Owner pubkey (hex), if resolved at startup. When unset, NIP-AE core /// injection is skipped entirely (no owner = no `(agent, owner)` pair). pub agent_owner_pubkey: Option, + /// The explicit `respond_to` allowlist (lowercase hex), without the owner + /// and siblings the gate also admits: the only signers whose `df-ask` + /// notice may publish the agent's unsent final text ([`bench_ask`]). + /// Empty outside allowlist mode, which turns that fallback off. + pub bench_ask_signers: HashSet, /// Whether NIP-AE agent core memory injection is enabled. When false, /// the per-session core engram fetch is skipped and `core_sections` /// remains empty for every channel, so `format_prompt` renders no @@ -5916,13 +5921,24 @@ fn owner_question<'a>(batch: &'a FlushBatch, agent: &str, owner: &str) -> Option /// The last Bench notice in `batch` that asks this agent for an answer in its /// card thread: a chat message (kind 9) tagging the agent and carrying a -/// `["df-ask", …]` tag. The desktop must add that tag only to a #bench notice -/// (`ch == s.channel_id`) for a question from one of the owner's keys, routed -/// to a question answerer (Bench Assistant), never to what the Factory Steward -/// gets. This cannot tell #bench from any other channel and does not check. -fn bench_ask<'a>(batch: &'a FlushBatch, agent: &str) -> Option<&'a nostr::Event> { +/// `["df-ask", …]` tag, signed by a key in `signers`, the agent's explicit +/// `respond_to` allowlist (for Bench Assistant, only the Bench writer key). +/// The owner and same-owner sibling agents pass the inbound gate but are not +/// in that list, so they cannot opt a message into the fallback; an empty list +/// (owner-only or anyone mode) means no Bench fallback at all. The desktop +/// must add that tag only to a #bench notice (`ch == s.channel_id`) for a +/// question from one of the owner's keys, routed to a question answerer +/// (Bench Assistant), never to what the Factory Steward gets. This cannot tell +/// #bench from any other channel and does not check. +fn bench_ask<'a>( + batch: &'a FlushBatch, + agent: &str, + signers: &HashSet, +) -> Option<&'a nostr::Event> { batch.events.iter().rev().map(|be| &be.event).find(|event| { u32::from(event.kind.as_u16()) == buzz_core::kind::KIND_STREAM_MESSAGE + // Config stores the allowlist lowercased; `to_hex` is lowercase. + && signers.contains(&event.pubkey.to_hex()) && event.tags.iter().any(|t| matches!(t.as_slice(), [k, ..] if k == "df-ask")) && event.tags.iter().any(|t| { matches!(t.as_slice(), [k, pk, ..] if k == "p" && pk.eq_ignore_ascii_case(agent)) @@ -5946,8 +5962,10 @@ fn bench_ask<'a>(batch: &'a FlushBatch, agent: &str) -> Option<&'a nostr::Event> /// reads it, and a question with no answer is never what the owner wants. /// The desktop tags only #bench notices, #bench is the owner's private /// channel, and there the Bench asked for an answer in that card's thread. -/// The ask is trusted as any notice is: only an author the agent's inbound -/// gate (`respond_to`) admits can start the turn at all. +/// The ask counts only from a signer on the agent's explicit `respond_to` +/// allowlist ([`PromptContext::bench_ask_signers`]), not from everyone the +/// inbound gate admits: a sibling agent or the owner tagging `df-ask` could +/// otherwise make the agent publish final text it never meant to send. /// /// A turn that ends with no text and no post stays silent: that is an agent /// choosing not to answer ("thanks"), which the base prompt allows, and the @@ -5990,7 +6008,8 @@ async fn post_reply_if_silent( } _ => None, }; - let Some(asked) = dm_question.or_else(|| bench_ask(batch, &agent_hex)) else { + let Some(asked) = dm_question.or_else(|| bench_ask(batch, &agent_hex, &ctx.bench_ask_signers)) + else { return; }; let thread_tags = @@ -6257,8 +6276,10 @@ pub(crate) mod tests { let scope = SessionScope::Conversation { channel_id: Uuid::new_v4(), }; + let signers = HashSet::from([writer.public_key().to_hex()]); let asks = |event: nostr::Event| { - super::bench_ask(&batch_with_scope(scope.clone(), event), &agent).map(|e| e.id) + super::bench_ask(&batch_with_scope(scope.clone(), event), &agent, &signers) + .map(|e| e.id) }; let asked = notice(9, &agent, Some("r1")); @@ -6271,11 +6292,26 @@ pub(crate) mod tests { let edit = buzz_core::kind::KIND_STREAM_MESSAGE_EDIT as u16; assert!(asks(notice(edit, &agent, Some("r1"))).is_none()); + // Only a signer on the explicit allowlist opts in. The owner and a + // sibling pass the inbound gate, yet the same notice from them is no ask. + let same_from = |keys: &Keys| { + EventBuilder::new(asked.kind, asked.content.clone()) + .tags(asked.tags.iter().cloned()) + .sign_with_keys(keys) + .unwrap() + }; + let (owner, sibling) = (Keys::generate(), Keys::generate()); + assert!(asks(same_from(&owner)).is_none()); + assert!(asks(same_from(&sibling)).is_none()); + // Owner-only or anyone mode: no allowlist, so no Bench fallback. + let lone = batch_with_scope(scope.clone(), asked.clone()); + assert!(super::bench_ask(&lone, &agent, &HashSet::new()).is_none()); + let mut batch = batch_with_scope(scope.clone(), asked.clone()); let newer = notice(9, &agent, Some("r2")); batch.events.push(batch_event(newer.clone())); assert_eq!( - super::bench_ask(&batch, &agent).map(|e| e.id), + super::bench_ask(&batch, &agent, &signers).map(|e| e.id), Some(newer.id) ); @@ -11318,6 +11354,7 @@ printf '%s\n' '{{"jsonrpc":"2.0","id":0,"result":{{"stopReason":"end_turn"}}}}'" permission_mode: PermissionMode::Default, agent_keys: agent_keys.clone(), agent_owner_pubkey: owner_pubkey, + bench_ask_signers: HashSet::new(), memory_enabled: false, harness_name: "goose".to_string(), relay_url: "ws://127.0.0.1:3000".to_string(), diff --git a/crates/buzz-acp/src/runtime.rs b/crates/buzz-acp/src/runtime.rs index 9b6806e504c..7260f135e14 100644 --- a/crates/buzz-acp/src/runtime.rs +++ b/crates/buzz-acp/src/runtime.rs @@ -121,6 +121,7 @@ fn make_prompt_context( agent_owner_pubkey: resolve_agent_owner(config) .as_deref() .and_then(|hex| nostr::PublicKey::from_hex(hex).ok()), + bench_ask_signers: config.respond_to_allowlist.clone(), memory_enabled: config.memory_enabled, harness_name: crate::config::normalize_agent_command_identity(&config.agent_command), relay_url: config.relay_url.clone(),