From 342e76ce788fb17fc95557958e9287a70a70e5df Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 3 Dec 2026 10:56:41 +0100 Subject: [PATCH] elaboration focus: the claim-order test reads the kernel's derivation order instead of assuming road order Co-Authored-By: Claude Opus 5.5 --- crates/ghostlight/src/controllers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ghostlight/src/controllers.rs b/crates/ghostlight/src/controllers.rs index d87a283..463e980 100644 --- a/crates/ghostlight/src/controllers.rs +++ b/crates/ghostlight/src/controllers.rs @@ -14869,12 +14869,12 @@ assert!(projector_text.contains("I ask about the hinge."), "the player's own tur let snapshot = mailbox.snapshot().await.unwrap(); let unfocused = crate::elaboration::claim_order(&snapshot, &Focus::default()); assert_eq!(unfocused.len(), 3, "two boundaries and the commons' deficit"); - let (first, second) = (roads[0], roads[1]); + let (first, second) = if boundary_at(roads[0])(&unfocused[0]) { (roads[0], roads[1]) } else { (roads[1], roads[0]) }; let at = |road| unfocused.iter().find(|answer| boundary_at(road)(answer)).unwrap().clone(); let deficit = unfocused.iter().find(|answer| is_deficit(answer)).unwrap().clone(); assert_eq!( unfocused, - vec![at(first), at(second), deficit.clone()], + "an empty focus keeps the kernel's order: boundaries in derivation order (by id, not road order), then the deficit" "an empty focus keeps the kernel's order: boundaries in derivation order, then the deficit" );