subgraph support in wf_authoring

This commit is contained in:
lda
2026-05-25 02:29:51 +07:00 Verified
parent 6ef2620602
commit d3df4754ce
6 changed files with 142 additions and 6 deletions
@@ -303,6 +303,22 @@ resolved dependency set.
`wf_authoring` should expose native subgraph use separately from wrapper-node
composition.
Current helper:
```python
child = subgraph_ref(
id="run_child",
workflow=child_builder.compile(),
input=[input_from(state_path("request"), "request")],
output=[output_to("summary", state_path("child_summary"))],
)
```
This copies the compiled child workflow contract into a core `SubgraphNode` but
does not make the child executable yet. `workflow` is still a string reference
inside the core model; higher layers need a structural workflow reference before
saved/deployed workflow dependencies become stable.
Possible API:
```python