@@ -4592,10 +4592,9 @@ async def _apply_single_evaluation(
45924592 result : _CachedEvaluator .GuidelineEvaluation | _CachedEvaluator .JourneyEvaluation ,
45934593 ) -> None :
45944594 if entity_type == "guideline" :
4595- if entity_type == "guideline" :
4596- guideline = await self ._store_provider .get_store (
4597- GuidelineStore , StoreProviderHints (call_site = "sdk" )
4598- ).read_guideline (guideline_id = cast (GuidelineId , entity_id ))
4595+ guideline = await self ._store_provider .get_store (
4596+ GuidelineStore , StoreProviderHints (call_site = "sdk" )
4597+ ).read_guideline (guideline_id = cast (GuidelineId , entity_id ))
45994598
46004599 properties = cast (_CachedEvaluator .GuidelineEvaluation , result ).properties
46014600
@@ -4610,22 +4609,20 @@ async def _apply_single_evaluation(
46104609 value = value ,
46114610 )
46124611
4613- elif entity_type == "journey" :
4614- # Store evaluation results on Journey.node_properties (not
4615- # individual nodes) to avoid cross-journey interference when
4616- # the same node is referenced by multiple journeys. The
4617- # projection injects this data into guidelines at read time.
4618- journey_id = cast (JourneyId , entity_id )
4619- eval_node_properties = cast (
4620- _CachedEvaluator .JourneyEvaluation , result
4621- ).node_properties
4612+ elif entity_type == "journey" :
4613+ # Store evaluation results on Journey.node_properties (not
4614+ # individual nodes) to avoid cross-journey interference when
4615+ # the same node is referenced by multiple journeys. The
4616+ # projection injects this data into guidelines at read time.
4617+ journey_id = cast (JourneyId , entity_id )
4618+ eval_node_properties = cast (_CachedEvaluator .JourneyEvaluation , result ).node_properties
46224619
4623- await self ._store_provider .get_store (
4624- JourneyStore , StoreProviderHints (call_site = "sdk" )
4625- ).set_node_properties (
4626- journey_id = journey_id ,
4627- node_properties = cast (Mapping [str , JSONSerializable ], eval_node_properties ),
4628- )
4620+ await self ._store_provider .get_store (
4621+ JourneyStore , StoreProviderHints (call_site = "sdk" )
4622+ ).set_node_properties (
4623+ journey_id = journey_id ,
4624+ node_properties = cast (Mapping [str , JSONSerializable ], eval_node_properties ),
4625+ )
46294626
46304627 async def _setup_retrievers (self ) -> None :
46314628 async def setup_retriever (
0 commit comments