elaboration focus: the claim-order test reads the kernel's derivation order instead of assuming road order

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-12-03 10:56:41 +01:00
commit 342e76ce78

View file

@ -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"
);