From 5e6303f8c4e38c360ac3ed95005e64fd16c08ebe Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 3 Dec 2026 10:59:16 +0100 Subject: [PATCH] elaboration focus: the commons is one route from either road, so its deficit joins either focus Co-Authored-By: Claude Opus 5.5 --- crates/ghostlight/src/controllers.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/ghostlight/src/controllers.rs b/crates/ghostlight/src/controllers.rs index 555dff8..9759cda 100644 --- a/crates/ghostlight/src/controllers.rs +++ b/crates/ghostlight/src/controllers.rs @@ -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),