elaboration focus: the commons is one route from either road, so its deficit joins either focus

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-12-03 10:59:16 +01:00
commit 5e6303f8c4

View file

@ -14878,14 +14878,16 @@ assert!(projector_text.contains("I ask about the hinge."), "the player's own tur
"an empty focus keeps the kernel's order: boundaries in derivation order (by id, not road order), then the deficit"
);
// The dead end the player's exit leads to is claimed first.
// The dead end the player's exit leads to is claimed first, ahead of the
// boundary the kernel lists before it; the commons is one open route from
// it, so its deficit is in focus too and the other road waits.
let focus = Focus { places: vec![second], nodes: Vec::new() };
assert_eq!(
crate::elaboration::claim_order(&snapshot, &focus),
vec![at(second), at(first), deficit.clone()]
vec![at(second), deficit.clone(), at(first)]
);
// The commons is one open route from the first road: its deficit
// joins that road's boundary in focus, and the other road waits.
// The same from the first road: the deficit comes before the road
// the kernel lists after it.
let focus = Focus { places: vec![first], nodes: Vec::new() };
assert_eq!(
crate::elaboration::claim_order(&snapshot, &focus),