From c71be9db0c47190e6ff23b1547b475a7f8d42d29 Mon Sep 17 00:00:00 2001 From: Eureka Date: Thu, 12 Nov 2026 12:24:10 +0000 Subject: [PATCH] Pin the literal follow basis word in the wire test Co-Authored-By: Claude Sonnet 5.5 --- crates/mind-body/src/chat_client/tests.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/mind-body/src/chat_client/tests.rs b/crates/mind-body/src/chat_client/tests.rs index fe3b76a..c064c7a 100644 --- a/crates/mind-body/src/chat_client/tests.rs +++ b/crates/mind-body/src/chat_client/tests.rs @@ -153,6 +153,9 @@ fn the_follow_up_basis_is_one_wire_string_that_round_trips_and_an_unknown_one_st let pending = decode::(&rmp_serde::to_vec(&value).unwrap()).unwrap(); assert_eq!(pending.deliveries[0].basis, Some(Basis::FollowUp)); assert_eq!(Basis::FollowUp.name(), FOLLOW_UP_BASIS); + assert_eq!(Basis::FollowUp.name(), "follow", "the mouth's literal word (Bifrost PR #74), not the constant"); + value[1][0][12] = "follow".into(); + assert_eq!(decode::(&rmp_serde::to_vec(&value).unwrap()).unwrap().deliveries[0].basis, Some(Basis::FollowUp)); assert_eq!(rmp_serde::from_slice::(&rmp_serde::to_vec(&Basis::FollowUp).unwrap()).unwrap(), FOLLOW_UP_BASIS); value[1][0][12] = "follow-up".into(); assert!(decode::(&rmp_serde::to_vec(&value).unwrap()).is_err());