From 3b15c39f8379374a49b65548a6a27781506cac74 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 9 Oct 2026 23:11:20 +0200 Subject: [PATCH] mind-body launch test: end each Persona turn before the next opens Admission now holds one live run of hers per turn, so the budget test that launched three Persona turns in a row without ending any is refused at the second. It ends each turn; mind-launch r3 rewrites this test next. 7ef8669 does not pass this test; this commit does. Co-Authored-By: Claude Opus 5.5 --- crates/mind-body/src/launch.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/mind-body/src/launch.rs b/crates/mind-body/src/launch.rs index cbfd17f..753e67a 100644 --- a/crates/mind-body/src/launch.rs +++ b/crates/mind-body/src/launch.rs @@ -335,6 +335,8 @@ mod tests { assert_eq!(the_run(&view).budget_usd.0, want); assert_eq!(the_run(&view).turn, RunTurn::PersonaTurn); assert!(the_run(&view).claims.is_empty() && the_run(&view).campaigns.is_empty()); + // One live Persona turn of hers at a time (admission): end this one. + rig.mind.committed(vec![close(run, recorded())]); } assert_eq!(rig.started(), 3, "a Persona turn is never Busy"); }