fix: scope duplicate output checks by branch path#490
Conversation
Symptom: duplicate-output validation and DESCRIBE warnings flagged variables declared in mutually exclusive branches as CE0111-style duplicates, even though only one branch can execute on a given path. Root cause: both checks accumulated output variable names globally across the entire microflow body/object collection instead of tracking declarations per validation branch or per control-flow path. Fix: validate IF and enum-split bodies with cloned branch scopes, and make duplicate-output DESCRIBE warnings walk normal sequence-flow paths with path-local state. Linear duplicates still warn/fail, while sibling branch outputs do not share scope. Tests: make build, make test, make lint-go.
Review: fix: scope duplicate output checks by branch pathVerdict: Approve with minor notes What the PR doesTwo coordinated fixes for false-positive duplicate output variable warnings/errors when the same output variable name is used in mutually exclusive branches (IF/ELSE, enum split cases):
No blockersMinor issuesO(N²) map cloning in
Positive notes
|
Closes #489.
Summary
Validation