release-reply-path: two fixtures reconciled after the merges

A DM's room is its room id under the reply cut (the steward cut's hand-built DM delivery carried the alias form); a request after a result opens a turn under the task cut, so the resume cut's bound test closes that turn with a result.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-07 08:09:24 +00:00
commit b90d84cd50
2 changed files with 2 additions and 2 deletions

View file

@ -2230,7 +2230,7 @@ fn a_dm_memory_names_its_confidant_not_its_subject() {
fn about_can_name_an_absent_mind() {
let (libby, op) = ("@libby:chat", "@op:chat");
let decided = reply(&[("!dm-op:chat", "ok")], json!([keeps("Decided", "Libby does the shaders for the Cinny fork", &[libby])]), json!([]), json!(null));
let dm = ChatDelivery { is_direct: true, ..delivery_of(1, "!dm-op:chat", op, "Libby will do the shaders for the Cinny fork", "$dm-libby") };
let dm = ChatDelivery { is_direct: true, room_id: "!dm-op:chat".into(), ..delivery_of(1, "!dm-op:chat", op, "Libby will do the shaders for the Cinny fork", "$dm-libby") };
let rig = Rig::new(vec![dm], &[decided, says(&[("swarm", "go")])]);
assert_eq!(failure_of(rig.go()), None);
assert_eq!(rig.sent_texts().len(), 1);

View file

@ -724,7 +724,7 @@ fn a_requests_start_is_bounded_by_the_line_before_it_never_by_its_own_first_line
// The next request of the turn begins after the previous request's last line, not after its result.
assert_eq!(warm_after(working(), vec![(Event::Echo, 0), (req("a", 10), 100), (req("a", 10), 200), (req("b", 10), 900), (OK, 950)], Some(0)), Some(t(200 + 3600 - 60)));
// A request with no echo before it (nothing was written) is bounded by the result before it.
assert_eq!(warm_after(working(), vec![(Event::Echo, 0), (req("a", 10), 10), (OK, 20), (req("b", 10), 900)], Some(0)), Some(t(20 + 3600 - 60)));
assert_eq!(warm_after(working(), vec![(Event::Echo, 0), (req("a", 10), 10), (OK, 20), (req("b", 10), 900), (OK, 905)], Some(0)), Some(t(20 + 3600 - 60)));
// After a result, the next turn's echo is the bound.
assert_eq!(warm_after(working(), vec![(Event::Echo, 0), (req("a", 10), 10), (OK, 20), (Event::Echo, 300), (req("b", 10), 900), (OK, 950)], Some(0)), Some(t(300 + 3600 - 60)));
}