fix: evaluate conditions against structured frame context
This commit is contained in:
@@ -29,6 +29,9 @@ def handle_condition_step(
|
||||
state_view_for_frame(run, frame),
|
||||
scope_input_for_frame(run, frame),
|
||||
frame.prior_outcome,
|
||||
# Structured context must match what validation blesses: conditions
|
||||
# inside a foreach body can read context.foreach.* / loop aliases.
|
||||
context=frame_context_view(run, frame).graph,
|
||||
)
|
||||
outcome = "true" if predicate else "false"
|
||||
return StepExecutionResult(
|
||||
|
||||
Reference in New Issue
Block a user