fix: evaluate conditions against structured frame context

This commit is contained in:
lda
2026-09-05 00:34:59 +07:00 Verified
parent 0530d1120a
commit 3bfb3f440b
3 changed files with 178 additions and 6 deletions
+3
View File
@@ -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(