workflow ref

This commit is contained in:
lda
2026-05-25 03:27:30 +07:00 Verified
parent 16d5204fbc
commit 84b931f821
11 changed files with 227 additions and 20 deletions
+4 -2
View File
@@ -254,8 +254,10 @@ Today there are two different authoring paths:
native parent state.
- `subgraph_ref` builds a native `SubgraphNode` contract from a compiled
`Workflow`: child input schema, output schema, and workflow outcomes are
copied into the boundary. Runtime execution still raises until native
subgraph scopes are implemented.
copied into the boundary. The workflow reference is structural: local
workflows use `{"name": "child"}`, saved artifacts can use
`{"artifact_id": "child", "version": 1}`. Runtime execution still raises
until native subgraph scopes are implemented.
- `WorkflowBuilder.subgraph(...)` is the builder-facing version of
`subgraph_ref`: it appends the native boundary step and returns it as a
`StepRef` for `connect()` / `set_entry_point()`.