Skip to content

Feature/local cfg nested calls - #62

Merged
Galfurian merged 3 commits into
devfrom
feature/local-cfg-nested-calls
May 11, 2026
Merged

Feature/local cfg nested calls#62
Galfurian merged 3 commits into
devfrom
feature/local-cfg-nested-calls

Conversation

@Galfurian

Copy link
Copy Markdown
Member

What this PR does

Adds support for calling a local CompositeMethodNode from another local CompositeMethodNode (same data model), so complex logic can be split across smaller CFG methods instead of one long CFG.

Why

Previously, local CallMethodNode effectively only handled AsyncMethodNode calls. Nested local composite calls were not supported, which was the gap raised in the issue.

Main changes

  • Extended local method-call execution to accept local composite method targets.
  • Added nested execution handling so parent CFGs can pause/resume correctly when a child composite method is still active.
  • Added completion-result handling for nested composite contexts.
  • Added/updated tests to cover nested local composite call behavior.
  • Added a minimal example (nested_local_cfg_call.py) with clear logging that shows parent -> child CFG call flow and returned values.
  • Aligned dependency declarations (requirements-dev.txt, pyproject.toml) for consistency with used/runtime packages.

Validation

  • Focused behavior/composite test suites pass after the change.
  • Example script runs and logs the expected nested call sequence clearly.

@Galfurian Galfurian linked an issue May 11, 2026 that may be closed by this pull request
@Galfurian
Galfurian merged commit 286ab1b into dev May 11, 2026
4 checks passed
@Galfurian
Galfurian deleted the feature/local-cfg-nested-calls branch May 11, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade: Composite Method Node

1 participant