From cb1be44f92239b9b28ead4995c5ffe1e3f5271ba Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 13:43:23 +0200 Subject: [PATCH] Test: the custody-uncertain fixture binds the narrative subject as the world holds it Co-Authored-By: Claude Opus 5.5 --- crates/ghostlight/src/controllers.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/ghostlight/src/controllers.rs b/crates/ghostlight/src/controllers.rs index 3e120fd..f9ca0f4 100644 --- a/crates/ghostlight/src/controllers.rs +++ b/crates/ghostlight/src/controllers.rs @@ -19704,8 +19704,14 @@ mod tests { .run_operational(operational_command, &operational[0]) .await .unwrap(); + // The operational act moved the narrative subject's scope: bind it as + // the world now holds it. + let narrative_bound = fresh_opportunity( + &mailbox.snapshot().await.unwrap(), + narrative[0].scope.subject_id, + ); runner - .run_narrative(narrative_command, &narrative[0]) + .run_narrative(narrative_command, &narrative_bound) .await .unwrap(); @@ -19714,7 +19720,7 @@ mod tests { let operational_now = fresh_opportunity(&moved, operational[0].scope.subject_id); let narrative_now = fresh_opportunity(&moved, narrative[0].scope.subject_id); assert_ne!(operational_now.scope_digest, operational[0].scope_digest); - assert_ne!(narrative_now.scope_digest, narrative[0].scope_digest); + assert_ne!(narrative_now.scope_digest, narrative_bound.scope_digest); let OperationalRun::Pending(pending) = uncertain .run_operational(operational_command, &operational_now) .await