From 960ed62ffac106404efde6d03aeab462011fc21f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 4 Nov 2026 09:13:53 +0100 Subject: [PATCH] mind-body tests: the instruction's length and the claimed task's repo follow the new wording --- crates/mind-body/src/persona/tests.rs | 2 +- crates/mind-body/src/self_run/tests.rs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/mind-body/src/persona/tests.rs b/crates/mind-body/src/persona/tests.rs index 79bcc37..a74f131 100644 --- a/crates/mind-body/src/persona/tests.rs +++ b/crates/mind-body/src/persona/tests.rs @@ -3547,7 +3547,7 @@ fn header_of_this_cut(base: &str) -> String { fn a_first_line_is_the_whole_line_before_this_cut_but_for_what_it_says_it_gained() { const GAINED: &str = r#" Later lines of this session carry only new messages. Your mind is searchable: `huginn query '{}' --near "" --documents` finds what you hold that is not in front of you."#; assert!(TURN_INSTRUCTION.ends_with(&format!("What follows is your machine as your mind holds it now, then what was said.{GAINED}"))); - assert_eq!(TURN_INSTRUCTION.len(), 2242 + GAINED.len(), "the instruction's length, and what it gained"); + assert_eq!(TURN_INSTRUCTION.len(), 2382 + GAINED.len(), "the instruction's length, and what it gained"); let rig = a_small_machine(); assert_eq!(failure_of(rig.go()), None); let expected = header_of_this_cut(BASE_SMALL_MACHINE).replace(" text=", " at=2023-11-14T22:13:20Z text="); diff --git a/crates/mind-body/src/self_run/tests.rs b/crates/mind-body/src/self_run/tests.rs index adfb391..afd2acd 100644 --- a/crates/mind-body/src/self_run/tests.rs +++ b/crates/mind-body/src/self_run/tests.rs @@ -1220,7 +1220,12 @@ fn the_start_message_carries_the_claimed_follow_ups_item_and_id_verbatim() { for needle in ["Fix the thing.\nThen report \u{e9}.", claim.id.0.as_str(), "Use the eureka skill."] { assert!(first.contains(needle), "{needle}: {first}"); } - assert!(first.contains(&format!("(campaign `{}`)", follow_up_campaign())), "{first}"); + assert!(first.contains(&format!("(campaign `{}`, repo `{}`)", follow_up_campaign(), follow_up_repo())), "{first}"); +} + +fn follow_up_repo() -> String { + let PipelineDocument::FollowUp(document) = follow_up("c", &spec_ref("x")) else { unreachable!() }; + document.repo.0 } fn follow_up_campaign() -> String {